git ssb

3+

cel / ssb-npm-registry



Commit c395b27602e5cec624ed0664e8b8ae4fcfc7e563

bootstrap route: default to provide only ssb-npm

cel committed on 5/17/2020, 11:51:21 PM
Parent: a17b7e21e8c33ec08d467af96942fb4e3d801ef7

Files changed

README.mdchanged
index.jschanged
README.mdView
@@ -59,9 +59,9 @@
5959 - `config.npm.needShasum`: whether to fetch always calculate and send package shasums. Default is `false` but will always calculate the shasum in response to a request from `npm < v5`
6060 - `config.npm.baseUrl`: URL of this ssb-npm-registry instance, such as in case it is being served behind a proxy. Default is to try to detect it for each HTTP request from the Host header or local socket address.
6161 - `config.npm.defaultPkgs`: Array of names (or `name@version` strings) of
6262 ssb-npm packages for the bootstrap snippet to install globally with `npm`.
63- These are resolved to message ids when the snippet is served. Default: `["ssb-server", "ssb-npm", "git-ssb"]`
63 + These are resolved to message ids when the snippet is served. Default: `["ssb-npm"]`
6464 - `config.npm.postInstallCmd`: Command string for the bootstrap snippet to run
6565 after installing packages, if any. Default: `"sbot server"`
6666
6767 ### Environmental variables
index.jsView
@@ -693,9 +693,9 @@
693693 }
694694
695695 Req.prototype.serveBootstrap = function () {
696696 var self = this
697- var pkgs = self.server.npmConfig.defaultPkgs || ['ssb-server', 'ssb-npm', 'git-ssb']
697 + var pkgs = self.server.npmConfig.defaultPkgs || ['ssb-npm']
698698 var postInstallCmd = self.server.npmConfig.postInstallCmd
699699 if (postInstallCmd == null) postInstallCmd = 'sbot server'
700700 var ssbNpmRegistryName = require('./package.json').name
701701 var ssbNpmRegistryVersion = require('./package.json').version

Built with git-ssb-web