From 6301c3f16990c9d7bf6ef5da608de8f9726af3fd Mon Sep 17 00:00:00 2001 From: steve-p-com Date: Thu, 21 Apr 2016 21:13:49 +0100 Subject: [PATCH] Replace YAML package definitions with standard package.json, fix dependencies --- .gitignore | 1 - .npmignore | 1 - Gruntfile.js | 2 +- lib/cli.js | 7 +- lib/config.js | 8 +- lib/index-api.js | 4 +- lib/index-web.js | 5 +- npm-shrinkwrap.json | 1327 ++++++++++++++++++++------ package.json | 86 ++ package.yaml | 135 --- test/functional/lib/smart_request.js | 5 +- 11 files changed, 1148 insertions(+), 433 deletions(-) create mode 100644 package.json delete mode 100644 package.yaml diff --git a/.gitignore b/.gitignore index fe652cd2d..6ea289bee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -/package.json npm-debug.log sinopia-*.tgz .DS_Store diff --git a/.npmignore b/.npmignore index 17d7a085f..b6b5b90b0 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,4 @@ node_modules -package.json npm-debug.log sinopia-*.tgz diff --git a/Gruntfile.js b/Gruntfile.js index dafdaed66..2bf41a705 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,6 +1,6 @@ module.exports = function(grunt) { grunt.initConfig({ - pkg: grunt.file.readYAML('package.yaml'), + pkg: grunt.file.readJSON('package.json'), browserify: { dist: { files: { diff --git a/lib/cli.js b/lib/cli.js index e78926de8..907f6c4df 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -28,13 +28,12 @@ var Path = require('path') var URL = require('url') var server = require('./index') var Utils = require('./utils') -var pkg_file = '../package.yaml' -var pkg = YAML.safeLoad(fs.readFileSync(__dirname+'/'+ pkg_file, 'utf8')) +var pkginfo = require('pkginfo')(module); // eslint-disable-line no-unused-vars commander .option('-l, --listen <[host:]port>', 'host:port number to listen on (default: localhost:4873)') .option('-c, --config ', 'use this configuration file (default: ./config.yaml)') - .version(pkg.version) + .version(module.exports.version) .parse(process.argv) if (commander.args.length == 1 && !commander.config) { @@ -161,7 +160,7 @@ function afterConfigLoad() { pathname: '/', }) ), - version: 'Sinopia/'+pkg.version, + version: 'Sinopia/'+module.exports.version, }, 'http address - @{addr}') }) diff --git a/lib/config.js b/lib/config.js index df0744d75..99ca0447f 100644 --- a/lib/config.js +++ b/lib/config.js @@ -1,14 +1,12 @@ var assert = require('assert') var Crypto = require('crypto') -var fs = require('fs') -var YAML = require('js-yaml') var Error = require('http-errors') var minimatch = require('minimatch') var Path = require('path') var LocalData = require('./local-data') var Utils = require('./utils') -var pkg_file = '../package.yaml' -var pkg = YAML.safeLoad(fs.readFileSync(__dirname+'/'+pkg_file, 'utf8')) +var Utils = require('./utils') +var pkginfo = require('pkginfo')(module); // eslint-disable-line no-unused-vars // [[a, [b, c]], d] -> [a, b, c, d] function flatten(array) { @@ -28,7 +26,7 @@ function Config(config) { for (var i in config) { if (self[i] == null) self[i] = config[i] } - if (!self.user_agent) self.user_agent = 'Sinopia/'+pkg.version + if (!self.user_agent) self.user_agent = 'Sinopia/'+module.exports.version // some weird shell scripts are valid yaml files parsed as string assert.equal(typeof(config), 'object', 'CONFIG: it doesn\'t look like a valid config file') diff --git a/lib/index-api.js b/lib/index-api.js index f91b62450..841ed2d21 100644 --- a/lib/index-api.js +++ b/lib/index-api.js @@ -1,6 +1,6 @@ var Cookies = require('cookies') var express = require('express') -var expressJson5 = require('express-json5') +var bodyParser = require('body-parser') var Error = require('http-errors') var Path = require('path') var Middleware = require('./middleware') @@ -30,7 +30,7 @@ module.exports = function(config, auth, storage) { app.use(auth.basic_middleware()) //app.use(auth.bearer_middleware()) - app.use(expressJson5({ strict: false, limit: config.max_body_size || '10mb' })) + app.use(bodyParser.json({ strict: false, limit: config.max_body_size || '10mb' })) app.use(Middleware.anti_loop(config)) // encode / in a scoped package name to be matched as a single parameter in routes diff --git a/lib/index-web.js b/lib/index-web.js index d1a15a9ce..cc2645037 100644 --- a/lib/index-web.js +++ b/lib/index-web.js @@ -51,10 +51,11 @@ module.exports = function(config, auth, storage) { async.filterSeries(packages, function(package, cb) { auth.allow_access(package.name, req.remote_user, function(err, allowed) { setImmediate(function () { - cb(!err && allowed) + cb(err, allowed) }) }) - }, function(packages) { + }, function(err, packages) { + if (err) throw err packages.sort(function(p1, p2) { if (p1.name < p2.name) { return -1; diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index c2784c0c3..8f8755ed8 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,74 +1,126 @@ { - "name": "sinopia", + "name": "verdaccio", "version": "1.4.0", "dependencies": { "JSONStream": { - "version": "1.0.6", + "version": "1.1.1", + "from": "JSONStream@>=1.1.1 <2.0.0", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.1.1.tgz", "dependencies": { "jsonparse": { - "version": "1.1.0" + "version": "1.2.0", + "from": "jsonparse@>=1.1.0 <2.0.0", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.2.0.tgz" }, "through": { - "version": "2.3.8" + "version": "2.3.8", + "from": "through@>=2.2.7 <3.0.0", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz" } } }, "async": { - "version": "0.9.2" + "version": "2.0.0-rc.3", + "from": "async@>=2.0.0-rc.3 <3.0.0", + "resolved": "https://registry.npmjs.org/async/-/async-2.0.0-rc.3.tgz", + "dependencies": { + "lodash": { + "version": "4.11.1", + "from": "lodash@>=4.3.0 <5.0.0", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.11.1.tgz" + } + } }, "body-parser": { - "version": "1.14.1", + "version": "1.15.0", + "from": "body-parser@>=1.15.0 <2.0.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.15.0.tgz", "dependencies": { "bytes": { - "version": "2.1.0" + "version": "2.2.0", + "from": "bytes@2.2.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.2.0.tgz" }, "content-type": { - "version": "1.0.1" + "version": "1.0.1", + "from": "content-type@>=1.0.1 <1.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.1.tgz" }, "debug": { "version": "2.2.0", + "from": "debug@>=2.2.0 <2.3.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "dependencies": { "ms": { - "version": "0.7.1" + "version": "0.7.1", + "from": "ms@0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz" } } }, "depd": { - "version": "1.1.0" + "version": "1.1.0", + "from": "depd@>=1.1.0 <1.2.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.0.tgz" }, "iconv-lite": { - "version": "0.4.12" + "version": "0.4.13", + "from": "iconv-lite@>=0.4.13 <0.5.0", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz" }, "on-finished": { "version": "2.3.0", + "from": "on-finished@>=2.3.0 <2.4.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "dependencies": { "ee-first": { - "version": "1.1.1" + "version": "1.1.1", + "from": "ee-first@1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" } } }, "qs": { - "version": "5.1.0" + "version": "6.1.0", + "from": "qs@6.1.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.1.0.tgz" }, "raw-body": { - "version": "2.1.4", + "version": "2.1.6", + "from": "raw-body@>=2.1.5 <2.2.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.1.6.tgz", "dependencies": { + "bytes": { + "version": "2.3.0", + "from": "bytes@2.3.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.3.0.tgz" + }, "unpipe": { - "version": "1.0.0" + "version": "1.0.0", + "from": "unpipe@1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" } } }, "type-is": { - "version": "1.6.9", + "version": "1.6.12", + "from": "type-is@>=1.6.11 <1.7.0", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.12.tgz", "dependencies": { "media-typer": { - "version": "0.3.0" + "version": "0.3.0", + "from": "media-typer@0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" }, "mime-types": { - "version": "2.1.7", + "version": "2.1.10", + "from": "mime-types@>=2.1.10 <2.2.0", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.10.tgz", "dependencies": { "mime-db": { - "version": "1.19.0" + "version": "1.22.0", + "from": "mime-db@>=1.22.0 <1.23.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.22.0.tgz" } } } @@ -77,308 +129,626 @@ } }, "bunyan": { - "version": "1.5.1", + "version": "1.8.1", + "from": "bunyan@>=1.8.0 <2.0.0", + "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.1.tgz", "dependencies": { "dtrace-provider": { "version": "0.6.0", + "from": "dtrace-provider@>=0.6.0 <0.7.0", + "resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.6.0.tgz", "dependencies": { "nan": { - "version": "2.0.9" + "version": "2.2.1", + "from": "nan@>=2.0.8 <3.0.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.2.1.tgz" } } }, "mv": { "version": "2.1.1", + "from": "mv@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz", "dependencies": { "ncp": { - "version": "2.0.0" + "version": "2.0.0", + "from": "ncp@>=2.0.0 <2.1.0", + "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz" + }, + "rimraf": { + "version": "2.4.5", + "from": "rimraf@>=2.4.0 <2.5.0", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", + "dependencies": { + "glob": { + "version": "6.0.4", + "from": "glob@>=6.0.1 <7.0.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", + "dependencies": { + "inflight": { + "version": "1.0.4", + "from": "inflight@>=1.0.4 <2.0.0", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz", + "dependencies": { + "wrappy": { + "version": "1.0.1", + "from": "wrappy@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz" + } + } + }, + "inherits": { + "version": "2.0.1", + "from": "inherits@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz" + }, + "once": { + "version": "1.3.3", + "from": "once@>=1.3.0 <2.0.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz", + "dependencies": { + "wrappy": { + "version": "1.0.1", + "from": "wrappy@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz" + } + } + }, + "path-is-absolute": { + "version": "1.0.0", + "from": "path-is-absolute@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.0.tgz" + } + } + } + } } } }, "safe-json-stringify": { - "version": "1.0.3" + "version": "1.0.3", + "from": "safe-json-stringify@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.0.3.tgz" + }, + "moment": { + "version": "2.13.0", + "from": "moment@>=2.10.6 <3.0.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.13.0.tgz" } } }, "commander": { - "version": "2.8.1", + "version": "2.9.0", + "from": "commander@>=2.9.0 <3.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", "dependencies": { "graceful-readlink": { - "version": "1.0.1" + "version": "1.0.1", + "from": "graceful-readlink@>=1.0.0", + "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz" } } }, "compression": { - "version": "1.6.0", + "version": "1.6.1", + "from": "compression@>=1.6.1 <2.0.0", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.6.1.tgz", "dependencies": { "accepts": { - "version": "1.3.0", + "version": "1.3.2", + "from": "accepts@>=1.3.1 <1.4.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.2.tgz", "dependencies": { "mime-types": { - "version": "2.1.7", + "version": "2.1.10", + "from": "mime-types@>=2.1.10 <2.2.0", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.10.tgz", "dependencies": { "mime-db": { - "version": "1.19.0" + "version": "1.22.0", + "from": "mime-db@>=1.22.0 <1.23.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.22.0.tgz" } } }, "negotiator": { - "version": "0.6.0" + "version": "0.6.0", + "from": "negotiator@0.6.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.0.tgz" } } }, "bytes": { - "version": "2.1.0" + "version": "2.2.0", + "from": "bytes@2.2.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.2.0.tgz" }, "compressible": { - "version": "2.0.6", + "version": "2.0.7", + "from": "compressible@>=2.0.7 <2.1.0", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.7.tgz", "dependencies": { "mime-db": { - "version": "1.19.0" + "version": "1.22.0", + "from": "mime-db@>=1.21.0 <2.0.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.22.0.tgz" } } }, "debug": { "version": "2.2.0", + "from": "debug@>=2.2.0 <2.3.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "dependencies": { "ms": { - "version": "0.7.1" + "version": "0.7.1", + "from": "ms@0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz" } } }, "on-headers": { - "version": "1.0.1" + "version": "1.0.1", + "from": "on-headers@>=1.0.1 <1.1.0", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz" }, "vary": { - "version": "1.1.0" + "version": "1.1.0", + "from": "vary@>=1.1.0 <1.2.0", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.0.tgz" } } }, "cookies": { - "version": "0.5.1", + "version": "0.6.1", + "from": "cookies@>=0.6.1 <0.7.0", + "resolved": "https://registry.npmjs.org/cookies/-/cookies-0.6.1.tgz", "dependencies": { + "depd": { + "version": "1.1.0", + "from": "depd@>=1.1.0 <1.2.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.0.tgz" + }, "keygrip": { - "version": "1.0.1" + "version": "1.0.1", + "from": "keygrip@>=1.0.0 <1.1.0", + "resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.0.1.tgz" } } }, "crypt3": { - "version": "0.1.8", + "version": "0.2.0", + "from": "crypt3@>=0.2.0 <0.3.0", + "resolved": "https://registry.npmjs.org/crypt3/-/crypt3-0.2.0.tgz", "dependencies": { "nan": { - "version": "1.9.0" + "version": "2.2.1", + "from": "nan@>=2.1.0 <3.0.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.2.1.tgz" } } }, "es6-shim": { - "version": "0.21.1" + "version": "0.35.0", + "from": "es6-shim@>=0.35.0 <0.36.0", + "resolved": "https://registry.npmjs.org/es6-shim/-/es6-shim-0.35.0.tgz" }, "express": { - "version": "5.0.0-alpha.2", + "version": "4.13.4", + "from": "express@>=4.13.4 <5.0.0", + "resolved": "https://registry.npmjs.org/express/-/express-4.13.4.tgz", "dependencies": { "accepts": { "version": "1.2.13", + "from": "accepts@>=1.2.12 <1.3.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.2.13.tgz", "dependencies": { "mime-types": { - "version": "2.1.7", + "version": "2.1.10", + "from": "mime-types@>=2.1.6 <2.2.0", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.10.tgz", "dependencies": { "mime-db": { - "version": "1.19.0" + "version": "1.22.0", + "from": "mime-db@>=1.22.0 <1.23.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.22.0.tgz" } } }, "negotiator": { - "version": "0.5.3" + "version": "0.5.3", + "from": "negotiator@0.5.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.5.3.tgz" } } }, "array-flatten": { - "version": "1.1.0" + "version": "1.1.1", + "from": "array-flatten@1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz" }, "content-disposition": { - "version": "0.5.0" + "version": "0.5.1", + "from": "content-disposition@0.5.1", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.1.tgz" }, "content-type": { - "version": "1.0.1" + "version": "1.0.1", + "from": "content-type@>=1.0.1 <1.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.1.tgz" }, "cookie": { - "version": "0.1.3" + "version": "0.1.5", + "from": "cookie@0.1.5", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.5.tgz" }, "cookie-signature": { - "version": "1.0.6" + "version": "1.0.6", + "from": "cookie-signature@1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz" }, "debug": { "version": "2.2.0", + "from": "debug@>=2.2.0 <2.3.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "dependencies": { "ms": { - "version": "0.7.1" + "version": "0.7.1", + "from": "ms@0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz" } } }, "depd": { - "version": "1.0.1" + "version": "1.1.0", + "from": "depd@>=1.1.0 <1.2.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.0.tgz" }, "escape-html": { - "version": "1.0.2" + "version": "1.0.3", + "from": "escape-html@>=1.0.3 <1.1.0", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" }, "etag": { - "version": "1.7.0" + "version": "1.7.0", + "from": "etag@>=1.7.0 <1.8.0", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.7.0.tgz" }, "finalhandler": { - "version": "0.4.0", + "version": "0.4.1", + "from": "finalhandler@0.4.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.4.1.tgz", "dependencies": { "unpipe": { - "version": "1.0.0" + "version": "1.0.0", + "from": "unpipe@>=1.0.0 <1.1.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" } } }, "fresh": { - "version": "0.3.0" + "version": "0.3.0", + "from": "fresh@0.3.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.3.0.tgz" }, "merge-descriptors": { - "version": "1.0.0" + "version": "1.0.1", + "from": "merge-descriptors@1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz" }, "methods": { - "version": "1.1.1" + "version": "1.1.2", + "from": "methods@>=1.1.2 <1.2.0", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz" }, "on-finished": { "version": "2.3.0", + "from": "on-finished@>=2.3.0 <2.4.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "dependencies": { "ee-first": { - "version": "1.1.1" + "version": "1.1.1", + "from": "ee-first@1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" } } }, "parseurl": { - "version": "1.3.0" - }, - "path-is-absolute": { - "version": "1.0.0" + "version": "1.3.1", + "from": "parseurl@>=1.3.1 <1.4.0", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.1.tgz" }, "path-to-regexp": { - "version": "0.1.6" + "version": "0.1.7", + "from": "path-to-regexp@0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz" }, "proxy-addr": { - "version": "1.0.8", + "version": "1.0.10", + "from": "proxy-addr@>=1.0.10 <1.1.0", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.10.tgz", "dependencies": { "forwarded": { - "version": "0.1.0" + "version": "0.1.0", + "from": "forwarded@>=0.1.0 <0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.0.tgz" }, "ipaddr.js": { - "version": "1.0.1" + "version": "1.0.5", + "from": "ipaddr.js@1.0.5", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.0.5.tgz" } } }, "qs": { - "version": "4.0.0" + "version": "4.0.0", + "from": "qs@4.0.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-4.0.0.tgz" }, "range-parser": { - "version": "1.0.2" - }, - "router": { - "version": "1.1.3", - "dependencies": { - "array-flatten": { - "version": "1.1.1" - }, - "path-to-regexp": { - "version": "0.1.7" - }, - "setprototypeof": { - "version": "1.0.0" - } - } + "version": "1.0.3", + "from": "range-parser@>=1.0.3 <1.1.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.3.tgz" }, "send": { - "version": "0.13.0", + "version": "0.13.1", + "from": "send@0.13.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.13.1.tgz", "dependencies": { "destroy": { - "version": "1.0.3" + "version": "1.0.4", + "from": "destroy@>=1.0.4 <1.1.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz" + }, + "http-errors": { + "version": "1.3.1", + "from": "http-errors@>=1.3.1 <1.4.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.3.1.tgz", + "dependencies": { + "inherits": { + "version": "2.0.1", + "from": "inherits@>=2.0.1 <2.1.0", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz" + } + } }, "mime": { - "version": "1.3.4" + "version": "1.3.4", + "from": "mime@1.3.4", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz" }, "ms": { - "version": "0.7.1" + "version": "0.7.1", + "from": "ms@0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz" }, "statuses": { - "version": "1.2.1" + "version": "1.2.1", + "from": "statuses@>=1.2.1 <1.3.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.2.1.tgz" } } }, "serve-static": { - "version": "1.10.0" + "version": "1.10.2", + "from": "serve-static@>=1.10.2 <1.11.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.10.2.tgz" }, "type-is": { - "version": "1.6.9", + "version": "1.6.12", + "from": "type-is@>=1.6.6 <1.7.0", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.12.tgz", "dependencies": { "media-typer": { - "version": "0.3.0" + "version": "0.3.0", + "from": "media-typer@0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" }, "mime-types": { - "version": "2.1.7", + "version": "2.1.10", + "from": "mime-types@>=2.1.10 <2.2.0", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.10.tgz", "dependencies": { "mime-db": { - "version": "1.19.0" + "version": "1.22.0", + "from": "mime-db@>=1.22.0 <1.23.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.22.0.tgz" } } } } }, - "vary": { - "version": "1.0.1" - }, "utils-merge": { - "version": "1.0.0" - } - } - }, - "express-json5": { - "version": "0.1.0", - "dependencies": { - "raw-body": { - "version": "1.3.4", - "dependencies": { - "bytes": { - "version": "1.0.0" - }, - "iconv-lite": { - "version": "0.4.8" - } - } + "version": "1.0.0", + "from": "utils-merge@1.0.0", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz" + }, + "vary": { + "version": "1.0.1", + "from": "vary@>=1.0.1 <1.1.0", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.0.1.tgz" } } }, "fs-ext": { - "version": "0.4.6", + "version": "0.5.0", + "from": "fs-ext@>=0.5.0 <0.6.0", + "resolved": "https://registry.npmjs.org/fs-ext/-/fs-ext-0.5.0.tgz", "dependencies": { "nan": { - "version": "1.9.0" + "version": "2.2.1", + "from": "nan@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.2.1.tgz" } } }, "handlebars": { - "version": "2.0.0", + "version": "4.0.5", + "from": "handlebars@>=4.0.5 <5.0.0", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.5.tgz", "dependencies": { + "async": { + "version": "1.5.2", + "from": "async@>=1.4.0 <2.0.0", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz" + }, "optimist": { - "version": "0.3.7", + "version": "0.6.1", + "from": "optimist@>=0.6.1 <0.7.0", + "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", "dependencies": { "wordwrap": { - "version": "0.0.3" + "version": "0.0.3", + "from": "wordwrap@>=0.0.2 <0.1.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz" + }, + "minimist": { + "version": "0.0.10", + "from": "minimist@>=0.0.1 <0.1.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz" + } + } + }, + "source-map": { + "version": "0.4.4", + "from": "source-map@>=0.4.4 <0.5.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "dependencies": { + "amdefine": { + "version": "1.0.0", + "from": "amdefine@>=0.0.4", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.0.tgz" } } }, "uglify-js": { - "version": "2.3.6", + "version": "2.6.2", + "from": "uglify-js@>=2.6.0 <3.0.0", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.6.2.tgz", "dependencies": { "async": { - "version": "0.2.10" + "version": "0.2.10", + "from": "async@>=0.2.6 <0.3.0", + "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz" }, "source-map": { - "version": "0.1.43", + "version": "0.5.3", + "from": "source-map@>=0.5.1 <0.6.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.3.tgz" + }, + "uglify-to-browserify": { + "version": "1.0.2", + "from": "uglify-to-browserify@>=1.0.0 <1.1.0", + "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz" + }, + "yargs": { + "version": "3.10.0", + "from": "yargs@>=3.10.0 <3.11.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", "dependencies": { - "amdefine": { - "version": "1.0.0" + "camelcase": { + "version": "1.2.1", + "from": "camelcase@>=1.0.2 <2.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz" + }, + "cliui": { + "version": "2.1.0", + "from": "cliui@>=2.1.0 <3.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", + "dependencies": { + "center-align": { + "version": "0.1.3", + "from": "center-align@>=0.1.1 <0.2.0", + "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", + "dependencies": { + "align-text": { + "version": "0.1.4", + "from": "align-text@>=0.1.3 <0.2.0", + "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", + "dependencies": { + "kind-of": { + "version": "3.0.2", + "from": "kind-of@>=3.0.2 <4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.0.2.tgz", + "dependencies": { + "is-buffer": { + "version": "1.1.3", + "from": "is-buffer@>=1.0.2 <2.0.0", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.3.tgz" + } + } + }, + "longest": { + "version": "1.0.1", + "from": "longest@>=1.0.1 <2.0.0", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz" + }, + "repeat-string": { + "version": "1.5.4", + "from": "repeat-string@>=1.5.2 <2.0.0", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.5.4.tgz" + } + } + }, + "lazy-cache": { + "version": "1.0.3", + "from": "lazy-cache@>=1.0.3 <2.0.0", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.3.tgz" + } + } + }, + "right-align": { + "version": "0.1.3", + "from": "right-align@>=0.1.1 <0.2.0", + "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", + "dependencies": { + "align-text": { + "version": "0.1.4", + "from": "align-text@>=0.1.3 <0.2.0", + "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", + "dependencies": { + "kind-of": { + "version": "3.0.2", + "from": "kind-of@>=3.0.2 <4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.0.2.tgz", + "dependencies": { + "is-buffer": { + "version": "1.1.3", + "from": "is-buffer@>=1.0.2 <2.0.0", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.3.tgz" + } + } + }, + "longest": { + "version": "1.0.1", + "from": "longest@>=1.0.1 <2.0.0", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz" + }, + "repeat-string": { + "version": "1.5.4", + "from": "repeat-string@>=1.5.2 <2.0.0", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.5.4.tgz" + } + } + } + } + }, + "wordwrap": { + "version": "0.0.2", + "from": "wordwrap@0.0.2", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz" + } + } + }, + "decamelize": { + "version": "1.2.0", + "from": "decamelize@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" + }, + "window-size": { + "version": "0.1.0", + "from": "window-size@0.1.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz" } } } @@ -387,340 +757,739 @@ } }, "highlight.js": { - "version": "8.8.0" + "version": "9.3.0", + "from": "highlight.js@>=9.3.0 <10.0.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.3.0.tgz" }, "http-errors": { - "version": "1.3.1", + "version": "1.4.0", + "from": "http-errors@>=1.4.0 <2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.4.0.tgz", "dependencies": { "inherits": { - "version": "2.0.1" + "version": "2.0.1", + "from": "inherits@2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz" }, "statuses": { - "version": "1.2.1" + "version": "1.2.1", + "from": "statuses@>=1.2.1 <2.0.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.2.1.tgz" } } }, "jju": { - "version": "1.2.1" + "version": "1.3.0", + "from": "jju@>=1.3.0 <2.0.0", + "resolved": "https://registry.npmjs.org/jju/-/jju-1.3.0.tgz" }, "js-yaml": { - "version": "3.4.2", + "version": "3.6.0", + "from": "js-yaml@>=3.6.0 <4.0.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.6.0.tgz", "dependencies": { "argparse": { - "version": "1.0.2", + "version": "1.0.7", + "from": "argparse@>=1.0.7 <2.0.0", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.7.tgz", "dependencies": { - "lodash": { - "version": "3.10.1" - }, "sprintf-js": { - "version": "1.0.3" + "version": "1.0.3", + "from": "sprintf-js@>=1.0.2 <1.1.0", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" } } }, "esprima": { - "version": "2.2.0" + "version": "2.7.2", + "from": "esprima@>=2.6.0 <3.0.0", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.2.tgz" } } }, "lunr": { - "version": "0.5.12" + "version": "0.7.0", + "from": "lunr@>=0.7.0 <0.8.0", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-0.7.0.tgz" }, "minimatch": { - "version": "1.0.0", + "version": "3.0.0", + "from": "minimatch@>=3.0.0 <4.0.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.0.tgz", "dependencies": { - "lru-cache": { - "version": "2.7.0" - }, - "sigmund": { - "version": "1.0.1" + "brace-expansion": { + "version": "1.1.3", + "from": "brace-expansion@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.3.tgz", + "dependencies": { + "balanced-match": { + "version": "0.3.0", + "from": "balanced-match@>=0.3.0 <0.4.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.3.0.tgz" + }, + "concat-map": { + "version": "0.0.1", + "from": "concat-map@0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" + } + } } } }, "mkdirp": { "version": "0.5.1", + "from": "mkdirp@>=0.5.1 <0.6.0", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "dependencies": { "minimist": { - "version": "0.0.8" + "version": "0.0.8", + "from": "minimist@0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz" } } }, + "pkginfo": { + "version": "0.4.0", + "from": "pkginfo@>=0.4.0 <0.5.0", + "resolved": "https://registry.npmjs.org/pkginfo/-/pkginfo-0.4.0.tgz" + }, "readable-stream": { - "version": "1.1.13", + "version": "2.1.0", + "from": "readable-stream@>=2.1.0 <3.0.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.1.0.tgz", "dependencies": { "core-util-is": { - "version": "1.0.1" - }, - "isarray": { - "version": "0.0.1" - }, - "string_decoder": { - "version": "0.10.31" + "version": "1.0.2", + "from": "core-util-is@>=1.0.0 <1.1.0", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" }, "inherits": { - "version": "2.0.1" + "version": "2.0.1", + "from": "inherits@>=2.0.1 <2.1.0", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz" + }, + "inline-process-browser": { + "version": "2.0.1", + "from": "inline-process-browser@>=2.0.1 <2.1.0", + "resolved": "https://registry.npmjs.org/inline-process-browser/-/inline-process-browser-2.0.1.tgz", + "dependencies": { + "falafel": { + "version": "1.2.0", + "from": "falafel@>=1.0.1 <2.0.0", + "resolved": "https://registry.npmjs.org/falafel/-/falafel-1.2.0.tgz", + "dependencies": { + "acorn": { + "version": "1.2.2", + "from": "acorn@>=1.0.3 <2.0.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-1.2.2.tgz" + }, + "foreach": { + "version": "2.0.5", + "from": "foreach@>=2.0.5 <3.0.0", + "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz" + }, + "isarray": { + "version": "0.0.1", + "from": "isarray@0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" + }, + "object-keys": { + "version": "1.0.9", + "from": "object-keys@>=1.0.6 <2.0.0", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.9.tgz" + } + } + }, + "through2": { + "version": "0.6.5", + "from": "through2@>=0.6.5 <0.7.0", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "dependencies": { + "readable-stream": { + "version": "1.0.34", + "from": "readable-stream@>=1.0.33-1 <1.1.0-0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "dependencies": { + "isarray": { + "version": "0.0.1", + "from": "isarray@0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" + } + } + }, + "xtend": { + "version": "4.0.1", + "from": "xtend@>=4.0.0 <4.1.0-0", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz" + } + } + } + } + }, + "isarray": { + "version": "1.0.0", + "from": "isarray@>=1.0.0 <1.1.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" + }, + "process-nextick-args": { + "version": "1.0.6", + "from": "process-nextick-args@>=1.0.6 <1.1.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.6.tgz" + }, + "string_decoder": { + "version": "0.10.31", + "from": "string_decoder@>=0.10.0 <0.11.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz" + }, + "unreachable-branch-transform": { + "version": "0.5.1", + "from": "unreachable-branch-transform@>=0.5.0 <0.6.0", + "resolved": "https://registry.npmjs.org/unreachable-branch-transform/-/unreachable-branch-transform-0.5.1.tgz", + "dependencies": { + "esmangle-evaluator": { + "version": "1.0.0", + "from": "esmangle-evaluator@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/esmangle-evaluator/-/esmangle-evaluator-1.0.0.tgz" + }, + "recast": { + "version": "0.11.5", + "from": "recast@>=0.11.4 <0.12.0", + "resolved": "https://registry.npmjs.org/recast/-/recast-0.11.5.tgz", + "dependencies": { + "ast-types": { + "version": "0.8.16", + "from": "ast-types@0.8.16", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.8.16.tgz" + }, + "esprima": { + "version": "2.7.2", + "from": "esprima@>=2.6.0 <3.0.0", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.2.tgz" + }, + "private": { + "version": "0.1.6", + "from": "private@>=0.1.5 <0.2.0", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.6.tgz" + }, + "source-map": { + "version": "0.5.3", + "from": "source-map@>=0.5.0 <0.6.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.3.tgz" + } + } + } + } + }, + "util-deprecate": { + "version": "1.0.2", + "from": "util-deprecate@>=1.0.1 <1.1.0", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" } } }, "render-readme": { "version": "1.3.1", + "from": "render-readme@>=1.3.1 <2.0.0", + "resolved": "https://registry.npmjs.org/render-readme/-/render-readme-1.3.1.tgz", "dependencies": { "markdown-it": { "version": "4.4.0", + "from": "markdown-it@>=4.0.0 <5.0.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-4.4.0.tgz", "dependencies": { "argparse": { - "version": "1.0.2", + "version": "1.0.7", + "from": "argparse@>=1.0.2 <1.1.0", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.7.tgz", "dependencies": { - "lodash": { - "version": "3.10.1" - }, "sprintf-js": { - "version": "1.0.3" + "version": "1.0.3", + "from": "sprintf-js@>=1.0.2 <1.1.0", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" } } }, "entities": { - "version": "1.1.1" + "version": "1.1.1", + "from": "entities@>=1.1.1 <1.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz" }, "linkify-it": { - "version": "1.2.0" + "version": "1.2.0", + "from": "linkify-it@>=1.2.0 <1.3.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-1.2.0.tgz" }, "mdurl": { - "version": "1.0.1" + "version": "1.0.1", + "from": "mdurl@>=1.0.0 <1.1.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz" }, "uc.micro": { - "version": "1.0.0" + "version": "1.0.0", + "from": "uc.micro@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.0.tgz" } } }, "sanitize-html": { - "version": "1.10.1", + "version": "1.11.4", + "from": "sanitize-html@>=1.0.0 <2.0.0 >=1.4.0", + "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.11.4.tgz", "dependencies": { "htmlparser2": { - "version": "3.8.3", + "version": "3.9.0", + "from": "htmlparser2@>=3.9.0 <4.0.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.0.tgz", "dependencies": { + "domelementtype": { + "version": "1.3.0", + "from": "domelementtype@>=1.3.0 <2.0.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz" + }, "domhandler": { - "version": "2.3.0" + "version": "2.3.0", + "from": "domhandler@>=2.3.0 <3.0.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz" }, "domutils": { "version": "1.5.1", + "from": "domutils@>=1.5.1 <2.0.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", "dependencies": { "dom-serializer": { "version": "0.1.0", + "from": "dom-serializer@>=0.0.0 <1.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", "dependencies": { "domelementtype": { - "version": "1.1.3" - }, - "entities": { - "version": "1.1.1" + "version": "1.1.3", + "from": "domelementtype@>=1.1.1 <1.2.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz" } } } } }, - "domelementtype": { - "version": "1.3.0" - }, "entities": { - "version": "1.0.0" + "version": "1.1.1", + "from": "entities@>=1.1.1 <2.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz" } } }, "regexp-quote": { - "version": "0.0.0" + "version": "0.0.0", + "from": "regexp-quote@0.0.0", + "resolved": "https://registry.npmjs.org/regexp-quote/-/regexp-quote-0.0.0.tgz" }, "xtend": { - "version": "4.0.0" + "version": "4.0.1", + "from": "xtend@>=4.0.0 <5.0.0", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz" } } + }, + "highlight.js": { + "version": "8.9.1", + "from": "highlight.js@>=8.0.0 <9.0.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-8.9.1.tgz" } } }, "request": { - "version": "2.64.0", + "version": "2.72.0", + "from": "request@>=2.72.0 <3.0.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.72.0.tgz", "dependencies": { + "aws-sign2": { + "version": "0.6.0", + "from": "aws-sign2@>=0.6.0 <0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz" + }, + "aws4": { + "version": "1.3.2", + "from": "aws4@>=1.2.1 <2.0.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.3.2.tgz", + "dependencies": { + "lru-cache": { + "version": "4.0.1", + "from": "lru-cache@>=4.0.0 <5.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.1.tgz", + "dependencies": { + "pseudomap": { + "version": "1.0.2", + "from": "pseudomap@>=1.0.1 <2.0.0", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz" + }, + "yallist": { + "version": "2.0.0", + "from": "yallist@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.0.0.tgz" + } + } + } + } + }, "bl": { - "version": "1.0.0", + "version": "1.1.2", + "from": "bl@>=1.1.2 <1.2.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.1.2.tgz", "dependencies": { "readable-stream": { - "version": "2.0.2", + "version": "2.0.6", + "from": "readable-stream@>=2.0.5 <2.1.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", "dependencies": { "core-util-is": { - "version": "1.0.1" + "version": "1.0.2", + "from": "core-util-is@>=1.0.0 <1.1.0", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" }, "inherits": { - "version": "2.0.1" + "version": "2.0.1", + "from": "inherits@>=2.0.1 <2.1.0", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz" }, "isarray": { - "version": "0.0.1" + "version": "1.0.0", + "from": "isarray@>=1.0.0 <1.1.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" }, "process-nextick-args": { - "version": "1.0.3" + "version": "1.0.6", + "from": "process-nextick-args@>=1.0.6 <1.1.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.6.tgz" }, "string_decoder": { - "version": "0.10.31" + "version": "0.10.31", + "from": "string_decoder@>=0.10.0 <0.11.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz" }, "util-deprecate": { - "version": "1.0.1" + "version": "1.0.2", + "from": "util-deprecate@>=1.0.1 <1.1.0", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" } } } } }, "caseless": { - "version": "0.11.0" - }, - "extend": { - "version": "3.0.0" - }, - "forever-agent": { - "version": "0.6.1" - }, - "form-data": { - "version": "1.0.0-rc3", - "dependencies": { - "async": { - "version": "1.4.2" - } - } - }, - "json-stringify-safe": { - "version": "5.0.1" - }, - "mime-types": { - "version": "2.1.7", - "dependencies": { - "mime-db": { - "version": "1.19.0" - } - } - }, - "node-uuid": { - "version": "1.4.3" - }, - "qs": { - "version": "5.1.0" - }, - "tunnel-agent": { - "version": "0.4.1" - }, - "tough-cookie": { - "version": "2.1.0" - }, - "http-signature": { "version": "0.11.0", - "dependencies": { - "assert-plus": { - "version": "0.1.5" - }, - "asn1": { - "version": "0.1.11" - }, - "ctype": { - "version": "0.5.3" - } - } - }, - "oauth-sign": { - "version": "0.8.0" - }, - "hawk": { - "version": "3.1.0", - "dependencies": { - "hoek": { - "version": "2.16.3" - }, - "boom": { - "version": "2.9.0" - }, - "cryptiles": { - "version": "2.0.5" - }, - "sntp": { - "version": "1.0.9" - } - } - }, - "aws-sign2": { - "version": "0.5.0" - }, - "stringstream": { - "version": "0.0.4" + "from": "caseless@>=0.11.0 <0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz" }, "combined-stream": { "version": "1.0.5", + "from": "combined-stream@>=1.0.5 <1.1.0", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", "dependencies": { "delayed-stream": { - "version": "1.0.0" + "version": "1.0.0", + "from": "delayed-stream@>=1.0.0 <1.1.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" } } }, - "isstream": { - "version": "0.1.2" + "extend": { + "version": "3.0.0", + "from": "extend@>=3.0.0 <3.1.0", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.0.tgz" + }, + "forever-agent": { + "version": "0.6.1", + "from": "forever-agent@>=0.6.1 <0.7.0", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz" + }, + "form-data": { + "version": "1.0.0-rc4", + "from": "form-data@>=1.0.0-rc3 <1.1.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-1.0.0-rc4.tgz", + "dependencies": { + "async": { + "version": "1.5.2", + "from": "async@>=1.5.2 <2.0.0", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz" + } + } }, "har-validator": { - "version": "1.8.0", + "version": "2.0.6", + "from": "har-validator@>=2.0.6 <2.1.0", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", "dependencies": { "chalk": { - "version": "1.1.1", + "version": "1.1.3", + "from": "chalk@>=1.1.1 <2.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "dependencies": { "ansi-styles": { - "version": "2.1.0" + "version": "2.2.1", + "from": "ansi-styles@>=2.2.1 <3.0.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz" }, "escape-string-regexp": { - "version": "1.0.3" + "version": "1.0.5", + "from": "escape-string-regexp@>=1.0.2 <2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" }, "has-ansi": { "version": "2.0.0", + "from": "has-ansi@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "dependencies": { "ansi-regex": { - "version": "2.0.0" + "version": "2.0.0", + "from": "ansi-regex@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.0.0.tgz" } } }, "strip-ansi": { - "version": "3.0.0", + "version": "3.0.1", + "from": "strip-ansi@>=3.0.0 <4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "dependencies": { "ansi-regex": { - "version": "2.0.0" + "version": "2.0.0", + "from": "ansi-regex@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.0.0.tgz" } } }, "supports-color": { - "version": "2.0.0" + "version": "2.0.0", + "from": "supports-color@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz" } } }, "is-my-json-valid": { - "version": "2.12.2", + "version": "2.13.1", + "from": "is-my-json-valid@>=2.12.4 <3.0.0", + "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.13.1.tgz", "dependencies": { "generate-function": { - "version": "2.0.0" + "version": "2.0.0", + "from": "generate-function@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz" }, "generate-object-property": { "version": "1.2.0", + "from": "generate-object-property@>=1.1.0 <2.0.0", + "resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz", "dependencies": { "is-property": { - "version": "1.0.2" + "version": "1.0.2", + "from": "is-property@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz" } } }, "jsonpointer": { - "version": "2.0.0" + "version": "2.0.0", + "from": "jsonpointer@2.0.0", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz" }, "xtend": { - "version": "4.0.0" + "version": "4.0.1", + "from": "xtend@>=4.0.0 <5.0.0", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz" + } + } + }, + "pinkie-promise": { + "version": "2.0.1", + "from": "pinkie-promise@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "dependencies": { + "pinkie": { + "version": "2.0.4", + "from": "pinkie@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz" } } } } + }, + "hawk": { + "version": "3.1.3", + "from": "hawk@>=3.1.3 <3.2.0", + "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", + "dependencies": { + "hoek": { + "version": "2.16.3", + "from": "hoek@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz" + }, + "boom": { + "version": "2.10.1", + "from": "boom@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz" + }, + "cryptiles": { + "version": "2.0.5", + "from": "cryptiles@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz" + }, + "sntp": { + "version": "1.0.9", + "from": "sntp@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz" + } + } + }, + "http-signature": { + "version": "1.1.1", + "from": "http-signature@>=1.1.0 <1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", + "dependencies": { + "assert-plus": { + "version": "0.2.0", + "from": "assert-plus@>=0.2.0 <0.3.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz" + }, + "jsprim": { + "version": "1.2.2", + "from": "jsprim@>=1.2.2 <2.0.0", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.2.2.tgz", + "dependencies": { + "extsprintf": { + "version": "1.0.2", + "from": "extsprintf@1.0.2", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.0.2.tgz" + }, + "json-schema": { + "version": "0.2.2", + "from": "json-schema@0.2.2", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.2.tgz" + }, + "verror": { + "version": "1.3.6", + "from": "verror@1.3.6", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.3.6.tgz" + } + } + }, + "sshpk": { + "version": "1.7.4", + "from": "sshpk@>=1.7.0 <2.0.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.7.4.tgz", + "dependencies": { + "asn1": { + "version": "0.2.3", + "from": "asn1@>=0.2.3 <0.3.0", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz" + }, + "dashdash": { + "version": "1.13.0", + "from": "dashdash@>=1.10.1 <2.0.0", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.13.0.tgz", + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "from": "assert-plus@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" + } + } + }, + "jsbn": { + "version": "0.1.0", + "from": "jsbn@>=0.1.0 <0.2.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.0.tgz" + }, + "tweetnacl": { + "version": "0.14.3", + "from": "tweetnacl@>=0.13.0 <1.0.0", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.3.tgz" + }, + "jodid25519": { + "version": "1.0.2", + "from": "jodid25519@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/jodid25519/-/jodid25519-1.0.2.tgz" + }, + "ecc-jsbn": { + "version": "0.1.1", + "from": "ecc-jsbn@>=0.0.1 <1.0.0", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz" + } + } + } + } + }, + "is-typedarray": { + "version": "1.0.0", + "from": "is-typedarray@>=1.0.0 <1.1.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz" + }, + "isstream": { + "version": "0.1.2", + "from": "isstream@>=0.1.2 <0.2.0", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz" + }, + "json-stringify-safe": { + "version": "5.0.1", + "from": "json-stringify-safe@>=5.0.1 <5.1.0", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" + }, + "mime-types": { + "version": "2.1.10", + "from": "mime-types@>=2.1.10 <2.2.0", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.10.tgz", + "dependencies": { + "mime-db": { + "version": "1.22.0", + "from": "mime-db@>=1.22.0 <1.23.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.22.0.tgz" + } + } + }, + "node-uuid": { + "version": "1.4.7", + "from": "node-uuid@>=1.4.7 <1.5.0", + "resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.7.tgz" + }, + "oauth-sign": { + "version": "0.8.1", + "from": "oauth-sign@>=0.8.1 <0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.1.tgz" + }, + "qs": { + "version": "6.1.0", + "from": "qs@>=6.1.0 <6.2.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.1.0.tgz" + }, + "stringstream": { + "version": "0.0.5", + "from": "stringstream@>=0.0.4 <0.1.0", + "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz" + }, + "tough-cookie": { + "version": "2.2.2", + "from": "tough-cookie@>=2.2.0 <2.3.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.2.2.tgz" + }, + "tunnel-agent": { + "version": "0.4.2", + "from": "tunnel-agent@>=0.4.1 <0.5.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.2.tgz" } } }, "semver": { - "version": "4.3.6" + "version": "5.1.0", + "from": "semver@>=5.1.0 <6.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.1.0.tgz" }, "sinopia-htpasswd": { - "version": "0.4.5" + "version": "0.4.5", + "from": "sinopia-htpasswd@>=0.4.5 <0.5.0", + "resolved": "https://registry.npmjs.org/sinopia-htpasswd/-/sinopia-htpasswd-0.4.5.tgz" + }, + "symbol": { + "version": "0.2.1", + "from": "symbol@>=0.2.1 <0.3.0", + "resolved": "https://registry.npmjs.org/symbol/-/symbol-0.2.1.tgz" } } } diff --git a/package.json b/package.json new file mode 100644 index 000000000..e58f68cf7 --- /dev/null +++ b/package.json @@ -0,0 +1,86 @@ +{ + "name": "verdaccio", + "version": "1.4.0", + "description": "Private npm repository server", + "author": { + "name": "Alex Kocharin", + "email": "alex@kocharin.ru" + }, + "repository": { + "type": "git", + "url": "git://github.com/verdaccio/verdaccio" + }, + "main": "index.js", + "bin": { + "sinopia": "./bin/sinopia" + }, + "dependencies": { + "JSONStream": "^1.1.1", + "async": "^2.0.0-rc.3", + "body-parser": "^1.15.0", + "bunyan": "^1.8.0", + "commander": "^2.9.0", + "compression": "^1.6.1", + "cookies": "^0.6.1", + "es6-shim": "^0.35.0", + "express": "^4.13.4", + "handlebars": "^4.0.5", + "highlight.js": "^9.3.0", + "http-errors": "^1.4.0", + "jju": "^1.3.0", + "js-yaml": "^3.6.0", + "lunr": "^0.7.0", + "minimatch": "^3.0.0", + "mkdirp": "^0.5.1", + "pkginfo": "^0.4.0", + "readable-stream": "^2.1.0", + "render-readme": "^1.3.1", + "request": "^2.72.0", + "semver": "^5.1.0", + "sinopia-htpasswd": "^0.4.5", + "symbol": "^0.2.1" + }, + "optionalDependencies": { + "fs-ext": "^0.5.0", + "crypt3": "^0.2.0" + }, + "devDependencies": { + "rimraf": "^2.5.2", + "bluebird": "^3.3.5", + "mocha": "^2.4.5", + "eslint": "^2.8.0", + "browserify": "^13.0.0", + "browserify-handlebars": "^1.0.0", + "grunt": "^1.0.1", + "grunt-cli": "^1.2.0", + "grunt-browserify": "^5.0.0", + "grunt-contrib-less": "^1.3.0", + "grunt-contrib-watch": "^1.0.0", + "unopinionate": "^0.0.4", + "onclick": "^0.1.0", + "transition-complete": "^0.0.2" + }, + "keywords": [ + "private", + "package", + "repository", + "registry", + "modules", + "proxy", + "server" + ], + "scripts": { + "test": "eslint . && mocha ./test/functional ./test/unit", + "test-travis": "eslint . && mocha -R spec ./test/functional ./test/unit", + "test-only": "mocha ./test/functional ./test/unit", + "lint": "eslint ." + }, + "engines": { + "node": ">=0.10" + }, + "preferGlobal": true, + "publishConfig": { + "registry": "https://registry.npmjs.org/" + }, + "license": "WTFPL" +} diff --git a/package.yaml b/package.yaml deleted file mode 100644 index 0e4b939b5..000000000 --- a/package.yaml +++ /dev/null @@ -1,135 +0,0 @@ -# use "yapm install ." if you're installing this from git repository - -name: sinopia -version: 1.4.0 -description: Private npm repository server - -author: - name: Alex Kocharin - email: alex@kocharin.ru - -repository: - type: git - url: git://github.com/rlidwka/sinopia - -main: index.js - -bin: - sinopia: ./bin/sinopia - -dependencies: - express: '>=5.0.0-0 <6.0.0-0' - - # express middlewares - express-json5: '>=0.1.0 <1.0.0-0' - body-parser: '>=1.9.2 <2.0.0-0' - compression: '>=1.2.0 <2.0.0-0' - - commander: '>=2.3.0 <3.0.0-0' - js-yaml: '>=3.0.1 <4.0.0-0' - cookies: '>=0.5.0 <1.0.0-0' - request: '>=2.31.0 <3.0.0-0' - async: '>=0.9.0 <1.0.0-0' - es6-shim: '0.21.x' - semver: '>=2.2.1 <5.0.0-0' - minimatch: '>=0.2.14 <2.0.0-0' - bunyan: '>=0.22.1 <2.0.0-0' - handlebars: '2.x' - highlight.js: '8.x' - lunr: '>=0.5.2 <1.0.0-0' - render-readme: '>=0.2.1' - jju: '1.x' - JSONStream: '1.x' - - mkdirp: '>=0.3.5 <1.0.0-0' - sinopia-htpasswd: '>= 0.4.3' - http-errors: '>=1.2.0' - - # node 0.10 compatibility, should go away soon - readable-stream: '~1.1.0' - -optionalDependencies: - # those are native modules that could fail to compile - # and unavailable on windows - fs-ext: '>=0.4.1 <1.0.0-0' - crypt3: '>=0.1.6 <1.0.0-0' # for sinopia-htpasswd - -devDependencies: - # - # Tools required for testing - # - rimraf: '>=2.2.5 <3.0.0-0' - bluebird: '2 >=2.9' - - mocha: '2 >=2.2.3' - - # - # Linting tools - # - eslint: '1 >=1.1.0' - - # for debugging memory leaks, it'll be require()'d if - # installed, but I don't want it to be installed everytime - #heapdump: '*' - - # - # Tools required to build static files - # - browserify: '7.x' - browserify-handlebars: '1.x' - grunt: '>=0.4.4 <1.0.0-0' - grunt-cli: '*' - grunt-browserify: '>=2.0.8 <3.0.0-0' - grunt-contrib-less: '>=0.11.0 <1.0.0-0' - grunt-contrib-watch: '>=0.6.1 <1.0.0-0' - - # for building static/main.js, - # not required in runtime - unopinionate: '>=0.0.4 <1.0.0-0' - onclick: '>=0.1.0 <1.0.0-0' - transition-complete: '>=0.0.2 <1.0.0-0' - -keywords: - - private - - package - - repository - - registry - - modules - - proxy - - server - -scripts: - test: eslint . && mocha ./test/functional ./test/unit - test-travis: eslint . && mocha -R spec ./test/functional ./test/unit - test-only: mocha ./test/functional ./test/unit - lint: eslint . - prepublish: js-yaml package.yaml > package.json - clean-shrinkwrap: | - node -e ' - function clean(j) { - if (!j) return - for (var k in j) { - delete j[k].from - delete j[k].resolved - if (j[k].dependencies) clean(j[k].dependencies) - } - } - x = JSON.parse(require("fs").readFileSync("./npm-shrinkwrap.json")) - clean(x.dependencies) - x = JSON.stringify(x, null, " ") - require("fs").writeFileSync("./npm-shrinkwrap.json", x + "\n") - ' - -# we depend on streams2 stuff -# it can be replaced with isaacs/readable-stream, ask if you need to use 0.8 -engines: - node: '>=0.10' - -preferGlobal: true - -publishConfig: - registry: https://registry.npmjs.org/ - -license: - type: WTFPL - url: http://www.wtfpl.net/txt/copying/ diff --git a/test/functional/lib/smart_request.js b/test/functional/lib/smart_request.js index 9ca777c77..872fe176a 100644 --- a/test/functional/lib/smart_request.js +++ b/test/functional/lib/smart_request.js @@ -2,9 +2,8 @@ var assert = require('assert') var request = require('request') var Promise = require('bluebird') -var sym = typeof Symbol !== 'undefined' - ? Symbol('smart_request_data') - : '__why_does_node_0.10_support_suck_so_much' +var Symbol = require('symbol') +var sym = Symbol('smart_request_data') function smart_request(options) { var self = {}