diff --git a/CHANGELOG.md b/CHANGELOG.md index 71f1dcee..e4a1b661 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [4.1.0] (2018-08-01) + +### Added + +Two new features in this version of API, see https://docs.dadi.cloud/api for full details: + +- Multi-language support +- Document indexing and Search + ## [4.0.4] (2018-07-30) ### Fixed diff --git a/config.js b/config.js index c157d297..7a7e60bf 100755 --- a/config.js +++ b/config.js @@ -133,6 +133,34 @@ var conf = convict({ env: 'DB_AUTH_NAME' } }, + search: { + enabled: { + doc: 'If true, API responds to collection /search endpoints', + format: Boolean, + default: false + }, + minQueryLength: { + doc: 'Minimum search string length', + format: Number, + default: 3 + }, + wordCollection: { + doc: 'The name of the datastore collection that will hold tokenized words', + format: String, + default: 'words' + }, + datastore: { + doc: 'The datastore to use for storing and querying indexed documents', + format: String, + default: '@dadi/api-mongodb' + }, + database: { + doc: 'The name of the database to use for storing and querying indexed documents', + format: String, + default: 'search', + env: 'DB_SEARCH_NAME' + } + }, caching: { ttl: { doc: '', @@ -370,6 +398,23 @@ var conf = convict({ format: Number, default: 10 } + }, + i18n: { + defaultLanguage: { + doc: 'ISO-639-1 code of the default language', + format: String, + default: 'en' + }, + languages: { + doc: 'List of ISO-639-1 codes for the supported languages', + format: Array, + default: [] + }, + fieldCharacter: { + doc: 'Special character to denote a translated field', + format: String, + default: ':' + } } }) diff --git a/config/config.test.json.sample b/config/config.test.json.sample index 97483794..163718f1 100755 --- a/config/config.test.json.sample +++ b/config/config.test.json.sample @@ -47,6 +47,13 @@ "defaultBucket": "mediaStore", "basePath": "test/acceptance/temp-workspace/media" }, + "search": { + "enabled": false, + "minQueryLength": 3, + "wordCollection": "words", + "datastore": "./../../../test/test-connector", + "database": "search" + }, "feedback": false, "cors": false, "cluster": false diff --git a/config/mongodb.test.json b/config/mongodb.test.json index d91a5a17..35896dec 100644 --- a/config/mongodb.test.json +++ b/config/mongodb.test.json @@ -12,36 +12,35 @@ "ssl": false, "replicaSet": "", "enableCollectionDatabases": false, - "testdb": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ] + "databases": { + "test_auth_db": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27017 + } + ], + "username": "", + "password": "", + "replicaSet": "", + "ssl": false + }, + "testdb": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27017 + } + ], + "username": "", + "password": "", }, - "test_auth_db": { + "search": { "hosts": [ { "host": "127.0.0.1", "port": 27017 } - ], - "username": "", - "password": "", - "replicaSet": "", - "ssl": false + ] }, - "testdb": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "", - "replicaSet": "", - "ssl": false - } } diff --git a/dadi/lib/controller/documents.js b/dadi/lib/controller/documents.js index 289fc833..253ffbe8 100644 --- a/dadi/lib/controller/documents.js +++ b/dadi/lib/controller/documents.js @@ -81,8 +81,7 @@ Collection.prototype.delete = function (req, res, next) { } Collection.prototype.get = function (req, res, next) { - let path = url.parse(req.url, true) - let options = path.query + let options = this._getURLParameters(req.url) let callback = options.callback || this.model.settings.callback // Determine if this is JSONP. @@ -102,6 +101,7 @@ Collection.prototype.get = function (req, res, next) { return this.model.get({ client: req.dadiApiClient, + language: options.lang, query, options: queryOptions, req @@ -214,7 +214,7 @@ Collection.prototype.registerRoutes = function (route, filePath) { }) // Creating generic route. - this.server.app.use(`${route}/:id(${this.ID_PATTERN})?/:action(count|stats)?`, (req, res, next) => { + this.server.app.use(`${route}/:id(${this.ID_PATTERN})?/:action(count|search|stats)?`, (req, res, next) => { try { // Map request method to controller method. let method = req.params.action || (req.method && req.method.toLowerCase()) @@ -252,7 +252,7 @@ Collection.prototype.stats = function (req, res, next) { Collection.prototype.unregisterRoutes = function (route) { this.server.app.unuse(`${route}/config`) - this.server.app.unuse(`${route}/:id(${this.ID_PATTERN})?/:action(count|stats)?`) + this.server.app.unuse(`${route}/:id(${this.ID_PATTERN})?/:action(count|search|stats)?`) } module.exports = function (model, server) { diff --git a/dadi/lib/controller/index.js b/dadi/lib/controller/index.js index 8944263e..e2c45546 100755 --- a/dadi/lib/controller/index.js +++ b/dadi/lib/controller/index.js @@ -6,25 +6,21 @@ const ID_PATTERN = '[a-fA-F0-9-]*' const Controller = function () {} +Controller.prototype._getURLParameters = function (requestUrl) { + let parsedUrl = url.parse(requestUrl, true) + + return parsedUrl.query +} + Controller.prototype._prepareQuery = function (req) { let path = url.parse(req.url, true) let apiVersion = path.pathname.split('/')[1] - let options = path.query + let options = this._getURLParameters(req.url) let query = help.parseQuery(options.filter) // Formatting query query = this.model.formatQuery(query) - // Remove filter params that don't exist in - // the model schema. - // if (!Array.isArray(query)) { - // Object.keys(query).forEach(key => { - // if (!this.model.isKeyValid(key)) { - // delete query[key] - // } - // }) - // } - // If id is present in the url, add to the query. if (req.params && req.params.id) { Object.assign(query, { @@ -106,6 +102,11 @@ Controller.prototype._prepareQueryOptions = function (options) { ) } + // `q` represents a search query, e.g. `?q=foo bar baz`. + if (options.q) { + queryOptions.search = options.q + } + // Specified / default number of records to return. let limit = parseInt(options.count || settings.count) || 50 @@ -165,6 +166,61 @@ Controller.prototype._prepareQueryOptions = function (options) { Controller.prototype.ID_PATTERN = ID_PATTERN +/** + * Handle collection search endpoints + * Example: /1.0/library/books/search?q=title + */ +Controller.prototype.search = function (req, res, next) { + let path = url.parse(req.url, true) + let options = path.query + + let queryOptions = this._prepareQueryOptions(options) + + if (queryOptions.errors.length !== 0) { + return help.sendBackJSON(400, res, next)(null, queryOptions) + } else { + queryOptions = queryOptions.queryOptions + } + + return this.model.search({ + client: req.dadiApiClient, + options: queryOptions + }).then(query => { + let ids = query._id['$containsAny'].map(id => id.toString()) + + return this.model.find({ + client: req.dadiApiClient, + language: options.lang, + query, + options: queryOptions + }).then(results => { + results.results = results.results.sort((a, b) => { + let aIndex = ids.indexOf(a._id.toString()) + let bIndex = ids.indexOf(b._id.toString()) + + if (aIndex === bIndex) return 0 + + return aIndex > bIndex ? 1 : -1 + }) + + return this.model.formatForOutput( + results.results, + { + client: req.dadiApiClient, + composeOverride: queryOptions.compose, + language: options.lang, + urlFields: queryOptions.fields + } + ).then(formattedResults => { + results.results = formattedResults + return help.sendBackJSON(200, res, next)(null, results) + }) + }) + }).catch(error => { + return help.sendBackJSON(null, res, next)(error) + }) +} + module.exports = function (model) { return new Controller(model) } diff --git a/dadi/lib/controller/languages.js b/dadi/lib/controller/languages.js new file mode 100644 index 00000000..12668287 --- /dev/null +++ b/dadi/lib/controller/languages.js @@ -0,0 +1,65 @@ +const acl = require('./../model/acl') +const config = require('./../../../config') +const help = require('./../help') +const langs = require('langs') + +const FORBIDDEN_FIELD_CHARACTERS = ['.', '@'] + +const Languages = function (server) { + FORBIDDEN_FIELD_CHARACTERS.forEach(character => { + if (config.get('i18n.fieldCharacter').includes(character)) { + throw new Error( + `Fatal error in configuration: character "${character}" is not allowed in "i18n.fieldCharacter" value` + ) + } + }) + + server.app.routeMethods('/api/languages', { + get: this.get.bind(this) + }) +} + +Languages.prototype._getLanguageDetails = function (code) { + let defaultLanguage = config.get('i18n.defaultLanguage') + let match = langs.where('1', code) + let language = { + code, + default: defaultLanguage === code + } + + if (match) { + language.name = match.name + language.local = match.local + } + + return language +} + +Languages.prototype.get = function (req, res, next) { + if (!req.dadiApiClient.clientId) { + return help.sendBackJSON(null, res, next)( + acl.createError(req.dadiApiClient) + ) + } + + let supportedLanguages = config.get('i18n.languages') + let defaultLanguage = config.get('i18n.defaultLanguage') + + if (!supportedLanguages.includes(defaultLanguage)) { + supportedLanguages.unshift(defaultLanguage) + } + + let languages = supportedLanguages.map(this._getLanguageDetails) + + let metadata = { + defaultLanguage: this._getLanguageDetails(defaultLanguage), + totalCount: supportedLanguages.length + } + + return help.sendBackJSON(200, res, next)(null, { + results: languages, + metadata + }) +} + +module.exports = server => new Languages(server) diff --git a/dadi/lib/controller/searchIndex.js b/dadi/lib/controller/searchIndex.js new file mode 100644 index 00000000..f1c5db3c --- /dev/null +++ b/dadi/lib/controller/searchIndex.js @@ -0,0 +1,44 @@ +const acl = require('./../model/acl') +const config = require('./../../../config') +const help = require('./../help') + +const SearchIndex = function (server) { + this.server = server + + server.app.routeMethods('/api/index', { + post: this.post.bind(this) + }) +} + +SearchIndex.prototype.post = function (req, res, next) { + if (!req.dadiApiClient.clientId) { + return help.sendBackJSON(null, res, next)( + acl.createError(req.dadiApiClient) + ) + } + + // 404 if Search is not enabled + if (config.get('search.enabled') !== true) { + return next() + } + + res.statusCode = 204 + res.end(JSON.stringify({'message': 'Indexing started'})) + + try { + Object.keys(this.server.components).forEach(key => { + let value = this.server.components[key] + + let hasModel = Object.keys(value).includes('model') && + value.model.constructor.name === 'Model' + + if (hasModel) { + value.model.searchHandler.batchIndex() + } + }) + } catch (err) { + console.log(err) + } +} + +module.exports = server => new SearchIndex(server) diff --git a/dadi/lib/fields/reference.js b/dadi/lib/fields/reference.js index cb487de6..be949c97 100644 --- a/dadi/lib/fields/reference.js +++ b/dadi/lib/fields/reference.js @@ -53,6 +53,7 @@ module.exports.beforeOutput = function ({ document, dotNotationPath = [], field, + language, input, level = 1, urlFields = {} @@ -156,6 +157,7 @@ module.exports.beforeOutput = function ({ return model.find({ client, + language, options: queryOptions, query: { _id: { @@ -174,13 +176,15 @@ module.exports.beforeOutput = function ({ ).formatDocuments(result) } - return model.formatForOutput(result, { - client, - composeOverride, + let nextData = Object.assign({}, arguments[0], { dotNotationPath: newDotNotationPath, - level: level + 1, - urlFields - }).then(formattedResult => { + level: level + 1 + }) + + return model.formatForOutput( + result, + nextData + ).then(formattedResult => { documents[result._id] = formattedResult }) }) diff --git a/dadi/lib/fields/string.js b/dadi/lib/fields/string.js index 175c43d4..e54a18d2 100644 --- a/dadi/lib/fields/string.js +++ b/dadi/lib/fields/string.js @@ -26,6 +26,46 @@ function sanitise (input, schema = {}) { return input } +module.exports.beforeOutput = function ({ + config, + document, + field, + input, + language +}) { + // If there is no language parameter, we return + // the sub-document untransformed. + if (typeof language !== 'string') { + return input + } + + let value + let valueLanguage + let languageField = field + config.get('i18n.fieldCharacter') + language + let supportedLanguages = config.get('i18n.languages') + + // If the language requested is one of the supported languages + // and the document contains a field translation for it, we'll + // use the translated value. If not, we use the original one. + if ( + supportedLanguages.includes(language) && + input[languageField] !== undefined + ) { + value = input[languageField] + valueLanguage = language + } else { + value = input[field] + valueLanguage = config.get('i18n.defaultLanguage') + } + + return { + _i18n: { + [field]: valueLanguage + }, + [field]: value + } +} + module.exports.beforeQuery = ({field, input, schema}) => { // Do nothing for falsy values. if (input === null || input === undefined || input === false) { diff --git a/dadi/lib/index.js b/dadi/lib/index.js index 4dd44257..48380779 100755 --- a/dadi/lib/index.js +++ b/dadi/lib/index.js @@ -26,16 +26,17 @@ var DocumentController = require(path.join(__dirname, '/controller/documents')) var EndpointController = require(path.join(__dirname, '/controller/endpoint')) var EndpointsController = require(path.join(__dirname, '/controller/endpoints')) var HooksController = require(path.join(__dirname, '/controller/hooks')) +var LanguagesController = require(path.join(__dirname, '/controller/languages')) var MediaController = require(path.join(__dirname, '/controller/media')) var ResourcesController = require(path.join(__dirname, '/controller/resources')) var RolesController = require(path.join(__dirname, '/controller/roles')) +var SearchIndexController = require(path.join(__dirname, '/controller/searchIndex')) var StatusEndpointController = require(path.join(__dirname, '/controller/status')) var dadiBoot = require('@dadi/boot') var help = require(path.join(__dirname, '/help')) var Model = require(path.join(__dirname, '/model')) var mediaModel = require(path.join(__dirname, '/model/media')) var monitor = require(path.join(__dirname, '/monitor')) -var search = require(path.join(__dirname, '/search')) var config = require(path.join(__dirname, '/../../config')) @@ -247,9 +248,6 @@ Server.prototype.start = function (done) { // caching layer cache(this).init() - // search layer - search(this) - // start listening var server = this.server = app.listen() @@ -262,8 +260,10 @@ Server.prototype.start = function (done) { CollectionsController(this) EndpointsController(this) HooksController(this, options.hookPath) + LanguagesController(this) ResourcesController(this) RolesController(this) + SearchIndexController(this) this.readyState = 1 diff --git a/dadi/lib/model/collections/create.js b/dadi/lib/model/collections/create.js index 0dd3892f..281eeb2b 100644 --- a/dadi/lib/model/collections/create.js +++ b/dadi/lib/model/collections/create.js @@ -156,6 +156,9 @@ function create ({ results } + // Asynchronous search index. + this.searchHandler.index(returnData.results) + // Run any `afterCreate` hooks. if (this.settings.hooks && (typeof this.settings.hooks.afterCreate === 'object')) { returnData.results.forEach(document => { diff --git a/dadi/lib/model/collections/find.js b/dadi/lib/model/collections/find.js index c3a89d17..c60e417e 100644 --- a/dadi/lib/model/collections/find.js +++ b/dadi/lib/model/collections/find.js @@ -1,5 +1,6 @@ 'use strict' +const config = require('./../../../../config') const debug = require('debug')('api:model') /** @@ -24,12 +25,14 @@ const debug = require('debug')('api:model') * Finds documents in the database. * * @param {Object} client - client to check permissions for + * @param {String} language - ISO code for the language to translate documents to * @param {Object} query - query to match documents against * @param {Object} options * @return {Promise} */ function find ({ client, + language, query = {}, options = {} } = {}) { @@ -43,23 +46,46 @@ function find ({ let queryFields = {} - // Transforming elements of the `fields` parameter that contain - // dot-notation paths so that the base field is requested. + // Transforming the fields projection, if one is present. It + // involves transforming reference fields with dot-notation, + // as well as language variations of fields. if (options.fields && Object.keys(options.fields).length) { Object.keys(options.fields).forEach(field => { let baseField = field.split('.')[0] let [name, collection] = baseField.split('@') + // If the projected field specifies a collection to search on + // (e.g. author@people.name) and that collection is not the + // one we're operating one, we exclude the field from the + // projection. if (collection && (collection !== this.name)) { return } queryFields[name] = options.fields[field] + // We must ensure that language variations are included/excluded + // appropriately. We'll add a language variation to the projection + // if we're dealing with an exclusion projection (i.e. if we exclude + // a field, we can also exclude all its language variations) or if + // the variation in question is the language requested (i.e. if we + // include a field and request a certain language, we must also include + // that corresponding variation). + config.get('i18n.languages').forEach(supportedLanguage => { + if (options.fields[field] === 0 || supportedLanguage === language) { + let langField = name + config.get('i18n.fieldCharacter') + supportedLanguage + + queryFields[langField] = options.fields[field] + } + }) + // If we're limiting the fields we're requesting, we need to // ensure that any reference fields are accompanied by their // auxiliary collection mapping field. - if (this.getFieldType(name) === 'reference') { + if ( + this.getFieldType(name) === 'reference' && + options.fields[field] === 1 + ) { let mappingField = this._getIdMappingName(name) queryFields[mappingField] = 1 diff --git a/dadi/lib/model/collections/get.js b/dadi/lib/model/collections/get.js index ab1a15d7..0b73c62e 100644 --- a/dadi/lib/model/collections/get.js +++ b/dadi/lib/model/collections/get.js @@ -24,6 +24,8 @@ const logger = require('@dadi/logger') * Finds documents in the database, running any configured hooks * and formatting the result set for final output. * + * @param {Object} client - client to check permissions for + * @param {String} language - ISO code for the language to translate documents to * @param {Object} query - query to match documents against * @param {Object} options * @param {Object} req - request object to pass to hooks @@ -31,6 +33,7 @@ const logger = require('@dadi/logger') */ function get ({ client, + language, query = {}, options = {}, req @@ -68,6 +71,7 @@ function get ({ }).then(query => { return this.find({ client, + language, query, options }) @@ -113,6 +117,7 @@ function get ({ { client, composeOverride: options.compose, + language, urlFields: options.fields } ).then(results => { diff --git a/dadi/lib/model/index.js b/dadi/lib/model/index.js index 8ff24f8c..c6822d1e 100755 --- a/dadi/lib/model/index.js +++ b/dadi/lib/model/index.js @@ -7,6 +7,7 @@ const deepMerge = require('deepmerge') const fields = require('./../fields') const History = require('./history') const logger = require('@dadi/logger') +const Search = require('./../search') const Validator = require('./validator') /** @@ -76,6 +77,13 @@ const Model = function (name, schema, connection, settings) { this.compose = this.settings.compose } + // setup search context + this.searchHandler = new Search(this) + + if (this.searchHandler.canUse()) { + this.searchHandler.init() + } + // Add any configured indexes. if (this.settings.index && !Array.isArray(this.settings.index)) { this.settings.index = [ @@ -238,12 +246,26 @@ Model.prototype._formatResultSet = function ( ? 'beforeSave' : 'beforeOutput' + // The hook will receive the portion of the document that + // corresponds to the field in question, including any language + // variations. + let subDocument = Object.keys(document) + .reduce((subDocument, rawField) => { + let canonicalField = rawField.split( + config.get('i18n.fieldCharacter') + )[0] + + if (canonicalField === field) { + subDocument[rawField] = document[rawField] + } + + return subDocument + }, {}) + return this.runFieldHooks({ config, data: Object.assign({}, data, { document }), - input: { - [field]: document[field] - }, + input: subDocument, field, name: hookName }).then(subDocument => { @@ -767,6 +789,7 @@ Model.prototype.getStats = require('./collections/getStats') Model.prototype.revisions = require('./collections/getRevisions') // (!) Deprecated in favour of `getRevisions` Model.prototype.stats = require('./collections/getStats') // (!) Deprecated in favour of `getStats` Model.prototype.update = require('./collections/update') +Model.prototype.search = require('./search') module.exports = function (name, schema, connection, settings) { if (schema) { diff --git a/dadi/lib/model/search.js b/dadi/lib/model/search.js new file mode 100644 index 00000000..abe1e05e --- /dev/null +++ b/dadi/lib/model/search.js @@ -0,0 +1,47 @@ +const config = require('./../../../config') +const debug = require('debug')('api:model:search') + +/** + * Searches for documents in the database and returns a + * metadata object. + * + * @param {Object} query - the search query + * @param {Object} options - an options object + * @returns {Promise} + */ +module.exports = function ({ + client, + options = {} +} = {}) { + let err + + if (!this.searchHandler.canUse()) { + err = new Error('Not Implemented') + err.statusCode = 501 + err.json = { + errors: [{ + message: `Search is disabled or an invalid data connector has been specified.` + }] + } + } else if (!options.search || options.search.length < config.get('search.minQueryLength')) { + err = new Error('Bad Request') + err.statusCode = 400 + err.json = { + errors: [{ + message: `Search query must be at least ${config.get('search.minQueryLength')} characters.` + }] + } + } + + if (err) { + return Promise.reject(err) + } + + return this.validateAccess({ + client, + type: 'read' + }).then(() => { + debug(options.search) + return this.searchHandler.find(options.search) + }) +} diff --git a/dadi/lib/model/validator.js b/dadi/lib/model/validator.js index 1e5f191d..18362a86 100755 --- a/dadi/lib/model/validator.js +++ b/dadi/lib/model/validator.js @@ -6,6 +6,7 @@ // ensure that field validation passes for inserts and updates var _ = require('underscore') +var config = require('./../../../config') var path = require('path') var datastore = require(path.join(__dirname, '../datastore'))() var validator = require('validator') @@ -99,39 +100,43 @@ Validator.prototype._parseDocument = function (obj, schema, response) { var err = false keys.forEach(key => { + let canonicalKey = key.split( + config.get('i18n.fieldCharacter') + )[0] + // Ignore internal fields. if (key.indexOf('_') === 0) return - if (!schema[key]) { + if (!schema[canonicalKey]) { response.success = false response.errors.push({ collection: this.model.name, - field: key, + field: canonicalKey, message: "doesn't exist in the collection schema", data: obj }) } else { // handle objects first if (typeof obj[key] === 'object') { - if (schema[key] && (schema[key].type === 'Mixed' || schema[key].type === 'Object')) { + if (schema[canonicalKey] && (schema[canonicalKey].type === 'Mixed' || schema[canonicalKey].type === 'Object')) { // do nothing - } else if (schema[key] && schema[key].type === 'Reference') { + } else if (schema[canonicalKey] && schema[canonicalKey].type === 'Reference') { // bah! } else if (obj[key] !== null && !Array.isArray(obj[key])) { this._parseDocument(obj[key], schema, response) - } else if (obj[key] !== null && schema[key] && schema[key].type === 'ObjectID' && Array.isArray(obj[key])) { - err = this._validate(obj[key], schema[key], key) + } else if (obj[key] !== null && schema[canonicalKey] && schema[canonicalKey].type === 'ObjectID' && Array.isArray(obj[key])) { + err = this._validate(obj[key], schema[canonicalKey], key) if (err) { response.success = false response.errors.push({field: key, message: err}) } - } else if (Array.isArray(obj[key]) && schema[key] && (schema[key].type === 'String')) { + } else if (Array.isArray(obj[key]) && schema[canonicalKey] && (schema[canonicalKey].type === 'String')) { // We allow type `String` to actually be an array of Strings. When this // happens, we run the validation against the combination of all strings // glued together. - err = this._validate(obj[key].join(''), schema[key], key) + err = this._validate(obj[key].join(''), schema[canonicalKey], key) if (err) { response.success = false @@ -139,7 +144,7 @@ Validator.prototype._parseDocument = function (obj, schema, response) { } } } else { - err = this._validate(obj[key], schema[key], key) + err = this._validate(obj[key], schema[canonicalKey], key) if (err) { response.success = false diff --git a/dadi/lib/search/analysers/standard.js b/dadi/lib/search/analysers/standard.js new file mode 100644 index 00000000..d64758f0 --- /dev/null +++ b/dadi/lib/search/analysers/standard.js @@ -0,0 +1,121 @@ +'use strict' + +const natural = require('natural') +const TfIdf = natural.TfIdf +const tokenizer = new natural.RegexpTokenizer({ + // pattern: new RegExp(/[^A-Za-zÅåÀÈÌÒÙàèìòùÁÉÍÓÚÝáéíóúýÂÊÎÔÛâêîôûÃÑÕãñõÄËÏÖÜŸäëïöüÿŠŽšžÇç]/i) + pattern: new RegExp(/[^a-zA-Z\u00C0-\u017F]/i) +}) + +class StandardAnalyzer { + constructor (fieldRules) { + this.fieldRules = fieldRules + this.tfidf = new TfIdf() + this.tfidf.setTokenizer(tokenizer) + } + + add (field, value) { + if (Array.isArray(value)) { + let filteredValues = value.filter(this.isValid) + filteredValues.forEach(val => this.tfidf.addDocument(val, field)) + } else if (this.isValid(value)) { + this.tfidf.addDocument(value, field) + } + } + + isValid (value) { + return typeof value === 'string' + } + + getWordsInField (index) { + return this.tfidf.listTerms(index) + .map(item => item.term) + } + + getAllWords () { + let words = this.tfidf.documents.map((doc, indx) => { + return this.getWordsInField(indx) + }) + + if (words.length) { + words = words.reduce((a, b) => a.concat(b)) + } + + return this.unique(words) + } + + tokenize (query) { + return tokenizer + .tokenize(query) + .map(word => word.toLowerCase()) + } + + unique (list) { + if (!Array.isArray(list)) { + return [] + } + + return [...new Set(list)] + } + + areValidWords (words) { + if (!Array.isArray(words)) { + return false + } + + return words.every(word => { + return typeof word === 'object' && + word.hasOwnProperty('weight') && + word.hasOwnProperty('word') + }) + } + + mergeWeights (words) { + if (!this.areValidWords(words)) return [] + + return words + .reduce((prev, current) => { + let match = prev.find(wordSearch => wordSearch.word === current.word) + + if (match) { + match.count = match.count ? match.count + 1 : 2 + match.weight += current.weight + return prev + } + return prev.concat(current) + }, []) + .map(match => { + if (match.count) { + match.weight = match.weight / match.count + delete match.count + } + + return match + }) + } + + getWordInstances () { + let words = this.getAllWords() + if (!words || !words.length) return [] + + let docWords = this.tfidf.documents + .map((doc, index) => { + let rules = this.fieldRules[doc.__key.split(':')[0]] + + return words + .filter(word => doc[word]) + .map(word => { + let weight = this.tfidf.tfidf(word, index) * rules.weight + + return { + weight, + word + } + }) + }).reduce((a, b) => a.concat(b)) + + return this.mergeWeights(docWords) + } +} + +module.exports = StandardAnalyzer diff --git a/dadi/lib/search/index.js b/dadi/lib/search/index.js index 663da745..ac869351 100644 --- a/dadi/lib/search/index.js +++ b/dadi/lib/search/index.js @@ -1,77 +1,603 @@ +'use strict' + const path = require('path') -const url = require('url') -const help = require(path.join(__dirname, '/../help')) -const model = require(path.join(__dirname, '/../model')) -/* -Search middleware allowing cross-collection querying -Search query URI format: -http://host[:port]/version/search?collections=database/collection[,database2/collection2,...[,databaseN/collectionN]]&query={"title":{"$regex":"brother"}} -Example search query: -http://api.example.com/1.0/search?collections=library/books,library/films&query={"title":{"$regex":"brother"}} -*/ -module.exports = function (server) { - server.app.use('/:version/search', (req, res, next) => { - if (req.method && req.method.toLowerCase() !== 'get') { - return next() +const config = require(path.join(__dirname, '/../../../config')) +const Connection = require(path.join(__dirname, '/../model/connection')) +const debug = require('debug')('api:search') +const DataStore = require(path.join(__dirname, '../datastore')) +const promiseQueue = require('js-promise-queue') +const StandardAnalyser = require('./analysers/standard') +const DefaultAnalyser = StandardAnalyser +const pageLimit = 20 + +/** + * Handles collection searching in API + * @constructor Search + * @classdesc Indexes documents as they are inserted/updated, and performs search tasks. + * N.B. May only be used with the MongoDB Data Connector. + */ +const Search = function (model) { + if (!model || model.constructor.name !== 'Model') { + throw new Error('model should be an instance of Model') + } + + this.model = model + this.indexableFields = this.getIndexableFields() + this.analyser = new DefaultAnalyser(this.indexableFields) +} + +/** + * Determines if searching is enabled for the current collection. Search is available if: + * - the configured DataStore allows it, + * - the main configuration setting of "enabled" is "true", and + * - the current collection schema contains at least one indexable field. + * + * An indexable field has the following configuration: + * + * ```json + * "search": { + * "weight": 2 + * } + * ``` + * @returns {Boolean} - boolean value indicating whether Search is enabled for this collection + */ +Search.prototype.canUse = function () { + let searchConfig = config.get('search') + + this.datastore = DataStore(searchConfig.datastore) + + return (typeof this.datastore.search !== 'undefined') && + searchConfig.enabled && + Object.keys(this.indexableFields).length > 0 +} + +/** + * + */ +Search.prototype.init = function () { + this.wordCollection = config.get('search.wordCollection') + this.searchCollection = this.model.searchCollection || this.model.name + 'Search' + + debug('initialised wordCollection: %s, indexCollection: %s', this.wordCollection, this.searchCollection) + + this.initialiseConnections() + this.applyIndexListeners() +} + +/** + * Initialise connections to the `word` database collection and the current collection's + * `search` database collection - typically the collection name with "Search" appended. + */ +Search.prototype.initialiseConnections = function () { + let searchConfig = config.get('search') + + this.wordConnection = Connection( + { + collection: this.wordCollection, + database: searchConfig.database, + override: true + }, + this.wordCollection, + searchConfig.datastore + ) + + this.searchConnection = Connection( + { + collection: this.searchCollection, + database: searchConfig.database, + override: true + }, + this.searchCollection, + searchConfig.datastore + ) + + this.wordConnection.setMaxListeners(35) + this.searchConnection.setMaxListeners(35) +} + +/** + * Apply Index Listeners + * Fires a call to the data controllers index method with the schemas index rules. + */ + // TODO: this will change with @eduardo's Connection Recovery branch +Search.prototype.applyIndexListeners = function () { + this.wordConnection.once('connect', database => { + database.index(this.wordCollection, this.getWordSchema().settings.index) + }) + + this.searchConnection.once('connect', database => { + database.index(this.searchCollection, this.getSearchSchema().settings.index) + }) +} + +/** + * Find documents in the "words" collection matching the specified searchTerm, using the results of the query + * to fetch results from the current collection's search collection, ultimately leading to a set of IDs for documents + * that contain the searchTerm + * + * @param {String} searchTerm - the search query passed to the collection search endpoint + * @return {Promise} - resolves with a query containing IDs of documents that contain the searchTerm + */ +Search.prototype.find = function (searchTerm) { + debug(this.canUse() ? 'search enabled' : 'search disabled') + + debug('find in %s: %s', this.searchCollection, searchTerm) + + let tokenized = this.analyser.tokenize(searchTerm) + + return this.getWords(tokenized).then(words => { + let wordIds = words.results.map(word => word._id.toString()) + + debug('searching %s for words %o', this.searchCollection, words.results.map(word => word.word)) + + return this.searchConnection.datastore.search({ + words: wordIds, + collection: this.searchCollection, + schema: this.getSearchSchema().fields, + settings: this.getSearchSchema().settings, + opions: { limit: pageLimit } + }).then(wordInstances => { + wordInstances = wordInstances.map(instance => instance._id.document) + + return { + _id: { + '$containsAny': wordInstances + } + } + }) + }) +} + +/** + * Removes entries in the collection's search collection that match the specified documents + * @param {Array} documents - an array of documents for which to remove word instances + * @return {Promise} - Query to delete instances with matching document ids. + */ +Search.prototype.delete = function (documents) { + if (!this.canUse() || !Array.isArray(documents)) { + return Promise.resolve() + } + + debug('deleting documents from the %s index', this.searchCollection) + + let deleteQueue = documents.map(document => { + return this.clearDocumentInstances(document._id.toString()) + }) + + return Promise.all(deleteQueue) +} + +/** + * Query the "words" collection for results that match any of the words specified. If there are no + * results, re-query the collection using the same set of words but each converted to a regular expression + * + * @param {Array} words - an array of words extracted from the search term + * @return {Promise} Query against the words collection. + */ +Search.prototype.getWords = function (words) { + let wordQuery = { word: { '$containsAny': words } } + + return this.wordConnection.datastore.find({ + query: wordQuery, + collection: this.wordCollection, + options: {}, + schema: this.getWordSchema().fields, + settings: this.getWordSchema().settings + }).then(response => { + // Try a second pass with regular expressions + if (response.results.length === 0) { + let regexWords = words.map(word => new RegExp(word)) + let regexQuery = { word: { '$containsAny': regexWords } } + + return this.wordConnection.datastore.find({ + query: regexQuery, + collection: this.wordCollection, + options: {}, + schema: this.getWordSchema().fields, + settings: this.getWordSchema().settings + }) } - let parsedUrl = url.parse(req.url, true) - let options = parsedUrl.query + return response + }) +} + +/** + * Searches the collection's "search" collection using the word ID to obtain document IDs for querying the main collection + * The "words" argument should be similar to the following exampe: + * ``` + * [ { _id: 59f2e4be2b58ff41a4f9c14b, word: 'quick' }, { _id: 59f2e4be2b58ff41a4f9c14c, word: 'brown' } ] + * ``` + * @param {Array} words - an array of "word" result objects, each containing an ID that can be used to query the search collection + * @returns {Promise.} A Promise that returns an Array containing found instances of the specified words + * ``` + * [ + * { + * _id: { + * document: '59f2e8fb01eaec491579ff9d' + * }, + * count: 2, + * weight: 1.2274112777602189 + * } + * ] + * ``` + */ +Search.prototype.getInstancesOfWords = function (words) { + let ids = words.map(word => word._id.toString()) - // no collection and no query params - if (!(options.collections && options.query)) { - return help.sendBackJSON(400, res, next)(null, {'error': 'Bad Request'}) + return this.searchConnection.datastore.findInSearchIndex({ + documentIds: ids, + collection: this.searchCollection, + opions: { limit: pageLimit }, + schema: this.getSearchSchema().fields, + settings: this.getSearchSchema().settings + }) +} + +/** + * Returns all fields from the current collction's schema that have a valid search property + * @return {Object} - an object whose keys are the index fields, the value of which represents it's search rules + * ```json + * { title: { indexed: true, store: true, weight: 2 } } + * ``` + */ +Search.prototype.getIndexableFields = function () { + let schema = this.model.schema + + let indexableFields = Object.keys(schema).filter(key => { + return this.hasSearchField(schema[key]) + }) + + let fields = {} + + indexableFields.forEach(key => { + fields[key] = schema[key].search + }) + + return fields +} + +/** + * Determine if the specified collection schema field has a valid search property + * @param {Object} field - a collection schema field object + * @return {Boolean} `true` if the field has a valid search property + */ +Search.prototype.hasSearchField = function (field) { + return typeof field === 'object' && + field.search && + !isNaN(field.search.weight) +} + +/** + * Removes properties from the specified document that aren't configured to be indexed + * + * @param {Object} document - a document to be indexed + * @return {Object} the specified document with non-indexable properties removed + */ +Search.prototype.removeNonIndexableFields = function (document) { + if (typeof document !== 'object') return {} + + // set of languages configured for API, so we can keep translation fields + // in the document for indexing + let supportedLanguages = config.get('i18n.languages') + let fieldSeparator = config.get('i18n.fieldCharacter') + + let indexableFields = Object.keys(document).filter(key => { + if (key.indexOf(fieldSeparator) > 0) { + let keyParts = key.split(fieldSeparator) + return this.indexableFields[keyParts[0]] && supportedLanguages.includes(keyParts[1]) + } else { + return this.indexableFields[key] } + }) - // split the collections param - let collections = options.collections.split(',') + let sanitisedDocument = {} - // extract the query from the querystring - let query = help.parseQuery(options.query) + indexableFields.forEach(key => { + sanitisedDocument[key] = document[key] + }) - // determine API version - let apiVersion = parsedUrl.pathname.split('/')[1] + return sanitisedDocument +} + +/** + * Index the specified documents + * @param {Array} documents - an array of documents to be indexed + * @return {Promise} - Queries to index documents. + */ +Search.prototype.index = function (documents) { + if (!this.canUse() || !Array.isArray(documents)) { + return Promise.resolve() + } + + promiseQueue(documents, this.indexDocument.bind(this), { + interval: 300 + }) +} + +/** + * Index the specified document by inserting words from the indexable fields into the + * "words" collection + * + * @param {Object} document - a document to be indexed + * @return {[type]} [description] + */ +Search.prototype.indexDocument = function (document) { + let reducedDocument = this.removeNonIndexableFields(document) + let words = this.analyseDocumentWords(reducedDocument) + let uniqueWords + + return this.getWords(words).then(existingWords => { + if (existingWords.results.length) { + uniqueWords = words.filter(word => { + return existingWords.results.every(result => result.word !== word) + }) + } else { + uniqueWords = words + } - // no collections specfied - if (collections.length === 0) { - return help.sendBackJSON(400, res, next)(null, {'error': 'Bad Request'}) + let data = this.formatInsertQuery(uniqueWords) + + if (!uniqueWords.length) { + return this.clearAndInsertWordInstances(words, document._id.toString()) } - let results = {} - let idx = 0 + // insert unique words into the words collection + return this.wordConnection.datastore.insert({ + data: data, + collection: this.wordCollection, + options: {}, + schema: this.getWordSchema().fields, + settings: this.getWordSchema().settings + }).then(response => { + return this.clearAndInsertWordInstances(words, document._id.toString()) + }).catch(err => { + console.log(err) + }) + }) +} + +/** + * Analyse Document Words + * Pass all words to an instance of analyser and return all words. + * @param {Object} doc A document from the database, with non-indexable fields removed. + * @return {Array} A list of analysed words. + */ +Search.prototype.analyseDocumentWords = function (doc) { + // add the document to the analyser index + Object.keys(doc).map(key => { + this.analyser.add(key, doc[key]) + }) - collections.forEach(collection => { - // get the database and collection name from the - // collection parameter - let parts = collection.split('/') - let database, name, mod + // add the document to a fresh analyser instance so we can get only the + // indexable words from THIS DOCUMENT + let analyser = new DefaultAnalyser(this.indexableFields) - query._apiVersion = apiVersion + Object.keys(doc).map(key => { + analyser.add(key, doc[key]) + }) - if (Array.isArray(parts) && parts.length > 1) { - database = parts[0] - name = parts[1] - mod = model(name, null, null, database) + // return indexable words from THIS DOCUMENT only + return analyser.getAllWords() +} + +/** + * Formats the specified words for inserting into the database + * + * @param {Array} words - an array of words + * @return {Array} - an array of objects in the format `{ word: }` + */ +Search.prototype.formatInsertQuery = function (words) { + return words.map(word => { + return { word } + }) +} + +/** + * Find all words that exist in the current version of a document, removes all indexed words relating to a specific document, and finally insert new word instances + * @param {Array} words - an array of words matching document word list. + * @param {Class} analyser - an analyser + * @param {String} docId - the current document ID + * @return {Promise} Chained word query, document instance delete and document instance insert. + */ +Search.prototype.clearAndInsertWordInstances = function (words, docId) { + // The word index is unique, so results aren't always returned. + // Fetch word entries again to get ids. + let query = { + word: { + '$containsAny': words + } + } + + return this.wordConnection.datastore.find({ + query, + collection: this.wordCollection, + options: {}, + schema: this.getWordSchema().fields, + settings: this.getWordSchema().settings + }).then(results => { + // Get all word instances from Analyser + return this.clearDocumentInstances(docId).then(response => { + if (response.deletedCount) { + debug('Removed %s documents from the %s index', response.deletedCount, this.searchCollection) } - if (mod) { - mod.find(query, (err, docs) => { - if (err) { - return help.sendBackJSON(500, res, next)(err) - } + return this.insertWordInstances(results.results, docId) + }) + }) + .catch(err => { + console.log(err) + }) +} + +/** + * Insert Document word instances. + * @param {Class} analyser Instance of document populated analyser class. + * @param {[type]} words Results from database query for word list. + * @param {String} docId Current document ID. + * @return {Promise} Insert query for document word instances. + */ +Search.prototype.insertWordInstances = function (words, docId) { + let instances = this.analyser.getWordInstances() - // add data to final results array, keyed - // on collection name - results[name] = docs + if (!instances) return + + instances = instances.filter(instance => { + return words.find(wordResult => { + return wordResult.word === instance.word + }) + }) - idx++ + let data = instances.map(instance => { + let word = words.find(wordResult => wordResult.word === instance.word)._id.toString() - // send back data - if (idx === collections.length) { - return help.sendBackJSON(200, res, next)(err, results) + return Object.assign(instance, {word, document: docId}) + }) + + // Insert word instances into search collection. + this.searchConnection.datastore.insert({ + data: data, + collection: this.searchCollection, + options: {}, + schema: this.getSearchSchema().fields, + settings: this.getSearchSchema().settings + }) +} + +/** + * Remove entries in the collection's search collection that match the specified document ID + * + * @param {String} docId - the document ID to remove word instances for + * @return {Promise} - Database delete query. + */ +Search.prototype.clearDocumentInstances = function (docId) { + return this.searchConnection.datastore.delete({ + query: { document: docId }, + collection: this.searchCollection, + schema: this.getSearchSchema().fields + }) +} + +/** + * Index an entire collection, in batches of documents + * + * @param {Number} page - the current page of documents to process + * @param {Number} limit - the number of documents to process + */ +Search.prototype.batchIndex = function (page = 1, limit = 1000) { + if (!Object.keys(this.indexableFields).length) return + + let skip = (page - 1) * limit + + let fields = Object.assign({}, ...Object.keys(this.indexableFields).map(key => { + return {[key]: 1} + })) + + let options = { + skip, + page, + limit, + fields + } + + debug(`Indexing page ${page} (${limit} per page)`) + console.log(`Indexing page ${page} (${limit} per page)`) + + if (this.model.connection.db) { + this.runBatchIndex(options) + } + + this.model.connection.once('connect', database => { + this.runBatchIndex(options) + }) +} + +/** + * Run Batch Index + * Performs indexing across an entire collection. + * @param {Object} options find query options. + */ +Search.prototype.runBatchIndex = function (options) { + this.model.connection.datastore.find({ + query: {}, + collection: this.model.name, + options: options, + schema: this.model.schema, + settings: this.model.settings + }).then(({metadata, results}) => { + if (results && results.length) { + debug(`Indexed ${results.length} ${results.length === 1 ? 'record' : 'records'} for ${this.model.name}`) + + if (results.length > 0) { + this.index(results).then(response => { + debug(`Indexed page ${options.page}/${metadata.totalPages}`) + + if (options.page * options.limit < metadata.totalCount) { + return this.batchIndex(options.page + 1, options.limit) } }) } - }) + } }) } + +/** + * Return the template for the "words" collection schema, used to create the database collection + * @return {Object} - the collection schema for the "words" collection + */ +Search.prototype.getWordSchema = function () { + return { + fields: { + word: { + type: 'String', + required: true + } + }, + settings: { + cache: true, + index: [{ + keys: { word: 1 }, + options: { unique: true } + }] + } + } +} + +/** + * Return the template for the current collection's "search" collection schema, used to create the database collection + * @return {Object} - the collection schema for the "search" collection + */ +Search.prototype.getSearchSchema = function () { + return { + fields: { + word: { + type: 'Reference', + required: true + }, + document: { + type: 'Reference', + required: true + }, + weight: { + type: 'Number', + required: true + } + }, + settings: { + cache: true, + index: [ + { + keys: { word: 1 } + }, + { + keys: { document: 1 } + }, + { + keys: { weight: 1 } + } + ] + } + } +} + +module.exports = Search diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..4d4f8647 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,7415 @@ +{ + "name": "@dadi/api", + "version": "4.0.4", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@commitlint/cli": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-4.1.1.tgz", + "integrity": "sha1-NJAonpCBegrCtrkRurFLrdjegPU=", + "dev": true, + "requires": { + "@commitlint/core": "4.3.0", + "babel-polyfill": "6.26.0", + "chalk": "2.3.1", + "get-stdin": "5.0.1", + "lodash": "4.17.5", + "meow": "3.7.0" + }, + "dependencies": { + "get-stdin": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", + "integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=", + "dev": true + }, + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + } + } + }, + "@commitlint/config-angular": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@commitlint/config-angular/-/config-angular-3.1.1.tgz", + "integrity": "sha1-VfIoOAPGpOAedV0JEu/511c1M2Y=", + "dev": true + }, + "@commitlint/core": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/core/-/core-4.3.0.tgz", + "integrity": "sha1-6IGgoWWUrzreCb5NErdwuZE7wmE=", + "dev": true, + "requires": { + "@marionebl/conventional-commits-parser": "3.0.0", + "@marionebl/git-raw-commits": "1.2.0", + "@marionebl/sander": "0.6.1", + "babel-runtime": "6.26.0", + "chalk": "2.3.1", + "conventional-changelog-angular": "1.6.2", + "cosmiconfig": "3.1.0", + "find-up": "2.1.0", + "lodash": "4.17.5", + "path-exists": "3.0.0", + "resolve-from": "3.0.0", + "semver": "5.5.0" + }, + "dependencies": { + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + } + } + }, + "@dadi/boot": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@dadi/boot/-/boot-1.1.4.tgz", + "integrity": "sha512-+SMqHaQWqAfomJOrdZ2JBWmSc73pIwUwpYxwnWXl0H8RMbpqJP26YMtbWMBNA8U4VP2b7hsnMrmm+oDjQXONog==", + "requires": { + "@dadi/status": "1.0.3", + "cli-table2": "0.2.0", + "colors": "1.1.2", + "ora": "1.4.0", + "semver-compare": "1.0.0" + } + }, + "@dadi/cache": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@dadi/cache/-/cache-3.0.0.tgz", + "integrity": "sha512-7boWrbt0myXVDyGA0VVAZ1d0IJAhRbPNbHqyeQ2CKnUoOQSyPscDCEUPaPbd4eskK966iv3ALuNP2GG5+4Uc+w==", + "requires": { + "dbc": "3.0.0", + "debug": "2.6.9", + "deepmerge": "2.1.1", + "ioredis": "2.5.0", + "lokijs": "1.5.5", + "mkdirp": "0.5.1", + "node-redis-streamify": "0.1.6", + "recursive-readdir": "2.1.1", + "redis": "2.6.2", + "redis-rstream": "0.1.2", + "redis-wstream": "0.2.5", + "remove-empty-directories": "0.0.1", + "stream-to-string": "1.1.0", + "streamifier": "0.1.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "lokijs": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/lokijs/-/lokijs-1.5.5.tgz", + "integrity": "sha1-HCH4KvdXkDf63nueSBNIXCNwi7Y=" + } + } + }, + "@dadi/et": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@dadi/et/-/et-2.0.0.tgz", + "integrity": "sha1-dnFRCsr/UCAgKdny/87D+NyBT6k=" + }, + "@dadi/format-error": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@dadi/format-error/-/format-error-1.7.0.tgz", + "integrity": "sha512-Y34+/Jy1uGR1Lj03b8K9B+o/oIe/ZevHSVfYMTkJbB4zE6N3iO08Z1gQ+9B6Tpa9N8cVC/akjS50awjEcXFrSA==", + "requires": { + "backtick-template": "0.1.1" + } + }, + "@dadi/log-filter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@dadi/log-filter/-/log-filter-1.0.0.tgz", + "integrity": "sha512-tPtoHjlnNG71/aa2cz0YpqEB0L4EY7hBwFXVmPWOhXAwwyEI2XF8DH5WQ/TEYGc82V+TamC3Df6YsN4/MN9luQ==" + }, + "@dadi/logger": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@dadi/logger/-/logger-1.4.1.tgz", + "integrity": "sha512-tzw5W+gXjwmSHGIPTzFjDN0kcw8clRtoPzpQyP7uHUgMjDLXF1qlCaDaT8W0OyFKmuBd5lxRv9giJChhkzh29g==", + "requires": { + "@dadi/log-filter": "1.0.0", + "aws-kinesis-writable": "2.0.0", + "bunyan": "1.8.12", + "kinesis": "1.2.2", + "memorystream": "0.3.1", + "mkdirp": "0.5.1", + "moment": "2.19.3" + } + }, + "@dadi/metadata": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@dadi/metadata/-/metadata-2.0.0.tgz", + "integrity": "sha512-GI0v4QEROhkDeIKmfMrHD8+9rOdgc8KbLLIZcY/FU5pYfudil7Njj+8DW2vId1tUrUvbZn3875h8TuEN9Zkrig==", + "dev": true + }, + "@dadi/status": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@dadi/status/-/status-1.0.3.tgz", + "integrity": "sha1-AkYEBU68VRyuc6nxioYWVfD21yc=", + "requires": { + "async": "1.5.2", + "latest-version": "2.0.0", + "request": "2.83.0", + "underscore": "1.8.3", + "underscore.string": "3.3.4" + }, + "dependencies": { + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" + } + } + }, + "@marionebl/conventional-commits-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@marionebl/conventional-commits-parser/-/conventional-commits-parser-3.0.0.tgz", + "integrity": "sha1-naKbTSyPBcD5zdApNnE7gJbJWNM=", + "dev": true, + "requires": { + "JSONStream": "1.3.2", + "is-text-path": "1.0.1", + "lodash": "4.17.5", + "meow": "3.7.0", + "split2": "2.2.0", + "through2": "2.0.3", + "trim-off-newlines": "1.0.1" + }, + "dependencies": { + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + } + } + }, + "@marionebl/git-raw-commits": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@marionebl/git-raw-commits/-/git-raw-commits-1.2.0.tgz", + "integrity": "sha1-fNim38Calt+Y2PvpF1xZccwHyCs=", + "dev": true, + "requires": { + "dargs": "4.1.0", + "lodash.template": "4.4.0", + "meow": "3.7.0", + "split2": "2.2.0", + "through2": "2.0.3" + } + }, + "@marionebl/sander": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@marionebl/sander/-/sander-0.6.1.tgz", + "integrity": "sha1-GViWWHTyS8Ub5Ih1/rUNZC/EH3s=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "mkdirp": "0.5.1", + "rimraf": "2.6.2" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha1-wZyd+aAocC1nhhI4SmVSQExjbRU=", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + }, + "rimraf": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha1-LtgVDSShbqhlHm1u8PR8QVjOejY=", + "dev": true, + "requires": { + "glob": "7.1.2" + } + } + } + }, + "JSONStream": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.2.tgz", + "integrity": "sha1-wQI3G27Dp887hHygDCC7D85Mbeo=", + "dev": true, + "requires": { + "jsonparse": "1.3.1", + "through": "2.3.8" + } + }, + "abbrev": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz", + "integrity": "sha1-kbR5JYinc4wl813W9jdSovh3YTU=", + "dev": true + }, + "acorn": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.4.1.tgz", + "integrity": "sha512-XLmq3H/BVvW6/GbxKryGxWORz1ebilSsUDlyC27bXhWGWAZWkGwS6FLHjOlwFXNFoWFQEO/Df4u0YYd0K3BQgQ==", + "dev": true + }, + "acorn-jsx": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz", + "integrity": "sha1-r9+UiPsezvyDSPb7IvRk4ypYs2s=", + "dev": true, + "requires": { + "acorn": "3.3.0" + }, + "dependencies": { + "acorn": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", + "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=", + "dev": true + } + } + }, + "afinn-165": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/afinn-165/-/afinn-165-1.0.2.tgz", + "integrity": "sha512-oVbXkteWA6XgYndv3dXYVvulStflVYQtR2K+zp2PyaVhPkkOhZ8tAvk9V7cwaI43GwZaNqRoC2VTpoaWmFyBTA==" + }, + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "requires": { + "co": "4.6.0", + "fast-deep-equal": "1.0.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" + } + }, + "ajv-keywords": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-1.5.1.tgz", + "integrity": "sha1-MU3QpLM2j609/NxU7eYXG4htrzw=", + "dev": true + }, + "align-text": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", + "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "dev": true, + "requires": { + "kind-of": "3.2.2", + "longest": "1.0.1", + "repeat-string": "1.6.1" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "dev": true + }, + "ansi-escapes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", + "integrity": "sha1-06ioOzGapneTZisT52HHkRQiMG4=", + "dev": true + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" + }, + "ansi-styles": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", + "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", + "requires": { + "color-convert": "1.9.1" + } + }, + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "requires": { + "micromatch": "3.1.10", + "normalize-path": "2.1.1" + } + }, + "apparatus": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/apparatus/-/apparatus-0.0.10.tgz", + "integrity": "sha512-KLy/ugo33KZA7nugtQ7O0E1c8kQ52N3IvD/XgIh4w/Nr28ypfkwDfA67F1ev4N1m5D+BOk1+b2dEJDfpj/VvZg==", + "requires": { + "sylvester": "0.0.12" + } + }, + "append-transform": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-0.4.0.tgz", + "integrity": "sha1-126/jKlNJ24keja61EpLdKthGZE=", + "dev": true, + "requires": { + "default-require-extensions": "1.0.0" + } + }, + "argparse": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz", + "integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=", + "dev": true, + "requires": { + "sprintf-js": "1.0.3" + }, + "dependencies": { + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + } + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=" + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==" + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=" + }, + "array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=" + }, + "array-flatten": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.1.tgz", + "integrity": "sha1-Qmu52oQJDBg42BLIFQryCoMx4pY=" + }, + "array-ify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", + "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=", + "dev": true + }, + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "requires": { + "array-uniq": "1.0.3" + } + }, + "array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" + }, + "arrayify-compact": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/arrayify-compact/-/arrayify-compact-0.1.0.tgz", + "integrity": "sha1-uG302tz8I2pKQE8CR5QLf3OzYT4=", + "requires": { + "array-flatten": "2.1.1" + } + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=", + "dev": true + }, + "asn1": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", + "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=" + }, + "async": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", + "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", + "requires": { + "lodash": "4.17.10" + }, + "dependencies": { + "lodash": { + "version": "4.17.10", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", + "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" + } + } + }, + "async-each": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", + "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "atob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz", + "integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=" + }, + "aws-kinesis-writable": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aws-kinesis-writable/-/aws-kinesis-writable-2.0.0.tgz", + "integrity": "sha1-80c2QcpgdKMA6JpCYy+AMblI0iQ=", + "requires": { + "aws-sdk": "2.249.1", + "lodash": "3.10.1", + "retry": "0.9.0" + } + }, + "aws-sdk": { + "version": "2.249.1", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.249.1.tgz", + "integrity": "sha1-KenvNa+xTODpH5kFsz7TVEF7lls=", + "requires": { + "buffer": "4.9.1", + "events": "1.1.1", + "ieee754": "1.1.8", + "jmespath": "0.15.0", + "querystring": "0.2.0", + "sax": "1.2.1", + "url": "0.10.3", + "uuid": "3.1.0", + "xml2js": "0.4.17" + }, + "dependencies": { + "uuid": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", + "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==" + } + } + }, + "aws-sdk-mock": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/aws-sdk-mock/-/aws-sdk-mock-1.6.1.tgz", + "integrity": "sha1-edzmZagpX3b956+ntKbKA+GvqmI=", + "dev": true, + "requires": { + "aws-sdk": "2.249.1", + "sinon": "1.17.7", + "traverse": "0.6.6" + }, + "dependencies": { + "sinon": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-1.17.7.tgz", + "integrity": "sha1-RUKk9JugxFwF6y6d2dID4rjv4L8=", + "dev": true, + "requires": { + "formatio": "1.1.1", + "lolex": "1.3.2", + "samsam": "1.1.2", + "util": "0.10.3" + } + } + } + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" + }, + "aws4": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", + "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=" + }, + "awscred": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/awscred/-/awscred-1.4.1.tgz", + "integrity": "sha512-s88FlBqt3lfqli39RuhsDrdAfT25RqfaKm2X1PuBWQFR5BBzeQ6Ri+QO9vc4NaBFtJmtfYW9q8/VrZxLTfhwiw==" + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "babel-generator": { + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "dev": true, + "requires": { + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "detect-indent": "4.0.0", + "jsesc": "1.3.0", + "lodash": "4.17.5", + "source-map": "0.5.7", + "trim-right": "1.0.1" + }, + "dependencies": { + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + } + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-polyfill": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", + "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "core-js": "2.5.3", + "regenerator-runtime": "0.10.5" + }, + "dependencies": { + "regenerator-runtime": { + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", + "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", + "dev": true + } + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "requires": { + "core-js": "2.5.3", + "regenerator-runtime": "0.11.1" + } + }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "lodash": "4.17.5" + }, + "dependencies": { + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + } + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "debug": "2.6.9", + "globals": "9.18.0", + "invariant": "2.2.2", + "lodash": "4.17.5" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + } + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "esutils": "2.0.2", + "lodash": "4.17.5", + "to-fast-properties": "1.0.3" + }, + "dependencies": { + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + } + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, + "backtick-template": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/backtick-template/-/backtick-template-0.1.1.tgz", + "integrity": "sha1-EMdvfdW0gf2PlBThErFQQSHujNk=" + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "requires": { + "cache-base": "1.0.1", + "class-utils": "0.3.6", + "component-emitter": "1.2.1", + "define-property": "1.0.0", + "isobject": "3.0.1", + "mixin-deep": "1.3.1", + "pascalcase": "0.1.1" + }, + "dependencies": { + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" + }, + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "requires": { + "is-descriptor": "1.0.2" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + } + } + }, + "base64-js": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", + "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==" + }, + "bcrypt-pbkdf": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", + "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", + "optional": true, + "requires": { + "tweetnacl": "0.14.5" + } + }, + "binary-extensions": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", + "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=" + }, + "bluebird": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", + "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==" + }, + "body-parser": { + "version": "1.18.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.3.tgz", + "integrity": "sha1-WykhmP/dVTs6DyDe0FkrlWlVyLQ=", + "requires": { + "bytes": "3.0.0", + "content-type": "1.0.4", + "debug": "2.6.9", + "depd": "1.1.2", + "http-errors": "1.6.3", + "iconv-lite": "0.4.23", + "on-finished": "2.3.0", + "qs": "6.5.2", + "raw-body": "2.3.3", + "type-is": "1.6.16" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", + "requires": { + "depd": "1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": "1.4.0" + } + }, + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "requires": { + "safer-buffer": "2.1.2" + } + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" + } + } + }, + "boom": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", + "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", + "requires": { + "hoek": "4.2.0" + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "requires": { + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "repeat-element": "1.1.2", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "browser-stdout": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", + "dev": true + }, + "buffer": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", + "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", + "requires": { + "base64-js": "1.3.0", + "ieee754": "1.1.8", + "isarray": "1.0.0" + } + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" + }, + "buffer-from": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz", + "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ==" + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" + }, + "bunyan": { + "version": "1.8.12", + "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.12.tgz", + "integrity": "sha1-8VDw9nSKvdcq6uhPBEA74u8RN5c=", + "requires": { + "dtrace-provider": "0.8.7", + "moment": "2.19.3", + "mv": "2.1.1", + "safe-json-stringify": "1.2.0" + } + }, + "busboy": { + "version": "0.2.14", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-0.2.14.tgz", + "integrity": "sha1-bCpiLvz0fFe7vh4qnDetNseSVFM=", + "requires": { + "dicer": "0.2.5", + "readable-stream": "1.1.14" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" + } + } + }, + "bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "requires": { + "collection-visit": "1.0.0", + "component-emitter": "1.2.1", + "get-value": "2.0.6", + "has-value": "1.0.0", + "isobject": "3.0.1", + "set-value": "2.0.0", + "to-object-path": "0.3.0", + "union-value": "1.0.0", + "unset-value": "1.0.0" + }, + "dependencies": { + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" + } + } + }, + "caller-path": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz", + "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=", + "dev": true, + "requires": { + "callsites": "0.2.0" + } + }, + "callsites": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz", + "integrity": "sha1-r6uWJikQp/M8GaV3WCXGnzTjUMo=", + "dev": true + }, + "camelcase": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", + "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=" + }, + "camelcase-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", + "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", + "requires": { + "camelcase": "2.1.1", + "map-obj": "1.0.1" + } + }, + "capture-stack-trace": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz", + "integrity": "sha1-Sm+gc5nCa7pH8LJJa00PtAjFVQ0=" + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + }, + "center-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", + "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", + "dev": true, + "optional": true, + "requires": { + "align-text": "0.1.4", + "lazy-cache": "1.0.4" + } + }, + "chalk": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.1.tgz", + "integrity": "sha512-QUU4ofkDoMIVO7hcx1iPTISs88wsO8jA92RQIm4JAwZvFGGAV2hSAA1NX7oVj2Ej2Q6NDTcRDjPTFrMCRZoJ6g==", + "requires": { + "ansi-styles": "3.2.0", + "escape-string-regexp": "1.0.5", + "supports-color": "5.2.0" + } + }, + "charenc": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", + "integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=" + }, + "chokidar": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.4.tgz", + "integrity": "sha512-z9n7yt9rOvIJrMhvDtDictKrkFHeihkNl6uWMmZlmL6tJtX9Cs+87oK+teBx+JIgzvbX3yZHT3eF8vpbDxHJXQ==", + "requires": { + "anymatch": "2.0.0", + "async-each": "1.0.1", + "braces": "2.3.2", + "fsevents": "1.2.4", + "glob-parent": "3.1.0", + "inherits": "2.0.3", + "is-binary-path": "1.0.1", + "is-glob": "4.0.0", + "lodash.debounce": "4.0.8", + "normalize-path": "2.1.1", + "path-is-absolute": "1.0.1", + "readdirp": "2.1.0", + "upath": "1.1.0" + } + }, + "ci-info": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.1.2.tgz", + "integrity": "sha512-uTGIPNx/nSpBdsF6xnseRXLLtfr9VLqkz8ZqHXr3Y7b6SftyRxBGjwMtJj1OhNbmlc1wZzLNAlAcvyIiE8a6ZA==", + "dev": true + }, + "circular-json": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz", + "integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A==", + "dev": true + }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "requires": { + "arr-union": "3.1.0", + "define-property": "0.2.5", + "isobject": "3.0.1", + "static-extend": "0.1.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "requires": { + "is-descriptor": "0.1.6" + } + } + } + }, + "cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", + "requires": { + "restore-cursor": "2.0.0" + } + }, + "cli-prompt": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cli-prompt/-/cli-prompt-0.6.0.tgz", + "integrity": "sha1-NmaZ3qnIGL5uDoNMM7AtFNjDaW8=", + "requires": { + "keypress": "0.2.1" + } + }, + "cli-spinners": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-1.3.1.tgz", + "integrity": "sha512-1QL4544moEsDVH9T/l6Cemov/37iv1RtoKf7NJ04A60+4MREXNfx/QvavbH6QoGdsD4N4Mwy49cmaINR/o2mdg==" + }, + "cli-table2": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/cli-table2/-/cli-table2-0.2.0.tgz", + "integrity": "sha1-LR738hig54biFFQFYtS9F3/jLZc=", + "requires": { + "colors": "1.1.2", + "lodash": "3.10.1", + "string-width": "1.0.2" + } + }, + "cli-width": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", + "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", + "dev": true + }, + "cliui": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", + "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", + "dev": true, + "optional": true, + "requires": { + "center-align": "0.1.3", + "right-align": "0.1.3", + "wordwrap": "0.0.2" + }, + "dependencies": { + "wordwrap": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", + "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", + "dev": true, + "optional": true + } + } + }, + "clone": { + "version": "0.1.19", + "resolved": "https://registry.npmjs.org/clone/-/clone-0.1.19.tgz", + "integrity": "sha1-YT+2hjmyaklKxTJT4Vsaa9iK2oU=", + "dev": true + }, + "cluster-key-slot": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.0.12.tgz", + "integrity": "sha512-21O0kGmvED5OJ7ZTdqQ5lQQ+sjuez33R+d35jZKLwqUb5mqcPHUsxOSzj61+LHVtxGZd1kShbQM3MjB/gBJkVg==" + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "requires": { + "map-visit": "1.0.0", + "object-visit": "1.0.1" + } + }, + "color-convert": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", + "integrity": "sha1-wSYRB66y8pTr/+ye2eytUppgl+0=", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "colors": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=" + }, + "combined-stream": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", + "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", + "requires": { + "delayed-stream": "1.0.0" + } + }, + "commander": { + "version": "2.14.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.14.1.tgz", + "integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw==", + "dev": true + }, + "compare-func": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", + "integrity": "sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg=", + "dev": true, + "requires": { + "array-ify": "1.0.0", + "dot-prop": "3.0.0" + } + }, + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "requires": { + "buffer-from": "1.1.0", + "inherits": "2.0.3", + "readable-stream": "2.3.4", + "typedarray": "0.0.6" + } + }, + "console-stamp": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/console-stamp/-/console-stamp-0.2.6.tgz", + "integrity": "sha512-7l2MJ93tXpCWh9n5rRJHu7tNMxa9SPx8pba8kBJDROOfMFVBHPpqv141lkhcnLEYMC5npvrywH7gZ5DzYE+cSg==", + "requires": { + "chalk": "1.1.3", + "dateformat": "1.0.12", + "merge": "1.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=" + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" + } + } + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + }, + "conventional-changelog-angular": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-1.6.2.tgz", + "integrity": "sha1-CoETE95GMm5eThHawoHWHP4fAMQ=", + "dev": true, + "requires": { + "compare-func": "1.3.2", + "q": "1.5.1" + } + }, + "convict": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/convict/-/convict-4.0.2.tgz", + "integrity": "sha1-oVFl1DwhHRJfV8ZNKLxWHcKdNb4=", + "requires": { + "depd": "1.1.1", + "json5": "0.5.1", + "lodash.clonedeep": "4.5.0", + "moment": "2.19.3", + "validator": "7.2.0", + "varify": "0.2.0", + "yargs-parser": "7.0.0" + }, + "dependencies": { + "depd": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", + "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=" + }, + "validator": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-7.2.0.tgz", + "integrity": "sha512-c8NGTUYeBEcUIGeMppmNVKHE7wwfm3mYbNZxV+c5mlv9fDHI7Ad3p07qfNrn/CvpdkK2k61fOLRO2sTEhgQXmg==" + } + } + }, + "cookiejar": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz", + "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==", + "dev": true + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" + }, + "core-js": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.3.tgz", + "integrity": "sha1-isw4NFgk8W2DZbfJtCWRaOjtYD4=", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "cosmiconfig": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-3.1.0.tgz", + "integrity": "sha1-ZAqUv5hH8yGABAPNJzr2BmXHM5c=", + "dev": true, + "requires": { + "is-directory": "0.3.1", + "js-yaml": "3.10.0", + "parse-json": "3.0.0", + "require-from-string": "2.0.1" + }, + "dependencies": { + "parse-json": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-3.0.0.tgz", + "integrity": "sha1-+m9HsY4jgm6tMvJj50TQ4ehH+xM=", + "dev": true, + "requires": { + "error-ex": "1.3.1" + } + } + } + }, + "coveralls": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.2.tgz", + "integrity": "sha512-Tv0LKe/MkBOilH2v7WBiTBdudg2ChfGbdXafc/s330djpF3zKOmuehTeRwjXWc7pzfj9FrDUTA7tEx6Div8NFw==", + "dev": true, + "requires": { + "growl": "1.10.5", + "js-yaml": "3.12.0", + "lcov-parse": "0.0.10", + "log-driver": "1.2.7", + "minimist": "1.2.0", + "request": "2.87.0" + }, + "dependencies": { + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "form-data": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", + "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", + "dev": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.6", + "mime-types": "2.1.17" + }, + "dependencies": { + "combined-stream": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", + "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", + "dev": true, + "requires": { + "delayed-stream": "1.0.0" + } + } + } + }, + "js-yaml": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz", + "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", + "dev": true, + "requires": { + "argparse": "1.0.9", + "esprima": "4.0.1" + } + }, + "request": { + "version": "2.87.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz", + "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==", + "dev": true, + "requires": { + "aws-sign2": "0.7.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.3.2", + "har-validator": "5.0.3", + "http-signature": "1.2.0", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.17", + "oauth-sign": "0.8.2", + "performance-now": "2.1.0", + "qs": "6.5.1", + "safe-buffer": "5.1.1", + "tough-cookie": "2.3.3", + "tunnel-agent": "0.6.0", + "uuid": "3.3.2" + } + } + } + }, + "create-error-class": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", + "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", + "requires": { + "capture-stack-trace": "1.0.0" + } + }, + "create-react-class": { + "version": "15.6.3", + "resolved": "https://registry.npmjs.org/create-react-class/-/create-react-class-15.6.3.tgz", + "integrity": "sha1-LXMjf7P5cK5uvgEanmb0bbyoADY=", + "dev": true, + "requires": { + "fbjs": "0.8.16", + "loose-envify": "1.3.1", + "object-assign": "4.1.1" + } + }, + "crypt": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", + "integrity": "sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=" + }, + "cryptiles": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", + "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", + "requires": { + "boom": "5.2.0" + }, + "dependencies": { + "boom": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", + "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", + "requires": { + "hoek": "4.2.0" + } + } + } + }, + "currently-unhandled": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", + "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", + "requires": { + "array-find-index": "1.0.2" + } + }, + "d": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "dev": true, + "requires": { + "es5-ext": "0.10.38" + } + }, + "dargs": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/dargs/-/dargs-4.1.0.tgz", + "integrity": "sha1-A6nbtLXC8Tm/FK5T8LiipqhvThc=", + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "requires": { + "assert-plus": "1.0.0" + } + }, + "dateformat": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz", + "integrity": "sha1-nxJLZ1lMk3/3BpMuSmQsyo27/uk=", + "requires": { + "get-stdin": "4.0.1", + "meow": "3.7.0" + } + }, + "dbc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/dbc/-/dbc-3.0.0.tgz", + "integrity": "sha1-lxS5NniKf5I/fVlKW63SINBKbnA=", + "requires": { + "underscore": "1.5.2" + }, + "dependencies": { + "underscore": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz", + "integrity": "sha1-EzXF5PXm0zu7SwBrqMhqAPVW3gg=" + } + } + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=", + "requires": { + "ms": "2.0.0" + } + }, + "debug-log": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/debug-log/-/debug-log-1.0.1.tgz", + "integrity": "sha1-IwdjLUwEOCuN+KMvcLiVBG1SdF8=", + "dev": true + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" + }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" + }, + "deep-clone": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/deep-clone/-/deep-clone-3.0.3.tgz", + "integrity": "sha512-6jtXIlCBAwr3GP/7Il52clbIFIKAxg/pnNkL4/sE6+Oqb10MXMtm9LDZV2IAuwdaKV9VBm8hlxAFk9r6pF8XRw==" + }, + "deep-extend": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.2.tgz", + "integrity": "sha1-SLaZwn4zS/ifEIkr5DL25MfTSn8=" + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true + }, + "deepmerge": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.1.1.tgz", + "integrity": "sha512-urQxA1smbLZ2cBbXbaYObM1dJ82aJ2H57A1C/Kklfh/ZN1bgH4G/n5KWhdNfOK11W98gqZfyYj7W4frJJRwA2w==" + }, + "default-require-extensions": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-1.0.0.tgz", + "integrity": "sha1-836hXT4T/9m0N9M+GnW1+5eHTLg=", + "dev": true, + "requires": { + "strip-bom": "2.0.0" + } + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "requires": { + "is-descriptor": "1.0.2", + "isobject": "3.0.1" + }, + "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + } + } + }, + "deglob": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/deglob/-/deglob-2.1.0.tgz", + "integrity": "sha1-TUSr4W7zLHebSXK9FBqAMlApoUo=", + "dev": true, + "requires": { + "find-root": "1.1.0", + "glob": "7.1.2", + "ignore": "3.3.7", + "pkg-config": "1.1.1", + "run-parallel": "1.1.6", + "uniq": "1.0.1" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + } + } + }, + "del": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", + "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", + "dev": true, + "requires": { + "globby": "5.0.0", + "is-path-cwd": "1.0.0", + "is-path-in-cwd": "1.0.0", + "object-assign": "4.1.1", + "pify": "2.3.0", + "pinkie-promise": "2.0.1", + "rimraf": "2.4.5" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "demolish": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/demolish/-/demolish-1.0.2.tgz", + "integrity": "sha1-VFDAsNrIUNjYL/c4h2/Tz5C+UPE=" + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" + }, + "destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" + }, + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "dev": true, + "requires": { + "repeating": "2.0.1" + } + }, + "dicer": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/dicer/-/dicer-0.2.5.tgz", + "integrity": "sha1-WZbAhrszIYyBLAkL3cCc0S+stw8=", + "requires": { + "readable-stream": "1.1.14", + "streamsearch": "0.1.2" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" + } + } + }, + "diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true + }, + "doctrine": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz", + "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=", + "dev": true, + "requires": { + "esutils": "2.0.2", + "isarray": "1.0.0" + } + }, + "dot-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", + "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", + "dev": true, + "requires": { + "is-obj": "1.0.1" + } + }, + "double-ended-queue": { + "version": "2.1.0-0", + "resolved": "https://registry.npmjs.org/double-ended-queue/-/double-ended-queue-2.1.0-0.tgz", + "integrity": "sha1-ED01J/0xUo9AGIEwyEHv3XgmTlw=" + }, + "dtrace-provider": { + "version": "0.8.7", + "resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.7.tgz", + "integrity": "sha1-3JObTT4GIM/gwc2APQ0tftBP/QQ=", + "optional": true, + "requires": { + "nan": "2.10.0" + } + }, + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "requires": { + "readable-stream": "2.3.4" + } + }, + "ecc-jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", + "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "ecdsa-sig-formatter": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.10.tgz", + "integrity": "sha1-HFlQAPBKiJffuFAAiSoPTDOvhsM=", + "requires": { + "safe-buffer": "5.1.1" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" + }, + "encoding": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", + "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", + "dev": true, + "requires": { + "iconv-lite": "0.4.15" + } + }, + "env-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/env-test/-/env-test-1.0.0.tgz", + "integrity": "sha1-j2WMFBS37utvZ+0ZkYA3bJZRXKY=", + "dev": true + }, + "error-ex": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", + "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "requires": { + "is-arrayish": "0.2.1" + } + }, + "es5-ext": { + "version": "0.10.38", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.38.tgz", + "integrity": "sha512-jCMyePo7AXbUESwbl8Qi01VSH2piY9s/a3rSU/5w/MlTIx8HPL1xn2InGN8ejt/xulcJgnTO7vqNtOAxzYd2Kg==", + "dev": true, + "requires": { + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1" + } + }, + "es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.38", + "es6-symbol": "3.1.1" + } + }, + "es6-map": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", + "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.38", + "es6-iterator": "2.0.3", + "es6-set": "0.1.5", + "es6-symbol": "3.1.1", + "event-emitter": "0.3.5" + } + }, + "es6-set": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", + "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.38", + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1", + "event-emitter": "0.3.5" + } + }, + "es6-symbol": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", + "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.38" + } + }, + "es6-weak-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", + "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.38", + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1" + } + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + }, + "escope": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", + "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", + "dev": true, + "requires": { + "es6-map": "0.1.5", + "es6-weak-map": "2.0.2", + "esrecurse": "4.2.0", + "estraverse": "4.2.0" + } + }, + "eslint": { + "version": "3.10.2", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-3.10.2.tgz", + "integrity": "sha1-yaEOi/bp1lZRIEd4xQM0Hx6sPOc=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "chalk": "1.1.3", + "concat-stream": "1.6.2", + "debug": "2.6.9", + "doctrine": "1.5.0", + "escope": "3.6.0", + "espree": "3.5.3", + "estraverse": "4.2.0", + "esutils": "2.0.2", + "file-entry-cache": "2.0.0", + "glob": "7.1.2", + "globals": "9.18.0", + "ignore": "3.3.7", + "imurmurhash": "0.1.4", + "inquirer": "0.12.0", + "is-my-json-valid": "2.17.1", + "is-resolvable": "1.1.0", + "js-yaml": "3.10.0", + "json-stable-stringify": "1.0.1", + "levn": "0.3.0", + "lodash": "4.17.5", + "mkdirp": "0.5.1", + "natural-compare": "1.4.0", + "optionator": "0.8.2", + "path-is-inside": "1.0.2", + "pluralize": "1.2.1", + "progress": "1.1.8", + "require-uncached": "1.0.3", + "shelljs": "0.7.8", + "strip-bom": "3.0.0", + "strip-json-comments": "1.0.4", + "table": "3.8.3", + "text-table": "0.2.0", + "user-home": "2.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-json-comments": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz", + "integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=", + "dev": true + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "eslint-config-standard": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-6.2.1.tgz", + "integrity": "sha1-06aKr8cZFjnn7kQec0hzkCY1QpI=", + "dev": true + }, + "eslint-config-standard-jsx": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-config-standard-jsx/-/eslint-config-standard-jsx-3.2.0.tgz", + "integrity": "sha1-wkDibtkZoRpCqk3oBZRys4Jo1iA=", + "dev": true + }, + "eslint-plugin-promise": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-3.4.2.tgz", + "integrity": "sha1-G+J5Pq/i0YtbEjuBNsJp+AT+cSI=", + "dev": true + }, + "eslint-plugin-react": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-6.7.1.tgz", + "integrity": "sha1-Gvlq6lRYVoJRV9l8G1DVqPtkpac=", + "dev": true, + "requires": { + "doctrine": "1.5.0", + "jsx-ast-utils": "1.4.1" + } + }, + "eslint-plugin-standard": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-2.0.1.tgz", + "integrity": "sha1-NYlpn/nJF/LCX3apFmh/ZBw2n/M=", + "dev": true + }, + "espree": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/espree/-/espree-3.5.3.tgz", + "integrity": "sha512-Zy3tAJDORxQZLl2baguiRU1syPERAIg0L+JB2MWorORgTu/CplzvxS9WWA7Xh4+Q+eOQihNs/1o1Xep8cvCxWQ==", + "dev": true, + "requires": { + "acorn": "5.4.1", + "acorn-jsx": "3.0.1" + } + }, + "esprima": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.0.0.tgz", + "integrity": "sha1-U88kes2ncxPlUcOqLnM0LT+099k=", + "optional": true + }, + "esrecurse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.0.tgz", + "integrity": "sha1-+pVo2Y04I/mkHZHpAtyrnqblsWM=", + "dev": true, + "requires": { + "estraverse": "4.2.0", + "object-assign": "4.1.1" + } + }, + "estraverse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", + "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", + "dev": true + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "dev": true + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" + }, + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.38" + } + }, + "eventemitter3": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-1.1.1.tgz", + "integrity": "sha1-R3hr2qCHyvext15zq8XH1UAVjNA=" + }, + "events": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", + "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=" + }, + "exit-hook": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz", + "integrity": "sha1-8FyiM7SMBdVP/wd2XfhQfpXAL/g=", + "dev": true + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "requires": { + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "extend": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", + "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=" + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, + "extfs": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/extfs/-/extfs-0.0.7.tgz", + "integrity": "sha1-owgQ5HRZCg280NL0V63IkAnFwKs=", + "requires": { + "underscore": "1.8.3" + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "requires": { + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + } + } + }, + "extract-comments": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/extract-comments/-/extract-comments-0.7.3.tgz", + "integrity": "sha1-HF3sFzAHLFsM36VVfl9X9pJ3/DQ=", + "requires": { + "is-whitespace": "0.3.0" + } + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + }, + "faker": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/faker/-/faker-4.1.0.tgz", + "integrity": "sha1-HkW7vsxndLPBlfrSg1EJxtdIzD8=", + "dev": true + }, + "fakeredis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fakeredis/-/fakeredis-1.0.3.tgz", + "integrity": "sha1-Ulh40Gct7/mji1Rn7E86pSEeMw4=", + "dev": true, + "requires": { + "redis": "2.6.0-0" + }, + "dependencies": { + "redis": { + "version": "2.6.0-0", + "resolved": "https://registry.npmjs.org/redis/-/redis-2.6.0-0.tgz", + "integrity": "sha1-c/Z03T5Uo6dnA9HtJga05gC+B20=", + "dev": true, + "requires": { + "double-ended-queue": "2.1.0-0", + "redis-commands": "1.3.1", + "redis-parser": "1.3.0" + } + } + } + }, + "fast-deep-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz", + "integrity": "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8=" + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "fbjs": { + "version": "0.8.16", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.16.tgz", + "integrity": "sha1-XmdDL1UNxBtXK/VYR7ispk5TN9s=", + "dev": true, + "requires": { + "core-js": "1.2.7", + "isomorphic-fetch": "2.2.1", + "loose-envify": "1.3.1", + "object-assign": "4.1.1", + "promise": "7.3.1", + "setimmediate": "1.0.5", + "ua-parser-js": "0.7.17" + }, + "dependencies": { + "core-js": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", + "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=", + "dev": true + } + } + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "1.0.5", + "object-assign": "4.1.1" + } + }, + "file": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/file/-/file-0.2.2.tgz", + "integrity": "sha1-w9/Y+M81Na5FXCtCPC5SY112tNM=" + }, + "file-entry-cache": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-2.0.0.tgz", + "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=", + "dev": true, + "requires": { + "flat-cache": "1.3.0", + "object-assign": "4.1.1" + } + }, + "fileset": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/fileset/-/fileset-2.0.3.tgz", + "integrity": "sha1-jnVIqW08wjJ+5eZ0FocjozO7oqA=", + "dev": true, + "requires": { + "glob": "7.1.2", + "minimatch": "3.0.3" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + }, + "dependencies": { + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + } + } + } + } + }, + "fill-keys": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/fill-keys/-/fill-keys-1.0.2.tgz", + "integrity": "sha1-mo+jb06K1jTjv2tPPIiCVRRS6yA=", + "dev": true, + "requires": { + "is-object": "1.0.1", + "merge-descriptors": "1.0.1" + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "requires": { + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "find-parent-dir": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/find-parent-dir/-/find-parent-dir-0.3.0.tgz", + "integrity": "sha1-M8RLQpqysvBkYpnF+fcY83b/jVQ=", + "dev": true + }, + "find-root": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", + "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==", + "dev": true + }, + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "requires": { + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" + } + }, + "flat-cache": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.0.tgz", + "integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=", + "dev": true, + "requires": { + "circular-json": "0.3.3", + "del": "2.2.2", + "graceful-fs": "4.1.11", + "write": "0.2.1" + } + }, + "flexbuffer": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/flexbuffer/-/flexbuffer-0.0.6.tgz", + "integrity": "sha1-A5/fI/iCPkQMOPMnfm/vEXQhWzA=" + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=" + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + }, + "form-data": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", + "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", + "dev": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.17" + } + }, + "formatio": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.1.1.tgz", + "integrity": "sha1-XtPM1jZVEJc4NGXZlhmRAOhhYek=", + "dev": true, + "requires": { + "samsam": "1.1.2" + } + }, + "formidable": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.1.tgz", + "integrity": "sha512-Fs9VRguL0gqGHkXS5GQiMCr1VhZBxz0JnJs4JmMp/2jL18Fmbzvv7vOFRU+U8TBkHEE/CX1qDXzJplVULgsLeg==", + "dev": true + }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "requires": { + "map-cache": "0.2.2" + } + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" + }, + "fs-extra": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-3.0.1.tgz", + "integrity": "sha1-N5TzeMWLNC6n27sjCVEJxLO2IpE=", + "requires": { + "graceful-fs": "4.1.11", + "jsonfile": "3.0.1", + "universalify": "0.1.1" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fsevents": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", + "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", + "optional": true, + "requires": { + "nan": "2.10.0", + "node-pre-gyp": "0.10.0" + }, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "bundled": true, + "optional": true + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true + }, + "aproba": { + "version": "1.2.0", + "bundled": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.4", + "bundled": true, + "optional": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.3.6" + } + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true + }, + "brace-expansion": { + "version": "1.1.11", + "bundled": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "chownr": { + "version": "1.0.1", + "bundled": true, + "optional": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "optional": true + }, + "debug": { + "version": "2.6.9", + "bundled": true, + "optional": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-extend": { + "version": "0.5.1", + "bundled": true, + "optional": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "detect-libc": { + "version": "1.0.3", + "bundled": true, + "optional": true + }, + "fs-minipass": { + "version": "1.2.5", + "bundled": true, + "optional": true, + "requires": { + "minipass": "2.2.4" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "optional": true, + "requires": { + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + } + }, + "glob": { + "version": "7.1.2", + "bundled": true, + "optional": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "optional": true + }, + "iconv-lite": { + "version": "0.4.21", + "bundled": true, + "optional": true, + "requires": { + "safer-buffer": "2.1.2" + } + }, + "ignore-walk": { + "version": "3.0.1", + "bundled": true, + "optional": true, + "requires": { + "minimatch": "3.0.4" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "optional": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true + }, + "ini": { + "version": "1.3.5", + "bundled": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "requires": { + "brace-expansion": "1.1.11" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true + }, + "minipass": { + "version": "2.2.4", + "bundled": true, + "requires": { + "safe-buffer": "5.1.1", + "yallist": "3.0.2" + } + }, + "minizlib": { + "version": "1.1.0", + "bundled": true, + "optional": true, + "requires": { + "minipass": "2.2.4" + } + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "optional": true + }, + "nan": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", + "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==", + "optional": true + }, + "needle": { + "version": "2.2.0", + "bundled": true, + "optional": true, + "requires": { + "debug": "2.6.9", + "iconv-lite": "0.4.21", + "sax": "1.2.4" + } + }, + "node-pre-gyp": { + "version": "0.10.0", + "bundled": true, + "optional": true, + "requires": { + "detect-libc": "1.0.3", + "mkdirp": "0.5.1", + "needle": "2.2.0", + "nopt": "4.0.1", + "npm-packlist": "1.1.10", + "npmlog": "4.1.2", + "rc": "1.2.7", + "rimraf": "2.6.2", + "semver": "5.5.0", + "tar": "4.4.1" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "optional": true, + "requires": { + "abbrev": "1.1.1", + "osenv": "0.1.5" + } + }, + "npm-bundled": { + "version": "1.0.3", + "bundled": true, + "optional": true + }, + "npm-packlist": { + "version": "1.1.10", + "bundled": true, + "optional": true, + "requires": { + "ignore-walk": "3.0.1", + "npm-bundled": "1.0.3" + } + }, + "npmlog": { + "version": "4.1.2", + "bundled": true, + "optional": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "optional": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "optional": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "optional": true + }, + "osenv": { + "version": "0.1.5", + "bundled": true, + "optional": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "optional": true + }, + "process-nextick-args": { + "version": "2.0.0", + "bundled": true, + "optional": true + }, + "rc": { + "version": "1.2.7", + "bundled": true, + "optional": true, + "requires": { + "deep-extend": "0.5.1", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.3.6", + "bundled": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.1.1", + "util-deprecate": "1.0.2" + } + }, + "rimraf": { + "version": "2.6.2", + "bundled": true, + "optional": true, + "requires": { + "glob": "7.1.2" + } + }, + "safe-buffer": { + "version": "5.1.1", + "bundled": true + }, + "safer-buffer": { + "version": "2.1.2", + "bundled": true, + "optional": true + }, + "sax": { + "version": "1.2.4", + "bundled": true, + "optional": true + }, + "semver": { + "version": "5.5.0", + "bundled": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "optional": true + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "bundled": true, + "optional": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "optional": true + }, + "tar": { + "version": "4.4.1", + "bundled": true, + "optional": true, + "requires": { + "chownr": "1.0.1", + "fs-minipass": "1.2.5", + "minipass": "2.2.4", + "minizlib": "1.1.0", + "mkdirp": "0.5.1", + "safe-buffer": "5.1.1", + "yallist": "3.0.2" + } + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "optional": true + }, + "wide-align": { + "version": "1.1.2", + "bundled": true, + "optional": true, + "requires": { + "string-width": "1.0.2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true + }, + "yallist": { + "version": "3.0.2", + "bundled": true + } + } + }, + "fsu": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/fsu/-/fsu-1.0.4.tgz", + "integrity": "sha1-WGqPvY0ZrN8zDOy88X1kHpw3C6A=", + "dev": true + }, + "generate-function": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz", + "integrity": "sha1-aFj+fAlpt9TpCTM3ZHrHn2DfvnQ=", + "dev": true + }, + "generate-object-property": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz", + "integrity": "sha1-nA4cQDCM6AT0eDYYuTf6iPmdUNA=", + "dev": true, + "requires": { + "is-property": "1.0.2" + } + }, + "get-caller-file": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", + "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", + "dev": true + }, + "get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=" + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "requires": { + "assert-plus": "1.0.0" + } + }, + "gfm-code-block-regex": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/gfm-code-block-regex/-/gfm-code-block-regex-0.2.3.tgz", + "integrity": "sha1-C5/mis8sWlAi/W0tQYpjT26XwRA=" + }, + "gfm-code-blocks": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/gfm-code-blocks/-/gfm-code-blocks-0.2.2.tgz", + "integrity": "sha1-KZnYFIxFG4ZjLHH6bevhFe4HH/4=", + "requires": { + "gfm-code-block-regex": "0.2.3" + } + }, + "glob": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", + "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=", + "requires": { + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.3", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "requires": { + "is-glob": "3.1.0", + "path-dirname": "1.0.2" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "requires": { + "is-extglob": "2.1.1" + } + } + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true + }, + "globby": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", + "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", + "dev": true, + "requires": { + "array-union": "1.0.2", + "arrify": "1.0.1", + "glob": "7.1.2", + "object-assign": "4.1.1", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + } + } + }, + "got": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/got/-/got-5.7.1.tgz", + "integrity": "sha1-X4FjWmHkplifGAVp6k44FoClHzU=", + "requires": { + "create-error-class": "3.0.2", + "duplexer2": "0.1.4", + "is-redirect": "1.0.0", + "is-retry-allowed": "1.1.0", + "is-stream": "1.1.0", + "lowercase-keys": "1.0.0", + "node-status-codes": "1.0.0", + "object-assign": "4.1.1", + "parse-json": "2.2.0", + "pinkie-promise": "2.0.1", + "read-all-stream": "3.1.0", + "readable-stream": "2.3.4", + "timed-out": "3.1.3", + "unzip-response": "1.0.2", + "url-parse-lax": "1.0.0" + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + }, + "growl": { + "version": "1.10.5", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", + "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", + "dev": true + }, + "handlebars": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.11.tgz", + "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", + "dev": true, + "requires": { + "async": "1.5.2", + "optimist": "0.6.1", + "source-map": "0.4.4", + "uglify-js": "2.8.29" + }, + "dependencies": { + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "dev": true + }, + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + }, + "har-validator": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", + "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", + "requires": { + "ajv": "5.5.2", + "har-schema": "2.0.0" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "requires": { + "ansi-regex": "2.1.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "requires": { + "get-value": "2.0.6", + "has-values": "1.0.0", + "isobject": "3.0.1" + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" + }, + "dependencies": { + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "hawk": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", + "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", + "requires": { + "boom": "4.3.1", + "cryptiles": "3.1.2", + "hoek": "4.2.0", + "sntp": "2.1.0" + } + }, + "he": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", + "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", + "dev": true + }, + "hoek": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.0.tgz", + "integrity": "sha512-v0XCLxICi9nPfYrS9RL8HbYnXi9obYAeLbSP00BmnZwCK9+Ih9WOjoZ8YoHCoav2csqn4FOz4Orldsy2dmDwmQ==" + }, + "home-or-tmp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", + "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "dev": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "hosted-git-info": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz", + "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==" + }, + "http-errors": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz", + "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", + "requires": { + "depd": "1.1.1", + "inherits": "2.0.3", + "setprototypeof": "1.0.3", + "statuses": "1.4.0" + }, + "dependencies": { + "depd": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", + "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=" + } + } + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "requires": { + "assert-plus": "1.0.0", + "jsprim": "1.4.1", + "sshpk": "1.13.1" + } + }, + "husky": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/husky/-/husky-0.13.4.tgz", + "integrity": "sha1-SHhcUCjeNFKlHEjBLE+UshJKFAc=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "find-parent-dir": "0.3.0", + "is-ci": "1.1.0", + "normalize-path": "1.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "normalize-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-1.0.0.tgz", + "integrity": "sha1-MtDkcvkf80VwHBWoMRAY07CpA3k=", + "dev": true + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "iconv-lite": { + "version": "0.4.15", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.15.tgz", + "integrity": "sha1-/iZaIYrGpXz+hUkn6dBMGYJe3es=", + "dev": true + }, + "ieee754": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz", + "integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=" + }, + "ignore": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.7.tgz", + "integrity": "sha512-YGG3ejvBNHRqu0559EOxxNFihD0AjpvHlC/pdGKd3X3ofe+CoJkYazwNJYTNebqpPKN+VVQbh4ZFn1DivMNuHA==", + "dev": true + }, + "imagesize": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/imagesize/-/imagesize-1.0.0.tgz", + "integrity": "sha1-2xYdFb8YKjbVbhmrrRB5PDLDTDA=" + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, + "indent-string": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", + "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", + "requires": { + "repeating": "2.0.1" + } + }, + "inflection": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.12.0.tgz", + "integrity": "sha1-ogCTVlbW9fa8TcdQLhrstwMihBY=" + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "ini": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" + }, + "inquirer": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-0.12.0.tgz", + "integrity": "sha1-HvK/1jUE3wvHV4X/+MLEHfEvB34=", + "dev": true, + "requires": { + "ansi-escapes": "1.4.0", + "ansi-regex": "2.1.1", + "chalk": "1.1.3", + "cli-cursor": "1.0.2", + "cli-width": "2.2.0", + "figures": "1.7.0", + "lodash": "4.17.5", + "readline2": "1.0.1", + "run-async": "0.1.0", + "rx-lite": "3.1.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "through": "2.3.8" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "cli-cursor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", + "integrity": "sha1-ZNo/fValRBLll5S9Ytw1KV6PKYc=", + "dev": true, + "requires": { + "restore-cursor": "1.0.1" + } + }, + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + }, + "onetime": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", + "dev": true + }, + "restore-cursor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz", + "integrity": "sha1-NGYfRohjJ/7SmRR5FSJS35LapUE=", + "dev": true, + "requires": { + "exit-hook": "1.1.1", + "onetime": "1.1.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "interpret": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", + "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=", + "dev": true + }, + "invariant": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.2.tgz", + "integrity": "sha1-nh9WrArNtr8wMwbzOL47IErmA2A=", + "dev": true, + "requires": { + "loose-envify": "1.3.1" + } + }, + "invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "dev": true + }, + "ioredis": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-2.5.0.tgz", + "integrity": "sha1-+2/fChp+CXRhTGe25eETCKjPlbk=", + "requires": { + "bluebird": "3.5.1", + "cluster-key-slot": "1.0.12", + "debug": "2.6.9", + "double-ended-queue": "2.1.0-0", + "flexbuffer": "0.0.6", + "lodash": "4.17.10", + "redis-commands": "1.3.1", + "redis-parser": "1.3.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "lodash": { + "version": "4.17.10", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", + "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" + } + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "requires": { + "binary-extensions": "1.11.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, + "is-builtin-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", + "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", + "requires": { + "builtin-modules": "1.1.1" + } + }, + "is-ci": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.1.0.tgz", + "integrity": "sha512-c7TnwxLePuqIlxHgr7xtxzycJPegNHFuIrBkwbf8hc58//+Op1CqFkyS+xnIMkwn9UsJIwc174BIjkyBmSpjKg==", + "dev": true, + "requires": { + "ci-info": "1.1.2" + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + } + } + }, + "is-directory": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", + "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", + "dev": true + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" + }, + "is-finite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-glob": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", + "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", + "requires": { + "is-extglob": "2.1.1" + } + }, + "is-my-json-valid": { + "version": "2.17.1", + "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.17.1.tgz", + "integrity": "sha512-Q2khNw+oBlWuaYvEEHtKSw/pCxD2L5Rc1C+UQme9X6JdRDh7m5D7HkozA0qa3DUkQ6VzCnEm8mVIQPyIRkI5sQ==", + "dev": true, + "requires": { + "generate-function": "2.0.0", + "generate-object-property": "1.2.0", + "jsonpointer": "4.0.1", + "xtend": "4.0.1" + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "dev": true + }, + "is-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz", + "integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA=", + "dev": true + }, + "is-path-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", + "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", + "dev": true + }, + "is-path-in-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz", + "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=", + "dev": true, + "requires": { + "is-path-inside": "1.0.1" + } + }, + "is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", + "dev": true, + "requires": { + "path-is-inside": "1.0.2" + } + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "requires": { + "isobject": "3.0.1" + } + }, + "is-property": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", + "integrity": "sha1-V/4cTkhHTt1lsJkR8msc1Ald2oQ=", + "dev": true + }, + "is-redirect": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", + "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=" + }, + "is-resolvable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", + "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", + "dev": true + }, + "is-retry-allowed": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz", + "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=" + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + }, + "is-text-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", + "integrity": "sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4=", + "dev": true, + "requires": { + "text-extensions": "1.7.0" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=" + }, + "is-whitespace": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/is-whitespace/-/is-whitespace-0.3.0.tgz", + "integrity": "sha1-Fjnssb4DauxppUy7QBz77XEUq38=" + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + }, + "isomorphic-fetch": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", + "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", + "dev": true, + "requires": { + "node-fetch": "1.7.3", + "whatwg-fetch": "2.0.3" + } + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + }, + "istanbul": { + "version": "1.1.0-alpha.1", + "resolved": "https://registry.npmjs.org/istanbul/-/istanbul-1.1.0-alpha.1.tgz", + "integrity": "sha1-eBeVZWAYohdMX2DzZ+5dNhy1e3c=", + "dev": true, + "requires": { + "abbrev": "1.0.9", + "async": "1.5.2", + "istanbul-api": "1.2.1", + "js-yaml": "3.10.0", + "mkdirp": "0.5.1", + "nopt": "3.0.6", + "which": "1.3.0", + "wordwrap": "1.0.0" + }, + "dependencies": { + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "dev": true + } + } + }, + "istanbul-api": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/istanbul-api/-/istanbul-api-1.2.1.tgz", + "integrity": "sha512-oFCwXvd65amgaPCzqrR+a2XjanS1MvpXN6l/MlMUTv6uiA1NOgGX+I0uyq8Lg3GDxsxPsaP1049krz3hIJ5+KA==", + "dev": true, + "requires": { + "async": "2.6.1", + "fileset": "2.0.3", + "istanbul-lib-coverage": "1.1.1", + "istanbul-lib-hook": "1.1.0", + "istanbul-lib-instrument": "1.9.1", + "istanbul-lib-report": "1.1.2", + "istanbul-lib-source-maps": "1.2.2", + "istanbul-reports": "1.1.3", + "js-yaml": "3.10.0", + "mkdirp": "0.5.1", + "once": "1.4.0" + } + }, + "istanbul-cobertura-badger": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/istanbul-cobertura-badger/-/istanbul-cobertura-badger-1.3.1.tgz", + "integrity": "sha1-PNkMQrZSRthYmOA7TWn3tsis4zQ=", + "dev": true, + "requires": { + "commander": "2.14.1", + "xml-splitter": "1.2.1", + "xtend": "4.0.1" + } + }, + "istanbul-lib-coverage": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-1.1.1.tgz", + "integrity": "sha512-0+1vDkmzxqJIn5rcoEqapSB4DmPxE31EtI2dF2aCkV5esN9EWHxZ0dwgDClivMXJqE7zaYQxq30hj5L0nlTN5Q==", + "dev": true + }, + "istanbul-lib-hook": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-1.1.0.tgz", + "integrity": "sha512-U3qEgwVDUerZ0bt8cfl3dSP3S6opBoOtk3ROO5f2EfBr/SRiD9FQqzwaZBqFORu8W7O0EXpai+k7kxHK13beRg==", + "dev": true, + "requires": { + "append-transform": "0.4.0" + } + }, + "istanbul-lib-instrument": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-1.9.1.tgz", + "integrity": "sha512-RQmXeQ7sphar7k7O1wTNzVczF9igKpaeGQAG9qR2L+BS4DCJNTI9nytRmIVYevwO0bbq+2CXvJmYDuz0gMrywA==", + "dev": true, + "requires": { + "babel-generator": "6.26.1", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "istanbul-lib-coverage": "1.1.1", + "semver": "5.5.0" + } + }, + "istanbul-lib-report": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-1.1.2.tgz", + "integrity": "sha512-UTv4VGx+HZivJQwAo1wnRwe1KTvFpfi/NYwN7DcsrdzMXwpRT/Yb6r4SBPoHWj4VuQPakR32g4PUUeyKkdDkBA==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "1.1.1", + "mkdirp": "0.5.1", + "path-parse": "1.0.5", + "supports-color": "3.2.3" + }, + "dependencies": { + "has-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", + "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", + "dev": true + }, + "supports-color": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", + "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", + "dev": true, + "requires": { + "has-flag": "1.0.0" + } + } + } + }, + "istanbul-lib-source-maps": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.2.tgz", + "integrity": "sha512-8BfdqSfEdtip7/wo1RnrvLpHVEd8zMZEDmOFEnpC6dg0vXflHt9nvoAyQUzig2uMSXfF2OBEYBV3CVjIL9JvaQ==", + "dev": true, + "requires": { + "debug": "3.1.0", + "istanbul-lib-coverage": "1.1.1", + "mkdirp": "0.5.1", + "rimraf": "2.6.2", + "source-map": "0.5.7" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + }, + "rimraf": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "dev": true, + "requires": { + "glob": "7.1.2" + } + } + } + }, + "istanbul-reports": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-1.1.3.tgz", + "integrity": "sha512-ZEelkHh8hrZNI5xDaKwPMFwDsUf5wIEI2bXAFGp1e6deR2mnEKBPhLJEgr4ZBt8Gi6Mj38E/C8kcy9XLggVO2Q==", + "dev": true, + "requires": { + "handlebars": "4.0.11" + } + }, + "jmespath": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.15.0.tgz", + "integrity": "sha1-o/Iiqarp+Wb10nx5ZRDigJF2Qhc=" + }, + "js-promise-queue": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/js-promise-queue/-/js-promise-queue-1.1.0.tgz", + "integrity": "sha512-cPGuny7ogxJ8StsPKMxcWC4d6g5xngiYgbtVXitksYIsKM05KBKLzZLxMr7rWTulCp0wEcJ8Nh973z4Do1I2lg==" + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true + }, + "js-yaml": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz", + "integrity": "sha512-O2v52ffjLa9VeM43J4XocZE//WT9N0IiwDa3KSHH7Tu8CtH+1qM8SIZvnsTh6v+4yFy5KUY3BHUVwjpfAWsjIA==", + "dev": true, + "requires": { + "argparse": "1.0.9", + "esprima": "4.0.0" + }, + "dependencies": { + "esprima": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz", + "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==", + "dev": true + } + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "optional": true + }, + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" + }, + "json-stable-stringify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", + "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", + "requires": { + "jsonify": "0.0.0" + } + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + }, + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=" + }, + "jsonfile": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-3.0.1.tgz", + "integrity": "sha1-pezG9l9T9mLEQVx2daAzHQmS7GY=", + "requires": { + "graceful-fs": "4.1.11" + } + }, + "jsonify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", + "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=" + }, + "jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", + "dev": true + }, + "jsonpointer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", + "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=", + "dev": true + }, + "jsonwebtoken": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.3.0.tgz", + "integrity": "sha512-oge/hvlmeJCH+iIz1DwcO7vKPkNGJHhgkspk8OH3VKlw+mbi42WtD4ig1+VXRln765vxptAv+xT26Fd3cteqag==", + "requires": { + "jws": "3.1.5", + "lodash.includes": "4.3.0", + "lodash.isboolean": "3.0.3", + "lodash.isinteger": "4.0.4", + "lodash.isnumber": "3.0.3", + "lodash.isplainobject": "4.0.6", + "lodash.isstring": "4.0.1", + "lodash.once": "4.1.1", + "ms": "2.1.1" + }, + "dependencies": { + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + } + } + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "jsx-ast-utils": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz", + "integrity": "sha1-OGchPo3Xm/Ho8jAMDPwe+xgsDfE=", + "dev": true + }, + "jwa": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.1.6.tgz", + "integrity": "sha512-tBO/cf++BUsJkYql/kBbJroKOgHWEigTKBAjjBEmrMGYd1QMBC74Hr4Wo2zCZw6ZrVhlJPvoMrkcOnlWR/DJfw==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.10", + "safe-buffer": "5.1.1" + } + }, + "jws": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.1.5.tgz", + "integrity": "sha512-GsCSexFADNQUr8T5HPJvayTjvPIfoyJPtLQBwn5a4WZQchcrPMPMAWcC1AzJVRDKyD6ZPROPAxgv6rfHViO4uQ==", + "requires": { + "jwa": "1.1.6", + "safe-buffer": "5.1.1" + } + }, + "keypress": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/keypress/-/keypress-0.2.1.tgz", + "integrity": "sha1-HoBFQlABjbrUw/6USX1uZ7YmnHc=" + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" + }, + "kinesis": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/kinesis/-/kinesis-1.2.2.tgz", + "integrity": "sha1-YYVWE2u1zegvK2/qTKZT/d64DDc=", + "requires": { + "async": "0.9.2", + "aws4": "0.3.0", + "awscred": "1.4.1", + "lru-cache": "2.7.3", + "once": "1.4.0" + }, + "dependencies": { + "async": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", + "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=" + }, + "aws4": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-0.3.0.tgz", + "integrity": "sha1-rLKGeN4AUWd5NC6/GHbzGqr8f9Q=", + "requires": { + "lru-cache": "2.3.1" + }, + "dependencies": { + "lru-cache": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.3.1.tgz", + "integrity": "sha1-s632s9hW6VTiw5DmzvIggSRaU9Y=" + } + } + } + } + }, + "langs": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/langs/-/langs-2.0.0.tgz", + "integrity": "sha1-AMMs5IFSpJphRFC5uiYyq1igo2Q=" + }, + "latest-version": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-2.0.0.tgz", + "integrity": "sha1-VvjWE5YghHuAF/jx9NeOIRMkFos=", + "requires": { + "package-json": "2.4.0" + } + }, + "lazy-cache": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", + "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", + "dev": true, + "optional": true + }, + "lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "dev": true, + "requires": { + "invert-kv": "1.0.0" + } + }, + "lcov-parse": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-0.0.10.tgz", + "integrity": "sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=", + "dev": true + }, + "length-stream": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/length-stream/-/length-stream-0.1.1.tgz", + "integrity": "sha1-5ySxvi46lh1MQxNDfkllaRD65tY=", + "requires": { + "pass-stream": "0.1.5" + } + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "requires": { + "prelude-ls": "1.1.2", + "type-check": "0.3.2" + } + }, + "load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "2.2.0", + "pify": "2.3.0", + "pinkie-promise": "2.0.1", + "strip-bom": "2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "2.0.0", + "path-exists": "3.0.0" + }, + "dependencies": { + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + } + } + }, + "lodash": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", + "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=" + }, + "lodash._reinterpolate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", + "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", + "dev": true + }, + "lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=" + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=" + }, + "lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" + }, + "lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=" + }, + "lodash.isfunction": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz", + "integrity": "sha1-Bt4l302zJ6yTGYHRvbBn5a9o0FE=", + "dev": true + }, + "lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=" + }, + "lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=" + }, + "lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" + }, + "lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" + }, + "lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=" + }, + "lodash.template": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.4.0.tgz", + "integrity": "sha1-5zoDhcg1VZF0bgILmWecaQ5o+6A=", + "dev": true, + "requires": { + "lodash._reinterpolate": "3.0.0", + "lodash.templatesettings": "4.1.0" + } + }, + "lodash.templatesettings": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.1.0.tgz", + "integrity": "sha1-K01OlbpEDZFf8IvImeRVNmZxMxY=", + "dev": true, + "requires": { + "lodash._reinterpolate": "3.0.0" + } + }, + "log-driver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz", + "integrity": "sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==", + "dev": true + }, + "log-symbols": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", + "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", + "requires": { + "chalk": "2.3.1" + } + }, + "lokijs": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/lokijs/-/lokijs-1.5.5.tgz", + "integrity": "sha1-HCH4KvdXkDf63nueSBNIXCNwi7Y=", + "dev": true + }, + "lolex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.3.2.tgz", + "integrity": "sha1-fD2mL/yzDw9agKJWbKJORdigHzE=", + "dev": true + }, + "longest": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "dev": true + }, + "loose-envify": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", + "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", + "dev": true, + "requires": { + "js-tokens": "3.0.2" + } + }, + "loud-rejection": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", + "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "requires": { + "currently-unhandled": "0.4.1", + "signal-exit": "3.0.2" + } + }, + "lowercase-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=" + }, + "lru-cache": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", + "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=" + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=" + }, + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=" + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "requires": { + "object-visit": "1.0.1" + } + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" + }, + "memorystream": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", + "integrity": "sha1-htcJCzDORV1j+64S3aUaR93K+bI=" + }, + "meow": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", + "requires": { + "camelcase-keys": "2.1.0", + "decamelize": "1.2.0", + "loud-rejection": "1.6.0", + "map-obj": "1.0.1", + "minimist": "1.2.0", + "normalize-package-data": "2.4.0", + "object-assign": "4.1.1", + "read-pkg-up": "1.0.1", + "redent": "1.0.0", + "trim-newlines": "1.0.0" + } + }, + "merge": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/merge/-/merge-1.2.0.tgz", + "integrity": "sha1-dTHjnUlJwoGma4xabgJl6LBYlNo=" + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", + "dev": true + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "dev": true + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.13", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + } + }, + "millisecond": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/millisecond/-/millisecond-0.1.2.tgz", + "integrity": "sha1-bMWtOGJByrjniv+WT4cCjuyS2sU=" + }, + "mime": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.3.1.tgz", + "integrity": "sha512-OEUllcVoydBHGN1z84yfQDimn58pZNNNXgZlHXSboxMlFvgI6MXSWpWKpFRra7H1HxpVhHTkrghfRW49k6yjeg==" + }, + "mime-db": { + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz", + "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=" + }, + "mime-types": { + "version": "2.1.17", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz", + "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=", + "requires": { + "mime-db": "1.30.0" + } + }, + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==" + }, + "minimatch": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz", + "integrity": "sha1-Kk5AkLlrLbBqnX3wEFWmKnfJt3Q=", + "requires": { + "brace-expansion": "1.1.11" + } + }, + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" + }, + "mixin-deep": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", + "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "requires": { + "for-in": "1.0.2", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "requires": { + "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + } + } + }, + "mocha": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.2.0.tgz", + "integrity": "sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==", + "dev": true, + "requires": { + "browser-stdout": "1.3.1", + "commander": "2.15.1", + "debug": "3.1.0", + "diff": "3.5.0", + "escape-string-regexp": "1.0.5", + "glob": "7.1.2", + "growl": "1.10.5", + "he": "1.1.1", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "supports-color": "5.4.0" + }, + "dependencies": { + "commander": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "dev": true + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + }, + "supports-color": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, + "mochawesome": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/mochawesome/-/mochawesome-2.3.1.tgz", + "integrity": "sha1-Q7JEXkuiX1hbzaaeVZLAgV+cNwk=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "chalk": "1.1.3", + "diff": "3.4.0", + "json-stringify-safe": "5.0.1", + "lodash": "4.17.5", + "mochawesome-report-generator": "2.3.2", + "strip-ansi": "4.0.0", + "uuid": "3.3.2" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + }, + "dependencies": { + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + } + } + }, + "diff": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.4.0.tgz", + "integrity": "sha1-sdhVB9rzlkgo3lSzfQ1zumfdpWw=", + "dev": true + }, + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + } + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "mochawesome-report-generator": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/mochawesome-report-generator/-/mochawesome-report-generator-2.3.2.tgz", + "integrity": "sha1-OmiFmW0yg2Ej/kAttDdOkJ5UoSc=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "dateformat": "2.2.0", + "fs-extra": "3.0.1", + "fsu": "1.0.4", + "lodash.isfunction": "3.0.9", + "opener": "1.4.3", + "prop-types": "15.6.0", + "react": "15.6.2", + "react-dom": "15.6.2", + "tcomb": "3.2.24", + "tcomb-validation": "3.4.1", + "validator": "7.2.0", + "yargs": "7.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "camelcase": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "dev": true, + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wrap-ansi": "2.1.0" + } + }, + "dateformat": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz", + "integrity": "sha1-QGXiATz5+5Ft39gu+1Bq1MZ2kGI=", + "dev": true + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + }, + "validator": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-7.2.0.tgz", + "integrity": "sha512-c8NGTUYeBEcUIGeMppmNVKHE7wwfm3mYbNZxV+c5mlv9fDHI7Ad3p07qfNrn/CvpdkK2k61fOLRO2sTEhgQXmg==", + "dev": true + }, + "yargs": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", + "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", + "dev": true, + "requires": { + "camelcase": "3.0.0", + "cliui": "3.2.0", + "decamelize": "1.2.0", + "get-caller-file": "1.0.2", + "os-locale": "1.4.0", + "read-pkg-up": "1.0.1", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "1.0.2", + "which-module": "1.0.0", + "y18n": "3.2.1", + "yargs-parser": "5.0.0" + } + }, + "yargs-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", + "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", + "dev": true, + "requires": { + "camelcase": "3.0.0" + } + } + } + }, + "mock-require": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mock-require/-/mock-require-3.0.2.tgz", + "integrity": "sha512-aD/Y1ZFHqw5pHg3HVQ50dLbfaAAcytS6sqLuhP51Dk3TSPdFb2VkSAa3mjrHifLIlGAtwQHJHINafAyqAne7vA==", + "dev": true, + "requires": { + "get-caller-file": "1.0.2", + "normalize-path": "2.1.1" + } + }, + "module-not-found-error": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/module-not-found-error/-/module-not-found-error-1.0.1.tgz", + "integrity": "sha1-z4tP9PKWQGdNbN0CsOO8UjwrvcA=", + "dev": true + }, + "moment": { + "version": "2.19.3", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.19.3.tgz", + "integrity": "sha1-vbmdJw1tf9p4zA+6zoVeJ/59pp8=" + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "mute-stream": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.5.tgz", + "integrity": "sha1-j7+rsKmKJT0xhDMfno3rc3L6xsA=", + "dev": true + }, + "mv": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz", + "integrity": "sha1-rmzg1vbV4KT32JN5jQPB6pVZtqI=", + "optional": true, + "requires": { + "mkdirp": "0.5.1", + "ncp": "2.0.0", + "rimraf": "2.4.5" + } + }, + "nan": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", + "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==", + "optional": true + }, + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "fragment-cache": "0.2.1", + "is-windows": "1.0.2", + "kind-of": "6.0.2", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + } + }, + "native-promise-only": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz", + "integrity": "sha1-IKMYwwy0X3H+et+/eyHJnBRy7xE=", + "dev": true + }, + "natural": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/natural/-/natural-0.6.1.tgz", + "integrity": "sha1-Iwe/BPFyAShq6hRjCgj31/vC0GA=", + "requires": { + "afinn-165": "1.0.2", + "apparatus": "0.0.10", + "json-stable-stringify": "1.0.1", + "sylvester": "0.0.12", + "underscore": "1.8.3" + } + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "ncp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", + "integrity": "sha1-GVoh1sRuNh0vsSgbo4uR6d9727M=", + "optional": true + }, + "node-fetch": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", + "integrity": "sha1-mA9vcthSEaU0fGsrwYxbhMPrR+8=", + "dev": true, + "requires": { + "encoding": "0.1.12", + "is-stream": "1.1.0" + } + }, + "node-redis-streamify": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/node-redis-streamify/-/node-redis-streamify-0.1.6.tgz", + "integrity": "sha1-RTJLalyGxcuctAkjmpA7aH8tGm8=", + "requires": { + "underscore": "1.7.0" + }, + "dependencies": { + "underscore": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", + "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=" + } + } + }, + "node-status-codes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-status-codes/-/node-status-codes-1.0.0.tgz", + "integrity": "sha1-WuVUHQJGRdMqWPzdyc7s6nrjrC8=" + }, + "nopt": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", + "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", + "dev": true, + "requires": { + "abbrev": "1.0.9" + } + }, + "normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", + "requires": { + "hosted-git-info": "2.5.0", + "is-builtin-module": "1.0.0", + "semver": "5.5.0", + "validate-npm-package-license": "3.0.1" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "requires": { + "remove-trailing-separator": "1.1.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" + }, + "oauth-sign": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", + "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "requires": { + "copy-descriptor": "0.1.1", + "define-property": "0.2.5", + "kind-of": "3.2.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "requires": { + "is-descriptor": "0.1.6" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "object-path": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/object-path/-/object-path-0.11.4.tgz", + "integrity": "sha1-NwrnUvvzfePqcKhhwju6iRVpGUk=" + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "requires": { + "isobject": "3.0.1" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "requires": { + "isobject": "3.0.1" + } + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "requires": { + "ee-first": "1.1.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1.0.2" + } + }, + "one-time": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/one-time/-/one-time-0.0.4.tgz", + "integrity": "sha1-+M33eISCb+Tf+T46nMN7HkSAdC4=" + }, + "onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", + "requires": { + "mimic-fn": "1.2.0" + } + }, + "opener": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.4.3.tgz", + "integrity": "sha1-XG2ixdflgx6P+jlklQ+NZnSskLg=", + "dev": true + }, + "optimist": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", + "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", + "dev": true, + "requires": { + "minimist": "0.0.10", + "wordwrap": "0.0.3" + }, + "dependencies": { + "minimist": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", + "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", + "dev": true + }, + "wordwrap": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", + "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", + "dev": true + } + } + }, + "optionator": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", + "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "dev": true, + "requires": { + "deep-is": "0.1.3", + "fast-levenshtein": "2.0.6", + "levn": "0.3.0", + "prelude-ls": "1.1.2", + "type-check": "0.3.2", + "wordwrap": "1.0.0" + } + }, + "ora": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/ora/-/ora-1.4.0.tgz", + "integrity": "sha512-iMK1DOQxzzh2MBlVsU42G80mnrvUhqsMh74phHtDlrcTZPK0pH6o7l7DRshK+0YsxDyEuaOkziVdvM3T0QTzpw==", + "requires": { + "chalk": "2.3.1", + "cli-cursor": "2.1.0", + "cli-spinners": "1.3.1", + "log-symbols": "2.2.0" + } + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "os-locale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "dev": true, + "requires": { + "lcid": "1.0.0" + } + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, + "p-limit": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", + "integrity": "sha1-DpK2vty1nwIsE9DxlJ3ILRWQnxw=", + "dev": true, + "requires": { + "p-try": "1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "1.2.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "package-json": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-2.4.0.tgz", + "integrity": "sha1-DRW9Z9HLvduyyiIv8u24a8sxqLs=", + "requires": { + "got": "5.7.1", + "registry-auth-token": "3.3.2", + "registry-url": "3.1.0", + "semver": "5.5.0" + } + }, + "parse-code-context": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/parse-code-context/-/parse-code-context-0.1.3.tgz", + "integrity": "sha1-sMr+ZcNLkWQ0EAAz6zNOnSgstGE=" + }, + "parse-comments": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/parse-comments/-/parse-comments-0.4.3.tgz", + "integrity": "sha1-aMlV8eybZVpPJBsRJMedsTENZ70=", + "requires": { + "arrayify-compact": "0.1.0", + "extract-comments": "0.7.3", + "gfm-code-blocks": "0.2.2", + "inflection": "1.12.0", + "lodash": "3.10.1", + "parse-code-context": "0.1.3" + } + }, + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "requires": { + "error-ex": "1.3.1" + } + }, + "parseurl": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", + "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=" + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=" + }, + "pass-stream": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/pass-stream/-/pass-stream-0.1.5.tgz", + "integrity": "sha1-njr6TVglzdE3YHW9tW3jbfszZJ8=", + "requires": { + "readable-stream": "https://github.com/jeffbski/readable-stream/archive/v1.0.2-object-transform2-ret-self.tar.gz" + }, + "dependencies": { + "readable-stream": { + "version": "https://github.com/jeffbski/readable-stream/archive/v1.0.2-object-transform2-ret-self.tar.gz", + "integrity": "sha512-4DfqsAX+1OToUZ/uHLsC3NUHN7wCn2BNfkG/Eyr2ii4c4suSipjLFbVymS7pj49+aRcSutnK9dIuHS3X7fwApQ==" + } + } + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=" + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "requires": { + "pinkie-promise": "2.0.1" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "dev": true + }, + "path-to-regexp": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz", + "integrity": "sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=", + "requires": { + "isarray": "0.0.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" + } + } + }, + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "requires": { + "graceful-fs": "4.1.11", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + } + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=" + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "requires": { + "pinkie": "2.0.4" + } + }, + "pkg-config": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pkg-config/-/pkg-config-1.1.1.tgz", + "integrity": "sha1-VX7yLXPaPIg3EHdmxS6tq94pj+Q=", + "dev": true, + "requires": { + "debug-log": "1.0.1", + "find-root": "1.1.0", + "xtend": "4.0.1" + } + }, + "pluralize": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-1.2.1.tgz", + "integrity": "sha1-0aIUg/0iu0HlihL6NCGCMUCJfEU=", + "dev": true + }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true + }, + "prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=" + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" + }, + "progress": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/progress/-/progress-1.1.8.tgz", + "integrity": "sha1-4mDHj2Fhzdmw5WzD4Khd4Xx6V74=", + "dev": true + }, + "promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha1-BktyYCsY+Q8pGSuLG8QY/9Hr078=", + "dev": true, + "requires": { + "asap": "2.0.6" + } + }, + "promise-polyfill": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-1.1.6.tgz", + "integrity": "sha1-zQTv9G9clcOn0EVZHXm14+AfEtc=" + }, + "prop-types": { + "version": "15.6.0", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.0.tgz", + "integrity": "sha1-zq8IMCL8RrSjX2nhPvda7Q1jmFY=", + "dev": true, + "requires": { + "fbjs": "0.8.16", + "loose-envify": "1.3.1", + "object-assign": "4.1.1" + } + }, + "proxyquire": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/proxyquire/-/proxyquire-1.8.0.tgz", + "integrity": "sha1-AtUUpb7ZhvBMuyCTrxZ0FTX3ntw=", + "dev": true, + "requires": { + "fill-keys": "1.0.2", + "module-not-found-error": "1.0.1", + "resolve": "1.1.7" + } + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + }, + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + }, + "qs": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", + "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==" + }, + "querystring": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=" + }, + "range-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", + "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=" + }, + "raw-body": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.3.tgz", + "integrity": "sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw==", + "requires": { + "bytes": "3.0.0", + "http-errors": "1.6.3", + "iconv-lite": "0.4.23", + "unpipe": "1.0.0" + }, + "dependencies": { + "http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", + "requires": { + "depd": "1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": "1.4.0" + } + }, + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "requires": { + "safer-buffer": "2.1.2" + } + }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" + } + } + }, + "rc": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.5.tgz", + "integrity": "sha1-J1zWh/bjs2zHVrqibf7oCnkDAf0=", + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + } + }, + "react": { + "version": "15.6.2", + "resolved": "https://registry.npmjs.org/react/-/react-15.6.2.tgz", + "integrity": "sha1-26BDSrQ5z+gvEI8PURZjkIF5qnI=", + "dev": true, + "requires": { + "create-react-class": "15.6.3", + "fbjs": "0.8.16", + "loose-envify": "1.3.1", + "object-assign": "4.1.1", + "prop-types": "15.6.0" + } + }, + "react-dom": { + "version": "15.6.2", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-15.6.2.tgz", + "integrity": "sha1-Qc+t9pO3V/rycIRDodH9WgK+9zA=", + "dev": true, + "requires": { + "fbjs": "0.8.16", + "loose-envify": "1.3.1", + "object-assign": "4.1.1", + "prop-types": "15.6.0" + } + }, + "read-all-stream": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/read-all-stream/-/read-all-stream-3.1.0.tgz", + "integrity": "sha1-NcPhd/IHjveJ7kv6+kNzB06u9Po=", + "requires": { + "pinkie-promise": "2.0.1", + "readable-stream": "2.3.4" + } + }, + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "requires": { + "load-json-file": "1.1.0", + "normalize-package-data": "2.4.0", + "path-type": "1.1.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "requires": { + "find-up": "1.1.2", + "read-pkg": "1.1.0" + } + }, + "readable-stream": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.4.tgz", + "integrity": "sha512-vuYxeWYM+fde14+rajzqgeohAI7YoJcHE7kXDAc4Nk0EbuKnJfqtY9YtRkLo/tqkuF7MsBQRhPnPeyjYITp3ZQ==", + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "readdirp": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", + "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", + "requires": { + "graceful-fs": "4.1.11", + "minimatch": "3.0.3", + "readable-stream": "2.3.4", + "set-immediate-shim": "1.0.1" + } + }, + "readline2": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/readline2/-/readline2-1.0.1.tgz", + "integrity": "sha1-QQWWCP/BVHV7cV2ZidGZ/783LjU=", + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "mute-stream": "0.0.5" + } + }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", + "dev": true, + "requires": { + "resolve": "1.1.7" + } + }, + "recovery": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/recovery/-/recovery-0.2.6.tgz", + "integrity": "sha1-nPytnNTJK65qBxYsgsz/ua8Kmbk=", + "requires": { + "demolish": "1.0.2", + "eventemitter3": "1.1.1", + "millisecond": "0.1.2", + "one-time": "0.0.4", + "tick-tock": "1.0.0" + } + }, + "recursive-readdir": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.1.1.tgz", + "integrity": "sha1-oBz8f384pT7AlqCW9jpQSJw+KXw=", + "requires": { + "minimatch": "3.0.3" + } + }, + "redent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", + "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", + "requires": { + "indent-string": "2.1.0", + "strip-indent": "1.0.1" + } + }, + "redeyed": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-1.0.1.tgz", + "integrity": "sha1-6WwZO0DAgWsArshCaY5hGF5VSYo=", + "optional": true, + "requires": { + "esprima": "3.0.0" + } + }, + "redis": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/redis/-/redis-2.6.2.tgz", + "integrity": "sha1-fMqwVjATrGGefdhMZRK4HT2FJXk=", + "requires": { + "double-ended-queue": "2.1.0-0", + "redis-commands": "1.3.1", + "redis-parser": "2.6.0" + }, + "dependencies": { + "redis-parser": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-2.6.0.tgz", + "integrity": "sha1-Uu0J2srBCPGmMcB+m2mUHnoZUEs=" + } + } + }, + "redis-commands": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.3.1.tgz", + "integrity": "sha1-gdgm9F+pyLIBH0zXoP5ZfSQdRCs=" + }, + "redis-parser": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-1.3.0.tgz", + "integrity": "sha1-gG6+e7+3005NfB6e8oLvz60EEmo=" + }, + "redis-rstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/redis-rstream/-/redis-rstream-0.1.2.tgz", + "integrity": "sha1-tlJQ1aDciCGtztPFeCNZMNpWLE4=", + "requires": { + "readable-stream": "https://github.com/jeffbski/readable-stream/archive/v1.0.2-object-transform2-ret-self.tar.gz" + }, + "dependencies": { + "readable-stream": { + "version": "https://github.com/jeffbski/readable-stream/archive/v1.0.2-object-transform2-ret-self.tar.gz", + "integrity": "sha512-4DfqsAX+1OToUZ/uHLsC3NUHN7wCn2BNfkG/Eyr2ii4c4suSipjLFbVymS7pj49+aRcSutnK9dIuHS3X7fwApQ==" + } + } + }, + "redis-wstream": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/redis-wstream/-/redis-wstream-0.2.5.tgz", + "integrity": "sha1-GzO/ObFkgtk8nkBo9RTynEIAKDA=", + "requires": { + "readable-stream": "https://github.com/jeffbski/readable-stream/archive/v1.0.2-object-transform2-ret-self.tar.gz" + }, + "dependencies": { + "readable-stream": { + "version": "https://github.com/jeffbski/readable-stream/archive/v1.0.2-object-transform2-ret-self.tar.gz", + "integrity": "sha512-4DfqsAX+1OToUZ/uHLsC3NUHN7wCn2BNfkG/Eyr2ii4c4suSipjLFbVymS7pj49+aRcSutnK9dIuHS3X7fwApQ==" + } + } + }, + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", + "dev": true + }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "requires": { + "extend-shallow": "3.0.2", + "safe-regex": "1.1.0" + } + }, + "registry-auth-token": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz", + "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==", + "requires": { + "rc": "1.2.5", + "safe-buffer": "5.1.1" + } + }, + "registry-url": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", + "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", + "requires": { + "rc": "1.2.5" + } + }, + "remove-empty-directories": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/remove-empty-directories/-/remove-empty-directories-0.0.1.tgz", + "integrity": "sha1-SdZx5m0KaSwIsV0cWXxJRW1g70E=", + "requires": { + "extfs": "0.0.7", + "file": "0.2.2" + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" + }, + "repeat-element": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", + "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=" + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "requires": { + "is-finite": "1.0.2" + } + }, + "request": { + "version": "2.83.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.83.0.tgz", + "integrity": "sha512-lR3gD69osqm6EYLk9wB/G1W/laGWjzH90t1vEa2xuxHD5KUrSzp9pUSfTm+YC5Nxt2T8nMPEvKlhbQayU7bgFw==", + "requires": { + "aws-sign2": "0.7.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.3.1", + "har-validator": "5.0.3", + "hawk": "6.0.2", + "http-signature": "1.2.0", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.17", + "oauth-sign": "0.8.2", + "performance-now": "2.1.0", + "qs": "6.5.1", + "safe-buffer": "5.1.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.3", + "tunnel-agent": "0.6.0", + "uuid": "3.3.2" + }, + "dependencies": { + "form-data": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.1.tgz", + "integrity": "sha1-b7lPvXGIUwbXPRXMSX/kzE7NRL8=", + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.17" + } + } + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" + }, + "require-from-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.1.tgz", + "integrity": "sha1-xUUjPp19pmFunVmt+zn8n1iGdv8=", + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "require-uncached": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz", + "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", + "dev": true, + "requires": { + "caller-path": "0.1.0", + "resolve-from": "1.0.1" + }, + "dependencies": { + "resolve-from": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz", + "integrity": "sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY=", + "dev": true + } + } + }, + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", + "dev": true + }, + "resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "dev": true + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=" + }, + "restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", + "requires": { + "onetime": "2.0.1", + "signal-exit": "3.0.2" + } + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==" + }, + "retry": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.9.0.tgz", + "integrity": "sha1-b2l+UKDk3cjI9/tUeptg3q1DZ40=" + }, + "right-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", + "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", + "dev": true, + "optional": true, + "requires": { + "align-text": "0.1.4" + } + }, + "rimraf": { + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", + "integrity": "sha1-7nEM5dk6j9uFb7Xqj/Di11k0sto=", + "requires": { + "glob": "6.0.4" + } + }, + "run-async": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-0.1.0.tgz", + "integrity": "sha1-yK1KXhEGYeQCp9IbUw4AnyX444k=", + "dev": true, + "requires": { + "once": "1.4.0" + } + }, + "run-parallel": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.6.tgz", + "integrity": "sha1-KQA8miFj4B4tLfyQV18sbB1hoDk=", + "dev": true + }, + "rx-lite": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-3.1.2.tgz", + "integrity": "sha1-Gc5QLKVyZl87ZHsQk5+X/RYV8QI=", + "dev": true + }, + "safe-buffer": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" + }, + "safe-json-stringify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.2.0.tgz", + "integrity": "sha512-gH8eh2nZudPQO6TytOvbxnuhYBOvDBBLW52tz5q6X58lJcd/tkmqFR+5Z9adS8aJtURSXWThWy/xJtJwixErvg==", + "optional": true + }, + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "requires": { + "ret": "0.1.15" + } + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "samsam": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.1.2.tgz", + "integrity": "sha1-vsEf3IOp/aBjQBIQ5AF2wwJNFWc=", + "dev": true + }, + "sax": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", + "integrity": "sha1-e45lYZCyKOgaZq6nSEgNgozS03o=" + }, + "semver": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==" + }, + "semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=" + }, + "send": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", + "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", + "requires": { + "debug": "2.6.9", + "depd": "1.1.2", + "destroy": "1.0.4", + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "etag": "1.8.1", + "fresh": "0.5.2", + "http-errors": "1.6.2", + "mime": "1.4.1", + "ms": "2.0.0", + "on-finished": "2.3.0", + "range-parser": "1.2.0", + "statuses": "1.4.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=", + "requires": { + "ms": "2.0.0" + } + }, + "mime": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", + "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==" + } + } + }, + "serve-static": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", + "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", + "requires": { + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "parseurl": "1.3.2", + "send": "0.16.2" + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "set-immediate-shim": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", + "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=" + }, + "set-value": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", + "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "split-string": "3.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", + "dev": true + }, + "setprototypeof": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", + "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=" + }, + "sha1": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/sha1/-/sha1-1.1.1.tgz", + "integrity": "sha1-rdqnqTFo85PxnrKxUJFhjicA+Eg=", + "requires": { + "charenc": "0.0.2", + "crypt": "0.0.2" + } + }, + "shelljs": { + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.8.tgz", + "integrity": "sha1-3svPh0sNHl+3LhSxZKloMEjprLM=", + "dev": true, + "requires": { + "glob": "7.1.2", + "interpret": "1.1.0", + "rechoir": "0.6.2" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + } + } + }, + "should": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/should/-/should-4.0.4.tgz", + "integrity": "sha1-jvqjBPHxSM89LpVYYpkPmrnqYo8=", + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" + }, + "sinon": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-2.3.2.tgz", + "integrity": "sha1-xDqcVw8yuqwRWVBc/u0ZEIhV34k=", + "dev": true, + "requires": { + "diff": "3.4.0", + "formatio": "1.2.0", + "lolex": "1.6.0", + "native-promise-only": "0.8.1", + "path-to-regexp": "1.7.0", + "samsam": "1.3.0", + "text-encoding": "0.6.4", + "type-detect": "4.0.8" + }, + "dependencies": { + "diff": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.4.0.tgz", + "integrity": "sha1-sdhVB9rzlkgo3lSzfQ1zumfdpWw=", + "dev": true + }, + "formatio": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.2.0.tgz", + "integrity": "sha1-87IWfZBoxGmKjVH092CjmlTYGOs=", + "dev": true, + "requires": { + "samsam": "1.3.0" + } + }, + "lolex": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.6.0.tgz", + "integrity": "sha1-OpoCg0UqR9dDnnJzG54H1zhuSfY=", + "dev": true + }, + "samsam": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.3.0.tgz", + "integrity": "sha1-jR2TUOJWItow3j5EumkrUiGrfFA=", + "dev": true + } + } + }, + "slice-ansi": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-0.0.4.tgz", + "integrity": "sha1-7b+JA/ZvfOL46v1s7tZeJkyDGzU=", + "dev": true + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "requires": { + "base": "0.11.2", + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "map-cache": "0.2.2", + "source-map": "0.5.7", + "source-map-resolve": "0.5.2", + "use": "3.1.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "requires": { + "define-property": "1.0.0", + "isobject": "3.0.1", + "snapdragon-util": "3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "requires": { + "is-descriptor": "1.0.2" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "snazzy": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/snazzy/-/snazzy-7.0.0.tgz", + "integrity": "sha1-le2szEqNb4D0rFzHtSDo+PmsIyU=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "inherits": "2.0.3", + "minimist": "1.2.0", + "readable-stream": "2.3.4", + "standard-json": "1.0.2", + "text-table": "0.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "sntp": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz", + "integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==", + "requires": { + "hoek": "4.2.0" + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + }, + "source-map-resolve": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", + "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", + "requires": { + "atob": "2.1.1", + "decode-uri-component": "0.2.0", + "resolve-url": "0.2.1", + "source-map-url": "0.4.0", + "urix": "0.1.0" + } + }, + "source-map-url": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=" + }, + "spdx-correct": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", + "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", + "requires": { + "spdx-license-ids": "1.2.2" + } + }, + "spdx-expression-parse": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", + "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=" + }, + "spdx-license-ids": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", + "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=" + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "requires": { + "extend-shallow": "3.0.2" + } + }, + "split2": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", + "integrity": "sha1-GGsldbz4PoW30YRldWI47k7kJJM=", + "dev": true, + "requires": { + "through2": "2.0.3" + } + }, + "sprintf-js": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.1.tgz", + "integrity": "sha1-Nr54Mgr+WAH2zqPueLblqrlA6gw=" + }, + "sshpk": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", + "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + } + }, + "stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=" + }, + "standard": { + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/standard/-/standard-8.6.0.tgz", + "integrity": "sha1-Y1Eyvnv7VnwpIQBfMPnjUOR1Kq0=", + "dev": true, + "requires": { + "eslint": "3.10.2", + "eslint-config-standard": "6.2.1", + "eslint-config-standard-jsx": "3.2.0", + "eslint-plugin-promise": "3.4.2", + "eslint-plugin-react": "6.7.1", + "eslint-plugin-standard": "2.0.1", + "standard-engine": "5.2.0" + } + }, + "standard-engine": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/standard-engine/-/standard-engine-5.2.0.tgz", + "integrity": "sha1-QAZgrlrM6K/U22D/IhSpGQrXkKM=", + "dev": true, + "requires": { + "deglob": "2.1.0", + "find-root": "1.1.0", + "get-stdin": "5.0.1", + "home-or-tmp": "2.0.0", + "minimist": "1.2.0", + "pkg-config": "1.1.1" + }, + "dependencies": { + "get-stdin": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", + "integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=", + "dev": true + } + } + }, + "standard-json": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/standard-json/-/standard-json-1.0.2.tgz", + "integrity": "sha1-gt6koUx4zZ4104zeS4isa2JZaiM=", + "dev": true, + "requires": { + "concat-stream": "1.6.2" + } + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "requires": { + "define-property": "0.2.5", + "object-copy": "0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "requires": { + "is-descriptor": "0.1.6" + } + } + } + }, + "statuses": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", + "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" + }, + "stream-to-string": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stream-to-string/-/stream-to-string-1.1.0.tgz", + "integrity": "sha1-OSELATF+ars16FRTjgEwN7ajWUA=", + "requires": { + "promise-polyfill": "1.1.6" + } + }, + "streamifier": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/streamifier/-/streamifier-0.1.1.tgz", + "integrity": "sha1-l+mNj6TRBdYqJpHR3AfoINuN/E8=" + }, + "streamsearch": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-0.1.2.tgz", + "integrity": "sha1-gIudDlb8Jz2Am6VzOOkpkZoanxo=" + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "requires": { + "safe-buffer": "5.1.1" + } + }, + "stringstream": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", + "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=" + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "requires": { + "is-utf8": "0.2.1" + } + }, + "strip-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", + "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", + "requires": { + "get-stdin": "4.0.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" + }, + "superagent": { + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.2.tgz", + "integrity": "sha512-gVH4QfYHcY3P0f/BZzavLreHW3T1v7hG9B+hpMQotGQqurOvhv87GcMCd6LWySmBuf+BDR44TQd0aISjVHLeNQ==", + "dev": true, + "requires": { + "component-emitter": "1.2.1", + "cookiejar": "2.1.2", + "debug": "3.1.0", + "extend": "3.0.1", + "form-data": "2.3.2", + "formidable": "1.2.1", + "methods": "1.1.2", + "mime": "1.6.0", + "qs": "6.5.1", + "readable-stream": "2.3.4" + }, + "dependencies": { + "combined-stream": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", + "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", + "dev": true, + "requires": { + "delayed-stream": "1.0.0" + } + }, + "form-data": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", + "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", + "dev": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.6", + "mime-types": "2.1.17" + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true + } + } + }, + "supertest": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/supertest/-/supertest-3.1.0.tgz", + "integrity": "sha512-O44AMnmJqx294uJQjfUmEyYOg7d9mylNFsMw/Wkz4evKd1njyPrtCN+U6ZIC7sKtfEVQhfTqFFijlXx8KP/Czw==", + "dev": true, + "requires": { + "methods": "1.1.2", + "superagent": "3.8.2" + } + }, + "supports-color": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.2.0.tgz", + "integrity": "sha512-F39vS48la4YvTZUPVeTqsjsFNrvcMwrV3RLZINsmHo+7djCvuUzSIeXOnZ5hmjef4bajL1dNccN+tg5XAliO5Q==", + "requires": { + "has-flag": "3.0.0" + } + }, + "sylvester": { + "version": "0.0.12", + "resolved": "https://registry.npmjs.org/sylvester/-/sylvester-0.0.12.tgz", + "integrity": "sha1-WohEFc0tACxX56OqyZRip1zp/bQ=" + }, + "table": { + "version": "3.8.3", + "resolved": "https://registry.npmjs.org/table/-/table-3.8.3.tgz", + "integrity": "sha1-K7xULw/amGGnVdOUf+/Ys/UThV8=", + "dev": true, + "requires": { + "ajv": "4.11.8", + "ajv-keywords": "1.5.1", + "chalk": "1.1.3", + "lodash": "4.17.5", + "slice-ansi": "0.0.4", + "string-width": "2.1.1" + }, + "dependencies": { + "ajv": { + "version": "4.11.8", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", + "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "dev": true, + "requires": { + "co": "4.6.0", + "json-stable-stringify": "1.0.1" + } + }, + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + }, + "dependencies": { + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "tcomb": { + "version": "3.2.24", + "resolved": "https://registry.npmjs.org/tcomb/-/tcomb-3.2.24.tgz", + "integrity": "sha1-f0JwU8w5O1mXxMPYWcogQRGAiHs=", + "dev": true + }, + "tcomb-validation": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/tcomb-validation/-/tcomb-validation-3.4.1.tgz", + "integrity": "sha1-p2luwXbOVqCB2eAZ+LcypaiJS2U=", + "dev": true, + "requires": { + "tcomb": "3.2.24" + } + }, + "text-encoding": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.6.4.tgz", + "integrity": "sha1-45mpgiV6J22uQou5KEXLcb3CbRk=", + "dev": true + }, + "text-extensions": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.7.0.tgz", + "integrity": "sha1-+qq6JiXtdG1WiiPk0KrNm/CKizk=", + "dev": true + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" + }, + "through2": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", + "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", + "dev": true, + "requires": { + "readable-stream": "2.3.4", + "xtend": "4.0.1" + } + }, + "tick-tock": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/tick-tock/-/tick-tock-1.0.0.tgz", + "integrity": "sha1-nE1ZZAZPlVGxj63tNN52rXwbpD4=", + "requires": { + "millisecond": "0.1.2" + } + }, + "timed-out": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-3.1.3.tgz", + "integrity": "sha1-lYYL/MXHbCd/j4Mm/Q9bLiDrohc=" + }, + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "requires": { + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "regex-not": "1.0.2", + "safe-regex": "1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "requires": { + "is-number": "3.0.0", + "repeat-string": "1.6.1" + } + }, + "tough-cookie": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz", + "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=", + "requires": { + "punycode": "1.4.1" + } + }, + "traverse": { + "version": "0.6.6", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", + "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=", + "dev": true + }, + "trim-newlines": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", + "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=" + }, + "trim-off-newlines": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz", + "integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=", + "dev": true + }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", + "dev": true + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "requires": { + "safe-buffer": "5.1.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "optional": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "requires": { + "prelude-ls": "1.1.2" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha1-dkb7XxiHHPu3dJ5pvTmmOI63RQw=", + "dev": true + }, + "type-is": { + "version": "1.6.16", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", + "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "2.1.18" + }, + "dependencies": { + "mime-db": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", + "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==" + }, + "mime-types": { + "version": "2.1.18", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", + "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "requires": { + "mime-db": "1.33.0" + } + } + } + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" + }, + "ua-parser-js": { + "version": "0.7.17", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.17.tgz", + "integrity": "sha1-6exflJi57JEOeuOsYmqAXE0J7Kw=", + "dev": true + }, + "uglify-js": { + "version": "2.8.29", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", + "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "dev": true, + "optional": true, + "requires": { + "source-map": "0.5.7", + "uglify-to-browserify": "1.0.2", + "yargs": "3.10.0" + } + }, + "uglify-to-browserify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", + "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", + "dev": true, + "optional": true + }, + "underscore": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", + "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=" + }, + "underscore-contrib": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/underscore-contrib/-/underscore-contrib-0.3.0.tgz", + "integrity": "sha1-ZltmwkeD+PorGMn4y7Dix9SMJsc=", + "requires": { + "underscore": "1.6.0" + }, + "dependencies": { + "underscore": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", + "integrity": "sha1-izixDKze9jM3uLJOT/htRa6lKag=" + } + } + }, + "underscore.string": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.4.tgz", + "integrity": "sha1-LCo/n4PmR2L9xF5s6sZRQoZCE9s=", + "requires": { + "sprintf-js": "1.1.1", + "util-deprecate": "1.0.2" + } + }, + "union-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", + "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", + "requires": { + "arr-union": "3.1.0", + "get-value": "2.0.6", + "is-extendable": "0.1.1", + "set-value": "0.4.3" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + }, + "set-value": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", + "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "to-object-path": "0.3.0" + } + } + } + }, + "uniq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", + "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=", + "dev": true + }, + "universalify": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz", + "integrity": "sha1-+nG63UQ3r0wUiEHjs7Fl+enlkLc=" + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "requires": { + "has-value": "0.3.1", + "isobject": "3.0.1" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "requires": { + "get-value": "2.0.6", + "has-values": "0.1.4", + "isobject": "2.1.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=" + } + } + }, + "unzip-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-1.0.2.tgz", + "integrity": "sha1-uYTwh3/AqJwsdzzB73tbIytbBv4=" + }, + "upath": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.0.tgz", + "integrity": "sha512-bzpH/oBhoS/QI/YtbkqCg6VEiPYjSZtrHQM6/QnJS6OL9pKUFLqb3aFh4Scvwm45+7iAgiMkLhSbaZxUqmrprw==" + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=" + }, + "url": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", + "integrity": "sha1-Ah5NnHcF8hu/N9A861h2dAJ3TGQ=", + "requires": { + "punycode": "1.3.2", + "querystring": "0.2.0" + }, + "dependencies": { + "punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=" + } + } + }, + "url-parse-lax": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", + "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", + "requires": { + "prepend-http": "1.0.4" + } + }, + "use": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.0.tgz", + "integrity": "sha512-6UJEQM/L+mzC3ZJNM56Q4DFGLX/evKGRg15UJHGB9X5j5Z3AFbgZvjUh2yq/UJUY4U5dh7Fal++XbNg1uzpRAw==", + "requires": { + "kind-of": "6.0.2" + } + }, + "user-home": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/user-home/-/user-home-2.0.0.tgz", + "integrity": "sha1-nHC/2Babwdy/SGBODwS4tJzenp8=", + "dev": true, + "requires": { + "os-homedir": "1.0.2" + } + }, + "util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "dev": true, + "requires": { + "inherits": "2.0.1" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", + "dev": true + } + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "validate-npm-package-license": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", + "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", + "requires": { + "spdx-correct": "1.0.2", + "spdx-expression-parse": "1.0.4" + } + }, + "validator": { + "version": "9.4.1", + "resolved": "https://registry.npmjs.org/validator/-/validator-9.4.1.tgz", + "integrity": "sha512-YV5KjzvRmSyJ1ee/Dm5UED0G+1L4GZnLN3w6/T+zZm8scVua4sOhYKWTUrKa0H/tMiJyO9QLHMPN+9mB/aMunA==" + }, + "varify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/varify/-/varify-0.2.0.tgz", + "integrity": "sha1-GR2p/p3EzWjQ0USY1OKpEP9OZRY=", + "optional": true, + "requires": { + "redeyed": "1.0.1", + "through": "2.3.8" + } + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "requires": { + "assert-plus": "1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "1.3.0" + } + }, + "whatwg-fetch": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz", + "integrity": "sha1-nITsLc9oGH/wC8ZOEnS0QhduHIQ=", + "dev": true + }, + "which": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", + "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", + "dev": true, + "requires": { + "isexe": "2.0.0" + } + }, + "which-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", + "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", + "dev": true + }, + "window-size": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", + "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", + "dev": true, + "optional": true + }, + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "dev": true + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "write": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz", + "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", + "dev": true, + "requires": { + "mkdirp": "0.5.1" + } + }, + "xml-splitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/xml-splitter/-/xml-splitter-1.2.1.tgz", + "integrity": "sha1-s/0oyIBj5RCrajXtCUMpJAnEyBI=", + "dev": true, + "requires": { + "clone": "0.1.19", + "sax": "0.5.8" + }, + "dependencies": { + "sax": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/sax/-/sax-0.5.8.tgz", + "integrity": "sha1-1HLbIo6zMcJQaw6MFVJK25OdEsE=", + "dev": true + } + } + }, + "xml2js": { + "version": "0.4.17", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.17.tgz", + "integrity": "sha1-F76T6q4/O3eTWceVtBlwWogX6Gg=", + "requires": { + "sax": "1.2.1", + "xmlbuilder": "4.2.1" + } + }, + "xmlbuilder": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-4.2.1.tgz", + "integrity": "sha1-qlijBBoGb5DqoWwvU4n/GfP0YaU=", + "requires": { + "lodash": "4.17.10" + }, + "dependencies": { + "lodash": { + "version": "4.17.10", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", + "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" + } + } + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + }, + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "dev": true + }, + "yargs": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", + "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "dev": true, + "optional": true, + "requires": { + "camelcase": "1.2.1", + "cliui": "2.1.0", + "decamelize": "1.2.0", + "window-size": "0.1.0" + }, + "dependencies": { + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "dev": true, + "optional": true + } + } + }, + "yargs-parser": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz", + "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", + "requires": { + "camelcase": "4.1.0" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=" + } + } + } + } +} diff --git a/package.json b/package.json index d95421d3..450cbc86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dadi/api", - "version": "4.0.4", + "version": "4.1.0", "main": "main.js", "scripts": { "create-client": "cd ../../.. && node ./node_modules/@dadi/api/utils/create-client.js", @@ -22,9 +22,10 @@ "@dadi/cache": "^3.0.0", "@dadi/et": "^2.0.0", "@dadi/format-error": "^1.7.0", - "@dadi/logger": "^1.3.0", + "@dadi/logger": "^1.4.1", + "@dadi/metadata": "^2.0.0", "@dadi/status": "latest", - "async": "^2.6.0", + "async": "^2.6.1", "aws-sdk": "2.249.1", "body-parser": "^1.18.3", "busboy": "^0.2.13", @@ -39,11 +40,14 @@ "deepmerge": "^2.1.0", "fs-extra": "^3.0.1", "imagesize": "^1.0.0", + "js-promise-queue": "^1.1.0", "jsonwebtoken": "^8.0.0", + "langs": "^2.0.0", "length-stream": "^0.1.1", "mime": "^2.3.1", "mkdirp": "^0.5.1", "moment": "2.19.3", + "natural": "^0.6.1", "object-path": "^0.11.4", "parse-comments": "0.4.3", "path-to-regexp": "~1.7.0", @@ -62,17 +66,17 @@ "devDependencies": { "@commitlint/cli": "~4.1.1", "@commitlint/config-angular": "~3.1.1", - "@dadi/metadata": "^2.0.0", "aws-sdk-mock": "1.6.1", "coveralls": "^3.0.1", "env-test": "1.0.0", + "faker": "^4.1.0", "fakeredis": "1.0.3", "form-data": "2.1.4", "husky": "^0.13.3", "istanbul": "^1.1.0-alpha.1", "istanbul-cobertura-badger": "^1.3.1", "lokijs": "^1.5.3", - "mocha": "~4.0.1", + "mocha": "^5.2.0", "mochawesome": "^2.1.0", "mock-require": "^3.0.2", "proxyquire": "^1.7.4", @@ -81,10 +85,10 @@ "snazzy": "7.0.0", "standard": "8.6.0", "supertest": "^3.1.0", - "uuid": "^3.2.1" + "uuid": "^3.3.2" }, "dataConnectorDependencies": { - "@dadi/api-mongodb": "4.1.0" + "@dadi/api-mongodb": "4.2.0" }, "greenkeeper": { "ignore": [ diff --git a/test/acceptance/acl/clients-api/roles-delete.js b/test/acceptance/acl/clients-api/roles-delete.js index 9a474dbd..41815cb2 100644 --- a/test/acceptance/acl/clients-api/roles-delete.js +++ b/test/acceptance/acl/clients-api/roles-delete.js @@ -31,6 +31,10 @@ module.exports = () => { }) }) + afterEach(done => { + help.removeACLData(done) + }) + describe('error states', () => { it('should return 401 if the request does not include a valid bearer token', done => { client diff --git a/test/acceptance/acl/collections-api.js b/test/acceptance/acl/collections-api.js index 2fcde1a0..ac68a381 100644 --- a/test/acceptance/acl/collections-api.js +++ b/test/acceptance/acl/collections-api.js @@ -20,6 +20,14 @@ let docs describe('Collections API', () => { before(done => { + config.set('search', { + 'enabled': true, + 'minQueryLength': 3, + 'wordCollection': 'words', + 'datastore': './../../../test/test-connector', + 'database': 'testdb' + }) + app.start(err => { if (err) return done(err) @@ -62,10 +70,113 @@ describe('Collections API', () => { after(done => { help.removeACLData(() => { + config.set('search', { + 'enabled': false, + 'minQueryLength': 3, + 'wordCollection': 'words', + 'datastore': './../../../test/test-connector', + 'database': 'testdb' + }) + app.stop(done) }) }) + describe('Search', function () { + it('should return 403 with no permissions', function (done) { + let testClient = { + clientId: 'apiClient', + secret: 'someSecret', + resources: { 'collection:testdb_test-schema': {} } + } + + help.createACLClient(testClient).then(() => { + client + .post(config.get('auth.tokenUrl')) + .set('content-type', 'application/json') + .send(testClient) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + let bearerToken = res.body.accessToken + + client + .get(`/vtest/testdb/test-schema/search?q=xyz`) + .set('content-type', 'application/json') + .set('Authorization', `Bearer ${bearerToken}`) + .end((err, res) => { + if (err) return done(err) + res.statusCode.should.eql(403) + done() + }) + }) + }) + }) + + it('should return 403 with no read permission', function (done) { + let testClient = { + clientId: 'apiClient', + secret: 'someSecret', + resources: { 'collection:testdb_test-schema': PERMISSIONS.NO_READ } + } + + help.createACLClient(testClient).then(() => { + client + .post(config.get('auth.tokenUrl')) + .set('content-type', 'application/json') + .send(testClient) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + let bearerToken = res.body.accessToken + + client + .get(`/vtest/testdb/test-schema/search?q=xyz`) + .set('content-type', 'application/json') + .set('Authorization', `Bearer ${bearerToken}`) + .end((err, res) => { + if (err) return done(err) + res.statusCode.should.eql(403) + done() + }) + }) + }) + }) + + it('should return 200 with read permission', function (done) { + let testClient = { + clientId: 'apiClient', + secret: 'someSecret', + resources: { 'collection:testdb_test-schema': PERMISSIONS.READ } + } + + help.createACLClient(testClient).then(() => { + client + .post(config.get('auth.tokenUrl')) + .set('content-type', 'application/json') + .send(testClient) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + let bearerToken = res.body.accessToken + + client + .get(`/vtest/testdb/test-schema/search?q=fghj`) + .set('content-type', 'application/json') + .set('Authorization', `Bearer ${bearerToken}`) + .end((err, res) => { + if (err) return done(err) + res.statusCode.should.eql(200) + done() + }) + }) + }) + }) + }) + describe('GET', function () { it('should return 403 with no permissions', function (done) { let testClient = { @@ -198,10 +309,6 @@ describe('Collections API', () => { resources: { 'collection:testdb_test-schema': PERMISSIONS.READ_EXCLUDE_FIELDS } } - let params = { - fields: JSON.stringify({ field1: 1, title: 1 }) - } - help.createACLClient(testClient).then(() => { client .post(config.get('auth.tokenUrl')) @@ -212,10 +319,9 @@ describe('Collections API', () => { if (err) return done(err) let bearerToken = res.body.accessToken - let query = require('querystring').stringify(params) client - .get(`/vtest/testdb/test-schema/?${query}`) + .get('/vtest/testdb/test-schema/?fields={"field1":1,"title":1}') .set('content-type', 'application/json') .set('Authorization', `Bearer ${bearerToken}`) .end((err, res) => { @@ -294,7 +400,7 @@ describe('Collections API', () => { done() }) }) - }) + }) }) }) @@ -362,7 +468,7 @@ describe('Collections API', () => { done() }) }) - }) + }) }) }) @@ -515,9 +621,9 @@ describe('Collections API', () => { let modelSettings = Object.assign({}, app.components['/vtest/testdb/test-schema'].model.settings) app.components['/vtest/testdb/test-schema'].model.settings.authenticate = [ - "POST", - "PUT", - "DELETE" + 'POST', + 'PUT', + 'DELETE' ] client @@ -537,10 +643,10 @@ describe('Collections API', () => { let modelSettings = Object.assign({}, app.components['/vtest/testdb/test-schema'].model.settings) app.components['/vtest/testdb/test-schema'].model.settings.authenticate = [ - "GET", - "POST", - "PUT", - "DELETE" + 'GET', + 'POST', + 'PUT', + 'DELETE' ] client @@ -704,7 +810,7 @@ describe('Collections API', () => { { field1: 'Value one' }, { field1: 'Value two' }, { field1: 'Value three' } - ] + ] help.getBearerTokenWithPermissions({ accessType: 'admin' @@ -769,7 +875,7 @@ describe('Collections API', () => { { field1: 'Value two' }, { field1: 'Value three' }, { field1: 'Value four' } - ] + ] help.getBearerTokenWithPermissions({ accessType: 'admin' @@ -809,9 +915,9 @@ describe('Collections API', () => { }) }) }) - }) + }) }) - }) + }) }) describe('POST', function () { @@ -943,9 +1049,9 @@ describe('Collections API', () => { let modelSettings = Object.assign({}, app.components['/vtest/testdb/test-schema'].model.settings) app.components['/vtest/testdb/test-schema'].model.settings.authenticate = [ - "GET", - "PUT", - "DELETE" + 'GET', + 'PUT', + 'DELETE' ] client @@ -968,10 +1074,10 @@ describe('Collections API', () => { let modelSettings = Object.assign({}, app.components['/vtest/testdb/test-schema'].model.settings) app.components['/vtest/testdb/test-schema'].model.settings.authenticate = [ - "GET", - "POST", - "PUT", - "DELETE" + 'GET', + 'POST', + 'PUT', + 'DELETE' ] client @@ -990,7 +1096,7 @@ describe('Collections API', () => { done() }) - }) + }) }) describe('PUT', function () { @@ -1282,7 +1388,7 @@ describe('Collections API', () => { }) }) }) - }) + }) it('should return 200 and not update any documents when the query differs from the filter permission', function (done) { let testClient = { @@ -1378,9 +1484,9 @@ describe('Collections API', () => { let modelSettings = Object.assign({}, app.components['/vtest/testdb/test-schema'].model.settings) app.components['/vtest/testdb/test-schema'].model.settings.authenticate = [ - "GET", - "POST", - "DELETE" + 'GET', + 'POST', + 'DELETE' ] client @@ -1407,10 +1513,10 @@ describe('Collections API', () => { let modelSettings = Object.assign({}, app.components['/vtest/testdb/test-schema'].model.settings) app.components['/vtest/testdb/test-schema'].model.settings.authenticate = [ - "GET", - "POST", - "PUT", - "DELETE" + 'GET', + 'POST', + 'PUT', + 'DELETE' ] client @@ -1433,7 +1539,7 @@ describe('Collections API', () => { done() }) - }) + }) }) describe('DELETE', function () { @@ -1681,9 +1787,9 @@ describe('Collections API', () => { let modelSettings = Object.assign({}, app.components['/vtest/testdb/test-schema'].model.settings) app.components['/vtest/testdb/test-schema'].model.settings.authenticate = [ - "GET", - "POST", - "PUT" + 'GET', + 'POST', + 'PUT' ] client @@ -1710,10 +1816,10 @@ describe('Collections API', () => { let modelSettings = Object.assign({}, app.components['/vtest/testdb/test-schema'].model.settings) app.components['/vtest/testdb/test-schema'].model.settings.authenticate = [ - "GET", - "POST", - "PUT", - "DELETE" + 'GET', + 'POST', + 'PUT', + 'DELETE' ] client @@ -1736,6 +1842,6 @@ describe('Collections API', () => { done() }) - }) + }) }) }) diff --git a/test/acceptance/cache.js b/test/acceptance/cache.js index 1e439b0e..61f3e1e6 100755 --- a/test/acceptance/cache.js +++ b/test/acceptance/cache.js @@ -571,78 +571,6 @@ describe('Cache', function (done) { done() }) - it.skip('should throw error if can\'t connect to Redis client', function (done) { - delete require.cache[__dirname + '/../../config.js'] - delete require.cache[__dirname + '/../../dadi/lib/'] - - config.loadFile(config.configPath()) - - should.throws(function () { app.start(function () {}) }, Error) - - app.stop(done) - }) - - it.skip('should initialise Redis client', function (done) { - delete require.cache[__dirname + '/../../config.js'] - config.loadFile(config.configPath()) - - // sinon.stub(redis, 'createClient', fakeredis.createClient); - - delete require.cache[__dirname + '/../../dadi/lib/'] - cache.reset() - - try { - app.stop(function () {}) - // app.start(function(){}); - } catch (err) { - } - - var c = cache(app) - // redis.createClient.restore(); - // c.redisClient.should.not.be.null; - // app.stop(function(){}); - done() - }) - - it.skip('should fallback to directory cache if Redis client fails', function (done) { - delete require.cache[__dirname + '/../../config.js'] - config.loadFile(config.configPath()) - - var EventEmitter = require('events') - var util = require('util') - - /* Fake redis client */ - function Client () { - this.end = function (reallyEnd) { } - EventEmitter.call(this) - } - - util.inherits(Client, EventEmitter) - var redisClient = new Client() - /* End Fake redis client */ - - sinon.stub(redis, 'createClient').returns(redisClient) - - delete require.cache[__dirname + '/../../dadi/lib/'] - cache.reset() - - var c = cache(app) - // redis.createClient.restore(); - - setTimeout(function () { - // emit an error event - redisClient.emit('error', { code: 'CONNECTION_BROKEN'}) - - config.get('caching.directory.enabled').should.eql(true) - - try { - app.stop(done) - } catch (err) { - done() - } - }, 1000) - }) - it('should check key exists in Redis', function (done) { delete require.cache[__dirname + '/../../dadi/lib/'] diff --git a/test/acceptance/db-connection.js b/test/acceptance/db-connection.js index 15d5c687..bced59bf 100644 --- a/test/acceptance/db-connection.js +++ b/test/acceptance/db-connection.js @@ -86,6 +86,8 @@ describe('Database connection', () => { res.body.results[0].title.should.eql(mockDocument.title) datastore._spies.index.calledOnce.should.eql(true) + datastore._spies.index.callCount.should.be.above(0) + setTimeout(() => { client .get('/vtest/noauthdb/articles?cache=false') @@ -115,7 +117,7 @@ describe('Database connection', () => { res.statusCode.should.eql(200) res.body.results.length.should.eql(1) res.body.results[0].title.should.eql(mockDocument.title) - datastore._spies.index.calledOnce.should.eql(true) + datastore._spies.index.callCount.should.be.above(0) testConnector._mock.disconnect() @@ -223,7 +225,7 @@ describe('Database connection', () => { res.statusCode.should.eql(200) res.body.results[0].title.should.eql('Dadi') res.body.results[0].published.state.should.eql(1) - datastore._spies.index.calledOnce.should.eql(true) + datastore._spies.index.callCount.should.be.above(0) setTimeout(() => { client @@ -266,7 +268,7 @@ describe('Database connection', () => { res.statusCode.should.eql(200) res.body.results[0].title.should.eql('Dadi') res.body.results[0].published.state.should.eql(1) - datastore._spies.index.calledOnce.should.eql(true) + datastore._spies.index.callCount.should.be.above(0) testConnector._mock.disconnect() @@ -346,7 +348,7 @@ describe('Database connection', () => { res.statusCode.should.eql(204) res.body.should.eql('') - datastore._spies.index.calledOnce.should.eql(true) + datastore._spies.index.callCount.should.be.above(0) testConnector._mock.disconnect() @@ -611,7 +613,7 @@ describe('Database connection', () => { res.statusCode.should.eql(200) res.body.results[0].title.should.eql('A brand new title') res.body.results[0].published.state.should.eql(1) - datastore._spies.index.calledOnce.should.eql(true) + datastore._spies.index.callCount.should.be.above(0) done() }) diff --git a/test/acceptance/fields/reference.js b/test/acceptance/fields/reference.js index 089219f1..b8ac360c 100644 --- a/test/acceptance/fields/reference.js +++ b/test/acceptance/fields/reference.js @@ -1357,6 +1357,53 @@ describe('Reference Field', () => { }) }) + it('should filter documents by nested properties including escaped characters', done => { + let event = { + type: 'Book release', + book: { + title: 'A book written by an email address. Odd, right?', + author: { + name: 'email+address@gmail.com' + } + } + } + + config.set('query.useVersionFilter', true) + + let client = request(connectionString) + client + .post('/v1/library/event') + .set('Authorization', 'Bearer ' + bearerToken) + .send(event) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get('/v1/library/event?filter={"book.author.name":"Some dude"}') + .set('Authorization', 'Bearer ' + bearerToken) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + res.body.results.length.should.eql(0) + + client + .get('/v1/library/event?filter={"book.author.name":"email%2Baddress@gmail.com"}') + .set('Authorization', 'Bearer ' + bearerToken) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + res.body.results.length.should.eql(1) + res.body.results[0].type.should.eql(event.type) + + done() + }) + }) + }) + }) + it('should filter documents by nested objects properties', done => { let event = { type: 'Book status', diff --git a/test/acceptance/help.js b/test/acceptance/help.js index 50e3649f..7885aab9 100755 --- a/test/acceptance/help.js +++ b/test/acceptance/help.js @@ -15,7 +15,7 @@ module.exports.createDoc = function (token, done) { .post('/vtest/testdb/test-schema') .set('Authorization', 'Bearer ' + token) .send({field1: ((Math.random() * 10) | 1).toString()}) - //.expect(200) + // .expect(200) .end(function (err, res) { if (err) return done(err) res.body.results.length.should.equal(1) @@ -257,7 +257,15 @@ module.exports.removeACLData = function (done) { return rolesConnection.datastore.dropDatabase( config.get('auth.roleCollection') ) - }).then(() => done()).catch(err => done(err)) + }).then(() => { + if (typeof done === 'function') { + done() + } + }).catch(err => { + if (typeof done === 'function') { + done(err) + } + }) } module.exports.removeTestClients = function (done) { @@ -423,7 +431,7 @@ module.exports.getCollectionMap = function () { databases.forEach(database => { let databasePath = path.join(versionPath, database) let stats = fs.statSync(databasePath) - + if (stats.isDirectory()) { let collections = fs.readdirSync(databasePath) @@ -439,7 +447,7 @@ module.exports.getCollectionMap = function () { map[`/${version}/${database}/${collectionName}`] = require(collectionPath) }) - } + } }) }) @@ -469,7 +477,7 @@ module.exports.writeTempFile = function (filePath, data, callback) { fs.ensureDir( path.dirname(fullPath), err => { - fs.writeFileSync(fullPath, parsedData) + fs.writeFileSync(fullPath, parsedData) } ) diff --git a/test/acceptance/i18n.js b/test/acceptance/i18n.js new file mode 100644 index 00000000..afabe33d --- /dev/null +++ b/test/acceptance/i18n.js @@ -0,0 +1,741 @@ +const app = require('./../../dadi/lib/') +const config = require('./../../config') +const fs = require('fs') +const help = require('./help') +const path = require('path') +const request = require('supertest') +const should = require('should') +const sinon = require('sinon') + +let connectionString = `http://${config.get('server.host')}:${config.get('server.port')}` +let client = request(connectionString) +let configBackup = config.get() +let bearerToken +let lastModifiedAt = 0 + +describe('Multi-language', function () { + this.timeout(4000) + + before(() => { + config.set('i18n.languages', ['fr', 'pt']) + }) + + after(() => { + config.set('i18n.languages', configBackup.i18n.languages) + }) + + beforeEach(done => { + help.dropDatabase('library', err => { + if (err) return done(err) + + app.start(() => { + help.getBearerTokenWithAccessType('admin', (err, token) => { + if (err) return done(err) + + bearerToken = token + + done() + }) + }) + }) + }) + + afterEach(done => { + app.stop(done) + }) + + describe('Languages endpoint', () => { + it('should return 401 if the request does not contain a valid bearer token', done => { + client + .get('/api/languages') + .end((err, res) => { + if (err) return done(err) + + res.statusCode.should.eql(401) + + done() + }) + }) + + it('should return a list of all supported languages', done => { + config.set('i18n.languages', ['en', 'fr', 'pt']) + + client + .get('/api/languages') + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + let defaultLanguage = config.get('i18n.defaultLanguage') + let supportedLanguages = config.get('i18n.languages') + + res.body.results.length.should.eql(3) + res.body.results.forEach(language => { + language.code.should.be.String + language.name.should.be.String + language.local.should.be.String + language.default.should.be.Boolean + + language.default.should.eql( + language.code === defaultLanguage + ) + + supportedLanguages.includes(language.code).should.eql(true) + }) + + res.body.metadata.defaultLanguage.code.should.eql( + defaultLanguage + ) + res.body.metadata.totalCount.should.eql(3) + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + + it('should include the default language in the list of supported languages even if it\'s not part of `i18n.languages`', done => { + config.set('i18n.languages', ['es', 'fr', 'pt']) + + client + .get('/api/languages') + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + let defaultLanguage = config.get('i18n.defaultLanguage') + let supportedLanguages = config.get('i18n.languages') + + res.body.results.length.should.eql(4) + res.body.results.forEach(language => { + language.code.should.be.String + language.name.should.be.String + language.local.should.be.String + language.default.should.be.Boolean + + language.default.should.eql( + language.code === defaultLanguage + ) + + supportedLanguages.concat(defaultLanguage).includes(language.code).should.eql(true) + }) + + res.body.metadata.defaultLanguage.code.should.eql( + defaultLanguage + ) + res.body.metadata.totalCount.should.eql(4) + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + }) + + it('should accept a language variation of a field, separated by the character configured in `i18n.fieldCharacter` (using default)', done => { + let document = { + title: 'The Little Prince', + 'title:pt': 'O Principezinho' + } + + client + .post('/v1/library/book') + .set('Authorization', `Bearer ${bearerToken}`) + .send(document) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + res.body.results.length.should.eql(1) + res.body.results[0].title.should.eql(document.title) + res.body.results[0]['title:pt'].should.eql(document['title:pt']) + + done() + }) + }) + + it('should accept a language variation of a field, separated by the character configured in `i18n.fieldCharacter`', done => { + config.set('i18n.fieldCharacter', '=') + + let document = { + title: 'The Little Prince', + 'title=pt': 'O Principezinho' + } + + client + .post('/v1/library/book') + .set('Authorization', `Bearer ${bearerToken}`) + .send(document) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + res.body.results.length.should.eql(1) + res.body.results[0].title.should.eql(document.title) + res.body.results[0]['title=pt'].should.eql(document['title=pt']) + + config.set('i18n.fieldCharacter', configBackup.i18n.fieldCharacter) + + done() + }) + }) + + it('should accept a language variation of a field, even if the language in question is not part of `i18n.languages`', done => { + config.set('i18n.languages', ['es', 'fr']) + + let document = { + title: 'The Little Prince', + 'title:pt': 'O Principezinho' + } + + client + .post('/v1/library/book') + .set('Authorization', `Bearer ${bearerToken}`) + .send(document) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + res.body.results.length.should.eql(1) + res.body.results[0].title.should.eql(document.title) + res.body.results[0]['title:pt'].should.eql(document['title:pt']) + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + + it('should validate language variation of a field in the same way as the main field', done => { + config.set('i18n.fieldCharacter', ':') + + let document = { + title: 'The Little Prince', + 'title:pt': 123456 + } + + client + .post('/v1/library/book') + .set('Authorization', `Bearer ${bearerToken}`) + .send(document) + .expect(400) + .end((err, res) => { + if (err) return done(err) + + res.body.success.should.eql(false) + res.body.errors[0].field.should.eql('title:pt') + res.body.errors[0].message.should.eql('is wrong type') + + config.get('i18n.fieldCharacter', configBackup.i18n.fieldCharacter) + + done() + }) + }) + + it('should retrieve all language variations if no `lang` parameter is supplied', done => { + let document = { + title: 'The Little Prince', + 'title:pt': 'O Principezinho', + 'title:fr': 'Le Petit Prince' + } + + client + .post('/v1/library/book') + .set('Authorization', `Bearer ${bearerToken}`) + .send(document) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get(`/v1/library/book/${res.body.results[0]._id}`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + res.body.results.length.should.eql(1) + + let result = res.body.results[0] + + result.title.should.eql(document.title) + result['title:pt'].should.eql(document['title:pt']) + result['title:fr'].should.eql(document['title:fr']) + + should.not.exist(result._i18n) + + done() + }) + }) + }) + + it('should return the translation version of a field when there is one set for the language in the `lang` parameter, falling back to the default language', done => { + config.set('i18n.languages', ['pt', 'fr']) + + let documents = [ + { + title: 'The Little Prince', + 'title:pt': 'O Principezinho', + 'title:fr': 'Le Petit Prince' + }, + { + title: 'The Untranslatable' + } + ] + + client + .post('/v1/library/book') + .set('Authorization', `Bearer ${bearerToken}`) + .send(documents) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get(`/v1/library/book?lang=pt`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + res.body.results.length.should.eql(2) + + let results = res.body.results + + results[0].title.should.eql(documents[0]['title:pt']) + results[0]._i18n.title.should.eql('pt') + should.not.exist(results[0]['title:pt']) + should.not.exist(results[0]['title:fr']) + + results[1].title.should.eql(documents[1].title) + results[1]._i18n.title.should.eql( + config.get('i18n.defaultLanguage') + ) + should.not.exist(results[1]['title:pt']) + should.not.exist(results[1]['title:fr']) + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + }) + + it('should return the translation version of a field when the fields projection is set to include the field in question', done => { + config.set('i18n.languages', ['pt', 'fr']) + + let documents = [ + { + title: 'The Little Prince', + 'title:pt': 'O Principezinho', + 'title:fr': 'Le Petit Prince' + }, + { + title: 'The Untranslatable' + } + ] + + client + .post('/v1/library/book') + .set('Authorization', `Bearer ${bearerToken}`) + .send(documents) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get(`/v1/library/book?fields={"title":1}&lang=pt`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + res.body.results.length.should.eql(2) + + let results = res.body.results + + results[0].title.should.eql(documents[0]['title:pt']) + results[0]._i18n.title.should.eql('pt') + should.not.exist(results[0]['title:pt']) + should.not.exist(results[0]['title:fr']) + + results[1].title.should.eql(documents[1].title) + results[1]._i18n.title.should.eql( + config.get('i18n.defaultLanguage') + ) + should.not.exist(results[1]['title:pt']) + should.not.exist(results[1]['title:fr']) + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + }) + + it('should return the original version of a field when the requested language is not part of `i18n.languages`', done => { + config.set('i18n.languages', ['fr']) + + let document = { + title: 'The Little Prince', + 'title:pt': 'O Principezinho', + 'title:fr': 'Le Petit Prince' + } + + client + .post('/v1/library/book') + .set('Authorization', `Bearer ${bearerToken}`) + .send(document) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get(`/v1/library/book?fields={"title":1}&lang=pt`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + res.body.results.length.should.eql(1) + + let results = res.body.results + + results[0].title.should.eql(document.title) + results[0]._i18n.title.should.eql('en') + should.not.exist(results[0]['title:pt']) + should.not.exist(results[0]['title:fr']) + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + }) + + it('should populate a `_i18n` field with a mapping of the language used for each translatable field', done => { + config.set('i18n.languages', ['pt', 'fr']) + + let document = { + name: 'Eduardo Bouças', + occupation: 'Software engineer', + 'occupation:pt': 'Engenheiro de software', + nationality: 'Portugal', + education: 'Master\'s degree', + 'education:pt': 'Mestrado' + } + + client + .post('/v1/library/person') + .set('Authorization', `Bearer ${bearerToken}`) + .send(document) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get(`/v1/library/person/${res.body.results[0]._id}?lang=pt`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + res.body.results.length.should.eql(1) + + let result = res.body.results[0] + + result.name.should.eql(document.name) + result.occupation.should.eql(document['occupation:pt']) + result.nationality.should.eql(document.nationality) + result.education.should.eql(document['education:pt']) + + should.exist(result._i18n) + + let defaultLanguage = config.get('i18n.defaultLanguage') + + result._i18n.name.should.eql(defaultLanguage) + result._i18n.occupation.should.eql('pt') + result._i18n.nationality.should.eql(defaultLanguage) + result._i18n.education.should.eql('pt') + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + }) + + it('should translate fields and create a `_i18n` map in referenced documents', done => { + config.set('i18n.languages', ['pt', 'fr']) + + let document = { + name: 'Eduardo Bouças', + occupation: 'Software engineer', + 'occupation:pt': 'Engenheiro de software', + nationality: 'Portugal', + education: 'Master\'s degree', + 'education:pt': 'Mestrado', + friend: { + name: 'Lord Voldemort', + occupation: 'Wizard', + 'occupation:pt': 'Feiticeiro', + nationality: 'United Kingdom', + education: 'Doctorate', + 'education:pt': 'Doutoramento' + } + } + + client + .post('/v1/library/person') + .set('Authorization', `Bearer ${bearerToken}`) + .send(document) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get(`/v1/library/person/${res.body.results[0]._id}?lang=pt&compose=true`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + res.body.results.length.should.eql(1) + + let result = res.body.results[0] + + result.name.should.eql(document.name) + result.occupation.should.eql(document['occupation:pt']) + result.nationality.should.eql(document.nationality) + result.education.should.eql(document['education:pt']) + + should.exist(result._i18n) + + let defaultLanguage = config.get('i18n.defaultLanguage') + + result._i18n.name.should.eql(defaultLanguage) + result._i18n.occupation.should.eql('pt') + result._i18n.nationality.should.eql(defaultLanguage) + result._i18n.education.should.eql('pt') + + let referencedResult = res.body.results[0].friend + + referencedResult.name.should.eql(document.friend.name) + referencedResult.occupation.should.eql(document.friend['occupation:pt']) + referencedResult.nationality.should.eql(document.friend.nationality) + referencedResult.education.should.eql(document.friend['education:pt']) + + should.exist(referencedResult._i18n) + + referencedResult._i18n.name.should.eql(defaultLanguage) + referencedResult._i18n.occupation.should.eql('pt') + referencedResult._i18n.nationality.should.eql(defaultLanguage) + referencedResult._i18n.education.should.eql('pt') + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + }) + + it('should return the translation version of a referenced field when the fields projection is set to include the field in question', done => { + config.set('i18n.languages', ['pt', 'fr']) + + let document = { + name: 'Eduardo Bouças', + occupation: 'Software engineer', + 'occupation:pt': 'Engenheiro de software', + nationality: 'Portugal', + education: 'Master\'s degree', + 'education:pt': 'Mestrado', + friend: { + name: 'Lord Voldemort', + occupation: 'Wizard', + 'occupation:pt': 'Feiticeiro', + nationality: 'United Kingdom', + education: 'Doctorate', + 'education:pt': 'Doutoramento' + } + } + + client + .post('/v1/library/person') + .set('Authorization', `Bearer ${bearerToken}`) + .send(document) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get(`/v1/library/person/${res.body.results[0]._id}?lang=pt&compose=true&fields={"occupation":1,"friend.occupation":1}`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + res.body.results.length.should.eql(1) + + let result = res.body.results[0] + + result.occupation.should.eql(document['occupation:pt']) + + should.exist(result._i18n) + + let defaultLanguage = config.get('i18n.defaultLanguage') + + result._i18n.occupation.should.eql('pt') + + let referencedResult = res.body.results[0].friend + + referencedResult.occupation.should.eql(document.friend['occupation:pt']) + + should.exist(referencedResult._i18n) + + referencedResult._i18n.occupation.should.eql('pt') + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + }) + + it('should handle translations with special characters', done => { + let original = { + name: 'I can eat glass and it doesn\'t hurt me.' + } + let translations = { + 'name:af': 'Ek kan glas eet, maar dit doen my nie skade nie.', + 'name:an': 'Puedo minchar beire, no me\'n fa mal .', + 'name:ar': 'أنا قادر على أكل الزجاج و هذا لا يؤلمني.', + 'name:bg': 'Мога да ям стъкло, то не ми вреди.', + 'name:bo': 'ཤེལ་སྒོ་ཟ་ནས་ང་ན་གི་མ་རེད།', + 'name:ca': 'Puc menjar vidre, que no em fa mal.', + 'name:cs': 'Mohu jíst sklo, neublíží mi.', + 'name:cy': 'Dw i\'n gallu bwyta gwydr, \'dyw e ddim yn gwneud dolur i mi.', + 'name:da': 'Jeg kan spise glas, det gør ikke ondt på mig.', + 'name:de': 'Ich kann Glas essen, ohne mir zu schaden.', + 'name:el': 'Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα.', + 'name:eo': 'Mi povas manĝi vitron, ĝi ne damaĝas min.', + 'name:es': 'Puedo comer vidrio, no me hace daño.', + 'name:eu': 'Kristala jan dezaket, ez dit minik ematen.', + 'name:fa': '.من می توانم بدونِ احساس درد شيشه بخورم', + 'name:fi': 'Voin syödä lasia, se ei vahingoita minua.', + 'name:fo': 'Eg kann eta glas, skaðaleysur.', + 'name:fr': 'Je peux manger du verre, ça ne me fait pas mal.', + 'name:ga': 'Is féidir liom gloinne a ithe. Ní dhéanann sí dochar ar bith dom.', + 'name:gd': 'S urrainn dhomh gloinne ithe; cha ghoirtich i mi.', + 'name:gl': 'Eu podo xantar cristais e non cortarme.', + 'name:he': 'אני יכול לאכול זכוכית וזה לא מזיק לי.', + 'name:hi': 'मैं काँच खा सकता हूँ और मुझे उससे कोई चोट नहीं पहुंचती.', + 'name:ht': 'Mwen kap manje vè, li pa blese\'m.', + 'name:hu': 'Meg tudom enni az üveget, nem lesz tőle bajom.', + 'name:is': 'Ég get etið gler án þess að meiða mig.', + 'name:it': 'Posso mangiare il vetro e non mi fa male.', + 'name:ja': '私はガラスを食べられます。それは私を傷つけません。', + 'name:km': 'ខ្ញុំអាចញុំកញ្ចក់បាន ដោយគ្មានបញ្ហារ', + 'name:ko': '나는 유리를 먹을 수 있어요. 그래도 아프지 않아요', + 'name:kw': 'Mý a yl dybry gwéder hag éf ny wra ow ankenya.', + 'name:lb': 'Ech kan Glas iessen, daat deet mir nët wei.', + 'name:lo': 'ຂອ້ຍກິນແກ້ວໄດ້ໂດຍທີ່ມັນບໍ່ໄດ້ເຮັດໃຫ້ຂອ້ຍເຈັບ.', + 'name:mk': 'Можам да јадам стакло, а не ме штета.', + 'name:mn': 'Би шил идэй чадна, надад хортой биш', + 'name:nb': 'Jeg kan spise glass uten å skade meg.', + 'name:ne': 'म काँच खान सक्छू र मलाई केहि नी हुन्‍न् ।', + 'name:nl': 'Ik kan glas eten, het doet mij geen kwaad.', + 'name:nn': 'Eg kan eta glas utan å skada meg.', + 'name:oc': 'Pòdi manjar de veire, me nafrariá pas.', + 'name:pl': 'Mogę jeść szkło i mi nie szkodzi.', + 'name:pt': 'Posso comer vidro, não me faz mal.', + 'name:rm': 'Jau sai mangiar vaider, senza che quai fa donn a mai.', + 'name:ro': 'Pot să mănânc sticlă și ea nu mă rănește.', + 'name:ru': 'Я могу есть стекло, оно мне не вредит.', + 'name:sa': 'काचं शक्नोम्यत्तुम् । नोपहिनस्ति माम् ॥', + 'name:sk': 'Môžem jesť sklo. Nezraní ma.', + 'name:sv': 'Jag kan äta glas utan att skada mig.', + 'name:th': 'ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ', + 'name:tr': 'Cam yiyebilirim, bana zararı dokunmaz.', + 'name:uk': 'Я можу їсти скло, і воно мені не зашкодить.', + 'name:ur': 'میں کانچ کھا سکتا ہوں اور مجھے تکلیف نہیں ہوتی ۔', + 'name:vi': 'Tôi có thể ăn thủy tinh mà không hại gì.', + 'name:wa': 'Dji pou magnî do vêre, çoula m\' freut nén må.', + 'name:zh': '我能吞下玻璃而不伤身体。' + } + let languages = Object.keys(translations).map(field => { + return field.split(':')[1] + }) + + config.set('i18n.languages', languages) + + client + .post('/v1/library/person') + .set('Authorization', `Bearer ${bearerToken}`) + .send( + Object.assign(original, translations) + ) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + let id = res.body.results[0]._id + let i = 0 + + client + .get(`/v1/library/person/${id}`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + res.body.results.length.should.eql(1) + + res.body.results[0].name.should.eql( + original.name + ) + should.not.exist(res.body.results[0]._i18n) + + languages.forEach(language => { + should.exist(res.body.results[0][`name:${language}`]) + + client + .get(`/v1/library/person/${id}?lang=${language}`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + res.body.results.length.should.eql(1) + + res.body.results[0].name.should.eql( + translations[`name:${language}`] + ) + res.body.results[0]._i18n.name.should.eql(language) + + if (++i === Object.keys(translations).length) { + config.set('i18n.languages', configBackup.i18n.languages) + + done() + } + }) + }) + }) + }) + }) + + it('should throw an error at startup if `i18n.fieldCharacter` contains a `.`', done => { + app.stop(() => { + config.set('i18n.fieldCharacter', '.') + + try { + app.start() + } catch (err) { + err.message.includes('character "." is not allowed in "i18n.fieldCharacter" value') + + config.set('i18n.fieldCharacter', configBackup.i18n.fieldCharacter) + + done() + } + }) + }) + + it('should throw an error at startup if `i18n.fieldCharacter` contains a `@`', done => { + app.stop(() => { + config.set('i18n.fieldCharacter', '@') + + try { + app.start() + } catch (err) { + err.message.includes('character "@" is not allowed in "i18n.fieldCharacter" value') + + config.set('i18n.fieldCharacter', configBackup.i18n.fieldCharacter) + + done() + } + }) + }) +}) diff --git a/test/acceptance/search.js b/test/acceptance/search.js new file mode 100644 index 00000000..4da90ccf --- /dev/null +++ b/test/acceptance/search.js @@ -0,0 +1,415 @@ +const app = require('../../dadi/lib/') +const config = require('../../config') +const help = require('./help') +const model = require('../../dadi/lib/model/') +const should = require('should') +const request = require('supertest') + +// variables scoped for use throughout tests +let bearerToken +let connectionString = 'http://' + config.get('server.host') + ':' + config.get('server.port') +let configBackup = config.get() + +describe('Search', function () { + this.timeout(4000) + + let cleanupFn + + before(function (done) { + help.dropDatabase('testdb', function (err) { + if (err) return done(err) + + config.set('search', { + 'enabled': true, + 'minQueryLength': 3, + 'wordCollection': 'words', + 'datastore': './../../../test/test-connector', + 'database': 'testdb' + }) + + config.set('i18n.languages', ['fr', 'pt']) + + app.start(function () { + help.getBearerTokenWithAccessType('admin', function (err, token) { + if (err) return done(err) + + bearerToken = token + + let schema = { + 'fields': { + 'field1': { + 'type': 'String', + 'required': false + }, + 'title': { + 'type': 'String', + 'required': false, + 'search': { + 'weight': 2 + } + }, + 'field2': { + 'type': 'Number', + 'required': false + }, + 'field3': { + 'type': 'ObjectID', + 'required': false + }, + '_fieldWithUnderscore': { + 'type': 'Object', + 'required': false + } + }, + 'settings': { + 'count': 40 + } + } + + help.writeTempFile( + 'temp-workspace/collections/vtest/testdb/collection.test-schema.json', + schema, + callback1 => { + help.writeTempFile( + 'temp-workspace/collections/v1/testdb/collection.test-schema.json', + schema, + callback2 => { + cleanupFn = () => { + callback1() + callback2() + } + + done() + } + ) + } + ) + }) + }) + }) + }) + + after(function (done) { + config.set('search', { + 'enabled': false + }) + + config.set('i18n.languages', configBackup.i18n.languages) + + app.stop(() => { + cleanupFn() + done() + }) + }) + + describe('Disabled', function () { + it('should return 501 when calling a /search endpoint', function (done) { + config.set('search.enabled', false) + + var client = request(connectionString) + client + .get('/vtest/testdb/test-schema/search') + .set('Authorization', 'Bearer ' + bearerToken) + .expect(501) + .end((err, res) => { + config.set('search.enabled', true) + done() + }) + }) + }) + + describe('Enabled', function () { + it('should return 400 when calling a /search endpoint with no query', function (done) { + let searchModel = model('test-schema') + searchModel.searchHandler.init() + + var client = request(connectionString) + client + .get('/vtest/testdb/test-schema/search') + .set('Authorization', 'Bearer ' + bearerToken) + .expect(400) + .end(done) + }) + + it('should return 400 when calling a /search endpoint with a short query', function (done) { + let searchModel = model('test-schema') + searchModel.searchHandler.init() + + var client = request(connectionString) + client + .get('/vtest/testdb/test-schema/search?q=xx') + .set('Authorization', 'Bearer ' + bearerToken) + .expect(400) + .end((err, res) => { + if (err) return done(err) + done() + }) + }) + + it('should return empty results when no documents match a query', function (done) { + let searchModel = model('test-schema') + searchModel.searchHandler.init() + + var client = request(connectionString) + client + .get('/vtest/testdb/test-schema/search?q=xxx') + .set('Authorization', 'Bearer ' + bearerToken) + .expect(200) + .end((err, res) => { + if (err) return done(err) + should.exist(res.body.results) + res.body.results.should.be.Array + res.body.results.length.should.eql(0) + done() + }) + }) + + it('should return results when documents match a query', function (done) { + let searchModel = model('test-schema') + searchModel.searchHandler.init() + + var client = request(connectionString) + + var doc = { + field1: 'The quick brown fox jumps', + title: 'The quick brown fox jumps over the lazy dog' + } + + client + .post('/vtest/testdb/test-schema') + .set('Authorization', 'Bearer ' + bearerToken) + .set('content-type', 'application/json') + .send(doc) + .expect(200) + .end((err, res) => { + client + .get('/vtest/testdb/test-schema/search?q=quick%20brown') + .set('Authorization', 'Bearer ' + bearerToken) + .expect(200) + .end((err, res) => { + if (err) return done(err) + should.exist(res.body.results) + + res.body.results.should.be.Array + res.body.results.length.should.eql(1) + + done() + }) + }) + }) + + it('should return metadata containing the search term', function (done) { + let searchModel = model('test-schema') + searchModel.searchHandler.init() + + var client = request(connectionString) + + var doc = { + field1: 'The quick brown fox jumps', + title: 'The quick brown fox jumps over the lazy dog' + } + + client + .post('/vtest/testdb/test-schema') + .set('Authorization', 'Bearer ' + bearerToken) + .set('content-type', 'application/json') + .send(doc) + .expect(200) + .end((err, res) => { + client + .get('/vtest/testdb/test-schema/search?q=quick%20brown') + .set('Authorization', 'Bearer ' + bearerToken) + .expect(200) + .end((err, res) => { + if (err) return done(err) + should.exist(res.body.metadata) + should.exist(res.body.metadata.search) + res.body.metadata.search.should.eql('quick brown') + + done() + }) + }) + }) + }) + + describe('Multi-language', function () { + it('should retrieve all language variations if no `lang` parameter is supplied', done => { + let document = { + title: 'The Little Prince', + 'title:pt': 'O Principezinho', + 'title:fr': 'Le Petit Prince' + } + + var client = request(connectionString) + + client + .post('/vtest/testdb/test-schema') + .set('Authorization', `Bearer ${bearerToken}`) + .send(document) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get(`/vtest/testdb/test-schema/search?q=Prince`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + res.body.results.length.should.eql(1) + + let result = res.body.results[0] + + result.title.should.eql(document.title) + result['title:pt'].should.eql(document['title:pt']) + result['title:fr'].should.eql(document['title:fr']) + + should.not.exist(result._i18n) + + done() + }) + }) + }) + + it('should return the translation version of a field when there is one set for the language in the `lang` parameter, falling back to the default language', done => { + config.set('i18n.languages', ['pt', 'fr']) + + let documents = [ + { + title: 'The Little Prince', + 'title:pt': 'O Principezinho', + 'title:fr': 'Le Petit Prince' + }, + { + title: 'The Untranslatable' + } + ] + + var client = request(connectionString) + + client + .post(`/vtest/testdb/test-schema`) + .set('Authorization', `Bearer ${bearerToken}`) + .send(documents) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get('/vtest/testdb/test-schema/search?q=Principezinho&lang=pt') + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + res.body.results.length.should.eql(2) + + let results = res.body.results + + results[0].title.should.eql(documents[0]['title:pt']) + results[0]._i18n.title.should.eql('pt') + should.not.exist(results[0]['title:pt']) + should.not.exist(results[0]['title:fr']) + + // results[1].title.should.eql(documents[1].title) + // results[1]._i18n.title.should.eql( + // config.get('i18n.defaultLanguage') + // ) + // should.not.exist(results[1]['title:pt']) + // should.not.exist(results[1]['title:fr']) + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + }) + + it('should return the translation version of a field when the fields projection is set to include the field in question', done => { + config.set('i18n.languages', ['pt', 'fr']) + + let documents = [ + { + title: 'The Little Prince', + 'title:pt': 'O Principezinho', + 'title:fr': 'Le Petit Prince' + }, + { + title: 'The Untranslatable' + } + ] + + var client = request(connectionString) + + client + .post('/vtest/testdb/test-schema') + .set('Authorization', `Bearer ${bearerToken}`) + .send(documents) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get(`/vtest/testdb/test-schema/search?q=Principezinho&fields={"title":1}&lang=pt`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + let results = res.body.results + + results[0].title.should.eql(documents[0]['title:pt']) + results[0]._i18n.title.should.eql('pt') + should.not.exist(results[0]['title:pt']) + should.not.exist(results[0]['title:fr']) + + // results[1].title.should.eql(documents[1].title) + // results[1]._i18n.title.should.eql( + // config.get('i18n.defaultLanguage') + // ) + // should.not.exist(results[1]['title:pt']) + // should.not.exist(results[1]['title:fr']) + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + }) + + it('should return the original version of a field when the requested language is not part of `i18n.languages`', done => { + config.set('i18n.languages', ['fr']) + + let document = { + title: 'The Little Prince', + 'title:pt': 'O Principezinho', + 'title:fr': 'Le Petit Prince' + } + + var client = request(connectionString) + + client + .post('/vtest/testdb/test-schema') + .set('Authorization', `Bearer ${bearerToken}`) + .send(document) + .expect(200) + .end((err, res) => { + if (err) return done(err) + + client + .get(`/vtest/testdb/test-schema/search?q=Prince&fields={"title":1}&lang=pt`) + .set('Authorization', `Bearer ${bearerToken}`) + .expect(200) + .end((err, res) => { + // res.body.results.length.should.eql(1) + + let results = res.body.results + + results[0].title.should.eql(document.title) + results[0]._i18n.title.should.eql('en') + should.not.exist(results[0]['title:pt']) + should.not.exist(results[0]['title:fr']) + + config.set('i18n.languages', configBackup.i18n.languages) + + done() + }) + }) + }) + }) +}) diff --git a/test/acceptance/search_collections.js b/test/acceptance/search_collections.js deleted file mode 100644 index b9344261..00000000 --- a/test/acceptance/search_collections.js +++ /dev/null @@ -1,150 +0,0 @@ -var app = require('./../../dadi/lib/') -var config = require('./../../config') -var fs = require('fs') -var help = require('./help') -var request = require('supertest') -var should = require('should') - -// variables scoped for use throughout tests -var bearerToken -var connectionString = 'http://' + config.get('server.host') + ':' + config.get('server.port') - -let cleanupFn - -describe('Search', function () { - this.timeout(5000) - - describe('Collections', function () { - before(function (done) { - help.dropDatabase('testdb', function (err) { - if (err) return done(err) - - let schema = { - "fields": { - "field1": { - "type": "String", - "required": false - }, - "field2": { - "type": "Number", - "required": false - }, - "field3": { - "type": "ObjectID", - "required": false - } - }, - "settings": { - "count": 40, - "displayName": "Test Collection", - "description": "Test Collection" - } - } - - help.writeTempFile( - 'temp-workspace/collections/vtest/testdb/collection.test-schema.json', - schema, - callback => { - cleanupFn = callback - - app.start(function () { - help.getBearerTokenWithAccessType('admin', function (err, token) { - if (err) return done(err) - - bearerToken = token - - done() - }) - }) - } - ) - }) - }) - - after(function (done) { - app.stop(() => { - cleanupFn() - done() - }) - }) - - it('should return docs from specified collections', function (done) { - // sample URL "/:version/search?collections=collection/model&query={"field1":{"$regex":"est"}}" - - var doc = { field1: 'Test', field2: 1234 } - - help.createDocWithSpecificVersion(bearerToken, 'vtest', doc, function (err, doc) { - if (err) return done(err) - - var client = request(connectionString) - - client - .get('/vtest/search?collections=testdb/test-schema,testdb/articles&query={"field1":{"$regex":"est"}}') - .set('Authorization', 'Bearer ' + bearerToken) - // .expect(200) - .expect('content-type', 'application/json') - .end(function (err, res) { - if (err) { - console.log(err) - return done(err) - } - should.exist(res.body['test-schema'].results) - res.body['test-schema'].results.should.be.Array - res.body['test-schema'].results.length.should.equal(1) - res.body['test-schema'].results[0].field1.should.equal('Test') - done() - }) - }) - }) - - it('should return 404 if method used is not GET', function (done) { - var doc = { field1: 'Test', field2: 1234 } - - help.createDocWithSpecificVersion(bearerToken, 'vtest', doc, function (err, doc) { - if (err) return done(err) - - var client = request(connectionString) - - client - .put('/vtest/search') - .set('Authorization', 'Bearer ' + bearerToken) - .expect(404) - .end(done) - }) - }) - - it('should return 400 if no collections or query specified', function (done) { - var doc = { field1: 'Test', field2: 1234 } - - help.createDocWithSpecificVersion(bearerToken, 'vtest', doc, function (err, doc) { - if (err) return done(err) - - var client = request(connectionString) - - client - .get('/vtest/search') - .set('Authorization', 'Bearer ' + bearerToken) - .expect(400) - .expect('content-type', 'application/json') - .end(done) - }) - }) - - it('should return 400 if no collections specified', function (done) { - var doc = { field1: 'Test', field2: 1234 } - - help.createDocWithSpecificVersion(bearerToken, 'vtest', doc, function (err, doc) { - if (err) return done(err) - - var client = request(connectionString) - - client - .get('/vtest/search?query={"field1":{"$regex":"est"}}') - .set('Authorization', 'Bearer ' + bearerToken) - .expect(400) - .expect('content-type', 'application/json') - .end(done) - }) - }) - }) -}) diff --git a/test/acceptance/workspace/collections/vtest/testdb/collection.articles.json b/test/acceptance/workspace/collections/vtest/testdb/collection.articles.json index bb9f5c64..9532ac23 100644 --- a/test/acceptance/workspace/collections/vtest/testdb/collection.articles.json +++ b/test/acceptance/workspace/collections/vtest/testdb/collection.articles.json @@ -178,12 +178,12 @@ "allowDelete": true, "count": 20, "sortOrder": 1, - "sort": "publicationDate", "index": { "enabled": true, "keys": { "_id": 1, - "urls": 1 + "urls": 1, + "publicationDate": 1 } }, "hooks": { @@ -211,6 +211,6 @@ ], "afterUpdate": [] }, - "lastModifiedAt": 1472947876485 + "lastModifiedAt": 1509474495923 } } \ No newline at end of file diff --git a/test/acceptance/workspace/collections/vtest/testdb/collection.publications.json b/test/acceptance/workspace/collections/vtest/testdb/collection.publications.json index 6f0e959b..b2a1e35a 100644 --- a/test/acceptance/workspace/collections/vtest/testdb/collection.publications.json +++ b/test/acceptance/workspace/collections/vtest/testdb/collection.publications.json @@ -93,6 +93,6 @@ } ] }, - "lastModifiedAt": 1484287084405 + "lastModifiedAt": 1509474495854 } } \ No newline at end of file diff --git a/test/acceptance/workspace/collections/vtest/testdb/collection.test-schema.json b/test/acceptance/workspace/collections/vtest/testdb/collection.test-schema.json index a4c2748a..e3dcf1e5 100755 --- a/test/acceptance/workspace/collections/vtest/testdb/collection.test-schema.json +++ b/test/acceptance/workspace/collections/vtest/testdb/collection.test-schema.json @@ -4,17 +4,14 @@ "type": "String", "label": "Title", "comments": "The title of the entry", - "placement": "Main content", "validation": {}, - "required": false, - "message": "", - "display": { - "index": true, - "edit": true - } + "required": false }, "title": { "type": "String", + "label": "Title", + "comments": "The title of the entry", + "validation": {}, "required": false, "search": { "weight": 2 @@ -29,6 +26,6 @@ "sortOrder": 1, "storeRevisions": true, "revisionCollection": "testSchemaHistory", - "lastModifiedAt": 1509360344054 + "lastModifiedAt": 1509474499125 } } \ No newline at end of file diff --git a/test/test-connector/index.js b/test/test-connector/index.js index f51b5e64..abde8d22 100644 --- a/test/test-connector/index.js +++ b/test/test-connector/index.js @@ -146,8 +146,8 @@ DataStore.prototype.connect = function ({database, collection}) { name: database, uuid: Math.random() } - this._debug('connect: new db', { + database, collection }) @@ -287,7 +287,7 @@ DataStore.prototype.find = function ({ query, collection, options = {}, schema, collection: collName, query, results - }) + }) let returnData = {} returnData.results = results.map(this.formatDocumentForOutput.bind(this)) @@ -502,6 +502,41 @@ DataStore.prototype.insert = function ({data, collection, options = {}, schema, }) } +/** Search for documents in the database + * + * @param {Object|Array} words - + * @param {string} collection - the name of the collection to search + * @param {object} options - options to modify the query + * @param {Object} schema - the JSON schema for the collection + * @param {Object} settings - the JSON settings configuration for the collection + * @returns {Promise.} + */ +DataStore.prototype.search = function ({ words, collection, options = {}, schema, settings }) { + if (this._mockIsDisconnected(collection)) { + this.readyState = STATE_DISCONNECTED + + return Promise.reject(new Error('DB_DISCONNECTED')) + } + + debug('search in %s for %o', collection, words) + + return new Promise((resolve, reject) => { + this.getCollection(collection).then(collection => { + let results + + let query = { + word: { + '$containsAny': words + } + } + + let baseResultset = collection.chain().find(query) + + return resolve(baseResultset.mapReduce(searchMapFn, searchReduceFn)) + }) + }) +} + /** * */ @@ -621,6 +656,48 @@ DataStore.prototype.update = function ({query, collection, update, options = {}, }) } +function searchMapFn (document) { + return { + document: document.document, + word: document.word, + weight: document.weight + } +} + +function searchReduceFn (documents) { + let matches = documents.reduce((groups, document) => { + let key = document.document + + groups[key] = groups[key] || { + count: 0, + weight: 0 + } + + groups[key].count++ + groups[key].weight = groups[key].weight + document.weight + return groups + }, {}) + + let output = [] + + Object.keys(matches).forEach(function (match) { + output.push({ + _id: { + document: match + }, + count: matches[match].count, + weight: matches[match].weight + }) + }) + + output.sort(function (a, b) { + if (a.weight === b.weight) return 0 + return a.weight < b.weight ? 1 : -1 + }) + + return output +} + module.exports = DataStore module.exports.settings = { connectWithCollection: false diff --git a/test/unit/help.js b/test/unit/help.js index 716960bf..21e880f9 100755 --- a/test/unit/help.js +++ b/test/unit/help.js @@ -10,18 +10,51 @@ module.exports.getModelSchema = function () { 'type': 'String', 'label': 'Title', 'comments': 'The title of the entry', - 'placement': 'Main content', 'validation': {}, 'required': false, - 'message': '', - 'display': { - 'index': true, - 'edit': true + 'message': '' + } + } +} + +module.exports.getSearchModelSchema = function () { + return { + 'fieldName': { + 'type': 'String', + 'label': 'Title', + 'comments': 'The title of the entry', + 'validation': {}, + 'required': false + }, + 'invalidSearchableFieldName': { + 'type': 'String', + 'label': 'Title', + 'comments': 'The title of the entry', + 'validation': {}, + 'required': false, + 'search': true + }, + 'searchableFieldName': { + 'type': 'String', + 'label': 'Title', + 'comments': 'The title of the entry', + 'validation': {}, + 'required': false, + 'search': { + 'weight': 2 } } } } +module.exports.getSampleSearchDocument = () => { + return { + fieldName: 'foo', + invalidSearchableFieldName: 'bar', + searchableFieldName: 'baz' + } +} + module.exports.getModelSettings = function () { return { cache: true, diff --git a/test/unit/model/index.js b/test/unit/model/index.js index 7e961601..99b94289 100755 --- a/test/unit/model/index.js +++ b/test/unit/model/index.js @@ -70,36 +70,6 @@ describe('Model', function () { done() }) - it.skip('should accept database connection as third argument', function (done) { - config.set('database.enableCollectionDatabases', true) - connection.resetConnections() - - const conn = connection({ - 'username': '', - 'password': '', - 'database': 'test', - 'replicaSet': '', - 'hosts': [ - { - 'host': 'localhost', - 'port': 27020 - } - ] - }) - - // TODO: stub the connect method so this doesn't cause a connection attempt - - const mod = model('testModelName', help.getModelSchema(), conn) - should.exist(mod.connection) - mod.connection.connectionOptions.hosts[0].host.should.equal('localhost') - mod.connection.connectionOptions.hosts[0].port.should.equal(27020) - mod.connection.connectionOptions.database.should.equal('test') - - config.set('database.enableCollectionDatabases', false) - - done() - }) - it('should accept model settings as fourth argument', function (done) { const mod = model( 'testModelName', diff --git a/test/unit/search/analysers/standard.js b/test/unit/search/analysers/standard.js new file mode 100644 index 00000000..4dc06913 --- /dev/null +++ b/test/unit/search/analysers/standard.js @@ -0,0 +1,127 @@ +const should = require('should') +const sinon = require('sinon') +const standardAnalyser = require(__dirname + '/../../../../dadi/lib/search/analysers/standard') +const model = require(__dirname + '/../../../../dadi/lib/model') + +const indexableFields = { + foo: { + search: { + weight: 2 + } + } +} + +let analyser + +describe('Standard Search Analyser', () => { + beforeEach(done => { + analyser = new standardAnalyser(indexableFields) + done() + }) + + it('should export constructor', done => { + standardAnalyser.should.be.Function + done() + }) + + describe('`isValid` method', () => { + it('should return false if value is not a valid string', done => { + analyser.isValid(undefined).should.be.false + done() + }) + + it('should return true if value is a valid string', done => { + analyser.isValid('foo').should.be.true + done() + }) + }) + + describe('`tokenize` method', () => { + it('should return a tokenized array of words from a string', done => { + const tokens = analyser.tokenize('Foo Bar Baz') + + tokens.should.be.an.instanceOf(Array) + .and.have.lengthOf(3) + tokens.should.eql(['foo', 'bar', 'baz']) + done() + }) + }) + + describe('`unique` method', () => { + it('should reduce an array to unique values', done => { + analyser.unique(['foo', 'foo', 'bar']) + .should.be.an.instanceOf(Array) + .and.have.lengthOf(2) + done() + }) + + it('should return empty array if the input is not a valid array', done => { + analyser.unique(undefined) + .should.be.an.instanceOf(Array) + .and.have.lengthOf(0) + done() + }) + }) + + describe('`areValidWords` method', () => { + it('should return false if array of words is invalid', done => { + analyser.areValidWords(undefined) + .should.be.false + + analyser.areValidWords([ + { + word: 'foo' + } + ]) + .should.be.false + + analyser.areValidWords([ + { + word: 'foo', + weight: 2 + } + ]) + .should.be.true + + done() + }) + }) + + describe('`mergeWeights` method', () => { + it('should return empty array if words are invalid', done => { + analyser.mergeWeights(undefined) + .should.be.an.instanceOf(Array) + .and.have.lengthOf(0) + + analyser.mergeWeights([{ + word: 'foo' + }]) + .should.be.an.instanceOf(Array) + .and.have.lengthOf(0) + done() + }) + + it('should reduce multiple word instances to a unique instance of the highest weight value', done => { + analyser.mergeWeights([ + { weight: 2.85116730682758, word: 'foo' }, + { weight: 2.280933845462064, word: 'foo' } + ]) + .should.be.an.instanceOf(Array) + .and.have.lengthOf(1) + + analyser.mergeWeights([ + { weight: 2.85116730682758, word: 'foo' }, + { weight: 2.280933845462064, word: 'foo' } + ])[0] + .should.be.an.instanceOf(Object) + .and.have.property('weight', 2.5660505761448222) + + done() + }) + }) +}) + +// add +// getWordsInField +// getAllWords +// getWordInstances diff --git a/test/unit/search/index.js b/test/unit/search/index.js new file mode 100644 index 00000000..8320a8f2 --- /dev/null +++ b/test/unit/search/index.js @@ -0,0 +1,300 @@ +const acceptanceHelper = require('./../../acceptance/help') +const config = require('./../../../config') +const faker = require('faker') +const help = require('./../help') +const Model = require('./../../../dadi/lib/model') +const Search = require('./../../../dadi/lib/search') +const should = require('should') +const sinon = require('sinon') +const store = require(config.get('search.datastore')) + +let mod +let searchInstance + +describe('Search', () => { + before(() => { + config.set('search.enabled', true) + }) + + beforeEach(done => { + mod = Model('testSearchModel', help.getSearchModelSchema(), null, { database: 'testdb' }) + searchInstance = new Search(mod) + searchInstance.init() + done() + }) + + after(() => { + config.set('search.enabled', false) + }) + + it('should export constructor', done => { + Search.should.be.Function + done() + }) + + it('should export a function that returns an instance', done => { + searchInstance.should.be.an.instanceOf(Search) + done() + }) + + it('should throw an error if model is incorrect type', done => { + should.throws(function () { var x = new Search() }) + done() + }) + + describe('`initialiseConnections` method', () => { + it('should initialise required connections', done => { + searchInstance.initialiseConnections() + + setTimeout(() => { + should.exist(searchInstance.wordConnection.db) + should.exist(searchInstance.searchConnection.db) + done() + }, 500) + }) + }) + + describe.skip('`applyIndexListeners` method', () => { + it('should call database index method once connection is established', done => { + mod = Model('testModelNew', help.getSearchModelSchema(), null, { database: 'testdb' }) + const dbIndexStub = sinon.spy(store.prototype, 'index') + + searchInstance = new Search(mod) + + setTimeout(() => { + dbIndexStub.called.should.be.true + dbIndexStub.lastCall.args[0].should.eql('testModelNewSearch') + dbIndexStub.lastCall.args[1].should.be.Object + dbIndexStub.restore() + + done() + }, 1000) + }) + }) + + describe('`getWordSchema` method', () => { + it('should return an object', done => { + const schema = searchInstance.getWordSchema() + schema.should.be.Object + done() + }) + }) + + describe('`getSearchSchema` method', () => { + it('should return an object', done => { + const schema = searchInstance.getSearchSchema() + schema.should.be.Object + done() + }) + }) + + describe('`getIndexableFields` method', () => { + it('should return an object', done => { + searchInstance.getIndexableFields().should.be.Object + done() + }) + + it('should return an object containing only indexable fields', done => { + searchInstance.getIndexableFields().should.be.an.instanceOf(Object).and.have.property('searchableFieldName', {weight: 2}) + searchInstance.getIndexableFields().should.not.have.property('fieldName') + searchInstance.getIndexableFields().should.not.have.property('invalidSearchableFieldName') + done() + }) + }) + + describe('`removeNonIndexableFields` method', () => { + it('should return an object if doc is invalid', done => { + searchInstance.removeNonIndexableFields().should.be.Object + done() + }) + + it('should remove non-indexable fields from document', done => { + searchInstance.removeNonIndexableFields(help.getSampleSearchDocument()) + .should.not.have.property('fieldName') + searchInstance.removeNonIndexableFields(help.getSampleSearchDocument()) + .should.not.have.property('invalidSearchableFieldName') + searchInstance.removeNonIndexableFields(help.getSampleSearchDocument()) + .should.have.property('searchableFieldName', 'baz') + done() + }) + }) + + describe('`formatInsertQuery` method', () => { + it('should convert list of words to valid insert query object', done => { + searchInstance.formatInsertQuery(['foo']).should.be.an.instanceOf(Array) + searchInstance.formatInsertQuery(['foo'])[0].should.have.property('word', 'foo') + done() + }) + }) + + describe('`hasSeachField` method', () => { + it('should return false if a field is invalid', done => { + searchInstance.hasSearchField().should.be.false + done() + }) + + it('should return false if a field does not contain a valid search parameter', done => { + searchInstance.hasSearchField({search: 'foo'}).should.be.false + done() + }) + + it('should return true if a field has a valid search and search weight parameter', done => { + searchInstance.hasSearchField({search: {weight: 2}}).should.be.true + done() + }) + }) + + describe('`clearDocumentInstances` method', () => { + it('should delete all search instance documents with filtered query', done => { + const dbDeleteStub = sinon.spy(store.prototype, 'delete') + + searchInstance.clearDocumentInstances('mockDocId') + dbDeleteStub.called.should.be.true + dbDeleteStub.lastCall.args[0].should.have.property('query', {document: 'mockDocId'}) + dbDeleteStub.restore() + + done() + }) + }) + + describe('`delete` method', () => { + it('should return without firing clearDocumentInstances if an array of documents is not provided', done => { + const dbDeleteStub = sinon.spy(searchInstance, 'clearDocumentInstances') + + searchInstance.delete({_id: 'mockDocId'}) + dbDeleteStub.called.should.be.false + dbDeleteStub.restore() + + done() + }) + + it('should execute clearDocumentInstances if an array of documents is provided', done => { + const dbDeleteStub = sinon.spy(searchInstance, 'clearDocumentInstances') + + searchInstance.delete([{_id: 'mockDocId'}]) + dbDeleteStub.called.should.be.true + dbDeleteStub.lastCall.args[0].should.eql('mockDocId') + dbDeleteStub.restore() + + done() + }) + }) + + describe('`batchIndex` method', () => { + it('should not execute the runBatchIndex method if no fields can be indexed', done => { + let schema = help.getSearchModelSchema() + delete schema.searchableFieldName + + let mod = Model('testSearchModel', schema, null, { database: 'testdb' }) + const unIndexable = new Search(mod) + unIndexable.init() + + const stub = sinon.spy(unIndexable, 'runBatchIndex') + + unIndexable.batchIndex(1, 100) + stub.called.should.be.false + stub.restore() + done() + }) + + it('should call the runBatchIndex method with correct arguments when using defaults', done => { + let schema = help.getSearchModelSchema() + let mod = Model('testSearchModel', schema, null, { database: 'testdb' }) + const indexable = new Search(mod) + indexable.init() + + const stub = sinon.spy(indexable, 'runBatchIndex') + + indexable.batchIndex() + stub.called.should.be.true + let args = stub.lastCall.args[0] + args.page.should.eql(1) + args.limit.should.eql(1000) + args.skip.should.eql(0) + args.fields.should.eql({searchableFieldName: 1}) + stub.restore() + done() + }) + + it('should call the runBatchIndex method with correct arguments when using specific params', done => { + let schema = help.getSearchModelSchema() + let mod = Model('testSearchModel', schema, null, { database: 'testdb' }) + const indexable = new Search(mod) + indexable.init() + + const stub = sinon.spy(indexable, 'runBatchIndex') + + indexable.batchIndex(2, 500) + stub.called.should.be.true + let args = stub.lastCall.args[0] + args.page.should.eql(2) + args.limit.should.eql(500) + args.skip.should.eql(500) + args.fields.should.eql({searchableFieldName: 1}) + stub.restore() + done() + }) + }) + + describe('batchIndex', function () { + beforeEach((done) => { + acceptanceHelper.dropDatabase('testdb', err => { + done() + }) + }) + + it('should call runBatchIndex repeatedly when there are more results', done => { + let schema = help.getSearchModelSchema() + let mod = Model('testSearchModel', schema, null, { database: 'testdb' }) + let indexable = new Search(mod) + indexable.init() + + let spy = sinon.spy(indexable, 'runBatchIndex') + + let docs = [ + { searchableFieldName: faker.name.findName() }, + { searchableFieldName: faker.name.findName() }, + { searchableFieldName: faker.name.findName() }, + { searchableFieldName: faker.name.findName() }, + { searchableFieldName: faker.name.findName() } + ] + + // insert documents directly + mod.connection.db.insert({ + data: docs, + collection: 'testSearchModel', + schema + }) + + let indexStub = sinon.stub(indexable, 'index').callsFake(() => { + return Promise.resolve({ + results: docs, + metadata: { + totalPages: 5, + totalCount: 5 + } + }) + }) + + indexable.batchIndex(1, 1) + + setTimeout(() => { + spy.restore() + indexStub.restore() + spy.callCount.should.be.above(1) + let args = spy.args + args[0][0].skip.should.eql(0) + args[0][0].page.should.eql(1) + args[1][0].skip.should.eql(1) + args[1][0].page.should.eql(2) + args[2][0].skip.should.eql(2) + args[2][0].page.should.eql(3) + args[3][0].skip.should.eql(3) + args[3][0].page.should.eql(4) + args[4][0].skip.should.eql(4) + args[4][0].page.should.eql(5) + done() + }, 3000) + }) + }) +}) diff --git a/test/unit/storage.s3.js b/test/unit/storage.s3.js index d31da43a..72356f8e 100644 --- a/test/unit/storage.s3.js +++ b/test/unit/storage.s3.js @@ -85,7 +85,7 @@ describe('Storage', function (done) { }) }) - it.skip('should call S3 API with the correct parameters when deleting media', function (done) { + it('should call S3 API with the correct parameters when deleting media', function (done) { config.set('media.enabled', true) config.set('media.storage', 's3') config.set('media.s3.bucketName', 'testbucket') @@ -118,7 +118,7 @@ describe('Storage', function (done) { }) }) - it.skip('should call S3 API with the correct parameters when requesting media', function (done) { + it('should call S3 API with the correct parameters when requesting media', function (done) { config.set('media.enabled', true) config.set('media.storage', 's3') config.set('media.s3.bucketName', 'testbucket') diff --git a/workspace/collections/vjoin/testdb/collection.books.json b/workspace/collections/vjoin/testdb/collection.books.json index 8c01ff9f..5d9299c5 100755 --- a/workspace/collections/vjoin/testdb/collection.books.json +++ b/workspace/collections/vjoin/testdb/collection.books.json @@ -5,38 +5,27 @@ "label": "name", "example": "War and Peace", "comments": "This is the book's name", - "placement": "Main content", "required": true, - "message": "", - "display": { - "index": true, - "edit": false + "search": { + "weight": 2 } }, - "author": { - "type": "Reference", + "authorId": { + "type": "String", "label": "author", "example": "b8b285ae-53d1-47a5-9e69-ec04", "comments": "This is the _id of the book's author", - "placement": "Main content", - "required": true, - "message": "", - "display": { - "index": true, - "edit": true + "validation": { + "regex": { + "pattern": "^[0-9a-fA-F]{24}$" + } }, - "settings": { - "collection": "users", - "strictCompose": true - } + "required": true } }, "settings": { "cache": true, "authenticate": true, - "callback": null, - "defaultFilters": null, - "fieldLimiters": null, "count": 40, "sort": "name", "sortOrder": 1,