├── .npmignore ├── .gitignore ├── index.js ├── test ├── number.test.js ├── numeric_range.test.js ├── parent-child.test.js ├── simple.test.js ├── nested.test.js └── array.test.js ├── src ├── create-schema-entry.js ├── prop-to-schema-entry.js ├── build-mappings-for.js ├── types │ ├── array │ │ ├── data.js │ │ ├── items.js │ │ ├── item.js │ │ ├── items.test.js │ │ ├── index.js │ │ └── item.test.js │ ├── ip.js │ ├── date.js │ ├── geo-location.js │ ├── boolean.js │ ├── date_range.js │ ├── string.js │ ├── info.js │ ├── default.js │ ├── base.test.js │ ├── index.js │ ├── num_range.js │ ├── range.js │ ├── definition │ │ ├── definition-ref.test.js │ │ └── index.js │ ├── object.js │ ├── number.js │ ├── util.js │ └── base.js ├── props-to-mapping.js ├── normalize-required.js ├── index.js ├── build.js ├── build-config.js ├── build-properties.js └── entry.js ├── package.json ├── Readme.md └── yarn.lock /.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src') 2 | -------------------------------------------------------------------------------- /test/number.test.js: -------------------------------------------------------------------------------- 1 | const { build } = require("../src"); 2 | 3 | describe("numeric range", () => { 4 | test("no min", () => {}); 5 | }); 6 | -------------------------------------------------------------------------------- /test/numeric_range.test.js: -------------------------------------------------------------------------------- 1 | const { build } = require("../src"); 2 | 3 | describe("numeric range", () => { 4 | test("no min", () => {}); 5 | }); 6 | -------------------------------------------------------------------------------- /src/create-schema-entry.js: -------------------------------------------------------------------------------- 1 | const { SchemaEntry } = require("./entry"); 2 | 3 | function createSchemaEntry(obj, config) { 4 | return new SchemaEntry(obj, config).toEntry(); 5 | } 6 | 7 | module.exports = { 8 | createSchemaEntry 9 | }; 10 | -------------------------------------------------------------------------------- /src/prop-to-schema-entry.js: -------------------------------------------------------------------------------- 1 | const { createSchemaEntry } = require("./create-schema-entry"); 2 | 3 | function propToSchemaEntry(obj, config = {}) { 4 | const entryBuilder = createSchemaEntry || config.createSchemaEntry; 5 | return entryBuilder(obj, config); 6 | } 7 | 8 | module.exports = { 9 | propToSchemaEntry 10 | }; 11 | -------------------------------------------------------------------------------- /src/build-mappings-for.js: -------------------------------------------------------------------------------- 1 | const { build } = require("./build"); 2 | 3 | function buildMappingsFor(name, schema, config = {}) { 4 | const { properties } = build(schema, config); 5 | return { 6 | mappings: { 7 | [name]: { 8 | properties 9 | } 10 | } 11 | }; 12 | } 13 | 14 | module.exports = { 15 | buildMappingsFor 16 | }; 17 | -------------------------------------------------------------------------------- /src/types/array/data.js: -------------------------------------------------------------------------------- 1 | const arrays = { 2 | numberOfChildren: { 3 | description: "Children parented", 4 | type: "array", 5 | items: [ 6 | { 7 | type: "number", 8 | format: "integer", 9 | name: "childCount", 10 | enum: [0, 1, 2] 11 | } 12 | ] 13 | } 14 | }; 15 | 16 | module.exports = { 17 | arrays 18 | }; 19 | -------------------------------------------------------------------------------- /src/types/ip.js: -------------------------------------------------------------------------------- 1 | const { MappingBase } = require("./base"); 2 | 3 | const isIp = (obj) => false 4 | 5 | function toIp(obj) { 6 | return isIp(obj) && MappingIp.create(obj).convert(); 7 | } 8 | 9 | // integer_range, float_range, long_range, double_range 10 | 11 | class MappingIp extends MappingBase { 12 | get baseType() { 13 | return "ip"; 14 | } 15 | } 16 | 17 | module.exports = { 18 | toIp, 19 | MappingIp 20 | }; 21 | -------------------------------------------------------------------------------- /src/props-to-mapping.js: -------------------------------------------------------------------------------- 1 | function propsToMapping({ parentName, properties }, config = {}) { 2 | const { propToSchemaEntry } = config; 3 | const propKeys = Object.keys(properties); 4 | return propKeys.reduce((acc, key) => { 5 | const value = properties[key]; 6 | acc[key] = propToSchemaEntry({ parentName, key, value }, config); 7 | return acc; 8 | }, {}); 9 | } 10 | 11 | module.exports = { 12 | propsToMapping 13 | }; 14 | -------------------------------------------------------------------------------- /src/types/date.js: -------------------------------------------------------------------------------- 1 | const { MappingBaseType } = require("./base"); 2 | const { isDate } = require("./util"); 3 | 4 | function toDate(obj) { 5 | return isDate(obj) && MappingDate.create(obj).convert(); 6 | } 7 | 8 | class MappingDate extends MappingBaseType { 9 | get baseType() { 10 | return "date"; 11 | } 12 | 13 | static create(obj) { 14 | return new MappingDate(obj); 15 | } 16 | } 17 | 18 | module.exports = { 19 | toDate, 20 | MappingDate 21 | }; 22 | -------------------------------------------------------------------------------- /src/normalize-required.js: -------------------------------------------------------------------------------- 1 | function normalizeRequired(schema) { 2 | let { properties, required } = schema; 3 | required = required || []; 4 | return Object.keys(properties).reduce((acc, key) => { 5 | const value = properties[key]; 6 | const isRequired = required.indexOf(key) >= 0; 7 | value.required = value.required || isRequired; 8 | acc[key] = value; 9 | return acc; 10 | }, {}); 11 | } 12 | 13 | module.exports = { 14 | normalizeRequired 15 | }; 16 | -------------------------------------------------------------------------------- /src/types/geo-location.js: -------------------------------------------------------------------------------- 1 | const { MappingBase } = require("./base"); 2 | 3 | const isGeoLocation = (obj) => false 4 | 5 | function toGeoLocation(obj) { 6 | return isGeoLocation(obj) && MappingGeoLocation.create(obj).convert(); 7 | } 8 | 9 | // integer_range, float_range, long_range, double_range 10 | 11 | class MappingGeoLocation extends MappingBase { 12 | get baseType() { 13 | return "geo"; 14 | } 15 | } 16 | 17 | module.exports = { 18 | toGeoLocation, 19 | MappingGeoLocation 20 | }; 21 | -------------------------------------------------------------------------------- /src/types/boolean.js: -------------------------------------------------------------------------------- 1 | const { MappingBaseType } = require("./base"); 2 | const { isBoolean } = require("./util"); 3 | 4 | function toBoolean(obj) { 5 | return isBoolean(obj.type) && MappingBoolean.create(obj).convert(); 6 | } 7 | 8 | class MappingBoolean extends MappingBaseType { 9 | get baseType() { 10 | return "boolean"; 11 | } 12 | 13 | static create(obj) { 14 | return new MappingBoolean(obj); 15 | } 16 | } 17 | 18 | module.exports = { 19 | toBoolean, 20 | MappingBoolean 21 | }; 22 | -------------------------------------------------------------------------------- /src/types/date_range.js: -------------------------------------------------------------------------------- 1 | const { MappingRange } = require("./range"); 2 | const { isDateRange } = require("./util"); 3 | 4 | function toDateRange(obj) { 5 | return isDateRange(obj) && MappingDateRange.create(obj).convert(); 6 | } 7 | 8 | // date_range 9 | 10 | class MappingDateRange extends MappingRange { 11 | get baseType() { 12 | return "date_range"; 13 | } 14 | 15 | get type() { 16 | return this.baseType; 17 | } 18 | } 19 | 20 | module.exports = { 21 | toDateRange, 22 | MappingDateRange 23 | }; 24 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | const { SchemaEntry, SchemaEntryError } = require("./entry"); 2 | const { buildProperties } = require("./build-properties"); 3 | const { buildMappingsFor } = require("./build-mappings-for"); 4 | const { build } = require("./build"); 5 | const { createSchemaEntry } = require("./create-schema-entry"); 6 | 7 | const types = require("./types"); 8 | 9 | module.exports = { 10 | build, 11 | buildProperties, 12 | buildMappingsFor, 13 | createSchemaEntry, 14 | SchemaEntry, 15 | SchemaEntryError, 16 | types 17 | }; 18 | -------------------------------------------------------------------------------- /src/types/string.js: -------------------------------------------------------------------------------- 1 | const {MappingBaseType} = require('./base') 2 | 3 | function isString(type) { 4 | return type === 'string' 5 | } 6 | 7 | function toString(obj) { 8 | return isString(obj.type) && MappingString 9 | .create(obj) 10 | .convert() 11 | } 12 | 13 | class MappingString extends MappingBaseType { 14 | get baseType() { 15 | return this._types.string || 'keyword' 16 | } 17 | 18 | static create(obj) { 19 | return new MappingString(obj) 20 | } 21 | } 22 | 23 | module.exports = { 24 | toString, 25 | MappingString 26 | } 27 | -------------------------------------------------------------------------------- /src/build.js: -------------------------------------------------------------------------------- 1 | const { buildConfig } = require("./build-config"); 2 | 3 | function build(schema, config = {}) { 4 | const { onComplete, onThrow } = config; 5 | try { 6 | config = buildConfig(config, schema); 7 | properties = config.buildProperties(schema, config); 8 | results = config.resultObj; 9 | onComplete && onComplete(results); 10 | return { 11 | properties, 12 | results 13 | }; 14 | } catch (err) { 15 | onThrow && onThrow(err); 16 | throw err; 17 | } 18 | } 19 | 20 | module.exports = { 21 | build, 22 | buildConfig 23 | }; 24 | -------------------------------------------------------------------------------- /src/types/info.js: -------------------------------------------------------------------------------- 1 | class InfoHandler { 2 | contructor(config = {}) { 3 | this.config = config || this.config; 4 | } 5 | 6 | errMessage(errKey = "default") { 7 | return this.message[errKey] || "error"; 8 | } 9 | 10 | error(name, msg, data) { 11 | const errMsg = `[${name}] ${msg}`; 12 | this.onError(errMsg, data); 13 | throw new ConvertMappingSchemaError(errMsg); 14 | } 15 | 16 | onError(errMsg, data) { 17 | const onError = this.config.onError; 18 | if (!isFunction(onError)) return; 19 | onError(errMsg, data); 20 | } 21 | } 22 | 23 | module.exports = { 24 | InfoHandler 25 | }; 26 | -------------------------------------------------------------------------------- /src/build-config.js: -------------------------------------------------------------------------------- 1 | const { normalizeRequired } = require("./normalize-required"); 2 | const { buildProperties } = require("./build-properties"); 3 | const { propsToMapping } = require("./props-to-mapping"); 4 | const { propToSchemaEntry } = require("./prop-to-schema-entry"); 5 | 6 | function buildConfig(config = {}, schema) { 7 | const builtConfig = { 8 | schema, 9 | resultObj: {}, 10 | normalizeRequired, 11 | buildProperties, 12 | propsToMapping, 13 | propToSchemaEntry, 14 | itemResolver: propToSchemaEntry, 15 | ...config 16 | }; 17 | return builtConfig; 18 | } 19 | 20 | module.exports = { 21 | buildConfig 22 | }; 23 | -------------------------------------------------------------------------------- /src/types/default.js: -------------------------------------------------------------------------------- 1 | const $default = { 2 | config: { 3 | _meta_: { 4 | types: { 5 | string: "keyword", 6 | number: "float", 7 | object: "object", 8 | array: "nested", 9 | boolean: "boolean", 10 | date: "date" 11 | } 12 | }, 13 | fields: { 14 | name: { 15 | type: "keyword" 16 | }, 17 | content: { 18 | type: "text" 19 | }, 20 | text: { 21 | type: "text" 22 | }, 23 | title: { 24 | type: "text" 25 | }, 26 | caption: { 27 | type: "text" 28 | }, 29 | label: { 30 | type: "text" 31 | }, 32 | tag: { 33 | type: "keyword", 34 | index: "not_analyzed" 35 | } 36 | } 37 | } 38 | }; 39 | 40 | module.exports = { 41 | $default 42 | }; 43 | -------------------------------------------------------------------------------- /src/types/base.test.js: -------------------------------------------------------------------------------- 1 | const { MappingBaseType } = require("./base"); 2 | 3 | const create = (opts, config) => { 4 | opts.config = config; 5 | return new MappingBaseType(opts, config); 6 | }; 7 | 8 | describe("definitionResolver", () => { 9 | const config = {}; 10 | describe("set on config", () => { 11 | const definitionResolver = () => 42; 12 | const config = { 13 | definitionResolver 14 | }; 15 | const obj = { 16 | $ref: "x" 17 | }; 18 | const mapper = create(obj, config); 19 | 20 | test("is one from config", () => { 21 | expect(mapper.definitionResolver).toBe(definitionResolver); 22 | }); 23 | }); 24 | describe("default", () => { 25 | const obj = { 26 | $ref: "x" 27 | }; 28 | const mapper = create(obj, config); 29 | 30 | test("is set", () => { 31 | expect(mapper.definitionResolver).toBeDefined(); 32 | }); 33 | }); 34 | }); 35 | -------------------------------------------------------------------------------- /src/types/index.js: -------------------------------------------------------------------------------- 1 | const { MappingBaseType, ConvertMappingSchemaError } = require("./base"); 2 | const { MappingArray, toArray } = require("./array"); 3 | const { MappingBoolean, toBoolean } = require("./boolean"); 4 | const { MappingNumber, toNumber } = require("./number"); 5 | const { MappingNumericRange, toNumericRange } = require("./num_range"); 6 | const { MappingDateRange, toDateRange } = require("./date_range"); 7 | const { MappingObject, toObject } = require("./object"); 8 | const { MappingString, toString } = require("./string"); 9 | const { MappingDate, toDate } = require("./date"); 10 | const util = require("./util"); 11 | 12 | module.exports = { 13 | MappingArray, 14 | toArray, 15 | MappingBoolean, 16 | toBoolean, 17 | MappingDateRange, 18 | toDateRange, 19 | MappingNumericRange, 20 | toNumericRange, 21 | MappingNumber, 22 | toNumber, 23 | MappingObject, 24 | toObject, 25 | MappingString, 26 | toString, 27 | MappingDate, 28 | toDate, 29 | MappingBaseType, 30 | ConvertMappingSchemaError, 31 | util 32 | }; 33 | -------------------------------------------------------------------------------- /src/types/num_range.js: -------------------------------------------------------------------------------- 1 | const { MappingNumber } = require("./number"); 2 | const { isNumericRange } = require("./util"); 3 | 4 | function toNumericRange(obj) { 5 | return isNumericRange(obj) && MappingNumericRange.create(obj).convert(); 6 | } 7 | 8 | // integer_range, float_range, long_range, double_range 9 | 10 | class MappingNumericRange extends MappingNumber { 11 | get baseType() { 12 | return this._types.range || "float_range"; 13 | } 14 | 15 | get type() { 16 | return this.rangeMap[this.numericType] || this.baseType; 17 | } 18 | 19 | get rangeMap() { 20 | return { 21 | byte: "integer_range", 22 | short: "integer_range", 23 | integer: "integer_range", 24 | long: "long_range", 25 | float: "float_range", 26 | half_float: "float_range", 27 | double: "double_range" 28 | }; 29 | } 30 | 31 | get numericType() { 32 | return this.configType || this.calcNumericType || this.baseType; 33 | } 34 | } 35 | 36 | module.exports = { 37 | toNumericRange, 38 | MappingNumericRange 39 | }; 40 | -------------------------------------------------------------------------------- /test/parent-child.test.js: -------------------------------------------------------------------------------- 1 | const { build } = require("../src"); 2 | 3 | describe("array", () => { 4 | test("parent-child items", () => { 5 | const json = { 6 | $schema: "http://json-schema.org/draft-07/schema#", 7 | $id: "http://example.com/person.schema.json", 8 | title: "Person", 9 | description: "A person", 10 | type: "object", 11 | properties: { 12 | friends: { 13 | description: "Names of friends", 14 | type: "array", 15 | reference: true, // ensure parent-child 16 | items: { 17 | type: 'object', 18 | properties: { 19 | name: { 20 | type: 'string' 21 | } 22 | } 23 | } 24 | } 25 | } 26 | }; 27 | 28 | const config = {}; 29 | const { properties } = build(json, config); 30 | expect(properties).toEqual({ 31 | friends: { 32 | _parent: { type: 'person' }, 33 | _source: { enabled: true }, 34 | _all: { enabled: false } 35 | } 36 | }); 37 | }); 38 | }); -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "json-schema-to-es-mapping", 3 | "version": "0.3.6", 4 | "main": "src/index.js", 5 | "description": "Generate Elastic Search mappings from JSON Schema", 6 | "license": "MIT", 7 | "author": "Kristian Mandrup ", 8 | "homepage": "https://github.com/kristianmandrup/json-schema-to-es-mapping#readme", 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/kristianmandrup/json-schema-to-es-mapping.git" 12 | }, 13 | "bugs": { 14 | "url": "https://github.com/kristianmandrup/json-schema-to-es-mapping/issues", 15 | "email": "kmandrup@gmail.com" 16 | }, 17 | "devDependencies": { 18 | "jest": "^23.0.0" 19 | }, 20 | "keywords": [ 21 | "elastic", 22 | "search", 23 | "elasticsearch", 24 | "elastic-search", 25 | "json", 26 | "json-schema", 27 | "schema", 28 | "convert", 29 | "build", 30 | "builder", 31 | "generator" 32 | ], 33 | "scripts": { 34 | "test": "jest" 35 | }, 36 | "dependencies": { 37 | "dot-prop": "^5.0.0", 38 | "inflection": "^1.12.0" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/types/array/items.js: -------------------------------------------------------------------------------- 1 | const { MappingBaseType } = require("../base"); 2 | const { createMappingItemFactory } = require("./item"); 3 | 4 | const createItemsMapping = (opts, config) => { 5 | return new MappingItems(opts, config); 6 | }; 7 | 8 | class MappingItems extends MappingBaseType { 9 | constructor({ items, owner = {}, config = {} }) { 10 | super(config); 11 | this.items = items; 12 | this.ownerName = owner.name; 13 | 14 | const createMappingItem = createMappingItemFactory(config); 15 | const itemResolver = item => { 16 | return createMappingItem(item).resolve(); 17 | }; 18 | this.itemResolver = config.itemResolver || itemResolver; 19 | } 20 | 21 | resolve() { 22 | const resolveItem = this.resolveItem.bind(this); 23 | return this.items.map(resolveItem); 24 | } 25 | 26 | resolveItem(item) { 27 | item.ownerName = this.ownerName; 28 | return this.typeResolver(item); 29 | } 30 | 31 | typeResolver(item) { 32 | const payload = this.itemEntryPayload(item); 33 | return this.itemResolver(payload, this.config); 34 | } 35 | 36 | itemEntryPayload(item) { 37 | return { 38 | ownerName: this.key, 39 | item 40 | }; 41 | } 42 | } 43 | 44 | module.exports = { 45 | createItemsMapping, 46 | MappingItems 47 | }; 48 | -------------------------------------------------------------------------------- /src/types/array/item.js: -------------------------------------------------------------------------------- 1 | const { MappingBaseType } = require("../base"); 2 | const { isFunction } = require("../util"); 3 | const { buildConfig } = require("../../build-config"); 4 | 5 | const createMappingItemFactory = (config = {}) => { 6 | config = buildConfig(config); 7 | return opts => { 8 | return new MappingItem(opts, config); 9 | }; 10 | }; 11 | 12 | class MappingItem extends MappingBaseType { 13 | constructor({ item, owner = {} }, config = {}) { 14 | super(config); 15 | this.item = item; 16 | this.config = config; 17 | this.ownerName = owner.name; 18 | } 19 | 20 | get resolver() { 21 | return this.config.itemResolver; 22 | } 23 | 24 | get validatedResolver() { 25 | if (!isFunction(this.resolver)) { 26 | this.error( 27 | "typeResolver", 28 | "Missing itemResolver (pass in config factories map)" 29 | ); 30 | } 31 | return this.resolver; 32 | } 33 | 34 | resolve(item) { 35 | this.item = item || this.item; 36 | const payload = this.itemEntryPayload; 37 | return this.validatedResolver(payload, this.config); 38 | } 39 | 40 | get itemEntryPayload() { 41 | return { 42 | parentName: this.ownerName, 43 | value: this.item 44 | }; 45 | } 46 | } 47 | 48 | module.exports = { 49 | createMappingItemFactory, 50 | MappingItem 51 | }; 52 | -------------------------------------------------------------------------------- /src/types/range.js: -------------------------------------------------------------------------------- 1 | const { MappingBaseType } = require("./base"); 2 | const { safeToInt } = require("./util"); 3 | 4 | class MappingRange extends MappingBaseType { 5 | constructor(opts) { 6 | super(opts); 7 | const minFn = this.exclusiveMinimum 8 | ? this.inMinRangeExcl 9 | : this.inMinRangeIncl; 10 | this.minFn = minFn.bind(this); 11 | const maxFn = this.exclusiveMaximum 12 | ? this.inMaxRangeExcl 13 | : this.inMaxRangeIncl; 14 | this.maxFn = maxFn.bind(this); 15 | } 16 | 17 | get exclusiveMaximum() { 18 | return this.value.exclusiveMaximum; 19 | } 20 | 21 | get maximum() { 22 | return this.value.maximum; 23 | } 24 | 25 | get exclusiveMinimum() { 26 | return this.value.exclusiveMinimum; 27 | } 28 | 29 | get minimum() { 30 | return this.value.minimum; 31 | } 32 | 33 | inMinRangeExcl(min) { 34 | return this.minExcl > min; 35 | } 36 | 37 | inMinRangeIncl(min) { 38 | return this.minIncl >= min; 39 | } 40 | 41 | inMaxRangeExcl(max) { 42 | return this.maxExcl > max; 43 | } 44 | 45 | inMaxRangeIncl(max) { 46 | return this.maxIncl >= max; 47 | } 48 | 49 | inRange(min, max) { 50 | return this.maxFn(max) && this.minFn(min); 51 | } 52 | 53 | outsideRange(min, max) { 54 | return this.max >= max || this.min <= min; 55 | } 56 | } 57 | 58 | module.exports = { 59 | MappingRange 60 | }; 61 | -------------------------------------------------------------------------------- /src/build-properties.js: -------------------------------------------------------------------------------- 1 | const { isObject, isFunction, camelcase } = require("./types/util"); 2 | 3 | function error(msg, data) { 4 | data ? console.error(msg, data) : console.error(msg); 5 | throw new Error(msg); 6 | } 7 | 8 | const defaults = { 9 | error 10 | }; 11 | 12 | function buildProperties(schema, config = {}) { 13 | let { type, properties } = schema; 14 | const error = config.error || defaults.error; 15 | 16 | const { normalizeRequired, propsToMapping } = config; 17 | if (!isFunction(normalizeRequired)) { 18 | error("missing normalizeRequired function in config", config); 19 | } 20 | if (!isFunction(propsToMapping)) { 21 | error("missing propsToMapping function in config", config); 22 | } 23 | 24 | if (!isObject(schema)) { 25 | error(`invalid schema: type must be object, was: ${type}`, type); 26 | } 27 | if (!properties) { 28 | error(`invalid schema, missing properties`, { schema, properties }); 29 | } 30 | properties = normalizeRequired(schema); 31 | const $parentName = 32 | schema.name || schema.parentName || schema.title || config.name; 33 | 34 | const parentName = camelcase($parentName, true) 35 | 36 | const propMappings = propsToMapping({ parentName, properties }, config); 37 | if (schema.parentName || config.nested) { 38 | return { 39 | type: "object", 40 | properties: { 41 | ...propMappings 42 | } 43 | }; 44 | } 45 | return propMappings; 46 | } 47 | 48 | module.exports = { 49 | buildProperties 50 | }; 51 | -------------------------------------------------------------------------------- /test/simple.test.js: -------------------------------------------------------------------------------- 1 | const { build } = require("../src"); 2 | 3 | describe("build", () => { 4 | test("simple properties", () => { 5 | const json = { 6 | $schema: "http://json-schema.org/draft-07/schema#", 7 | $id: "http://example.com/person.schema.json", 8 | title: "Person", 9 | description: "A person", 10 | type: "object", 11 | properties: { 12 | name: { 13 | description: "Name of the person", 14 | type: "string" 15 | }, 16 | age: { 17 | description: "Age of person", 18 | type: "number", 19 | required: true 20 | } 21 | }, 22 | required: ["name"] 23 | }; 24 | 25 | const received = []; 26 | const onResult = result => { 27 | // console.log("received", result); 28 | received.push(result); 29 | }; 30 | 31 | const config = { onResult }; 32 | const { properties, results } = build(json, config); 33 | // console.log({ properties, received, results }); 34 | 35 | // console.log("SIMPLE", JSON.stringify(properties, null, 2)); 36 | 37 | expect(received[1]).toEqual({ 38 | key: "age", 39 | parentName: "person", 40 | resultKey: "age", 41 | schemaValue: { 42 | description: "Age of person", 43 | required: true, 44 | type: "number" 45 | }, 46 | type: "float" 47 | }); 48 | expect(results).toEqual({ 49 | age: { type: "float" }, 50 | name: { type: "keyword" } 51 | }); 52 | expect(properties).toEqual({ 53 | name: { 54 | type: "keyword" 55 | }, 56 | age: { 57 | type: "float" 58 | } 59 | }); 60 | }); 61 | }); 62 | -------------------------------------------------------------------------------- /src/types/definition/definition-ref.test.js: -------------------------------------------------------------------------------- 1 | const { createDefinitionRefResolver } = require("./"); 2 | 3 | describe("DefinitionRefResolver", () => { 4 | const reference = "#/definitions/car"; 5 | const schema = { 6 | definitions: { 7 | car: { 8 | type: "object", 9 | name: "superCar", 10 | properties: {} 11 | } 12 | } 13 | }; 14 | const config = {}; 15 | 16 | const opts = { reference, schema, config }; 17 | 18 | const resolver = createDefinitionRefResolver(opts); 19 | 20 | describe("normalizedRef", () => { 21 | const { normalizedRef } = resolver; 22 | 23 | test("is car", () => { 24 | expect(normalizedRef).toEqual("definitions/car"); 25 | }); 26 | }); 27 | 28 | describe("dotPath", () => { 29 | const { dotPath } = resolver; 30 | 31 | test("is car", () => { 32 | expect(dotPath).toEqual("definitions.car"); 33 | }); 34 | }); 35 | 36 | describe("refName", () => { 37 | const { refName } = resolver; 38 | 39 | test("is car", () => { 40 | expect(refName).toEqual("car"); 41 | }); 42 | }); 43 | 44 | describe("refObject", () => { 45 | const { refObject } = resolver; 46 | 47 | test("is an object with name: superCar", () => { 48 | expect(typeof refObject).toEqual("object"); 49 | expect(refObject.name).toEqual("superCar"); 50 | }); 51 | }); 52 | 53 | describe("name", () => { 54 | const { name } = resolver; 55 | 56 | test("is superCar", () => { 57 | expect(name).toEqual("superCar"); 58 | }); 59 | }); 60 | 61 | describe("typeName", () => { 62 | const { typeName } = resolver; 63 | 64 | test("is SuperCar", () => { 65 | expect(typeName).toEqual("SuperCar"); 66 | }); 67 | }); 68 | }); 69 | -------------------------------------------------------------------------------- /src/types/array/items.test.js: -------------------------------------------------------------------------------- 1 | const { createItemsMapping } = require("./items"); 2 | const { arrays } = require("./data"); 3 | 4 | const create = (opts, config) => { 5 | return createItemsMapping(opts, config); 6 | }; 7 | 8 | describe("ItemsMapping", () => { 9 | const strItem = { 10 | type: "string" 11 | }; 12 | const intItem = { 13 | type: "integer" 14 | }; 15 | const owner = { name: "person" }; 16 | 17 | const items = [strItem, intItem]; 18 | const config = {}; 19 | const opts = { items, owner }; 20 | const resolver = create(opts, config); 21 | 22 | describe("typeResolver", () => { 23 | const resolved = resolver.typeResolver(strItem); 24 | test("resolves", () => { 25 | expect(resolved).toEqual({ 26 | type: "keyword" 27 | }); 28 | }); 29 | }); 30 | 31 | describe("resolve", () => { 32 | const resolved = resolver.resolve(); 33 | 34 | test("resolves", () => { 35 | expect(resolved).toEqual([ 36 | { 37 | type: "keyword" 38 | }, 39 | { 40 | type: "integer" 41 | } 42 | ]); 43 | }); 44 | }); 45 | 46 | describe("array with an integer enum type", () => { 47 | const { numberOfChildren } = arrays; 48 | const { items } = numberOfChildren; 49 | const opts = { items, owner }; 50 | const resolver = create(opts, config); 51 | 52 | const numericEnum = items[0]; 53 | describe("resolveItem", () => { 54 | const resolved = resolver.resolveItem(numericEnum); 55 | test("single enum type resolved", () => { 56 | expect(resolved).toEqual({ 57 | type: "integer" 58 | }); 59 | }); 60 | }); 61 | 62 | describe("resolve", () => { 63 | const opts = { items, owner }; 64 | const resolver = create(opts, config); 65 | const resolved = resolver.resolve(); 66 | test("single enum type resolved", () => { 67 | expect(resolved).toEqual([ 68 | { 69 | type: "integer" 70 | } 71 | ]); 72 | }); 73 | }); 74 | }); 75 | }); 76 | -------------------------------------------------------------------------------- /src/entry.js: -------------------------------------------------------------------------------- 1 | const { 2 | toString, 3 | toNumber, 4 | toBoolean, 5 | toArray, 6 | toObject, 7 | toDate, 8 | toNumericRange, 9 | toDateRange 10 | } = require("./types"); 11 | const { inspect } = require("util"); 12 | 13 | class SchemaEntryError extends Error {} 14 | 15 | class SchemaEntry { 16 | constructor(obj, config = {}) { 17 | const { parentName, key, value } = obj; 18 | this.parentName = parentName; 19 | this.key = key; 20 | this.value = value; 21 | this.config = config; 22 | this.type = value.type; 23 | 24 | this.defaults = { 25 | types: { 26 | string: toString, 27 | number: toNumber, 28 | boolean: toBoolean, 29 | array: toArray, 30 | object: toObject, 31 | date: toDate, 32 | dateRange: toDateRange, 33 | numericRange: toNumericRange 34 | }, 35 | typeOrder: [ 36 | "string", 37 | "dateRange", 38 | "numericRange", 39 | "number", 40 | "boolean", 41 | "array", 42 | "object", 43 | "date" 44 | ] 45 | }; 46 | 47 | this.types = { 48 | ...this.defaults.types, 49 | ...(config.types || {}) 50 | }; 51 | this.typeOrder = config.typeOrder || this.defaults.typeOrder; 52 | } 53 | 54 | isValidSchema() { 55 | return typeof this.type === "string"; 56 | } 57 | 58 | error(msg) { 59 | throw new SchemaEntryError(msg); 60 | } 61 | 62 | toEntry() { 63 | if (!this.isValidSchema()) { 64 | this.error(`Not a valid schema: type ${this.type}`, this.value); 65 | } 66 | let foundValue; 67 | this.typeOrder.find(type => { 68 | foundValue = this.types[type](this.obj); 69 | return foundValue; 70 | }); 71 | return foundValue || this.defaultTypeHandler(config); 72 | } 73 | 74 | get obj() { 75 | return { 76 | parentName: this.parentName, 77 | key: this.key, 78 | value: this.value, 79 | type: this.type, 80 | config: this.config 81 | }; 82 | } 83 | 84 | defaultTypeHandler(config) { 85 | this.error(`No type matched for type: ${this.type}`, { 86 | obj: this.obj, 87 | config 88 | }); 89 | } 90 | } 91 | 92 | module.exports = { 93 | SchemaEntryError, 94 | SchemaEntry 95 | }; 96 | -------------------------------------------------------------------------------- /test/nested.test.js: -------------------------------------------------------------------------------- 1 | const { build } = require("../"); 2 | 3 | describe("build", () => { 4 | test("nested object", () => { 5 | const json = { 6 | $schema: "http://json-schema.org/draft-07/schema#", 7 | $id: "http://example.com/person.schema.json", 8 | title: "Person", 9 | description: "A person", 10 | type: "object", 11 | properties: { 12 | name: { 13 | description: "Name of the person", 14 | type: "string" 15 | }, 16 | dog: { 17 | type: "object", 18 | typeName: "Animal", 19 | properties: { 20 | name: { 21 | description: "Name of the dog", 22 | type: "string", 23 | required: true 24 | }, 25 | age: { 26 | description: "Age of dog", 27 | type: "number" 28 | } 29 | } 30 | } 31 | }, 32 | required: ["name"] 33 | }; 34 | 35 | const received = []; 36 | const onResult = result => { 37 | // console.log("received", result); 38 | received.push(result); 39 | }; 40 | 41 | const config = { onResult }; 42 | const { properties, results } = build(json, config); 43 | // console.log({ properties, received, results }); 44 | 45 | // console.log("NESTED", JSON.stringify(properties, null, 2)); 46 | 47 | expect(results).toEqual({ 48 | dog: { age: { type: "float" }, name: { type: "keyword" } }, 49 | dog_age: { type: "float" }, 50 | dog_name: { type: "keyword" }, 51 | name: { type: "keyword" } 52 | }); 53 | 54 | expect(received[1]).toEqual({ 55 | parentName: "dog", 56 | key: "name", 57 | resultKey: "dog_name", 58 | schemaValue: { 59 | description: "Name of the dog", 60 | required: true, 61 | type: "string" 62 | }, 63 | type: "keyword" 64 | }); 65 | 66 | expect(properties).toEqual({ 67 | name: { 68 | type: "keyword" 69 | }, 70 | dog: { 71 | type: "object", 72 | properties: { 73 | name: { 74 | type: "keyword" 75 | }, 76 | age: { 77 | type: "float" 78 | } 79 | } 80 | } 81 | }); 82 | }); 83 | }); 84 | -------------------------------------------------------------------------------- /src/types/object.js: -------------------------------------------------------------------------------- 1 | const { MappingBaseType } = require("./base"); 2 | const { isFunction, isObject, isObjectType } = require("./util"); 3 | const { createDefinitionRefResolver } = require("./definition"); 4 | 5 | function toObject(obj) { 6 | return isObject(obj) && MappingObject.create(obj).convert(); 7 | } 8 | 9 | // Allow recursive schema 10 | class MappingObject extends MappingBaseType { 11 | get baseType() { 12 | return "object"; 13 | } 14 | 15 | constructor(obj) { 16 | super(obj); 17 | this.properties = this.value.properties; 18 | this.typeNameFor = this.config.typeNameFor; 19 | this.typeName = this.value.typeName || this.value.className; 20 | } 21 | 22 | static create(obj) { 23 | return new MappingObject(obj); 24 | } 25 | 26 | createMappingResult() { 27 | return this.hasProperties 28 | ? this.buildObjectValueMapping() 29 | : this.defaultObjectValueMapping; 30 | } 31 | 32 | createResult() { 33 | const mapping = this.createMappingResult(); 34 | const props = mapping.properties; 35 | return Object.keys(props).reduce((acc, key) => { 36 | if (key === "_type_") return acc; 37 | acc[key] = props[key]; 38 | return acc; 39 | }, {}); 40 | } 41 | 42 | buildObjectValueMapping() { 43 | const { buildProperties } = this.config; 44 | return buildProperties(this.objectValue, this.mappingConfig); 45 | } 46 | 47 | get incNestingLevel() { 48 | let nestingLevel = this.config.nestingLevel || 0; 49 | return nestingLevel++; 50 | } 51 | 52 | get mappingConfig() { 53 | return { 54 | result: this.result, 55 | name: this.key, 56 | nestingLv: this.incNestingLevel, 57 | nested: true, 58 | ...this.config 59 | }; 60 | } 61 | 62 | get resolvedTypeName() { 63 | return this.typeName || this.resolveConfigTypeName(this.key); 64 | } 65 | 66 | resolveConfigTypeName(name) { 67 | return isFunction(this.typeNameFor) && this.typeNameFor(name); 68 | } 69 | 70 | get objectValue() { 71 | return { 72 | parentName: this.key, 73 | typeName: this.resolvedTypeName, 74 | ...this.value 75 | }; 76 | } 77 | 78 | get defaultObjectValueMapping() { 79 | return {}; 80 | } 81 | 82 | get hasProperties() { 83 | return isObjectType(this.properties); 84 | } 85 | } 86 | 87 | module.exports = { 88 | toObject, 89 | MappingObject 90 | }; 91 | -------------------------------------------------------------------------------- /src/types/definition/index.js: -------------------------------------------------------------------------------- 1 | // for resolving a type definition reference 2 | const dotProp = require("dot-prop"); 3 | const { classify } = require("../util"); 4 | const { InfoHandler } = require("../info"); 5 | 6 | const createDefinitionRefResolver = (opts = {}) => { 7 | return new DefinitionRefResolver(opts); 8 | }; 9 | 10 | function stringify(obj) { 11 | return JSON.stringify(obj, null, 2); 12 | } 13 | 14 | class DefinitionRefResolver extends InfoHandler { 15 | constructor({ reference, schema, config = {} }) { 16 | super(config); 17 | this.reference = reference; 18 | this.schema = schema || {}; 19 | this.visitedPaths = config.visitedPaths || {}; 20 | } 21 | 22 | validate() { 23 | !this.schema && this.error("validate", "Missing schema"); 24 | !this.reference && this.error("validate", "Missing reference"); 25 | return true; 26 | } 27 | 28 | get normalizedRef() { 29 | return this.reference.replace(/^#\//, ""); 30 | } 31 | 32 | get refName() { 33 | const paths = this.normalizedRef.split("/"); 34 | return paths[paths.length - 1]; 35 | } 36 | 37 | get dotPath() { 38 | return this.normalizedRef.replace("/", "."); 39 | } 40 | 41 | get refObject() { 42 | this._refObject = this._refObject || this.resolvedRefObject; 43 | return this._refObject; 44 | } 45 | 46 | get resolvedRefObject() { 47 | return this.referenceFromCache || this.resolveRefObject(); 48 | } 49 | 50 | resolveRefObject(reference) { 51 | this.reference = reference || this.reference; 52 | this.validate(); 53 | this.handleFoundReference(); 54 | 55 | const obj = dotProp.get(this.schema, this.dotPath); 56 | this.referenceNotAnObject(obj); 57 | this.referencePathResolvedAndVisited(obj); 58 | return obj; 59 | } 60 | 61 | handleFoundReference() { 62 | const found = dotProp.has(this.schema, this.dotPath); 63 | if (found) return; 64 | this.error( 65 | "resolveRefObject", 66 | `No value found in schema at: ${this.dotPath} - ${stringify(this.schema)}` 67 | ); 68 | } 69 | 70 | referenceNotAnObject(obj) { 71 | !typeof obj === "object" && 72 | this.error( 73 | "resolveRefObject", 74 | `No object value found at: ${this.dotPath} - - ${stringify( 75 | this.schema 76 | )}` 77 | ); 78 | } 79 | 80 | referencePathResolvedAndVisited(obj) { 81 | this.visitedPaths[this.dotPath] = obj; 82 | } 83 | 84 | get referenceFromCache() { 85 | return this.visitedPaths[this.dotPath]; 86 | } 87 | 88 | get name() { 89 | return (this.refObject && this.refObject.name) || this.refName; 90 | } 91 | 92 | get typeName() { 93 | return classify(this.name, "_", true); 94 | } 95 | } 96 | 97 | module.exports = { 98 | createDefinitionRefResolver, 99 | DefinitionRefResolver 100 | }; 101 | -------------------------------------------------------------------------------- /src/types/array/index.js: -------------------------------------------------------------------------------- 1 | const { MappingBaseType } = require("../base"); 2 | const { isObjectType, isArray, isReferenceArray } = require("../util"); 3 | 4 | function toArray(obj) { 5 | return isArray(obj.type) && MappingArray.create(obj).convert(); 6 | } 7 | 8 | class MappingArray extends MappingBaseType { 9 | get baseType() { 10 | return "nested"; 11 | } 12 | 13 | get entry() { 14 | return { 15 | ...this.lookedUpEntry, 16 | ...this.resolvedEntry 17 | }; 18 | } 19 | 20 | get resolvedResult() { 21 | const result = this.createResult(); 22 | if (this.isReference) { 23 | delete result.type 24 | }; 25 | return result; 26 | } 27 | 28 | get includeInParent() { 29 | return true; 30 | } 31 | 32 | get resolvedEntry() { 33 | return this.isReference ? this.referenceEntry : this.nestedEntry; 34 | } 35 | 36 | get nestedEntry() { 37 | return this.includeInParent 38 | ? { 39 | include_in_parent: true 40 | } 41 | : {}; 42 | } 43 | 44 | get isReference() { 45 | return isReferenceArray(this.value); 46 | } 47 | 48 | get referenceEntry() { 49 | return { 50 | _parent: { type: this.parentName }, 51 | _source: { enabled: true }, 52 | _all: { enabled: false } 53 | }; 54 | } 55 | 56 | get validItems() { 57 | return Array.isArray(this.items) || isObjectType(this.items); 58 | } 59 | 60 | get resolveFirstItem() { 61 | if (!this.validItems) return {}; 62 | return Array.isArray(this.items) ? this.selectFirstItem : this.items; 63 | } 64 | 65 | get firstItem() { 66 | return this.items[0]; 67 | } 68 | 69 | get selectFirstItem() { 70 | return this.hasValidItemTypes ? this.firstItem : this.invalidItemTypes(); 71 | } 72 | 73 | invalidItemTypes() { 74 | this.error( 75 | `Invalid item types for ${ 76 | this.key 77 | }. All array items must share the same type to be mappable to ElasticSearch`, 78 | { 79 | schema: this.schema, 80 | items: this.items 81 | } 82 | ); 83 | } 84 | 85 | get hasValidItemTypes() { 86 | return this.hasSameItemTypes; 87 | } 88 | 89 | get hasSameItemTypes() { 90 | const type = this.firstItem.type; 91 | return this.items.every(item => item.type === type); 92 | } 93 | 94 | get items() { 95 | return this.value.items; 96 | } 97 | 98 | get arrayType() { 99 | return this.resolveFirstItem.type; 100 | } 101 | 102 | get resolvedArrayType() { 103 | return this.metaType(this.arrayType); 104 | } 105 | 106 | get type() { 107 | return this.configType || this.resolvedArrayType || this.baseType; 108 | } 109 | 110 | static create(obj) { 111 | return new MappingArray(obj); 112 | } 113 | } 114 | 115 | module.exports = { 116 | toArray, 117 | MappingArray 118 | }; 119 | -------------------------------------------------------------------------------- /src/types/array/item.test.js: -------------------------------------------------------------------------------- 1 | const { createMappingItemFactory } = require("./item"); 2 | 3 | const createFactory = createMappingItemFactory; 4 | 5 | describe("MappingItem", () => { 6 | const strItem = { 7 | type: "string" 8 | }; 9 | const intItem = { 10 | type: "integer" 11 | }; 12 | const config = {}; 13 | 14 | describe.skip("create", () => {}); 15 | 16 | describe("resolver", () => { 17 | describe("no resolver in config", () => { 18 | const config = {}; 19 | const createMapper = createFactory(config); 20 | const mapper = createMapper({ item: strItem }); 21 | 22 | test("uses default resolver", () => { 23 | expect(mapper.resolver).toBeDefined(); 24 | }); 25 | }); 26 | 27 | describe("resolver in config", () => { 28 | const config = { 29 | itemResolver: () => 42 30 | }; 31 | const createMapper = createFactory(config); 32 | const mapper = createMapper({ item: strItem }); 33 | 34 | test("uses config itemResolver", () => { 35 | expect(mapper.resolver).toBeDefined(); 36 | }); 37 | 38 | describe("validatedResolver", () => { 39 | describe("is a function", () => { 40 | test("is valid", () => { 41 | expect(mapper.validatedResolver).toBeTruthy(); 42 | }); 43 | }); 44 | describe("is not a function", () => { 45 | const config = { 46 | itemResolver: 12 47 | }; 48 | const createMapper = createFactory(config); 49 | const mapper = createMapper({ item: strItem }); 50 | 51 | test("is invalid", () => { 52 | expect(() => mapper.validatedResolver).toThrow(); 53 | }); 54 | }); 55 | }); 56 | }); 57 | }); 58 | 59 | describe("itemEntryPayload", () => { 60 | const config = {}; 61 | const createMapper = createFactory(config); 62 | const mapper = createMapper({ item: strItem }); 63 | 64 | const payload = mapper.itemEntryPayload; 65 | test("has parentName", () => { 66 | expect(payload.parentName).toBe(mapper.key); 67 | }); 68 | 69 | test("has item value", () => { 70 | expect(payload.value).toBe(mapper.item); 71 | }); 72 | }); 73 | 74 | describe("resolve", () => { 75 | const config = {}; 76 | 77 | const createMapper = createFactory(config); 78 | const mapper = createMapper({ item: intItem }); 79 | 80 | describe("primitive type", () => { 81 | test("resolves string", () => { 82 | const resolved = mapper.resolve(strItem); 83 | expect(resolved).toEqual({ type: "keyword" }); 84 | }); 85 | 86 | test("resolves integer", () => { 87 | const resolved = mapper.resolve(intItem); 88 | expect(resolved).toEqual({ type: "integer" }); 89 | }); 90 | }); 91 | 92 | describe("named object type", () => { 93 | const resolved = mapper.resolve({ 94 | name: "account", 95 | typeName: "MyAccount", 96 | type: "object", 97 | properties: { 98 | level: { 99 | type: "integer" 100 | } 101 | } 102 | }); 103 | 104 | test("resolves to name", () => { 105 | expect(resolved).toEqual({ 106 | properties: { level: { type: "integer" } }, 107 | type: "object" 108 | }); 109 | }); 110 | }); 111 | }); 112 | }); 113 | -------------------------------------------------------------------------------- /src/types/number.js: -------------------------------------------------------------------------------- 1 | const { MappingRange } = require("./range"); 2 | const { isNumber, safeToFloat, safeToInt } = require("./util"); 3 | 4 | function toNumber(obj) { 5 | return isNumber(obj.type) && MappingNumber.create(obj).convert(); 6 | } 7 | 8 | const INT_MAX = Math.pow(2, 31); 9 | 10 | class MappingNumber extends MappingRange { 11 | get baseType() { 12 | return this._types.number || "float"; 13 | } 14 | 15 | get calcNumericType() { 16 | return ( 17 | this.double || 18 | this.halfFloat || 19 | this.float || 20 | this.byte || 21 | this.short || 22 | this.integer || 23 | this.long || 24 | this.baseType 25 | ); 26 | } 27 | 28 | get maxExcl() { 29 | return safeToInt(this.exclusiveMaximum, INT_MAX - 1); 30 | } 31 | 32 | get maxIncl() { 33 | return safeToInt(this.maximum, INT_MAX - 1); 34 | } 35 | 36 | get minExcl() { 37 | return safeToInt(this.value.exclusiveMinimum, 0); 38 | } 39 | 40 | get minIncl() { 41 | return safeToInt(this.value.minimum, 0); 42 | } 43 | 44 | get double() { 45 | return this.isDouble && "double"; 46 | } 47 | 48 | get halfFloat() { 49 | return this.isHalfFloat && "half_float"; 50 | } 51 | 52 | get float() { 53 | return this.isFloat && "float"; 54 | } 55 | 56 | get byte() { 57 | return this.isByte && "byte"; 58 | } 59 | 60 | get short() { 61 | return this.isShort && "short"; 62 | } 63 | 64 | get integer() { 65 | return this.isInteger && "integer"; 66 | } 67 | 68 | get long() { 69 | return this.isLong && "long"; 70 | } 71 | 72 | get isFloating() { 73 | return this.precision < 1; 74 | } 75 | 76 | get isDouble() { 77 | return this.numType === "double" || (this.isFloating && this.isLong); 78 | } 79 | 80 | get isFloat() { 81 | return this.numType === "float" || this.isFloating; 82 | } 83 | 84 | get isHalfFloat() { 85 | return this.numType === "half-float" || this.isFloating; 86 | } 87 | 88 | get isByte() { 89 | return this.numType === "byte" || this.inPosNegRange(127); 90 | } 91 | 92 | get isShort() { 93 | return this.numType === "short" || this.inPosNegRange(32767); 94 | } 95 | 96 | get isInteger() { 97 | return ( 98 | this.numType === "int" || 99 | this.numType === "integer" || 100 | this.inPosNegRange(INT_MAX) 101 | ); 102 | } 103 | 104 | get isLong() { 105 | return ( 106 | this.numType === "long" || this.outsideRange(-(INT_MAX + 1), INT_MAX) 107 | ); 108 | } 109 | 110 | get precision() { 111 | return safeToFloat(this.value.multipleOf, 1); 112 | } 113 | 114 | get numType() { 115 | return this.value.numType; 116 | } 117 | 118 | inPosNegRange(max) { 119 | return this.inRange(-(max + 1), max); 120 | } 121 | 122 | get type() { 123 | return ( 124 | this.configType || 125 | this.formatType || 126 | this.calcNumericType || 127 | this.baseType 128 | ); 129 | } 130 | 131 | get formatType() { 132 | return ( 133 | this.numericFormat[this.format] || this.numericFormat[this.value.type] 134 | ); 135 | } 136 | 137 | get numericFormat() { 138 | return { 139 | integer: "integer" 140 | }; 141 | } 142 | 143 | static create(obj) { 144 | return new MappingNumber(obj); 145 | } 146 | } 147 | 148 | module.exports = { 149 | toNumber, 150 | MappingNumber 151 | }; 152 | -------------------------------------------------------------------------------- /src/types/util.js: -------------------------------------------------------------------------------- 1 | // TODO: check if has any date format 2 | function hasDateContraint(obj) { 3 | return false; 4 | } 5 | 6 | function isFunction(fun) { 7 | return typeof fun === "function"; 8 | } 9 | 10 | function isDateFormat(type) { 11 | return ["date", "date-time", "time"].find(t => t === type); 12 | } 13 | 14 | function isDate(obj) { 15 | return isNumDate(obj) || isStrDate(obj); 16 | } 17 | 18 | function isNumDate(obj) { 19 | return isInteger(obj.type) && (obj.date === true || isDateFormat(obj.format)); 20 | } 21 | 22 | function isStrDate(obj) { 23 | return ( 24 | (obj.type === "string" && hasDateContraint(obj)) || isDateFormat(obj.format) 25 | ); 26 | } 27 | 28 | function safeToFloat(num, defaultValue = 1) { 29 | try { 30 | return Number.parseFloat(num); 31 | } catch (err) { 32 | return defaultValue; 33 | } 34 | } 35 | 36 | function safeToInt(num, defaultValue = 1) { 37 | try { 38 | return Number.parseInt(num); 39 | } catch (err) { 40 | return defaultValue; 41 | } 42 | } 43 | 44 | function isInteger(type) { 45 | return type === "integer"; 46 | } 47 | 48 | function isStringType(val) { 49 | return typeof val === "string"; 50 | } 51 | 52 | function isNumber(type) { 53 | return type === "number" || isInteger(type); 54 | } 55 | 56 | function isNumericRange(obj) { 57 | if (!obj.range === true) return false; 58 | const min = obj.minimum || obj.exclusiveMinimum; 59 | const max = obj.maximum || obj.exclusiveMaximum; 60 | return ( 61 | isNumber(obj.type) && safeToFloat(min, false) && safeToFloat(max, false) 62 | ); 63 | } 64 | 65 | function isDateRange(obj) { 66 | if (!obj.range === true) return false; 67 | const min = obj.minimum || obj.exclusiveMinimum; 68 | const max = obj.maximum || obj.exclusiveMaximum; 69 | return isDate(obj.type) && safeToFloat(min, false) && safeToFloat(max, false); 70 | } 71 | 72 | function isObjectType(obj) { 73 | return obj === Object(obj); 74 | } 75 | 76 | function isArray(type) { 77 | return type === "array"; 78 | } 79 | 80 | function isObject(obj) { 81 | return obj.type === "object" || obj === "object"; // && isObjectType(obj.properties) 82 | } 83 | 84 | function isReferenceArray(obj) { 85 | return isArray(obj.type) && isReference(obj); 86 | } 87 | 88 | function isReference(obj) { 89 | return obj.reference === true; 90 | } 91 | 92 | function isBoolean(type) { 93 | return type === "boolean"; 94 | } 95 | 96 | const assign = (variable, value) => { 97 | variable = value; 98 | }; 99 | 100 | const createAssign = map => (pos, value) => { 101 | map[pos] = value; 102 | }; 103 | 104 | const assignAt = (map, pos, value) => { 105 | map[pos] = value; 106 | }; 107 | 108 | /** 109 | * string capitalization - first letter - capital, other - lowercase. 110 | * @param {String} word - Word or sentence. 111 | */ 112 | const capitalize = word => { 113 | if (!isStringType(word)) { 114 | throw new Error(`capitalize: Invalid text ${word}`); 115 | } 116 | return `${word.slice(0, 1).toUpperCase()}${word.slice(1).toLowerCase()}`; 117 | }; 118 | 119 | const { classify, camelize } = require("inflection"); 120 | const camelcase = camelize 121 | 122 | module.exports = { 123 | isObject, 124 | isArray, 125 | isReference, 126 | isReferenceArray, 127 | isObjectType, 128 | isDate, 129 | isDateRange, 130 | isNumericRange, 131 | isNumber, 132 | isInteger, 133 | isBoolean, 134 | isFunction, 135 | safeToFloat, 136 | safeToInt, 137 | capitalize, 138 | camelize, 139 | camelcase, 140 | classify, 141 | assign, 142 | createAssign, 143 | assignAt 144 | }; 145 | -------------------------------------------------------------------------------- /src/types/base.js: -------------------------------------------------------------------------------- 1 | const { isFunction } = require("util"); 2 | const { InfoHandler } = require("./info"); 3 | const { $default } = require("./default"); 4 | const { createDefinitionRefResolver } = require("./definition"); 5 | 6 | class ConvertMappingSchemaError extends Error {} 7 | 8 | class MappingBaseType extends InfoHandler { 9 | constructor(opts = {}) { 10 | super(opts.config); 11 | const { parentName, key, value = {}, result, config = {} } = opts; 12 | this.parentName = parentName; 13 | this.schema = config.schema; 14 | this.key = key; 15 | 16 | const defResolverInst = createDefinitionRefResolver(opts); 17 | this.definitionResolver = 18 | config.definitionResolver || 19 | defResolverInst.resolveRefObject.bind(defResolverInst); 20 | 21 | this.value = this.resolveValueObject(value); 22 | 23 | this.format = value.format; 24 | this.result = result || config.resultObj || {}; 25 | this.config = { 26 | ...$default.config, 27 | ...config 28 | }; 29 | 30 | this.shouldSetResult = config.shouldSetResult || this.shouldSetResult; 31 | this.nestedKey = config.nestedKey || this.nestedKey; 32 | this.resultKey = config.resultKey || this.resultKey; 33 | this.nameSeparator = config.nameSeparator || this.defaultNameSeparator; 34 | 35 | this.nested = config.nested; 36 | this.nestingLv = config.nestingLv; 37 | this._meta = this.config._meta_ || {}; 38 | this._types = this._meta.types || {}; 39 | } 40 | 41 | // resolve using defintion ref 42 | resolveValueObject(obj) { 43 | if (!obj.$ref) return obj; 44 | const { definitionResolver } = this; 45 | if (!isFunction(definitionResolver)) { 46 | this.error( 47 | `Invalid definitionResolver, must be a function, was ${typeof definitionResolver}`, 48 | { 49 | definitionResolver 50 | } 51 | ); 52 | } 53 | return definitionResolver(obj); 54 | } 55 | 56 | get defaultNameSeparator() { 57 | return "_"; 58 | } 59 | 60 | setResultObj(result) { 61 | this.result[this.key] = result; 62 | } 63 | 64 | resultKey() { 65 | return this.nested ? this.nestedKey(this) : this.key; 66 | } 67 | 68 | nestedKey() { 69 | return [this.parentName, this.key].join("_"); 70 | } 71 | 72 | get resultObj() { 73 | const key = this.resultKey(this); 74 | return this.result[key]; 75 | } 76 | 77 | get resultKeyName() { 78 | return this.resultKey(); 79 | } 80 | 81 | setResultObj(result) { 82 | this.result[this.resultKeyName] = result; 83 | } 84 | 85 | setResult(result) { 86 | this.setResultObj(result); 87 | this.onResult(result); 88 | } 89 | 90 | onResult(result) { 91 | const onResult = this.config.onResult; 92 | if (!isFunction(onResult)) return; 93 | onResult({ 94 | ...this.lookupObj, 95 | ...result 96 | }); 97 | } 98 | 99 | get baseType() { 100 | this.error("default mapping type must be specified by subclass"); 101 | } 102 | 103 | get fields() { 104 | return this.config.fields || {}; 105 | } 106 | 107 | get lookupObj() { 108 | const obj = { 109 | key: this.key, 110 | resultKey: this.resultKeyName, 111 | parentName: this.parentName, 112 | schemaValue: this.value 113 | }; 114 | if (this.resolvedTypeName) { 115 | obj.typeName = this.resolvedTypeName; 116 | } 117 | return obj; 118 | } 119 | 120 | get lookedUpEntry() { 121 | const { entryFor } = this.config 122 | return entryFor && entryFor(this.lookupObj); 123 | } 124 | 125 | get entry() { 126 | return this.lookedUpEntry || this.configEntry || {}; 127 | } 128 | 129 | configEntryFn() { 130 | return this.entry; 131 | } 132 | 133 | get configFieldEntry() { 134 | return this.fields[this.key] || this.fields[this.nestedKey]; 135 | } 136 | 137 | get configEntry() { 138 | return this.configFieldEntry 139 | } 140 | 141 | get configType() { 142 | return (this.entry || {}).type || this.metaType(); 143 | } 144 | 145 | metaType(type) { 146 | type = type || this.baseType; 147 | return this._types[type]; 148 | } 149 | 150 | shouldSetResult() { 151 | return true; 152 | } 153 | 154 | createResult() { 155 | if (this._result) return this._result; 156 | this._result = { 157 | type: this.type, 158 | ...this.entry 159 | }; 160 | return this._result; 161 | } 162 | 163 | get resolvedResult() { 164 | return this.createResult(); 165 | } 166 | 167 | createMappingResult() { 168 | return this.resolvedResult; 169 | } 170 | 171 | createAndStoreResult() { 172 | if (this.shouldSetResult(this)) { 173 | const result = this.resolvedResult; 174 | this.setResult(result); 175 | } 176 | } 177 | 178 | convert() { 179 | this.createAndStoreResult(); 180 | return this.createMappingResult(); 181 | } 182 | 183 | get type() { 184 | return this.configType || this.baseType; 185 | } 186 | 187 | message() { 188 | return config.messages[this.key] || config.messages[this.type] || {}; 189 | } 190 | } 191 | 192 | module.exports = { 193 | $default, 194 | MappingBaseType, 195 | ConvertMappingSchemaError 196 | }; 197 | -------------------------------------------------------------------------------- /test/array.test.js: -------------------------------------------------------------------------------- 1 | const { build } = require("../src"); 2 | 3 | describe("array", () => { 4 | test("no items", () => { 5 | const json = { 6 | $schema: "http://json-schema.org/draft-07/schema#", 7 | $id: "http://example.com/person.schema.json", 8 | title: "Person", 9 | description: "A person", 10 | type: "object", 11 | properties: { 12 | friendNames: { 13 | description: "Names of friends", 14 | type: "array" 15 | } 16 | } 17 | }; 18 | 19 | const config = {}; 20 | const { properties } = build(json, config); 21 | // console.log({ mapping }); 22 | // console.log("Array - no items", JSON.stringify(mapping, null, 2)); 23 | expect(properties).toEqual({ 24 | friendNames: { 25 | "include_in_parent": true, 26 | type: "nested" 27 | } 28 | }); 29 | }); 30 | 31 | test("empty items", () => { 32 | const json = { 33 | $schema: "http://json-schema.org/draft-07/schema#", 34 | $id: "http://example.com/person.schema.json", 35 | title: "Person", 36 | description: "A person", 37 | type: "object", 38 | properties: { 39 | friendNames: { 40 | description: "Names of friends", 41 | type: "array", 42 | items: {} 43 | } 44 | } 45 | }; 46 | 47 | const config = {}; 48 | const { properties } = build(json, config); 49 | // console.log({ properties }); 50 | // console.log("Array - no items", JSON.stringify(properties, null, 2)); 51 | expect(properties).toEqual({ 52 | friendNames: { 53 | "include_in_parent": true, 54 | type: "nested" 55 | } 56 | }); 57 | }); 58 | 59 | test("empty items", () => { 60 | const json = { 61 | $schema: "http://json-schema.org/draft-07/schema#", 62 | $id: "http://example.com/person.schema.json", 63 | title: "Person", 64 | description: "A person", 65 | type: "object", 66 | properties: { 67 | friendNames: { 68 | description: "Names of friends", 69 | type: "array", 70 | items: {} 71 | } 72 | } 73 | }; 74 | 75 | const config = {}; 76 | const { properties } = build(json, config); 77 | // console.log({ properties }); 78 | // console.log("Array - empty items", JSON.stringify(properties, null, 2)); 79 | expect(properties).toEqual({ 80 | friendNames: { 81 | "include_in_parent": true, 82 | type: "nested" 83 | } 84 | }); 85 | }); 86 | 87 | test("items object - string type", () => { 88 | const json = { 89 | $schema: "http://json-schema.org/draft-07/schema#", 90 | $id: "http://example.com/person.schema.json", 91 | title: "Person", 92 | description: "A person", 93 | type: "object", 94 | properties: { 95 | friendNames: { 96 | description: "Names of friends", 97 | type: "array", 98 | items: { 99 | type: "string" 100 | } 101 | } 102 | } 103 | }; 104 | 105 | const config = { 106 | _meta_: { 107 | types: { 108 | string: "string" 109 | } 110 | } 111 | }; 112 | 113 | const { properties } = build(json, config); 114 | // console.log({ properties }); 115 | // console.log("Array - empty items", JSON.stringify(properties, null, 2)); 116 | expect(properties).toEqual({ 117 | friendNames: { 118 | "include_in_parent": true, 119 | type: "string" 120 | } 121 | }); 122 | }); 123 | 124 | test("items array - one item string type", () => { 125 | const json = { 126 | $schema: "http://json-schema.org/draft-07/schema#", 127 | $id: "http://example.com/person.schema.json", 128 | title: "Person", 129 | description: "A person", 130 | type: "object", 131 | properties: { 132 | friendNames: { 133 | description: "Names of friends", 134 | type: "array", 135 | items: [ 136 | { 137 | type: "string" 138 | } 139 | ] 140 | } 141 | } 142 | }; 143 | 144 | const config = { 145 | _meta_: { 146 | types: { 147 | string: "text" 148 | } 149 | } 150 | }; 151 | const { properties } = build(json, config); 152 | // console.log({ properties }); 153 | // console.log("Array - empty items", JSON.stringify(properties, null, 2)); 154 | expect(properties).toEqual({ 155 | friendNames: { 156 | "include_in_parent": true, 157 | type: "text" 158 | } 159 | }); 160 | }); 161 | 162 | describe("items array - two items string and number type", () => { 163 | const json = { 164 | $schema: "http://json-schema.org/draft-07/schema#", 165 | $id: "http://example.com/person.schema.json", 166 | title: "Person", 167 | description: "A person", 168 | type: "object", 169 | properties: { 170 | friendNames: { 171 | description: "Names of friends", 172 | type: "array", 173 | items: [ 174 | { 175 | type: "string" 176 | }, 177 | { 178 | type: "number" 179 | } 180 | ] 181 | } 182 | } 183 | }; 184 | 185 | const config = {}; 186 | 187 | test("throws", () => { 188 | const fn = () => build(json, config); 189 | expect(fn).toThrow(); 190 | }); 191 | }); 192 | }); 193 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # JSON Schema to ElasticSearch mappings 2 | 3 | Convert JSON schema to [ElasticSearch mappings](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html) 4 | 5 | A mapping type has: 6 | 7 | _Meta-fields_ 8 | 9 | Meta-fields are used to customize how a document’s metadata associated is treated. Examples of meta-fields include the document’s `_index`, `_type`, `_id`, and `_source` fields. 10 | 11 | _Fields or properties_ 12 | 13 | A mapping `type` contains a list of fields or properties pertinent to the document. 14 | 15 | _Field datatypes_ 16 | 17 | Each field has a data `type` which can be: 18 | 19 | - a simple type like `text`, `keyword`, `date`, `long`, `double`, `boolean` or `ip` 20 | - a type which supports the hierarchical nature of JSON such as `object` or `nested` 21 | - a specialised type like `geo_point`, `geo_shape`, or `completion` 22 | 23 | It is often useful to index the same field in different ways for different purposes. For instance, a `string` field could be indexed as a `text` field for full-text search, and as a `keyword` field for sorting or aggregations. Alternatively, you could index a string field with the `standard` analyzer, the `english` analyzer, and the `french` analyzer. 24 | 25 | This is the purpose of multi-fields. Most datatypes support multi-fields via the `fields` parameter. 26 | 27 | ## Quick start 28 | 29 | - npm: `npm install json-schema-to-es-mapping -S` 30 | - yarn: `yarn add json-schema-to-es-mapping` 31 | 32 | The easiest way to get started is to use `buildMappingsFor` to create a mappings object for a named index given a JSON schema. 33 | 34 | ```js 35 | const mappings = buildMappingsFor("people", schema); 36 | ``` 37 | 38 | Example: 39 | 40 | ```js 41 | const schema = { 42 | $schema: "http://json-schema.org/draft-07/schema#", 43 | $id: "http://example.com/person.schema.json", 44 | title: "Person", 45 | description: "A person", 46 | type: "object", 47 | properties: { 48 | name: { 49 | description: "Name of the person", 50 | type: "string" 51 | }, 52 | age: { 53 | description: "Age of person", 54 | type: "number" 55 | } 56 | }, 57 | required: ["name"] 58 | }; 59 | 60 | const { buildMappingsFor } = require("json-schema-to-es-mapping"); 61 | const mappings = buildMappingsFor("people", schema); 62 | console.log({ mappings }); 63 | ``` 64 | 65 | This will by default give the following mappings result: 66 | 67 | ```json 68 | { 69 | "mappings": { 70 | "people": { 71 | "properties": { 72 | "name": { 73 | "type": "keyword" 74 | }, 75 | "age": { 76 | "type": "integer" 77 | } 78 | } 79 | } 80 | } 81 | } 82 | ``` 83 | 84 | The function `buildMappingsFor` uses the `build` function to return the properties map and simply wraps them with a `mappings` object for the named index. 85 | 86 | ## Supported mappings 87 | 88 | Currently all Elastic Search core data types are supported (except for `binary`). 89 | 90 | - string 91 | - numeric 92 | - boolean 93 | - date 94 | - object 95 | - ranges (numeric, date) (soon) 96 | - geo_point (soon) 97 | - ip (soon) 98 | 99 | Note: The most feature complete version can currently be found in the [to-ts](https://github.com/kristianmandrup/json-schema-to-es-mapping/commits/to-ts) branch. This branch is almost complete. It has unit test coverage of most of the functionality, includes initial support for complex schema types (such as `anyOf` a list of types) and the code has been converted to TypeScript. 100 | 101 | Please help with the finishing touches so it can be released if you want or need these extra mappings and other features. 102 | 103 | ### Numeric 104 | 105 | You can assist the numeric type mapper by supplying a `numType` for the field entry, such as `numType: "double"` 106 | 107 | See ES [number](https://www.elastic.co/guide/en/elasticsearch/reference/current/number.html#number) reference for list of valid `numType`s (except for `scaled_float`) 108 | 109 | ### Ranges 110 | 111 | - Numeric 112 | - Date 113 | 114 | #### Numeric ranges 115 | 116 | To make a numeric field entry be mapped to an ES numeric range: 117 | 118 | - Set `range: true` 119 | - Set a minimum range value, either `minimum` or `exlusiveMinimum` 120 | - Set a maximum range value, either `maximum` or `exlusiveMaximum` 121 | 122 | If you leave out the `range: true` it will be resolved as a number, using the min and max values and the `multipleOf` (precision). These properties will in combination be used to determine the exact numeric type (`byte`, `short`, ... `double`) to be used in the Elastic Search numeric type mapping. 123 | 124 | #### Date ranges 125 | 126 | To make an entry detect as a date range, the same applies as for a number range but the entry must also resolve to a date type (see `types/util.js` function `isDate(obj)` for details) 127 | 128 | ## Recent feature additions 129 | 130 | Now also resolves: 131 | 132 | - Array items that are themselves object types 133 | - References to object definitions (ie. `$ref`) 134 | - [Parent-child mapping](https://www.elastic.co/guide/en/elasticsearch/guide/current/parent-child-mapping.html) 135 | 136 | ## Limitations and coming features 137 | 138 | Support for Geo location mapping will likely be included in the near future. 139 | 140 | Please Let me know any other features you'd like to include for a more feature complete library! 141 | 142 | Initial work to support these features have been started in the [dev](https://github.com/kristianmandrup/json-schema-to-es-mapping/tree/dev) branch and should land soon (0.4.0). 143 | 144 | ## Fine grained control 145 | 146 | For more fine-grained control, use the `build` function directly. 147 | 148 | ```js 149 | const { build } = require("json-schema-to-es-mapping"); 150 | const { properties, results } = build(schema); 151 | console.log({ properties, results }); 152 | ``` 153 | 154 | Will output the following Elastic Search Mapping schema: 155 | 156 | ```json 157 | { 158 | "name": { 159 | "type": "text" 160 | }, 161 | "age": { 162 | "type": "float" 163 | } 164 | } 165 | ``` 166 | 167 | The `results` will in this (simple) case give the same results as the `mappings`: 168 | 169 | ```js 170 | { 171 | name: { type: "keyword" }, 172 | age: { type: "float" } 173 | } 174 | ``` 175 | 176 | ## Event driven approach 177 | 178 | You can use the Event driven approach with the `onResult` and other calback handlers, to generate a more context specific mapping for Elastic Search context, given your requirements. 179 | 180 | ```js 181 | const received = []; 182 | const onResult = result => { 183 | console.log("received", result); 184 | received.push(result); 185 | }; 186 | 187 | // potentially use to call resolve callback of Promise 188 | const onComplete = fullResult => { 189 | console.log("ES mapping done :)", { 190 | fullResult, // 'internal" results 191 | received // list built by onResult 192 | }); 193 | }; 194 | 195 | // potentially use to call reject callback of Promise 196 | const onError = errMsg => { 197 | console.error("ES mapping error", errMsg); 198 | throw errMsg; 199 | }; 200 | 201 | // potentially use to call reject callback of Promise 202 | const onThrow = err => throw err; 203 | const config = { onResult, onComplete, onError, onThrow }; 204 | ``` 205 | 206 | The `onResult` handler will populate the `received` array with the following: 207 | 208 | ```js 209 | [ 210 | { parentName: "Person", key: "name", resultKey: "name", type: "text" }, 211 | { 212 | parentName: "Person", 213 | key: "age", 214 | resultKey: "age", 215 | type: "float" 216 | } 217 | ]; 218 | ``` 219 | 220 | You will also get notified on: 221 | 222 | - successful completion of JSON schema mapping via `onComplete` callback 223 | - aborted due to processing error via `onError` callback 224 | - aborted due to throwing exception via `onThrow` callback 225 | 226 | The Event driven approach is entirely optional, but can be used for a more "stream like" approach. This approach works well with async promises (ie. `reject` and `resolve` callbacks). 227 | 228 | On each result received you can then issue a command to the Elastic Search server (f.ex via the REST interface) to add a new mapping that reflects the result received. 229 | 230 | [Put mapping](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html) 231 | 232 | ```bash 233 | PUT person/_mapping/_doc 234 | { 235 | "properties": { 236 | "age": { 237 | "type": "float" 238 | } 239 | } 240 | } 241 | ``` 242 | 243 | Alternatively only submit the ES index mappings after `onComplete` is triggered, to make sure the full JSON schema could be processed, so that you don't end up with partial schema mappings. 244 | 245 | ## Nested schemas 246 | 247 | For a nested schema of the form: 248 | 249 | ```js 250 | { 251 | $schema: "http://json-schema.org/draft-07/schema#", 252 | $id: "http://example.com/person.schema.json", 253 | title: "Person", 254 | description: "A person", 255 | type: "object", 256 | properties: { 257 | name: { 258 | description: "Name of the person", 259 | type: "string" 260 | }, 261 | dog: { 262 | type: "object", 263 | typeName: "Animal", 264 | properties: { 265 | name: { 266 | description: "Name of the dog", 267 | type: "string", 268 | required: true 269 | }, 270 | age: { 271 | description: "Age of dog", 272 | type: "number" 273 | } 274 | } 275 | } 276 | }, 277 | required: ["name"] 278 | }; 279 | ``` 280 | 281 | `buildMappingsFor` will in this case generate an Elastic Search mapping as follows: 282 | 283 | ```js 284 | mappings: { 285 | people: { 286 | properties: { 287 | name: { 288 | type: "keyword" 289 | }, 290 | dog: { 291 | properties: { 292 | name: { 293 | type: "keyword" 294 | }, 295 | age: { 296 | type: "float" 297 | } 298 | } 299 | } 300 | } 301 | } 302 | } 303 | ``` 304 | 305 | Note that the `dog` object results in a nested mapping (see ElasticSearch resources below) 306 | 307 | The `results` will in this case give: 308 | 309 | ```js 310 | { 311 | name: { type: 'keyword' }, 312 | dog_name: { type: 'keyword' }, 313 | dog_age: { type: 'float' }, 314 | dog: { 315 | name: { type: 'keyword' }, 316 | age: { type: 'float' } 317 | } 318 | } 319 | ``` 320 | 321 | Notice how the dog properties are provided both in flat and nested form. Depending on your requirements, you might want to store the Elastic Search data in a more flat form than in your general application domain model. 322 | 323 | ### Customizing the result 324 | 325 | You can pass a custom function `shouldSetResult(converter)` which controls under which converter conditions the result should be set. You can also pass: 326 | 327 | - a custom name separator `nameSeparator` 328 | - a `resultKey(converter)` function, to customize how result keys (names) are generated 329 | - a `nestedKey(converter)` function, to customize how nested result keys (names) are generated 330 | 331 | Example: 332 | 333 | ```js 334 | const config = { 335 | shouldSetResult: converter => { 336 | return converter.type !== "object"; 337 | }, 338 | nameSeparator: "__" // example: dog__age 339 | }; 340 | ``` 341 | 342 | This configuration will result in results discarding the nested form, thus only retaining flattened field mappings. 343 | 344 | ```js 345 | { 346 | name: { type: 'keyword' }, 347 | dog__name: { type: 'keyword' }, 348 | dog__age: { type: 'float' }, 349 | } 350 | ``` 351 | 352 | If you add an `onResult` handler to receive results, it will look as follows: 353 | 354 | ```js 355 | results: 356 | [ 357 | { 358 | parentName: 'Person', 359 | key: 'name', 360 | resultKey: 'name', 361 | type: 'keyword' 362 | }, 363 | { 364 | parentName: 'dog', 365 | key: 'name', 366 | resultKey: 'dog__name', 367 | type: 'keyword' 368 | }, 369 | { parentName: 'dog', 370 | key: 'age', 371 | resultKey: 'dog__age', 372 | type: 'float' 373 | }, 374 | { parentName: 'Person', 375 | typeName: 'Animal', 376 | key: 'dog', 377 | resultKey: 'dog', 378 | properties: { 379 | name: { type: 'keyword' }, 380 | age: { type: 'float' } 381 | } 382 | } 383 | ] 384 | } 385 | ``` 386 | 387 | Note the `typeName` in the result for the `dog` fields (more on this later) 388 | 389 | ## Default configuration 390 | 391 | The default configuration is as follows. 392 | 393 | ```js 394 | { 395 | _meta_: { 396 | types: { 397 | string: "keyword", 398 | number: "float", 399 | object: "object", 400 | array: "nested", 401 | boolean: "boolean", 402 | date: "date" 403 | } 404 | }, 405 | fields: { 406 | name: { 407 | type: "keyword" 408 | }, 409 | content: { 410 | type: "text" 411 | }, 412 | text: { 413 | type: "text" 414 | }, 415 | title: { 416 | type: "text" 417 | }, 418 | caption: { 419 | type: "text" 420 | }, 421 | label: { 422 | type: "text" 423 | }, 424 | tag: { 425 | type: "keyword", 426 | index: "not_analyzed" 427 | } 428 | } 429 | } 430 | ``` 431 | 432 | Note that some or all of these might benefit from being defined as multi fields, that are indexed and analyzed both as `text` and `keyword`. 433 | 434 | You can pass in a custom configuration object (last argument) to override or extend it ;) 435 | 436 | Note that for convenience, we pass in some typical field mappings based on names. Please customize this further to your needs. 437 | 438 | ## Customization 439 | 440 | - Type mappers 441 | - Rules 442 | 443 | ### Type mappers 444 | 445 | You can pass in custom Type mapper factories if you want to override how specific types are mapped. 446 | 447 | Internally this is managed in the `SchemaEntry` constructor in `entry.js`: 448 | 449 | ```js 450 | this.defaults = { 451 | types: { 452 | string: toString, 453 | number: toNumber, 454 | boolean: toBoolean, 455 | array: toArray, 456 | object: toObject, 457 | date: toDate, 458 | dateRange: toDateRange, 459 | numericRange: toNumericRange 460 | }, 461 | typeOrder: [ 462 | "string", 463 | "dateRange", 464 | "numericRange", 465 | "number", 466 | "boolean", 467 | "array", 468 | "object", 469 | "date" 470 | ] 471 | }; 472 | 473 | this.types = { 474 | ...this.defaults.types, 475 | ...(config.types || {}) 476 | }; 477 | this.typeOrder = config.typeOrder || this.defaults.typeOrder; 478 | ``` 479 | 480 | To override, simply pass in a custom `types` object and/or a custom `typeOrder` array of the precedence order they should be resolved in. 481 | 482 | #### Custom Type mapper example (object) 483 | 484 | Create a `toObject` file loally in your project that contains your overrides 485 | 486 | ```js 487 | const { types } = require("json-schema-to-es-mapping"); 488 | const { MappingObject, toObject, util } = types; 489 | 490 | class MyMappingObject extends MappingObject { 491 | // ...override 492 | 493 | createMappingResult() { 494 | return this.hasProperties 495 | ? this.buildObjectValueMapping() 496 | : this.defaultObjectValueMapping; 497 | } 498 | 499 | buildObjectValueMapping() { 500 | const { buildProperties } = this.config; 501 | return buildProperties(this.objectValue, this.mappingConfig); 502 | } 503 | } 504 | 505 | module.exports = function toObject(obj) { 506 | return util.isObject(obj) && new MyMappingObject(obj).convert(); 507 | }; 508 | ``` 509 | 510 | Import the `toObject` function and pass it in the `types` object of the `config` object passed to the `build` function. 511 | 512 | ```js 513 | // custom implementation 514 | const toObject = require("./toObject"); 515 | 516 | const myConfig = { 517 | types: { 518 | toObject 519 | } 520 | }; 521 | 522 | // will now use the custom toObject for mapping JSON schema object to ES object 523 | build(schema, myConfig); 524 | ``` 525 | 526 | Depending on your requirements, you can post-process the generated mapping to better suit your specific needs and strategies for handling nested/complex data relationships. 527 | 528 | ## Elastic search types 529 | 530 | - [Elasticsearch: mapping types](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-types.html) 531 | 532 | Core: 533 | 534 | - String (`text`, `keyword`) 535 | - Numeric (`long`, `integer`, `short`, `byte`, `double`, `float`, `half_float`, `scaled_float`) 536 | - Date (`date`) 537 | - Boolean (`boolean`) 538 | - Binary (`binary`) 539 | - Range (`integer_range`, `float_range`, `long_range`, `double_range`, `date_range`) 540 | 541 | ## Type mappings 542 | 543 | The default type mappings are as follows: 544 | 545 | - `boolean` -> `boolean` 546 | - `object` -> `object` 547 | - `array` -> `nested` 548 | - `string` -> `keyword` 549 | - `number` -> `integer` 550 | - `date` -> `date` 551 | 552 | For `array` it will use `type` of first [array item](https://cswr.github.io/JsonSchema/spec/arrays/) if [basic type](https://cswr.github.io/JsonSchema/spec/basic_types/) and the type for all array items are the same. 553 | 554 | ```js 555 | { 556 | "type": "array", 557 | "items":{ 558 | "type": "integer" 559 | } 560 | } 561 | ``` 562 | 563 | If array item types are note "uniform" it will throw an error. 564 | 565 | For the following array JSON schema entry the mapper will currently set the mapping type to `string` (by default). Please use the customization options outlined to define a more appropriate mapping strategy if needed. 566 | 567 | ```js 568 | { 569 | "type": "array", 570 | "items" : [{ 571 | "type": "string" 572 | // ... 573 | }, 574 | { 575 | "type": "string" 576 | // ... 577 | }, 578 | ] 579 | } 580 | ``` 581 | 582 | You can override the default type mappings by passing a `types` entry with type mappings in the `_meta_` entry of `config` 583 | 584 | ```js 585 | const config = { 586 | _meta_: { 587 | types: { 588 | number: "long", // use "integer" for numbers 589 | string: "text" // use "text" for strings 590 | } 591 | } 592 | }; 593 | ``` 594 | 595 | ### Rules 596 | 597 | You can pass an extra configuration object with specific rules for ES mapping properties that will be merged into the resulting mapping. 598 | 599 | ```js 600 | const config = { 601 | _meta_: { 602 | types: { 603 | number: "long", // use "integer" for numbers 604 | string: "text" // use "text" for strings 605 | } 606 | }, 607 | fields: { 608 | created: { 609 | // add extra indexing field meta data for Elastic search 610 | format: "strict_date_optional_time||epoch_millis" 611 | // ... 612 | }, 613 | firstName: { 614 | type: "keyword" // make sure firstName will be a keyword field (exact match) in ES mapping 615 | } 616 | } 617 | }; 618 | 619 | const { build } = require("json-schema-to-es-mapping"); 620 | const mapping = build(schema, config); 621 | ``` 622 | 623 | Also note that you can pass in many of the functions used internally, so that the internal mechanics themselves can easily be customized as needed or used as building blocks. 624 | 625 | ### Elastic Search nested objects and data 626 | 627 | - [Elasticsearch: Nested datatype](https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html) 628 | - [Elasticsearch: Nested Objects](https://www.elastic.co/guide/en/elasticsearch/guide/current/nested-objects.html) 629 | - [Elasticsearch data schema for nested objects](https://stackoverflow.com/questions/43488166/elasticsearch-data-schema-for-nested-objects) 630 | - [Elasticsearch : Advanced search and nested objects](http://obtao.com/blog/2014/04/elasticsearch-advanced-search-and-nested-objects/) 631 | 632 | ## Advanced customization 633 | 634 | To override the default mappings for certain fields, you can pass in a fields mapping entry in the `config` object as follows: 635 | 636 | ```js 637 | const config = { 638 | fields: { 639 | timestamp: { 640 | type: "date", 641 | format: "dateOptionalTime" 642 | } 643 | // ... more custom field mappings 644 | } 645 | }; 646 | ``` 647 | 648 | For a more scalable customization, pass an `entryFor` function which returns custom mappings 649 | depending on the entry being processed. 650 | 651 | - `key` 652 | - `resultKey` (ie. potentially nested key name) 653 | - `parentName` name of parent entry if nested property 654 | - `schemaValue` (entry from JSON schema being mapped) 655 | 656 | You could f.ex use this to provide custom mappings for specific types of date fields. 657 | 658 | ```js 659 | const config = { 660 | entryFor: ({ key }) => { 661 | if (key === "date" || key === "timestamp") { 662 | return { 663 | type: "date", 664 | format: "dateOptionalTime" 665 | }; 666 | } 667 | } 668 | }; 669 | ``` 670 | 671 | ### resolve type maps 672 | 673 | You can use [resolve-type-maps](https://github.com/kristianmandrup/resolve-type-maps) to define mappings to be used across your application in various schema-like contexts: 674 | 675 | - GraphQL schema 676 | - Data storage (tables, colletions etc) 677 | - Validation 678 | - Forms 679 | - Data Display 680 | - Indexing (including Elastic Search) 681 | - Mocks and fake data 682 | 683 | ```js 684 | const fieldMap = { 685 | name: { 686 | matches: ['title', 'caption', 'label'], 687 | elastic: { 688 | type: 'string', 689 | } 690 | } 691 | tag: { 692 | matches: ['tags'], 693 | elastic: { 694 | type: 'keyword', 695 | } 696 | 697 | }, 698 | text: { 699 | matches: ['description', 'content'], 700 | elastic: { 701 | type: 'text', 702 | } 703 | }, 704 | date: { 705 | matches: ['date', 'timestamp'], 706 | elastic: { 707 | type: 'text', 708 | format: 'dateOptionalTime' 709 | } 710 | } 711 | } 712 | 713 | const typeMap = { 714 | Person: { 715 | matches: ['User'], 716 | fields: { 717 | dog: { 718 | // ... 719 | elastic: { 720 | type: 'nested', 721 | // ... 722 | } 723 | }, 724 | // ... 725 | } 726 | } 727 | } 728 | ``` 729 | 730 | Then pass an `entryFor` function in the config object to resolve the entry to be used for the ES mapping entry. 731 | 732 | ```js 733 | import { createTypeMapResolver } from "resolve-type-maps"; 734 | 735 | const map = { 736 | typeMap, 737 | fieldMap 738 | }; 739 | 740 | const resolverConfig = {}; 741 | const functions = { 742 | resolveResult: (obj) => obj.elastic; 743 | } 744 | 745 | const resolver = createTypeMapResolver( 746 | { map, functions }, 747 | resolverConfig 748 | ); 749 | 750 | const config = { 751 | entryFor: ({ parentName, typeName }) => { 752 | // ensure capitalized and camelized name 753 | const type = classify(typeName || parentName); 754 | const name = converter.key; 755 | return resolver.resolve({ type, name }); 756 | } 757 | }; 758 | ``` 759 | 760 | Note that for `typeName` to be set, either set a `className` or `typeName` property on the object entry in the JSON schema (see `dog` example above) or alternatively provide a lookup function `typeNameFor(name)` on the config object passed in. 761 | 762 | For inner workings, see [TypeMapResolver.ts](https://github.com/kristianmandrup/resolve-type-maps/blob/master/src/lib/TypeMapResolver.ts) 763 | 764 | The above configuration should look up the elastic mapping entry to use, based on the type/field combination in the `typeMap` first and then fall back to the field name only in the `fieldMap` if not found. On a match, it will resolve by returning entry named `elastic` in the object matching. 765 | 766 | ```js 767 | { 768 | Person: { 769 | matches: [/User/], 770 | fields: { 771 | dog: { 772 | // ... 773 | elastic: { 774 | type: 'nested', 775 | // ... 776 | } 777 | }, 778 | } 779 | } 780 | } 781 | ``` 782 | 783 | It should match a schema (or nested schema entry) named `Person` or `User` on the `typeMap` entry `Person`. For the nested `dog` entry it should then match on the entry `dog` under `fields` and return the entry for elastic, ie: 784 | 785 | ```js 786 | { 787 | type: "nested"; 788 | } 789 | ``` 790 | 791 | If no match is made in the `typeMap`, it will follow a similar strategy by lookup a match in the `fieldMap` (as per the `maps` entry passed in the `config` object when creating the `resolver`), matching only on the field name. 792 | 793 | ## ElasticSearch mapping resources 794 | 795 | - [mapping](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html) 796 | - [removal of types](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html) 797 | - [nested](https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html) 798 | 799 | ## Testing 800 | 801 | Uses [jest](jestjs.io/) for unit testing. 802 | 803 | Currently not well tested. Please help add more test coverage :) 804 | 805 | ## TODO 806 | 807 | ### 1.0.0 808 | 809 | - Convert project to TypeScript 810 | - Add unit tests for ~80% test coverage 811 | - Improve mappings for: 812 | - Date range 813 | 814 | ## Author 815 | 816 | 2019 Kristian Mandrup (CTO@Tecla5) 817 | 818 | ## License 819 | 820 | MIT 821 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@babel/code-frame@^7.0.0-beta.35": 6 | version "7.0.0" 7 | resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8" 8 | dependencies: 9 | "@babel/highlight" "^7.0.0" 10 | 11 | "@babel/highlight@^7.0.0": 12 | version "7.0.0" 13 | resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0.tgz#f710c38c8d458e6dd9a201afb637fcb781ce99e4" 14 | dependencies: 15 | chalk "^2.0.0" 16 | esutils "^2.0.2" 17 | js-tokens "^4.0.0" 18 | 19 | abab@^2.0.0: 20 | version "2.0.0" 21 | resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.0.tgz#aba0ab4c5eee2d4c79d3487d85450fb2376ebb0f" 22 | 23 | abbrev@1: 24 | version "1.1.1" 25 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" 26 | 27 | acorn-globals@^4.1.0: 28 | version "4.3.0" 29 | resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.3.0.tgz#e3b6f8da3c1552a95ae627571f7dd6923bb54103" 30 | dependencies: 31 | acorn "^6.0.1" 32 | acorn-walk "^6.0.1" 33 | 34 | acorn-walk@^6.0.1: 35 | version "6.0.1" 36 | resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.0.1.tgz#c7827bdbb8e21aa97b609adfa225400d9ae348ba" 37 | 38 | acorn@^5.5.3: 39 | version "5.7.3" 40 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279" 41 | 42 | acorn@^6.0.1: 43 | version "6.0.1" 44 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.0.1.tgz#66e6147e1027704479dc6d9b20d884c572db3cc1" 45 | 46 | ajv@^5.3.0: 47 | version "5.5.2" 48 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" 49 | dependencies: 50 | co "^4.6.0" 51 | fast-deep-equal "^1.0.0" 52 | fast-json-stable-stringify "^2.0.0" 53 | json-schema-traverse "^0.3.0" 54 | 55 | ansi-escapes@^3.0.0: 56 | version "3.1.0" 57 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.1.0.tgz#f73207bb81207d75fd6c83f125af26eea378ca30" 58 | 59 | ansi-regex@^2.0.0: 60 | version "2.1.1" 61 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 62 | 63 | ansi-regex@^3.0.0: 64 | version "3.0.0" 65 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" 66 | 67 | ansi-styles@^2.2.1: 68 | version "2.2.1" 69 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 70 | 71 | ansi-styles@^3.2.0, ansi-styles@^3.2.1: 72 | version "3.2.1" 73 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" 74 | dependencies: 75 | color-convert "^1.9.0" 76 | 77 | anymatch@^2.0.0: 78 | version "2.0.0" 79 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" 80 | dependencies: 81 | micromatch "^3.1.4" 82 | normalize-path "^2.1.1" 83 | 84 | append-transform@^0.4.0: 85 | version "0.4.0" 86 | resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-0.4.0.tgz#d76ebf8ca94d276e247a36bad44a4b74ab611991" 87 | dependencies: 88 | default-require-extensions "^1.0.0" 89 | 90 | aproba@^1.0.3: 91 | version "1.2.0" 92 | resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" 93 | 94 | are-we-there-yet@~1.1.2: 95 | version "1.1.5" 96 | resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" 97 | dependencies: 98 | delegates "^1.0.0" 99 | readable-stream "^2.0.6" 100 | 101 | argparse@^1.0.7: 102 | version "1.0.10" 103 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" 104 | dependencies: 105 | sprintf-js "~1.0.2" 106 | 107 | arr-diff@^2.0.0: 108 | version "2.0.0" 109 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" 110 | dependencies: 111 | arr-flatten "^1.0.1" 112 | 113 | arr-diff@^4.0.0: 114 | version "4.0.0" 115 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" 116 | 117 | arr-flatten@^1.0.1, arr-flatten@^1.1.0: 118 | version "1.1.0" 119 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" 120 | 121 | arr-union@^3.1.0: 122 | version "3.1.0" 123 | resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" 124 | 125 | array-equal@^1.0.0: 126 | version "1.0.0" 127 | resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" 128 | 129 | array-unique@^0.2.1: 130 | version "0.2.1" 131 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" 132 | 133 | array-unique@^0.3.2: 134 | version "0.3.2" 135 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" 136 | 137 | arrify@^1.0.1: 138 | version "1.0.1" 139 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" 140 | 141 | asn1@~0.2.3: 142 | version "0.2.4" 143 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" 144 | dependencies: 145 | safer-buffer "~2.1.0" 146 | 147 | assert-plus@1.0.0, assert-plus@^1.0.0: 148 | version "1.0.0" 149 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 150 | 151 | assign-symbols@^1.0.0: 152 | version "1.0.0" 153 | resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" 154 | 155 | astral-regex@^1.0.0: 156 | version "1.0.0" 157 | resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" 158 | 159 | async-limiter@~1.0.0: 160 | version "1.0.0" 161 | resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" 162 | 163 | async@^2.1.4, async@^2.5.0: 164 | version "2.6.1" 165 | resolved "https://registry.yarnpkg.com/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610" 166 | dependencies: 167 | lodash "^4.17.10" 168 | 169 | asynckit@^0.4.0: 170 | version "0.4.0" 171 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 172 | 173 | atob@^2.1.1: 174 | version "2.1.2" 175 | resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" 176 | 177 | aws-sign2@~0.7.0: 178 | version "0.7.0" 179 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" 180 | 181 | aws4@^1.8.0: 182 | version "1.8.0" 183 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" 184 | 185 | babel-code-frame@^6.26.0: 186 | version "6.26.0" 187 | resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" 188 | dependencies: 189 | chalk "^1.1.3" 190 | esutils "^2.0.2" 191 | js-tokens "^3.0.2" 192 | 193 | babel-core@^6.0.0, babel-core@^6.26.0: 194 | version "6.26.3" 195 | resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" 196 | dependencies: 197 | babel-code-frame "^6.26.0" 198 | babel-generator "^6.26.0" 199 | babel-helpers "^6.24.1" 200 | babel-messages "^6.23.0" 201 | babel-register "^6.26.0" 202 | babel-runtime "^6.26.0" 203 | babel-template "^6.26.0" 204 | babel-traverse "^6.26.0" 205 | babel-types "^6.26.0" 206 | babylon "^6.18.0" 207 | convert-source-map "^1.5.1" 208 | debug "^2.6.9" 209 | json5 "^0.5.1" 210 | lodash "^4.17.4" 211 | minimatch "^3.0.4" 212 | path-is-absolute "^1.0.1" 213 | private "^0.1.8" 214 | slash "^1.0.0" 215 | source-map "^0.5.7" 216 | 217 | babel-generator@^6.18.0, babel-generator@^6.26.0: 218 | version "6.26.1" 219 | resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" 220 | dependencies: 221 | babel-messages "^6.23.0" 222 | babel-runtime "^6.26.0" 223 | babel-types "^6.26.0" 224 | detect-indent "^4.0.0" 225 | jsesc "^1.3.0" 226 | lodash "^4.17.4" 227 | source-map "^0.5.7" 228 | trim-right "^1.0.1" 229 | 230 | babel-helpers@^6.24.1: 231 | version "6.24.1" 232 | resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" 233 | dependencies: 234 | babel-runtime "^6.22.0" 235 | babel-template "^6.24.1" 236 | 237 | babel-jest@^23.6.0: 238 | version "23.6.0" 239 | resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.6.0.tgz#a644232366557a2240a0c083da6b25786185a2f1" 240 | dependencies: 241 | babel-plugin-istanbul "^4.1.6" 242 | babel-preset-jest "^23.2.0" 243 | 244 | babel-messages@^6.23.0: 245 | version "6.23.0" 246 | resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" 247 | dependencies: 248 | babel-runtime "^6.22.0" 249 | 250 | babel-plugin-istanbul@^4.1.6: 251 | version "4.1.6" 252 | resolved "http://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz#36c59b2192efce81c5b378321b74175add1c9a45" 253 | dependencies: 254 | babel-plugin-syntax-object-rest-spread "^6.13.0" 255 | find-up "^2.1.0" 256 | istanbul-lib-instrument "^1.10.1" 257 | test-exclude "^4.2.1" 258 | 259 | babel-plugin-jest-hoist@^23.2.0: 260 | version "23.2.0" 261 | resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz#e61fae05a1ca8801aadee57a6d66b8cefaf44167" 262 | 263 | babel-plugin-syntax-object-rest-spread@^6.13.0: 264 | version "6.13.0" 265 | resolved "http://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" 266 | 267 | babel-preset-jest@^23.2.0: 268 | version "23.2.0" 269 | resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz#8ec7a03a138f001a1a8fb1e8113652bf1a55da46" 270 | dependencies: 271 | babel-plugin-jest-hoist "^23.2.0" 272 | babel-plugin-syntax-object-rest-spread "^6.13.0" 273 | 274 | babel-register@^6.26.0: 275 | version "6.26.0" 276 | resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" 277 | dependencies: 278 | babel-core "^6.26.0" 279 | babel-runtime "^6.26.0" 280 | core-js "^2.5.0" 281 | home-or-tmp "^2.0.0" 282 | lodash "^4.17.4" 283 | mkdirp "^0.5.1" 284 | source-map-support "^0.4.15" 285 | 286 | babel-runtime@^6.22.0, babel-runtime@^6.26.0: 287 | version "6.26.0" 288 | resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" 289 | dependencies: 290 | core-js "^2.4.0" 291 | regenerator-runtime "^0.11.0" 292 | 293 | babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0: 294 | version "6.26.0" 295 | resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" 296 | dependencies: 297 | babel-runtime "^6.26.0" 298 | babel-traverse "^6.26.0" 299 | babel-types "^6.26.0" 300 | babylon "^6.18.0" 301 | lodash "^4.17.4" 302 | 303 | babel-traverse@^6.0.0, babel-traverse@^6.18.0, babel-traverse@^6.26.0: 304 | version "6.26.0" 305 | resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" 306 | dependencies: 307 | babel-code-frame "^6.26.0" 308 | babel-messages "^6.23.0" 309 | babel-runtime "^6.26.0" 310 | babel-types "^6.26.0" 311 | babylon "^6.18.0" 312 | debug "^2.6.8" 313 | globals "^9.18.0" 314 | invariant "^2.2.2" 315 | lodash "^4.17.4" 316 | 317 | babel-types@^6.0.0, babel-types@^6.18.0, babel-types@^6.26.0: 318 | version "6.26.0" 319 | resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" 320 | dependencies: 321 | babel-runtime "^6.26.0" 322 | esutils "^2.0.2" 323 | lodash "^4.17.4" 324 | to-fast-properties "^1.0.3" 325 | 326 | babylon@^6.18.0: 327 | version "6.18.0" 328 | resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" 329 | 330 | balanced-match@^1.0.0: 331 | version "1.0.0" 332 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" 333 | 334 | base@^0.11.1: 335 | version "0.11.2" 336 | resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" 337 | dependencies: 338 | cache-base "^1.0.1" 339 | class-utils "^0.3.5" 340 | component-emitter "^1.2.1" 341 | define-property "^1.0.0" 342 | isobject "^3.0.1" 343 | mixin-deep "^1.2.0" 344 | pascalcase "^0.1.1" 345 | 346 | bcrypt-pbkdf@^1.0.0: 347 | version "1.0.2" 348 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" 349 | dependencies: 350 | tweetnacl "^0.14.3" 351 | 352 | brace-expansion@^1.1.7: 353 | version "1.1.11" 354 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 355 | dependencies: 356 | balanced-match "^1.0.0" 357 | concat-map "0.0.1" 358 | 359 | braces@^1.8.2: 360 | version "1.8.5" 361 | resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" 362 | dependencies: 363 | expand-range "^1.8.1" 364 | preserve "^0.2.0" 365 | repeat-element "^1.1.2" 366 | 367 | braces@^2.3.1: 368 | version "2.3.2" 369 | resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" 370 | dependencies: 371 | arr-flatten "^1.1.0" 372 | array-unique "^0.3.2" 373 | extend-shallow "^2.0.1" 374 | fill-range "^4.0.0" 375 | isobject "^3.0.1" 376 | repeat-element "^1.1.2" 377 | snapdragon "^0.8.1" 378 | snapdragon-node "^2.0.1" 379 | split-string "^3.0.2" 380 | to-regex "^3.0.1" 381 | 382 | browser-process-hrtime@^0.1.2: 383 | version "0.1.2" 384 | resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.2.tgz#425d68a58d3447f02a04aa894187fce8af8b7b8e" 385 | 386 | browser-resolve@^1.11.3: 387 | version "1.11.3" 388 | resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" 389 | dependencies: 390 | resolve "1.1.7" 391 | 392 | bser@^2.0.0: 393 | version "2.0.0" 394 | resolved "https://registry.yarnpkg.com/bser/-/bser-2.0.0.tgz#9ac78d3ed5d915804fd87acb158bc797147a1719" 395 | dependencies: 396 | node-int64 "^0.4.0" 397 | 398 | buffer-from@^1.0.0: 399 | version "1.1.1" 400 | resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" 401 | 402 | builtin-modules@^1.0.0: 403 | version "1.1.1" 404 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 405 | 406 | cache-base@^1.0.1: 407 | version "1.0.1" 408 | resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" 409 | dependencies: 410 | collection-visit "^1.0.0" 411 | component-emitter "^1.2.1" 412 | get-value "^2.0.6" 413 | has-value "^1.0.0" 414 | isobject "^3.0.1" 415 | set-value "^2.0.0" 416 | to-object-path "^0.3.0" 417 | union-value "^1.0.0" 418 | unset-value "^1.0.0" 419 | 420 | callsites@^2.0.0: 421 | version "2.0.0" 422 | resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" 423 | 424 | camelcase@^4.1.0: 425 | version "4.1.0" 426 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" 427 | 428 | capture-exit@^1.2.0: 429 | version "1.2.0" 430 | resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-1.2.0.tgz#1c5fcc489fd0ab00d4f1ac7ae1072e3173fbab6f" 431 | dependencies: 432 | rsvp "^3.3.3" 433 | 434 | caseless@~0.12.0: 435 | version "0.12.0" 436 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" 437 | 438 | chalk@^1.1.3: 439 | version "1.1.3" 440 | resolved "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 441 | dependencies: 442 | ansi-styles "^2.2.1" 443 | escape-string-regexp "^1.0.2" 444 | has-ansi "^2.0.0" 445 | strip-ansi "^3.0.0" 446 | supports-color "^2.0.0" 447 | 448 | chalk@^2.0.0, chalk@^2.0.1: 449 | version "2.4.1" 450 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" 451 | dependencies: 452 | ansi-styles "^3.2.1" 453 | escape-string-regexp "^1.0.5" 454 | supports-color "^5.3.0" 455 | 456 | chownr@^1.0.1: 457 | version "1.1.1" 458 | resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.1.tgz#54726b8b8fff4df053c42187e801fb4412df1494" 459 | 460 | ci-info@^1.5.0: 461 | version "1.6.0" 462 | resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.6.0.tgz#2ca20dbb9ceb32d4524a683303313f0304b1e497" 463 | 464 | class-utils@^0.3.5: 465 | version "0.3.6" 466 | resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" 467 | dependencies: 468 | arr-union "^3.1.0" 469 | define-property "^0.2.5" 470 | isobject "^3.0.0" 471 | static-extend "^0.1.1" 472 | 473 | cliui@^4.0.0: 474 | version "4.1.0" 475 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" 476 | dependencies: 477 | string-width "^2.1.1" 478 | strip-ansi "^4.0.0" 479 | wrap-ansi "^2.0.0" 480 | 481 | co@^4.6.0: 482 | version "4.6.0" 483 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" 484 | 485 | code-point-at@^1.0.0: 486 | version "1.1.0" 487 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 488 | 489 | collection-visit@^1.0.0: 490 | version "1.0.0" 491 | resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" 492 | dependencies: 493 | map-visit "^1.0.0" 494 | object-visit "^1.0.0" 495 | 496 | color-convert@^1.9.0: 497 | version "1.9.3" 498 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" 499 | dependencies: 500 | color-name "1.1.3" 501 | 502 | color-name@1.1.3: 503 | version "1.1.3" 504 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" 505 | 506 | combined-stream@1.0.6: 507 | version "1.0.6" 508 | resolved "http://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" 509 | dependencies: 510 | delayed-stream "~1.0.0" 511 | 512 | combined-stream@~1.0.6: 513 | version "1.0.7" 514 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.7.tgz#2d1d24317afb8abe95d6d2c0b07b57813539d828" 515 | dependencies: 516 | delayed-stream "~1.0.0" 517 | 518 | commander@~2.17.1: 519 | version "2.17.1" 520 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" 521 | 522 | component-emitter@^1.2.1: 523 | version "1.2.1" 524 | resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" 525 | 526 | concat-map@0.0.1: 527 | version "0.0.1" 528 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 529 | 530 | console-control-strings@^1.0.0, console-control-strings@~1.1.0: 531 | version "1.1.0" 532 | resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" 533 | 534 | convert-source-map@^1.4.0, convert-source-map@^1.5.1: 535 | version "1.6.0" 536 | resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.6.0.tgz#51b537a8c43e0f04dec1993bffcdd504e758ac20" 537 | dependencies: 538 | safe-buffer "~5.1.1" 539 | 540 | copy-descriptor@^0.1.0: 541 | version "0.1.1" 542 | resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" 543 | 544 | core-js@^2.4.0, core-js@^2.5.0: 545 | version "2.5.7" 546 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e" 547 | 548 | core-util-is@1.0.2, core-util-is@~1.0.0: 549 | version "1.0.2" 550 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 551 | 552 | cross-spawn@^5.0.1: 553 | version "5.1.0" 554 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" 555 | dependencies: 556 | lru-cache "^4.0.1" 557 | shebang-command "^1.2.0" 558 | which "^1.2.9" 559 | 560 | cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": 561 | version "0.3.4" 562 | resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.4.tgz#8cd52e8a3acfd68d3aed38ee0a640177d2f9d797" 563 | 564 | cssstyle@^1.0.0: 565 | version "1.1.1" 566 | resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.1.1.tgz#18b038a9c44d65f7a8e428a653b9f6fe42faf5fb" 567 | dependencies: 568 | cssom "0.3.x" 569 | 570 | dashdash@^1.12.0: 571 | version "1.14.1" 572 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 573 | dependencies: 574 | assert-plus "^1.0.0" 575 | 576 | data-urls@^1.0.0: 577 | version "1.0.1" 578 | resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.0.1.tgz#d416ac3896918f29ca84d81085bc3705834da579" 579 | dependencies: 580 | abab "^2.0.0" 581 | whatwg-mimetype "^2.1.0" 582 | whatwg-url "^7.0.0" 583 | 584 | debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: 585 | version "2.6.9" 586 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" 587 | dependencies: 588 | ms "2.0.0" 589 | 590 | debug@^3.1.0: 591 | version "3.2.5" 592 | resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.5.tgz#c2418fbfd7a29f4d4f70ff4cea604d4b64c46407" 593 | dependencies: 594 | ms "^2.1.1" 595 | 596 | decamelize@^1.1.1: 597 | version "1.2.0" 598 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" 599 | 600 | decode-uri-component@^0.2.0: 601 | version "0.2.0" 602 | resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" 603 | 604 | deep-extend@^0.6.0: 605 | version "0.6.0" 606 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" 607 | 608 | deep-is@~0.1.3: 609 | version "0.1.3" 610 | resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" 611 | 612 | default-require-extensions@^1.0.0: 613 | version "1.0.0" 614 | resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-1.0.0.tgz#f37ea15d3e13ffd9b437d33e1a75b5fb97874cb8" 615 | dependencies: 616 | strip-bom "^2.0.0" 617 | 618 | define-properties@^1.1.2: 619 | version "1.1.3" 620 | resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" 621 | dependencies: 622 | object-keys "^1.0.12" 623 | 624 | define-property@^0.2.5: 625 | version "0.2.5" 626 | resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" 627 | dependencies: 628 | is-descriptor "^0.1.0" 629 | 630 | define-property@^1.0.0: 631 | version "1.0.0" 632 | resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" 633 | dependencies: 634 | is-descriptor "^1.0.0" 635 | 636 | define-property@^2.0.2: 637 | version "2.0.2" 638 | resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" 639 | dependencies: 640 | is-descriptor "^1.0.2" 641 | isobject "^3.0.1" 642 | 643 | delayed-stream@~1.0.0: 644 | version "1.0.0" 645 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 646 | 647 | delegates@^1.0.0: 648 | version "1.0.0" 649 | resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" 650 | 651 | detect-indent@^4.0.0: 652 | version "4.0.0" 653 | resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" 654 | dependencies: 655 | repeating "^2.0.0" 656 | 657 | detect-libc@^1.0.2: 658 | version "1.0.3" 659 | resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" 660 | 661 | detect-newline@^2.1.0: 662 | version "2.1.0" 663 | resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" 664 | 665 | diff@^3.2.0: 666 | version "3.5.0" 667 | resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" 668 | 669 | domexception@^1.0.1: 670 | version "1.0.1" 671 | resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" 672 | dependencies: 673 | webidl-conversions "^4.0.2" 674 | 675 | ecc-jsbn@~0.1.1: 676 | version "0.1.2" 677 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" 678 | dependencies: 679 | jsbn "~0.1.0" 680 | safer-buffer "^2.1.0" 681 | 682 | error-ex@^1.2.0: 683 | version "1.3.2" 684 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" 685 | dependencies: 686 | is-arrayish "^0.2.1" 687 | 688 | es-abstract@^1.5.1: 689 | version "1.12.0" 690 | resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165" 691 | dependencies: 692 | es-to-primitive "^1.1.1" 693 | function-bind "^1.1.1" 694 | has "^1.0.1" 695 | is-callable "^1.1.3" 696 | is-regex "^1.0.4" 697 | 698 | es-to-primitive@^1.1.1: 699 | version "1.1.1" 700 | resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d" 701 | dependencies: 702 | is-callable "^1.1.1" 703 | is-date-object "^1.0.1" 704 | is-symbol "^1.0.1" 705 | 706 | escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: 707 | version "1.0.5" 708 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 709 | 710 | escodegen@^1.9.1: 711 | version "1.11.0" 712 | resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.11.0.tgz#b27a9389481d5bfd5bec76f7bb1eb3f8f4556589" 713 | dependencies: 714 | esprima "^3.1.3" 715 | estraverse "^4.2.0" 716 | esutils "^2.0.2" 717 | optionator "^0.8.1" 718 | optionalDependencies: 719 | source-map "~0.6.1" 720 | 721 | esprima@^3.1.3: 722 | version "3.1.3" 723 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" 724 | 725 | esprima@^4.0.0: 726 | version "4.0.1" 727 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" 728 | 729 | estraverse@^4.2.0: 730 | version "4.2.0" 731 | resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" 732 | 733 | esutils@^2.0.2: 734 | version "2.0.2" 735 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 736 | 737 | exec-sh@^0.2.0: 738 | version "0.2.2" 739 | resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.2.tgz#2a5e7ffcbd7d0ba2755bdecb16e5a427dfbdec36" 740 | dependencies: 741 | merge "^1.2.0" 742 | 743 | execa@^0.7.0: 744 | version "0.7.0" 745 | resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" 746 | dependencies: 747 | cross-spawn "^5.0.1" 748 | get-stream "^3.0.0" 749 | is-stream "^1.1.0" 750 | npm-run-path "^2.0.0" 751 | p-finally "^1.0.0" 752 | signal-exit "^3.0.0" 753 | strip-eof "^1.0.0" 754 | 755 | exit@^0.1.2: 756 | version "0.1.2" 757 | resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" 758 | 759 | expand-brackets@^0.1.4: 760 | version "0.1.5" 761 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" 762 | dependencies: 763 | is-posix-bracket "^0.1.0" 764 | 765 | expand-brackets@^2.1.4: 766 | version "2.1.4" 767 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" 768 | dependencies: 769 | debug "^2.3.3" 770 | define-property "^0.2.5" 771 | extend-shallow "^2.0.1" 772 | posix-character-classes "^0.1.0" 773 | regex-not "^1.0.0" 774 | snapdragon "^0.8.1" 775 | to-regex "^3.0.1" 776 | 777 | expand-range@^1.8.1: 778 | version "1.8.2" 779 | resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" 780 | dependencies: 781 | fill-range "^2.1.0" 782 | 783 | expect@^23.6.0: 784 | version "23.6.0" 785 | resolved "https://registry.yarnpkg.com/expect/-/expect-23.6.0.tgz#1e0c8d3ba9a581c87bd71fb9bc8862d443425f98" 786 | dependencies: 787 | ansi-styles "^3.2.0" 788 | jest-diff "^23.6.0" 789 | jest-get-type "^22.1.0" 790 | jest-matcher-utils "^23.6.0" 791 | jest-message-util "^23.4.0" 792 | jest-regex-util "^23.3.0" 793 | 794 | extend-shallow@^2.0.1: 795 | version "2.0.1" 796 | resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" 797 | dependencies: 798 | is-extendable "^0.1.0" 799 | 800 | extend-shallow@^3.0.0, extend-shallow@^3.0.2: 801 | version "3.0.2" 802 | resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" 803 | dependencies: 804 | assign-symbols "^1.0.0" 805 | is-extendable "^1.0.1" 806 | 807 | extend@~3.0.2: 808 | version "3.0.2" 809 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" 810 | 811 | extglob@^0.3.1: 812 | version "0.3.2" 813 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" 814 | dependencies: 815 | is-extglob "^1.0.0" 816 | 817 | extglob@^2.0.4: 818 | version "2.0.4" 819 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" 820 | dependencies: 821 | array-unique "^0.3.2" 822 | define-property "^1.0.0" 823 | expand-brackets "^2.1.4" 824 | extend-shallow "^2.0.1" 825 | fragment-cache "^0.2.1" 826 | regex-not "^1.0.0" 827 | snapdragon "^0.8.1" 828 | to-regex "^3.0.1" 829 | 830 | extsprintf@1.3.0: 831 | version "1.3.0" 832 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" 833 | 834 | extsprintf@^1.2.0: 835 | version "1.4.0" 836 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" 837 | 838 | fast-deep-equal@^1.0.0: 839 | version "1.1.0" 840 | resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614" 841 | 842 | fast-json-stable-stringify@^2.0.0: 843 | version "2.0.0" 844 | resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" 845 | 846 | fast-levenshtein@~2.0.4: 847 | version "2.0.6" 848 | resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" 849 | 850 | fb-watchman@^2.0.0: 851 | version "2.0.0" 852 | resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" 853 | dependencies: 854 | bser "^2.0.0" 855 | 856 | filename-regex@^2.0.0: 857 | version "2.0.1" 858 | resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" 859 | 860 | fileset@^2.0.2: 861 | version "2.0.3" 862 | resolved "https://registry.yarnpkg.com/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0" 863 | dependencies: 864 | glob "^7.0.3" 865 | minimatch "^3.0.3" 866 | 867 | fill-range@^2.1.0: 868 | version "2.2.4" 869 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" 870 | dependencies: 871 | is-number "^2.1.0" 872 | isobject "^2.0.0" 873 | randomatic "^3.0.0" 874 | repeat-element "^1.1.2" 875 | repeat-string "^1.5.2" 876 | 877 | fill-range@^4.0.0: 878 | version "4.0.0" 879 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" 880 | dependencies: 881 | extend-shallow "^2.0.1" 882 | is-number "^3.0.0" 883 | repeat-string "^1.6.1" 884 | to-regex-range "^2.1.0" 885 | 886 | find-up@^1.0.0: 887 | version "1.1.2" 888 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" 889 | dependencies: 890 | path-exists "^2.0.0" 891 | pinkie-promise "^2.0.0" 892 | 893 | find-up@^2.1.0: 894 | version "2.1.0" 895 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" 896 | dependencies: 897 | locate-path "^2.0.0" 898 | 899 | for-in@^1.0.1, for-in@^1.0.2: 900 | version "1.0.2" 901 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" 902 | 903 | for-own@^0.1.4: 904 | version "0.1.5" 905 | resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" 906 | dependencies: 907 | for-in "^1.0.1" 908 | 909 | forever-agent@~0.6.1: 910 | version "0.6.1" 911 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 912 | 913 | form-data@~2.3.2: 914 | version "2.3.2" 915 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.2.tgz#4970498be604c20c005d4f5c23aecd21d6b49099" 916 | dependencies: 917 | asynckit "^0.4.0" 918 | combined-stream "1.0.6" 919 | mime-types "^2.1.12" 920 | 921 | fragment-cache@^0.2.1: 922 | version "0.2.1" 923 | resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" 924 | dependencies: 925 | map-cache "^0.2.2" 926 | 927 | fs-minipass@^1.2.5: 928 | version "1.2.5" 929 | resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d" 930 | dependencies: 931 | minipass "^2.2.1" 932 | 933 | fs.realpath@^1.0.0: 934 | version "1.0.0" 935 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 936 | 937 | fsevents@^1.2.3: 938 | version "1.2.4" 939 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.4.tgz#f41dcb1af2582af3692da36fc55cbd8e1041c426" 940 | dependencies: 941 | nan "^2.9.2" 942 | node-pre-gyp "^0.10.0" 943 | 944 | function-bind@^1.1.1: 945 | version "1.1.1" 946 | resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" 947 | 948 | gauge@~2.7.3: 949 | version "2.7.4" 950 | resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" 951 | dependencies: 952 | aproba "^1.0.3" 953 | console-control-strings "^1.0.0" 954 | has-unicode "^2.0.0" 955 | object-assign "^4.1.0" 956 | signal-exit "^3.0.0" 957 | string-width "^1.0.1" 958 | strip-ansi "^3.0.1" 959 | wide-align "^1.1.0" 960 | 961 | get-caller-file@^1.0.1: 962 | version "1.0.3" 963 | resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" 964 | 965 | get-stream@^3.0.0: 966 | version "3.0.0" 967 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" 968 | 969 | get-value@^2.0.3, get-value@^2.0.6: 970 | version "2.0.6" 971 | resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" 972 | 973 | getpass@^0.1.1: 974 | version "0.1.7" 975 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" 976 | dependencies: 977 | assert-plus "^1.0.0" 978 | 979 | glob-base@^0.3.0: 980 | version "0.3.0" 981 | resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" 982 | dependencies: 983 | glob-parent "^2.0.0" 984 | is-glob "^2.0.0" 985 | 986 | glob-parent@^2.0.0: 987 | version "2.0.0" 988 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" 989 | dependencies: 990 | is-glob "^2.0.0" 991 | 992 | glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2: 993 | version "7.1.3" 994 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz#3960832d3f1574108342dafd3a67b332c0969df1" 995 | dependencies: 996 | fs.realpath "^1.0.0" 997 | inflight "^1.0.4" 998 | inherits "2" 999 | minimatch "^3.0.4" 1000 | once "^1.3.0" 1001 | path-is-absolute "^1.0.0" 1002 | 1003 | globals@^9.18.0: 1004 | version "9.18.0" 1005 | resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" 1006 | 1007 | graceful-fs@^4.1.11, graceful-fs@^4.1.2: 1008 | version "4.1.11" 1009 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" 1010 | 1011 | growly@^1.3.0: 1012 | version "1.3.0" 1013 | resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" 1014 | 1015 | handlebars@^4.0.3: 1016 | version "4.0.12" 1017 | resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.12.tgz#2c15c8a96d46da5e266700518ba8cb8d919d5bc5" 1018 | dependencies: 1019 | async "^2.5.0" 1020 | optimist "^0.6.1" 1021 | source-map "^0.6.1" 1022 | optionalDependencies: 1023 | uglify-js "^3.1.4" 1024 | 1025 | har-schema@^2.0.0: 1026 | version "2.0.0" 1027 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" 1028 | 1029 | har-validator@~5.1.0: 1030 | version "5.1.0" 1031 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.0.tgz#44657f5688a22cfd4b72486e81b3a3fb11742c29" 1032 | dependencies: 1033 | ajv "^5.3.0" 1034 | har-schema "^2.0.0" 1035 | 1036 | has-ansi@^2.0.0: 1037 | version "2.0.0" 1038 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 1039 | dependencies: 1040 | ansi-regex "^2.0.0" 1041 | 1042 | has-flag@^1.0.0: 1043 | version "1.0.0" 1044 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" 1045 | 1046 | has-flag@^3.0.0: 1047 | version "3.0.0" 1048 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" 1049 | 1050 | has-symbols@^1.0.0: 1051 | version "1.0.0" 1052 | resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" 1053 | 1054 | has-unicode@^2.0.0: 1055 | version "2.0.1" 1056 | resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" 1057 | 1058 | has-value@^0.3.1: 1059 | version "0.3.1" 1060 | resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" 1061 | dependencies: 1062 | get-value "^2.0.3" 1063 | has-values "^0.1.4" 1064 | isobject "^2.0.0" 1065 | 1066 | has-value@^1.0.0: 1067 | version "1.0.0" 1068 | resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" 1069 | dependencies: 1070 | get-value "^2.0.6" 1071 | has-values "^1.0.0" 1072 | isobject "^3.0.0" 1073 | 1074 | has-values@^0.1.4: 1075 | version "0.1.4" 1076 | resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" 1077 | 1078 | has-values@^1.0.0: 1079 | version "1.0.0" 1080 | resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" 1081 | dependencies: 1082 | is-number "^3.0.0" 1083 | kind-of "^4.0.0" 1084 | 1085 | has@^1.0.1: 1086 | version "1.0.3" 1087 | resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" 1088 | dependencies: 1089 | function-bind "^1.1.1" 1090 | 1091 | home-or-tmp@^2.0.0: 1092 | version "2.0.0" 1093 | resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" 1094 | dependencies: 1095 | os-homedir "^1.0.0" 1096 | os-tmpdir "^1.0.1" 1097 | 1098 | hosted-git-info@^2.1.4: 1099 | version "2.7.1" 1100 | resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047" 1101 | 1102 | html-encoding-sniffer@^1.0.2: 1103 | version "1.0.2" 1104 | resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" 1105 | dependencies: 1106 | whatwg-encoding "^1.0.1" 1107 | 1108 | http-signature@~1.2.0: 1109 | version "1.2.0" 1110 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" 1111 | dependencies: 1112 | assert-plus "^1.0.0" 1113 | jsprim "^1.2.2" 1114 | sshpk "^1.7.0" 1115 | 1116 | iconv-lite@0.4.23: 1117 | version "0.4.23" 1118 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63" 1119 | dependencies: 1120 | safer-buffer ">= 2.1.2 < 3" 1121 | 1122 | iconv-lite@^0.4.4: 1123 | version "0.4.24" 1124 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" 1125 | dependencies: 1126 | safer-buffer ">= 2.1.2 < 3" 1127 | 1128 | ignore-walk@^3.0.1: 1129 | version "3.0.1" 1130 | resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" 1131 | dependencies: 1132 | minimatch "^3.0.4" 1133 | 1134 | import-local@^1.0.0: 1135 | version "1.0.0" 1136 | resolved "https://registry.yarnpkg.com/import-local/-/import-local-1.0.0.tgz#5e4ffdc03f4fe6c009c6729beb29631c2f8227bc" 1137 | dependencies: 1138 | pkg-dir "^2.0.0" 1139 | resolve-cwd "^2.0.0" 1140 | 1141 | imurmurhash@^0.1.4: 1142 | version "0.1.4" 1143 | resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" 1144 | 1145 | inflight@^1.0.4: 1146 | version "1.0.6" 1147 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 1148 | dependencies: 1149 | once "^1.3.0" 1150 | wrappy "1" 1151 | 1152 | inherits@2, inherits@~2.0.3: 1153 | version "2.0.3" 1154 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 1155 | 1156 | ini@~1.3.0: 1157 | version "1.3.5" 1158 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" 1159 | 1160 | invariant@^2.2.2, invariant@^2.2.4: 1161 | version "2.2.4" 1162 | resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" 1163 | dependencies: 1164 | loose-envify "^1.0.0" 1165 | 1166 | invert-kv@^1.0.0: 1167 | version "1.0.0" 1168 | resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" 1169 | 1170 | is-accessor-descriptor@^0.1.6: 1171 | version "0.1.6" 1172 | resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" 1173 | dependencies: 1174 | kind-of "^3.0.2" 1175 | 1176 | is-accessor-descriptor@^1.0.0: 1177 | version "1.0.0" 1178 | resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" 1179 | dependencies: 1180 | kind-of "^6.0.0" 1181 | 1182 | is-arrayish@^0.2.1: 1183 | version "0.2.1" 1184 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 1185 | 1186 | is-buffer@^1.1.5: 1187 | version "1.1.6" 1188 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" 1189 | 1190 | is-builtin-module@^1.0.0: 1191 | version "1.0.0" 1192 | resolved "http://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" 1193 | dependencies: 1194 | builtin-modules "^1.0.0" 1195 | 1196 | is-callable@^1.1.1, is-callable@^1.1.3: 1197 | version "1.1.4" 1198 | resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" 1199 | 1200 | is-ci@^1.0.10: 1201 | version "1.2.1" 1202 | resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.2.1.tgz#e3779c8ee17fccf428488f6e281187f2e632841c" 1203 | dependencies: 1204 | ci-info "^1.5.0" 1205 | 1206 | is-data-descriptor@^0.1.4: 1207 | version "0.1.4" 1208 | resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" 1209 | dependencies: 1210 | kind-of "^3.0.2" 1211 | 1212 | is-data-descriptor@^1.0.0: 1213 | version "1.0.0" 1214 | resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" 1215 | dependencies: 1216 | kind-of "^6.0.0" 1217 | 1218 | is-date-object@^1.0.1: 1219 | version "1.0.1" 1220 | resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" 1221 | 1222 | is-descriptor@^0.1.0: 1223 | version "0.1.6" 1224 | resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" 1225 | dependencies: 1226 | is-accessor-descriptor "^0.1.6" 1227 | is-data-descriptor "^0.1.4" 1228 | kind-of "^5.0.0" 1229 | 1230 | is-descriptor@^1.0.0, is-descriptor@^1.0.2: 1231 | version "1.0.2" 1232 | resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" 1233 | dependencies: 1234 | is-accessor-descriptor "^1.0.0" 1235 | is-data-descriptor "^1.0.0" 1236 | kind-of "^6.0.2" 1237 | 1238 | is-dotfile@^1.0.0: 1239 | version "1.0.3" 1240 | resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" 1241 | 1242 | is-equal-shallow@^0.1.3: 1243 | version "0.1.3" 1244 | resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" 1245 | dependencies: 1246 | is-primitive "^2.0.0" 1247 | 1248 | is-extendable@^0.1.0, is-extendable@^0.1.1: 1249 | version "0.1.1" 1250 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" 1251 | 1252 | is-extendable@^1.0.1: 1253 | version "1.0.1" 1254 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" 1255 | dependencies: 1256 | is-plain-object "^2.0.4" 1257 | 1258 | is-extglob@^1.0.0: 1259 | version "1.0.0" 1260 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" 1261 | 1262 | is-finite@^1.0.0: 1263 | version "1.0.2" 1264 | resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" 1265 | dependencies: 1266 | number-is-nan "^1.0.0" 1267 | 1268 | is-fullwidth-code-point@^1.0.0: 1269 | version "1.0.0" 1270 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 1271 | dependencies: 1272 | number-is-nan "^1.0.0" 1273 | 1274 | is-fullwidth-code-point@^2.0.0: 1275 | version "2.0.0" 1276 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" 1277 | 1278 | is-generator-fn@^1.0.0: 1279 | version "1.0.0" 1280 | resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-1.0.0.tgz#969d49e1bb3329f6bb7f09089be26578b2ddd46a" 1281 | 1282 | is-glob@^2.0.0, is-glob@^2.0.1: 1283 | version "2.0.1" 1284 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" 1285 | dependencies: 1286 | is-extglob "^1.0.0" 1287 | 1288 | is-number@^2.1.0: 1289 | version "2.1.0" 1290 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" 1291 | dependencies: 1292 | kind-of "^3.0.2" 1293 | 1294 | is-number@^3.0.0: 1295 | version "3.0.0" 1296 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" 1297 | dependencies: 1298 | kind-of "^3.0.2" 1299 | 1300 | is-number@^4.0.0: 1301 | version "4.0.0" 1302 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" 1303 | 1304 | is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: 1305 | version "2.0.4" 1306 | resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" 1307 | dependencies: 1308 | isobject "^3.0.1" 1309 | 1310 | is-posix-bracket@^0.1.0: 1311 | version "0.1.1" 1312 | resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" 1313 | 1314 | is-primitive@^2.0.0: 1315 | version "2.0.0" 1316 | resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" 1317 | 1318 | is-regex@^1.0.4: 1319 | version "1.0.4" 1320 | resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" 1321 | dependencies: 1322 | has "^1.0.1" 1323 | 1324 | is-stream@^1.1.0: 1325 | version "1.1.0" 1326 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 1327 | 1328 | is-symbol@^1.0.1: 1329 | version "1.0.2" 1330 | resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.2.tgz#a055f6ae57192caee329e7a860118b497a950f38" 1331 | dependencies: 1332 | has-symbols "^1.0.0" 1333 | 1334 | is-typedarray@~1.0.0: 1335 | version "1.0.0" 1336 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 1337 | 1338 | is-utf8@^0.2.0: 1339 | version "0.2.1" 1340 | resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" 1341 | 1342 | is-windows@^1.0.2: 1343 | version "1.0.2" 1344 | resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" 1345 | 1346 | isarray@1.0.0, isarray@~1.0.0: 1347 | version "1.0.0" 1348 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 1349 | 1350 | isexe@^2.0.0: 1351 | version "2.0.0" 1352 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 1353 | 1354 | isobject@^2.0.0: 1355 | version "2.1.0" 1356 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" 1357 | dependencies: 1358 | isarray "1.0.0" 1359 | 1360 | isobject@^3.0.0, isobject@^3.0.1: 1361 | version "3.0.1" 1362 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" 1363 | 1364 | isstream@~0.1.2: 1365 | version "0.1.2" 1366 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 1367 | 1368 | istanbul-api@^1.3.1: 1369 | version "1.3.7" 1370 | resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.3.7.tgz#a86c770d2b03e11e3f778cd7aedd82d2722092aa" 1371 | dependencies: 1372 | async "^2.1.4" 1373 | fileset "^2.0.2" 1374 | istanbul-lib-coverage "^1.2.1" 1375 | istanbul-lib-hook "^1.2.2" 1376 | istanbul-lib-instrument "^1.10.2" 1377 | istanbul-lib-report "^1.1.5" 1378 | istanbul-lib-source-maps "^1.2.6" 1379 | istanbul-reports "^1.5.1" 1380 | js-yaml "^3.7.0" 1381 | mkdirp "^0.5.1" 1382 | once "^1.4.0" 1383 | 1384 | istanbul-lib-coverage@^1.2.0, istanbul-lib-coverage@^1.2.1: 1385 | version "1.2.1" 1386 | resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.1.tgz#ccf7edcd0a0bb9b8f729feeb0930470f9af664f0" 1387 | 1388 | istanbul-lib-hook@^1.2.2: 1389 | version "1.2.2" 1390 | resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.2.2.tgz#bc6bf07f12a641fbf1c85391d0daa8f0aea6bf86" 1391 | dependencies: 1392 | append-transform "^0.4.0" 1393 | 1394 | istanbul-lib-instrument@^1.10.1, istanbul-lib-instrument@^1.10.2: 1395 | version "1.10.2" 1396 | resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.2.tgz#1f55ed10ac3c47f2bdddd5307935126754d0a9ca" 1397 | dependencies: 1398 | babel-generator "^6.18.0" 1399 | babel-template "^6.16.0" 1400 | babel-traverse "^6.18.0" 1401 | babel-types "^6.18.0" 1402 | babylon "^6.18.0" 1403 | istanbul-lib-coverage "^1.2.1" 1404 | semver "^5.3.0" 1405 | 1406 | istanbul-lib-report@^1.1.5: 1407 | version "1.1.5" 1408 | resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.5.tgz#f2a657fc6282f96170aaf281eb30a458f7f4170c" 1409 | dependencies: 1410 | istanbul-lib-coverage "^1.2.1" 1411 | mkdirp "^0.5.1" 1412 | path-parse "^1.0.5" 1413 | supports-color "^3.1.2" 1414 | 1415 | istanbul-lib-source-maps@^1.2.4, istanbul-lib-source-maps@^1.2.6: 1416 | version "1.2.6" 1417 | resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.6.tgz#37b9ff661580f8fca11232752ee42e08c6675d8f" 1418 | dependencies: 1419 | debug "^3.1.0" 1420 | istanbul-lib-coverage "^1.2.1" 1421 | mkdirp "^0.5.1" 1422 | rimraf "^2.6.1" 1423 | source-map "^0.5.3" 1424 | 1425 | istanbul-reports@^1.5.1: 1426 | version "1.5.1" 1427 | resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.5.1.tgz#97e4dbf3b515e8c484caea15d6524eebd3ff4e1a" 1428 | dependencies: 1429 | handlebars "^4.0.3" 1430 | 1431 | jest-changed-files@^23.4.2: 1432 | version "23.4.2" 1433 | resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-23.4.2.tgz#1eed688370cd5eebafe4ae93d34bb3b64968fe83" 1434 | dependencies: 1435 | throat "^4.0.0" 1436 | 1437 | jest-cli@^23.6.0: 1438 | version "23.6.0" 1439 | resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-23.6.0.tgz#61ab917744338f443ef2baa282ddffdd658a5da4" 1440 | dependencies: 1441 | ansi-escapes "^3.0.0" 1442 | chalk "^2.0.1" 1443 | exit "^0.1.2" 1444 | glob "^7.1.2" 1445 | graceful-fs "^4.1.11" 1446 | import-local "^1.0.0" 1447 | is-ci "^1.0.10" 1448 | istanbul-api "^1.3.1" 1449 | istanbul-lib-coverage "^1.2.0" 1450 | istanbul-lib-instrument "^1.10.1" 1451 | istanbul-lib-source-maps "^1.2.4" 1452 | jest-changed-files "^23.4.2" 1453 | jest-config "^23.6.0" 1454 | jest-environment-jsdom "^23.4.0" 1455 | jest-get-type "^22.1.0" 1456 | jest-haste-map "^23.6.0" 1457 | jest-message-util "^23.4.0" 1458 | jest-regex-util "^23.3.0" 1459 | jest-resolve-dependencies "^23.6.0" 1460 | jest-runner "^23.6.0" 1461 | jest-runtime "^23.6.0" 1462 | jest-snapshot "^23.6.0" 1463 | jest-util "^23.4.0" 1464 | jest-validate "^23.6.0" 1465 | jest-watcher "^23.4.0" 1466 | jest-worker "^23.2.0" 1467 | micromatch "^2.3.11" 1468 | node-notifier "^5.2.1" 1469 | prompts "^0.1.9" 1470 | realpath-native "^1.0.0" 1471 | rimraf "^2.5.4" 1472 | slash "^1.0.0" 1473 | string-length "^2.0.0" 1474 | strip-ansi "^4.0.0" 1475 | which "^1.2.12" 1476 | yargs "^11.0.0" 1477 | 1478 | jest-config@^23.6.0: 1479 | version "23.6.0" 1480 | resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-23.6.0.tgz#f82546a90ade2d8c7026fbf6ac5207fc22f8eb1d" 1481 | dependencies: 1482 | babel-core "^6.0.0" 1483 | babel-jest "^23.6.0" 1484 | chalk "^2.0.1" 1485 | glob "^7.1.1" 1486 | jest-environment-jsdom "^23.4.0" 1487 | jest-environment-node "^23.4.0" 1488 | jest-get-type "^22.1.0" 1489 | jest-jasmine2 "^23.6.0" 1490 | jest-regex-util "^23.3.0" 1491 | jest-resolve "^23.6.0" 1492 | jest-util "^23.4.0" 1493 | jest-validate "^23.6.0" 1494 | micromatch "^2.3.11" 1495 | pretty-format "^23.6.0" 1496 | 1497 | jest-diff@^23.6.0: 1498 | version "23.6.0" 1499 | resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-23.6.0.tgz#1500f3f16e850bb3d71233408089be099f610c7d" 1500 | dependencies: 1501 | chalk "^2.0.1" 1502 | diff "^3.2.0" 1503 | jest-get-type "^22.1.0" 1504 | pretty-format "^23.6.0" 1505 | 1506 | jest-docblock@^23.2.0: 1507 | version "23.2.0" 1508 | resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-23.2.0.tgz#f085e1f18548d99fdd69b20207e6fd55d91383a7" 1509 | dependencies: 1510 | detect-newline "^2.1.0" 1511 | 1512 | jest-each@^23.6.0: 1513 | version "23.6.0" 1514 | resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-23.6.0.tgz#ba0c3a82a8054387016139c733a05242d3d71575" 1515 | dependencies: 1516 | chalk "^2.0.1" 1517 | pretty-format "^23.6.0" 1518 | 1519 | jest-environment-jsdom@^23.4.0: 1520 | version "23.4.0" 1521 | resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-23.4.0.tgz#056a7952b3fea513ac62a140a2c368c79d9e6023" 1522 | dependencies: 1523 | jest-mock "^23.2.0" 1524 | jest-util "^23.4.0" 1525 | jsdom "^11.5.1" 1526 | 1527 | jest-environment-node@^23.4.0: 1528 | version "23.4.0" 1529 | resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-23.4.0.tgz#57e80ed0841dea303167cce8cd79521debafde10" 1530 | dependencies: 1531 | jest-mock "^23.2.0" 1532 | jest-util "^23.4.0" 1533 | 1534 | jest-get-type@^22.1.0: 1535 | version "22.4.3" 1536 | resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.4.3.tgz#e3a8504d8479342dd4420236b322869f18900ce4" 1537 | 1538 | jest-haste-map@^23.6.0: 1539 | version "23.6.0" 1540 | resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-23.6.0.tgz#2e3eb997814ca696d62afdb3f2529f5bbc935e16" 1541 | dependencies: 1542 | fb-watchman "^2.0.0" 1543 | graceful-fs "^4.1.11" 1544 | invariant "^2.2.4" 1545 | jest-docblock "^23.2.0" 1546 | jest-serializer "^23.0.1" 1547 | jest-worker "^23.2.0" 1548 | micromatch "^2.3.11" 1549 | sane "^2.0.0" 1550 | 1551 | jest-jasmine2@^23.6.0: 1552 | version "23.6.0" 1553 | resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-23.6.0.tgz#840e937f848a6c8638df24360ab869cc718592e0" 1554 | dependencies: 1555 | babel-traverse "^6.0.0" 1556 | chalk "^2.0.1" 1557 | co "^4.6.0" 1558 | expect "^23.6.0" 1559 | is-generator-fn "^1.0.0" 1560 | jest-diff "^23.6.0" 1561 | jest-each "^23.6.0" 1562 | jest-matcher-utils "^23.6.0" 1563 | jest-message-util "^23.4.0" 1564 | jest-snapshot "^23.6.0" 1565 | jest-util "^23.4.0" 1566 | pretty-format "^23.6.0" 1567 | 1568 | jest-leak-detector@^23.6.0: 1569 | version "23.6.0" 1570 | resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-23.6.0.tgz#e4230fd42cf381a1a1971237ad56897de7e171de" 1571 | dependencies: 1572 | pretty-format "^23.6.0" 1573 | 1574 | jest-matcher-utils@^23.6.0: 1575 | version "23.6.0" 1576 | resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-23.6.0.tgz#726bcea0c5294261a7417afb6da3186b4b8cac80" 1577 | dependencies: 1578 | chalk "^2.0.1" 1579 | jest-get-type "^22.1.0" 1580 | pretty-format "^23.6.0" 1581 | 1582 | jest-message-util@^23.4.0: 1583 | version "23.4.0" 1584 | resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-23.4.0.tgz#17610c50942349508d01a3d1e0bda2c079086a9f" 1585 | dependencies: 1586 | "@babel/code-frame" "^7.0.0-beta.35" 1587 | chalk "^2.0.1" 1588 | micromatch "^2.3.11" 1589 | slash "^1.0.0" 1590 | stack-utils "^1.0.1" 1591 | 1592 | jest-mock@^23.2.0: 1593 | version "23.2.0" 1594 | resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-23.2.0.tgz#ad1c60f29e8719d47c26e1138098b6d18b261134" 1595 | 1596 | jest-regex-util@^23.3.0: 1597 | version "23.3.0" 1598 | resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-23.3.0.tgz#5f86729547c2785c4002ceaa8f849fe8ca471bc5" 1599 | 1600 | jest-resolve-dependencies@^23.6.0: 1601 | version "23.6.0" 1602 | resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-23.6.0.tgz#b4526af24c8540d9a3fab102c15081cf509b723d" 1603 | dependencies: 1604 | jest-regex-util "^23.3.0" 1605 | jest-snapshot "^23.6.0" 1606 | 1607 | jest-resolve@^23.6.0: 1608 | version "23.6.0" 1609 | resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-23.6.0.tgz#cf1d1a24ce7ee7b23d661c33ba2150f3aebfa0ae" 1610 | dependencies: 1611 | browser-resolve "^1.11.3" 1612 | chalk "^2.0.1" 1613 | realpath-native "^1.0.0" 1614 | 1615 | jest-runner@^23.6.0: 1616 | version "23.6.0" 1617 | resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-23.6.0.tgz#3894bd219ffc3f3cb94dc48a4170a2e6f23a5a38" 1618 | dependencies: 1619 | exit "^0.1.2" 1620 | graceful-fs "^4.1.11" 1621 | jest-config "^23.6.0" 1622 | jest-docblock "^23.2.0" 1623 | jest-haste-map "^23.6.0" 1624 | jest-jasmine2 "^23.6.0" 1625 | jest-leak-detector "^23.6.0" 1626 | jest-message-util "^23.4.0" 1627 | jest-runtime "^23.6.0" 1628 | jest-util "^23.4.0" 1629 | jest-worker "^23.2.0" 1630 | source-map-support "^0.5.6" 1631 | throat "^4.0.0" 1632 | 1633 | jest-runtime@^23.6.0: 1634 | version "23.6.0" 1635 | resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-23.6.0.tgz#059e58c8ab445917cd0e0d84ac2ba68de8f23082" 1636 | dependencies: 1637 | babel-core "^6.0.0" 1638 | babel-plugin-istanbul "^4.1.6" 1639 | chalk "^2.0.1" 1640 | convert-source-map "^1.4.0" 1641 | exit "^0.1.2" 1642 | fast-json-stable-stringify "^2.0.0" 1643 | graceful-fs "^4.1.11" 1644 | jest-config "^23.6.0" 1645 | jest-haste-map "^23.6.0" 1646 | jest-message-util "^23.4.0" 1647 | jest-regex-util "^23.3.0" 1648 | jest-resolve "^23.6.0" 1649 | jest-snapshot "^23.6.0" 1650 | jest-util "^23.4.0" 1651 | jest-validate "^23.6.0" 1652 | micromatch "^2.3.11" 1653 | realpath-native "^1.0.0" 1654 | slash "^1.0.0" 1655 | strip-bom "3.0.0" 1656 | write-file-atomic "^2.1.0" 1657 | yargs "^11.0.0" 1658 | 1659 | jest-serializer@^23.0.1: 1660 | version "23.0.1" 1661 | resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-23.0.1.tgz#a3776aeb311e90fe83fab9e533e85102bd164165" 1662 | 1663 | jest-snapshot@^23.6.0: 1664 | version "23.6.0" 1665 | resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-23.6.0.tgz#f9c2625d1b18acda01ec2d2b826c0ce58a5aa17a" 1666 | dependencies: 1667 | babel-types "^6.0.0" 1668 | chalk "^2.0.1" 1669 | jest-diff "^23.6.0" 1670 | jest-matcher-utils "^23.6.0" 1671 | jest-message-util "^23.4.0" 1672 | jest-resolve "^23.6.0" 1673 | mkdirp "^0.5.1" 1674 | natural-compare "^1.4.0" 1675 | pretty-format "^23.6.0" 1676 | semver "^5.5.0" 1677 | 1678 | jest-util@^23.4.0: 1679 | version "23.4.0" 1680 | resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-23.4.0.tgz#4d063cb927baf0a23831ff61bec2cbbf49793561" 1681 | dependencies: 1682 | callsites "^2.0.0" 1683 | chalk "^2.0.1" 1684 | graceful-fs "^4.1.11" 1685 | is-ci "^1.0.10" 1686 | jest-message-util "^23.4.0" 1687 | mkdirp "^0.5.1" 1688 | slash "^1.0.0" 1689 | source-map "^0.6.0" 1690 | 1691 | jest-validate@^23.6.0: 1692 | version "23.6.0" 1693 | resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.6.0.tgz#36761f99d1ed33fcd425b4e4c5595d62b6597474" 1694 | dependencies: 1695 | chalk "^2.0.1" 1696 | jest-get-type "^22.1.0" 1697 | leven "^2.1.0" 1698 | pretty-format "^23.6.0" 1699 | 1700 | jest-watcher@^23.4.0: 1701 | version "23.4.0" 1702 | resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.4.0.tgz#d2e28ce74f8dad6c6afc922b92cabef6ed05c91c" 1703 | dependencies: 1704 | ansi-escapes "^3.0.0" 1705 | chalk "^2.0.1" 1706 | string-length "^2.0.0" 1707 | 1708 | jest-worker@^23.2.0: 1709 | version "23.2.0" 1710 | resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-23.2.0.tgz#faf706a8da36fae60eb26957257fa7b5d8ea02b9" 1711 | dependencies: 1712 | merge-stream "^1.0.1" 1713 | 1714 | jest@^23.0.0: 1715 | version "23.6.0" 1716 | resolved "https://registry.yarnpkg.com/jest/-/jest-23.6.0.tgz#ad5835e923ebf6e19e7a1d7529a432edfee7813d" 1717 | dependencies: 1718 | import-local "^1.0.0" 1719 | jest-cli "^23.6.0" 1720 | 1721 | "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: 1722 | version "4.0.0" 1723 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" 1724 | 1725 | js-tokens@^3.0.2: 1726 | version "3.0.2" 1727 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" 1728 | 1729 | js-yaml@^3.7.0: 1730 | version "3.12.0" 1731 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1" 1732 | dependencies: 1733 | argparse "^1.0.7" 1734 | esprima "^4.0.0" 1735 | 1736 | jsbn@~0.1.0: 1737 | version "0.1.1" 1738 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 1739 | 1740 | jsdom@^11.5.1: 1741 | version "11.12.0" 1742 | resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8" 1743 | dependencies: 1744 | abab "^2.0.0" 1745 | acorn "^5.5.3" 1746 | acorn-globals "^4.1.0" 1747 | array-equal "^1.0.0" 1748 | cssom ">= 0.3.2 < 0.4.0" 1749 | cssstyle "^1.0.0" 1750 | data-urls "^1.0.0" 1751 | domexception "^1.0.1" 1752 | escodegen "^1.9.1" 1753 | html-encoding-sniffer "^1.0.2" 1754 | left-pad "^1.3.0" 1755 | nwsapi "^2.0.7" 1756 | parse5 "4.0.0" 1757 | pn "^1.1.0" 1758 | request "^2.87.0" 1759 | request-promise-native "^1.0.5" 1760 | sax "^1.2.4" 1761 | symbol-tree "^3.2.2" 1762 | tough-cookie "^2.3.4" 1763 | w3c-hr-time "^1.0.1" 1764 | webidl-conversions "^4.0.2" 1765 | whatwg-encoding "^1.0.3" 1766 | whatwg-mimetype "^2.1.0" 1767 | whatwg-url "^6.4.1" 1768 | ws "^5.2.0" 1769 | xml-name-validator "^3.0.0" 1770 | 1771 | jsesc@^1.3.0: 1772 | version "1.3.0" 1773 | resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" 1774 | 1775 | json-schema-traverse@^0.3.0: 1776 | version "0.3.1" 1777 | resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" 1778 | 1779 | json-schema@0.2.3: 1780 | version "0.2.3" 1781 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 1782 | 1783 | json-stringify-safe@~5.0.1: 1784 | version "5.0.1" 1785 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 1786 | 1787 | json5@^0.5.1: 1788 | version "0.5.1" 1789 | resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" 1790 | 1791 | jsprim@^1.2.2: 1792 | version "1.4.1" 1793 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" 1794 | dependencies: 1795 | assert-plus "1.0.0" 1796 | extsprintf "1.3.0" 1797 | json-schema "0.2.3" 1798 | verror "1.10.0" 1799 | 1800 | kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: 1801 | version "3.2.2" 1802 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" 1803 | dependencies: 1804 | is-buffer "^1.1.5" 1805 | 1806 | kind-of@^4.0.0: 1807 | version "4.0.0" 1808 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" 1809 | dependencies: 1810 | is-buffer "^1.1.5" 1811 | 1812 | kind-of@^5.0.0: 1813 | version "5.1.0" 1814 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" 1815 | 1816 | kind-of@^6.0.0, kind-of@^6.0.2: 1817 | version "6.0.2" 1818 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" 1819 | 1820 | kleur@^2.0.1: 1821 | version "2.0.2" 1822 | resolved "https://registry.yarnpkg.com/kleur/-/kleur-2.0.2.tgz#b704f4944d95e255d038f0cb05fb8a602c55a300" 1823 | 1824 | lcid@^1.0.0: 1825 | version "1.0.0" 1826 | resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" 1827 | dependencies: 1828 | invert-kv "^1.0.0" 1829 | 1830 | left-pad@^1.3.0: 1831 | version "1.3.0" 1832 | resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" 1833 | 1834 | leven@^2.1.0: 1835 | version "2.1.0" 1836 | resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" 1837 | 1838 | levn@~0.3.0: 1839 | version "0.3.0" 1840 | resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" 1841 | dependencies: 1842 | prelude-ls "~1.1.2" 1843 | type-check "~0.3.2" 1844 | 1845 | load-json-file@^1.0.0: 1846 | version "1.1.0" 1847 | resolved "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" 1848 | dependencies: 1849 | graceful-fs "^4.1.2" 1850 | parse-json "^2.2.0" 1851 | pify "^2.0.0" 1852 | pinkie-promise "^2.0.0" 1853 | strip-bom "^2.0.0" 1854 | 1855 | locate-path@^2.0.0: 1856 | version "2.0.0" 1857 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" 1858 | dependencies: 1859 | p-locate "^2.0.0" 1860 | path-exists "^3.0.0" 1861 | 1862 | lodash.sortby@^4.7.0: 1863 | version "4.7.0" 1864 | resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" 1865 | 1866 | lodash@^4.13.1, lodash@^4.17.10, lodash@^4.17.4: 1867 | version "4.17.11" 1868 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" 1869 | 1870 | loose-envify@^1.0.0: 1871 | version "1.4.0" 1872 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" 1873 | dependencies: 1874 | js-tokens "^3.0.0 || ^4.0.0" 1875 | 1876 | lru-cache@^4.0.1: 1877 | version "4.1.3" 1878 | resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.3.tgz#a1175cf3496dfc8436c156c334b4955992bce69c" 1879 | dependencies: 1880 | pseudomap "^1.0.2" 1881 | yallist "^2.1.2" 1882 | 1883 | makeerror@1.0.x: 1884 | version "1.0.11" 1885 | resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" 1886 | dependencies: 1887 | tmpl "1.0.x" 1888 | 1889 | map-cache@^0.2.2: 1890 | version "0.2.2" 1891 | resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" 1892 | 1893 | map-visit@^1.0.0: 1894 | version "1.0.0" 1895 | resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" 1896 | dependencies: 1897 | object-visit "^1.0.0" 1898 | 1899 | math-random@^1.0.1: 1900 | version "1.0.1" 1901 | resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac" 1902 | 1903 | mem@^1.1.0: 1904 | version "1.1.0" 1905 | resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" 1906 | dependencies: 1907 | mimic-fn "^1.0.0" 1908 | 1909 | merge-stream@^1.0.1: 1910 | version "1.0.1" 1911 | resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1" 1912 | dependencies: 1913 | readable-stream "^2.0.1" 1914 | 1915 | merge@^1.2.0: 1916 | version "1.2.0" 1917 | resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" 1918 | 1919 | micromatch@^2.3.11: 1920 | version "2.3.11" 1921 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" 1922 | dependencies: 1923 | arr-diff "^2.0.0" 1924 | array-unique "^0.2.1" 1925 | braces "^1.8.2" 1926 | expand-brackets "^0.1.4" 1927 | extglob "^0.3.1" 1928 | filename-regex "^2.0.0" 1929 | is-extglob "^1.0.0" 1930 | is-glob "^2.0.1" 1931 | kind-of "^3.0.2" 1932 | normalize-path "^2.0.1" 1933 | object.omit "^2.0.0" 1934 | parse-glob "^3.0.4" 1935 | regex-cache "^0.4.2" 1936 | 1937 | micromatch@^3.1.4: 1938 | version "3.1.10" 1939 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" 1940 | dependencies: 1941 | arr-diff "^4.0.0" 1942 | array-unique "^0.3.2" 1943 | braces "^2.3.1" 1944 | define-property "^2.0.2" 1945 | extend-shallow "^3.0.2" 1946 | extglob "^2.0.4" 1947 | fragment-cache "^0.2.1" 1948 | kind-of "^6.0.2" 1949 | nanomatch "^1.2.9" 1950 | object.pick "^1.3.0" 1951 | regex-not "^1.0.0" 1952 | snapdragon "^0.8.1" 1953 | to-regex "^3.0.2" 1954 | 1955 | mime-db@~1.36.0: 1956 | version "1.36.0" 1957 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.36.0.tgz#5020478db3c7fe93aad7bbcc4dcf869c43363397" 1958 | 1959 | mime-types@^2.1.12, mime-types@~2.1.19: 1960 | version "2.1.20" 1961 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.20.tgz#930cb719d571e903738520f8470911548ca2cc19" 1962 | dependencies: 1963 | mime-db "~1.36.0" 1964 | 1965 | mimic-fn@^1.0.0: 1966 | version "1.2.0" 1967 | resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" 1968 | 1969 | minimatch@^3.0.3, minimatch@^3.0.4: 1970 | version "3.0.4" 1971 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 1972 | dependencies: 1973 | brace-expansion "^1.1.7" 1974 | 1975 | minimist@0.0.8: 1976 | version "0.0.8" 1977 | resolved "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 1978 | 1979 | minimist@^1.1.1, minimist@^1.2.0: 1980 | version "1.2.0" 1981 | resolved "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 1982 | 1983 | minimist@~0.0.1: 1984 | version "0.0.10" 1985 | resolved "http://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" 1986 | 1987 | minipass@^2.2.1, minipass@^2.3.3: 1988 | version "2.3.4" 1989 | resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.4.tgz#4768d7605ed6194d6d576169b9e12ef71e9d9957" 1990 | dependencies: 1991 | safe-buffer "^5.1.2" 1992 | yallist "^3.0.0" 1993 | 1994 | minizlib@^1.1.0: 1995 | version "1.1.0" 1996 | resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.1.0.tgz#11e13658ce46bc3a70a267aac58359d1e0c29ceb" 1997 | dependencies: 1998 | minipass "^2.2.1" 1999 | 2000 | mixin-deep@^1.2.0: 2001 | version "1.3.1" 2002 | resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" 2003 | dependencies: 2004 | for-in "^1.0.2" 2005 | is-extendable "^1.0.1" 2006 | 2007 | mkdirp@^0.5.0, mkdirp@^0.5.1: 2008 | version "0.5.1" 2009 | resolved "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 2010 | dependencies: 2011 | minimist "0.0.8" 2012 | 2013 | ms@2.0.0: 2014 | version "2.0.0" 2015 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 2016 | 2017 | ms@^2.1.1: 2018 | version "2.1.1" 2019 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" 2020 | 2021 | nan@^2.9.2: 2022 | version "2.11.0" 2023 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.11.0.tgz#574e360e4d954ab16966ec102c0c049fd961a099" 2024 | 2025 | nanomatch@^1.2.9: 2026 | version "1.2.13" 2027 | resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" 2028 | dependencies: 2029 | arr-diff "^4.0.0" 2030 | array-unique "^0.3.2" 2031 | define-property "^2.0.2" 2032 | extend-shallow "^3.0.2" 2033 | fragment-cache "^0.2.1" 2034 | is-windows "^1.0.2" 2035 | kind-of "^6.0.2" 2036 | object.pick "^1.3.0" 2037 | regex-not "^1.0.0" 2038 | snapdragon "^0.8.1" 2039 | to-regex "^3.0.1" 2040 | 2041 | natural-compare@^1.4.0: 2042 | version "1.4.0" 2043 | resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" 2044 | 2045 | needle@^2.2.1: 2046 | version "2.2.3" 2047 | resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.3.tgz#c1b04da378cd634d8befe2de965dc2cfb0fd65ca" 2048 | dependencies: 2049 | debug "^2.1.2" 2050 | iconv-lite "^0.4.4" 2051 | sax "^1.2.4" 2052 | 2053 | node-int64@^0.4.0: 2054 | version "0.4.0" 2055 | resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" 2056 | 2057 | node-notifier@^5.2.1: 2058 | version "5.2.1" 2059 | resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.2.1.tgz#fa313dd08f5517db0e2502e5758d664ac69f9dea" 2060 | dependencies: 2061 | growly "^1.3.0" 2062 | semver "^5.4.1" 2063 | shellwords "^0.1.1" 2064 | which "^1.3.0" 2065 | 2066 | node-pre-gyp@^0.10.0: 2067 | version "0.10.3" 2068 | resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.3.tgz#3070040716afdc778747b61b6887bf78880b80fc" 2069 | dependencies: 2070 | detect-libc "^1.0.2" 2071 | mkdirp "^0.5.1" 2072 | needle "^2.2.1" 2073 | nopt "^4.0.1" 2074 | npm-packlist "^1.1.6" 2075 | npmlog "^4.0.2" 2076 | rc "^1.2.7" 2077 | rimraf "^2.6.1" 2078 | semver "^5.3.0" 2079 | tar "^4" 2080 | 2081 | nopt@^4.0.1: 2082 | version "4.0.1" 2083 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" 2084 | dependencies: 2085 | abbrev "1" 2086 | osenv "^0.1.4" 2087 | 2088 | normalize-package-data@^2.3.2: 2089 | version "2.4.0" 2090 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" 2091 | dependencies: 2092 | hosted-git-info "^2.1.4" 2093 | is-builtin-module "^1.0.0" 2094 | semver "2 || 3 || 4 || 5" 2095 | validate-npm-package-license "^3.0.1" 2096 | 2097 | normalize-path@^2.0.1, normalize-path@^2.1.1: 2098 | version "2.1.1" 2099 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" 2100 | dependencies: 2101 | remove-trailing-separator "^1.0.1" 2102 | 2103 | npm-bundled@^1.0.1: 2104 | version "1.0.5" 2105 | resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.5.tgz#3c1732b7ba936b3a10325aef616467c0ccbcc979" 2106 | 2107 | npm-packlist@^1.1.6: 2108 | version "1.1.11" 2109 | resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.11.tgz#84e8c683cbe7867d34b1d357d893ce29e28a02de" 2110 | dependencies: 2111 | ignore-walk "^3.0.1" 2112 | npm-bundled "^1.0.1" 2113 | 2114 | npm-run-path@^2.0.0: 2115 | version "2.0.2" 2116 | resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" 2117 | dependencies: 2118 | path-key "^2.0.0" 2119 | 2120 | npmlog@^4.0.2: 2121 | version "4.1.2" 2122 | resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" 2123 | dependencies: 2124 | are-we-there-yet "~1.1.2" 2125 | console-control-strings "~1.1.0" 2126 | gauge "~2.7.3" 2127 | set-blocking "~2.0.0" 2128 | 2129 | number-is-nan@^1.0.0: 2130 | version "1.0.1" 2131 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 2132 | 2133 | nwsapi@^2.0.7: 2134 | version "2.0.9" 2135 | resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.0.9.tgz#77ac0cdfdcad52b6a1151a84e73254edc33ed016" 2136 | 2137 | oauth-sign@~0.9.0: 2138 | version "0.9.0" 2139 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" 2140 | 2141 | object-assign@^4.1.0: 2142 | version "4.1.1" 2143 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 2144 | 2145 | object-copy@^0.1.0: 2146 | version "0.1.0" 2147 | resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" 2148 | dependencies: 2149 | copy-descriptor "^0.1.0" 2150 | define-property "^0.2.5" 2151 | kind-of "^3.0.3" 2152 | 2153 | object-keys@^1.0.12: 2154 | version "1.0.12" 2155 | resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2" 2156 | 2157 | object-visit@^1.0.0: 2158 | version "1.0.1" 2159 | resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" 2160 | dependencies: 2161 | isobject "^3.0.0" 2162 | 2163 | object.getownpropertydescriptors@^2.0.3: 2164 | version "2.0.3" 2165 | resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" 2166 | dependencies: 2167 | define-properties "^1.1.2" 2168 | es-abstract "^1.5.1" 2169 | 2170 | object.omit@^2.0.0: 2171 | version "2.0.1" 2172 | resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" 2173 | dependencies: 2174 | for-own "^0.1.4" 2175 | is-extendable "^0.1.1" 2176 | 2177 | object.pick@^1.3.0: 2178 | version "1.3.0" 2179 | resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" 2180 | dependencies: 2181 | isobject "^3.0.1" 2182 | 2183 | once@^1.3.0, once@^1.4.0: 2184 | version "1.4.0" 2185 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 2186 | dependencies: 2187 | wrappy "1" 2188 | 2189 | optimist@^0.6.1: 2190 | version "0.6.1" 2191 | resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" 2192 | dependencies: 2193 | minimist "~0.0.1" 2194 | wordwrap "~0.0.2" 2195 | 2196 | optionator@^0.8.1: 2197 | version "0.8.2" 2198 | resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" 2199 | dependencies: 2200 | deep-is "~0.1.3" 2201 | fast-levenshtein "~2.0.4" 2202 | levn "~0.3.0" 2203 | prelude-ls "~1.1.2" 2204 | type-check "~0.3.2" 2205 | wordwrap "~1.0.0" 2206 | 2207 | os-homedir@^1.0.0: 2208 | version "1.0.2" 2209 | resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" 2210 | 2211 | os-locale@^2.0.0: 2212 | version "2.1.0" 2213 | resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" 2214 | dependencies: 2215 | execa "^0.7.0" 2216 | lcid "^1.0.0" 2217 | mem "^1.1.0" 2218 | 2219 | os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: 2220 | version "1.0.2" 2221 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 2222 | 2223 | osenv@^0.1.4: 2224 | version "0.1.5" 2225 | resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" 2226 | dependencies: 2227 | os-homedir "^1.0.0" 2228 | os-tmpdir "^1.0.0" 2229 | 2230 | p-finally@^1.0.0: 2231 | version "1.0.0" 2232 | resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" 2233 | 2234 | p-limit@^1.1.0: 2235 | version "1.3.0" 2236 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" 2237 | dependencies: 2238 | p-try "^1.0.0" 2239 | 2240 | p-locate@^2.0.0: 2241 | version "2.0.0" 2242 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" 2243 | dependencies: 2244 | p-limit "^1.1.0" 2245 | 2246 | p-try@^1.0.0: 2247 | version "1.0.0" 2248 | resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" 2249 | 2250 | parse-glob@^3.0.4: 2251 | version "3.0.4" 2252 | resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" 2253 | dependencies: 2254 | glob-base "^0.3.0" 2255 | is-dotfile "^1.0.0" 2256 | is-extglob "^1.0.0" 2257 | is-glob "^2.0.0" 2258 | 2259 | parse-json@^2.2.0: 2260 | version "2.2.0" 2261 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" 2262 | dependencies: 2263 | error-ex "^1.2.0" 2264 | 2265 | parse5@4.0.0: 2266 | version "4.0.0" 2267 | resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" 2268 | 2269 | pascalcase@^0.1.1: 2270 | version "0.1.1" 2271 | resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" 2272 | 2273 | path-exists@^2.0.0: 2274 | version "2.1.0" 2275 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" 2276 | dependencies: 2277 | pinkie-promise "^2.0.0" 2278 | 2279 | path-exists@^3.0.0: 2280 | version "3.0.0" 2281 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" 2282 | 2283 | path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: 2284 | version "1.0.1" 2285 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 2286 | 2287 | path-key@^2.0.0: 2288 | version "2.0.1" 2289 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" 2290 | 2291 | path-parse@^1.0.5: 2292 | version "1.0.6" 2293 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" 2294 | 2295 | path-type@^1.0.0: 2296 | version "1.1.0" 2297 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" 2298 | dependencies: 2299 | graceful-fs "^4.1.2" 2300 | pify "^2.0.0" 2301 | pinkie-promise "^2.0.0" 2302 | 2303 | performance-now@^2.1.0: 2304 | version "2.1.0" 2305 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" 2306 | 2307 | pify@^2.0.0: 2308 | version "2.3.0" 2309 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 2310 | 2311 | pinkie-promise@^2.0.0: 2312 | version "2.0.1" 2313 | resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" 2314 | dependencies: 2315 | pinkie "^2.0.0" 2316 | 2317 | pinkie@^2.0.0: 2318 | version "2.0.4" 2319 | resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" 2320 | 2321 | pkg-dir@^2.0.0: 2322 | version "2.0.0" 2323 | resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" 2324 | dependencies: 2325 | find-up "^2.1.0" 2326 | 2327 | pn@^1.1.0: 2328 | version "1.1.0" 2329 | resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" 2330 | 2331 | posix-character-classes@^0.1.0: 2332 | version "0.1.1" 2333 | resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" 2334 | 2335 | prelude-ls@~1.1.2: 2336 | version "1.1.2" 2337 | resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" 2338 | 2339 | preserve@^0.2.0: 2340 | version "0.2.0" 2341 | resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" 2342 | 2343 | pretty-format@^23.6.0: 2344 | version "23.6.0" 2345 | resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.6.0.tgz#5eaac8eeb6b33b987b7fe6097ea6a8a146ab5760" 2346 | dependencies: 2347 | ansi-regex "^3.0.0" 2348 | ansi-styles "^3.2.0" 2349 | 2350 | private@^0.1.8: 2351 | version "0.1.8" 2352 | resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" 2353 | 2354 | process-nextick-args@~2.0.0: 2355 | version "2.0.0" 2356 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" 2357 | 2358 | prompts@^0.1.9: 2359 | version "0.1.14" 2360 | resolved "https://registry.yarnpkg.com/prompts/-/prompts-0.1.14.tgz#a8e15c612c5c9ec8f8111847df3337c9cbd443b2" 2361 | dependencies: 2362 | kleur "^2.0.1" 2363 | sisteransi "^0.1.1" 2364 | 2365 | pseudomap@^1.0.2: 2366 | version "1.0.2" 2367 | resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" 2368 | 2369 | psl@^1.1.24: 2370 | version "1.1.29" 2371 | resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.29.tgz#60f580d360170bb722a797cc704411e6da850c67" 2372 | 2373 | punycode@^1.4.1: 2374 | version "1.4.1" 2375 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 2376 | 2377 | punycode@^2.1.0: 2378 | version "2.1.1" 2379 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" 2380 | 2381 | qs@~6.5.2: 2382 | version "6.5.2" 2383 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" 2384 | 2385 | randomatic@^3.0.0: 2386 | version "3.1.0" 2387 | resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.0.tgz#36f2ca708e9e567f5ed2ec01949026d50aa10116" 2388 | dependencies: 2389 | is-number "^4.0.0" 2390 | kind-of "^6.0.0" 2391 | math-random "^1.0.1" 2392 | 2393 | rc@^1.2.7: 2394 | version "1.2.8" 2395 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" 2396 | dependencies: 2397 | deep-extend "^0.6.0" 2398 | ini "~1.3.0" 2399 | minimist "^1.2.0" 2400 | strip-json-comments "~2.0.1" 2401 | 2402 | read-pkg-up@^1.0.1: 2403 | version "1.0.1" 2404 | resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" 2405 | dependencies: 2406 | find-up "^1.0.0" 2407 | read-pkg "^1.0.0" 2408 | 2409 | read-pkg@^1.0.0: 2410 | version "1.1.0" 2411 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" 2412 | dependencies: 2413 | load-json-file "^1.0.0" 2414 | normalize-package-data "^2.3.2" 2415 | path-type "^1.0.0" 2416 | 2417 | readable-stream@^2.0.1, readable-stream@^2.0.6: 2418 | version "2.3.6" 2419 | resolved "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" 2420 | dependencies: 2421 | core-util-is "~1.0.0" 2422 | inherits "~2.0.3" 2423 | isarray "~1.0.0" 2424 | process-nextick-args "~2.0.0" 2425 | safe-buffer "~5.1.1" 2426 | string_decoder "~1.1.1" 2427 | util-deprecate "~1.0.1" 2428 | 2429 | realpath-native@^1.0.0: 2430 | version "1.0.2" 2431 | resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.0.2.tgz#cd51ce089b513b45cf9b1516c82989b51ccc6560" 2432 | dependencies: 2433 | util.promisify "^1.0.0" 2434 | 2435 | regenerator-runtime@^0.11.0: 2436 | version "0.11.1" 2437 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" 2438 | 2439 | regex-cache@^0.4.2: 2440 | version "0.4.4" 2441 | resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" 2442 | dependencies: 2443 | is-equal-shallow "^0.1.3" 2444 | 2445 | regex-not@^1.0.0, regex-not@^1.0.2: 2446 | version "1.0.2" 2447 | resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" 2448 | dependencies: 2449 | extend-shallow "^3.0.2" 2450 | safe-regex "^1.1.0" 2451 | 2452 | remove-trailing-separator@^1.0.1: 2453 | version "1.1.0" 2454 | resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" 2455 | 2456 | repeat-element@^1.1.2: 2457 | version "1.1.3" 2458 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" 2459 | 2460 | repeat-string@^1.5.2, repeat-string@^1.6.1: 2461 | version "1.6.1" 2462 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" 2463 | 2464 | repeating@^2.0.0: 2465 | version "2.0.1" 2466 | resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" 2467 | dependencies: 2468 | is-finite "^1.0.0" 2469 | 2470 | request-promise-core@1.1.1: 2471 | version "1.1.1" 2472 | resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6" 2473 | dependencies: 2474 | lodash "^4.13.1" 2475 | 2476 | request-promise-native@^1.0.5: 2477 | version "1.0.5" 2478 | resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.5.tgz#5281770f68e0c9719e5163fd3fab482215f4fda5" 2479 | dependencies: 2480 | request-promise-core "1.1.1" 2481 | stealthy-require "^1.1.0" 2482 | tough-cookie ">=2.3.3" 2483 | 2484 | request@^2.87.0: 2485 | version "2.88.0" 2486 | resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" 2487 | dependencies: 2488 | aws-sign2 "~0.7.0" 2489 | aws4 "^1.8.0" 2490 | caseless "~0.12.0" 2491 | combined-stream "~1.0.6" 2492 | extend "~3.0.2" 2493 | forever-agent "~0.6.1" 2494 | form-data "~2.3.2" 2495 | har-validator "~5.1.0" 2496 | http-signature "~1.2.0" 2497 | is-typedarray "~1.0.0" 2498 | isstream "~0.1.2" 2499 | json-stringify-safe "~5.0.1" 2500 | mime-types "~2.1.19" 2501 | oauth-sign "~0.9.0" 2502 | performance-now "^2.1.0" 2503 | qs "~6.5.2" 2504 | safe-buffer "^5.1.2" 2505 | tough-cookie "~2.4.3" 2506 | tunnel-agent "^0.6.0" 2507 | uuid "^3.3.2" 2508 | 2509 | require-directory@^2.1.1: 2510 | version "2.1.1" 2511 | resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 2512 | 2513 | require-main-filename@^1.0.1: 2514 | version "1.0.1" 2515 | resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" 2516 | 2517 | resolve-cwd@^2.0.0: 2518 | version "2.0.0" 2519 | resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" 2520 | dependencies: 2521 | resolve-from "^3.0.0" 2522 | 2523 | resolve-from@^3.0.0: 2524 | version "3.0.0" 2525 | resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" 2526 | 2527 | resolve-url@^0.2.1: 2528 | version "0.2.1" 2529 | resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" 2530 | 2531 | resolve@1.1.7: 2532 | version "1.1.7" 2533 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" 2534 | 2535 | ret@~0.1.10: 2536 | version "0.1.15" 2537 | resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" 2538 | 2539 | rimraf@^2.5.4, rimraf@^2.6.1: 2540 | version "2.6.2" 2541 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" 2542 | dependencies: 2543 | glob "^7.0.5" 2544 | 2545 | rsvp@^3.3.3: 2546 | version "3.6.2" 2547 | resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.6.2.tgz#2e96491599a96cde1b515d5674a8f7a91452926a" 2548 | 2549 | safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: 2550 | version "5.1.2" 2551 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" 2552 | 2553 | safe-regex@^1.1.0: 2554 | version "1.1.0" 2555 | resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" 2556 | dependencies: 2557 | ret "~0.1.10" 2558 | 2559 | "safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: 2560 | version "2.1.2" 2561 | resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" 2562 | 2563 | sane@^2.0.0: 2564 | version "2.5.2" 2565 | resolved "https://registry.yarnpkg.com/sane/-/sane-2.5.2.tgz#b4dc1861c21b427e929507a3e751e2a2cb8ab3fa" 2566 | dependencies: 2567 | anymatch "^2.0.0" 2568 | capture-exit "^1.2.0" 2569 | exec-sh "^0.2.0" 2570 | fb-watchman "^2.0.0" 2571 | micromatch "^3.1.4" 2572 | minimist "^1.1.1" 2573 | walker "~1.0.5" 2574 | watch "~0.18.0" 2575 | optionalDependencies: 2576 | fsevents "^1.2.3" 2577 | 2578 | sax@^1.2.4: 2579 | version "1.2.4" 2580 | resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" 2581 | 2582 | "semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0: 2583 | version "5.5.1" 2584 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.1.tgz#7dfdd8814bdb7cabc7be0fb1d734cfb66c940477" 2585 | 2586 | set-blocking@^2.0.0, set-blocking@~2.0.0: 2587 | version "2.0.0" 2588 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 2589 | 2590 | set-value@^0.4.3: 2591 | version "0.4.3" 2592 | resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" 2593 | dependencies: 2594 | extend-shallow "^2.0.1" 2595 | is-extendable "^0.1.1" 2596 | is-plain-object "^2.0.1" 2597 | to-object-path "^0.3.0" 2598 | 2599 | set-value@^2.0.0: 2600 | version "2.0.0" 2601 | resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" 2602 | dependencies: 2603 | extend-shallow "^2.0.1" 2604 | is-extendable "^0.1.1" 2605 | is-plain-object "^2.0.3" 2606 | split-string "^3.0.1" 2607 | 2608 | shebang-command@^1.2.0: 2609 | version "1.2.0" 2610 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" 2611 | dependencies: 2612 | shebang-regex "^1.0.0" 2613 | 2614 | shebang-regex@^1.0.0: 2615 | version "1.0.0" 2616 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" 2617 | 2618 | shellwords@^0.1.1: 2619 | version "0.1.1" 2620 | resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" 2621 | 2622 | signal-exit@^3.0.0, signal-exit@^3.0.2: 2623 | version "3.0.2" 2624 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 2625 | 2626 | sisteransi@^0.1.1: 2627 | version "0.1.1" 2628 | resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-0.1.1.tgz#5431447d5f7d1675aac667ccd0b865a4994cb3ce" 2629 | 2630 | slash@^1.0.0: 2631 | version "1.0.0" 2632 | resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" 2633 | 2634 | snapdragon-node@^2.0.1: 2635 | version "2.1.1" 2636 | resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" 2637 | dependencies: 2638 | define-property "^1.0.0" 2639 | isobject "^3.0.0" 2640 | snapdragon-util "^3.0.1" 2641 | 2642 | snapdragon-util@^3.0.1: 2643 | version "3.0.1" 2644 | resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" 2645 | dependencies: 2646 | kind-of "^3.2.0" 2647 | 2648 | snapdragon@^0.8.1: 2649 | version "0.8.2" 2650 | resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" 2651 | dependencies: 2652 | base "^0.11.1" 2653 | debug "^2.2.0" 2654 | define-property "^0.2.5" 2655 | extend-shallow "^2.0.1" 2656 | map-cache "^0.2.2" 2657 | source-map "^0.5.6" 2658 | source-map-resolve "^0.5.0" 2659 | use "^3.1.0" 2660 | 2661 | source-map-resolve@^0.5.0: 2662 | version "0.5.2" 2663 | resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" 2664 | dependencies: 2665 | atob "^2.1.1" 2666 | decode-uri-component "^0.2.0" 2667 | resolve-url "^0.2.1" 2668 | source-map-url "^0.4.0" 2669 | urix "^0.1.0" 2670 | 2671 | source-map-support@^0.4.15: 2672 | version "0.4.18" 2673 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" 2674 | dependencies: 2675 | source-map "^0.5.6" 2676 | 2677 | source-map-support@^0.5.6: 2678 | version "0.5.9" 2679 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.9.tgz#41bc953b2534267ea2d605bccfa7bfa3111ced5f" 2680 | dependencies: 2681 | buffer-from "^1.0.0" 2682 | source-map "^0.6.0" 2683 | 2684 | source-map-url@^0.4.0: 2685 | version "0.4.0" 2686 | resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" 2687 | 2688 | source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7: 2689 | version "0.5.7" 2690 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" 2691 | 2692 | source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: 2693 | version "0.6.1" 2694 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" 2695 | 2696 | spdx-correct@^3.0.0: 2697 | version "3.0.0" 2698 | resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82" 2699 | dependencies: 2700 | spdx-expression-parse "^3.0.0" 2701 | spdx-license-ids "^3.0.0" 2702 | 2703 | spdx-exceptions@^2.1.0: 2704 | version "2.1.0" 2705 | resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz#2c7ae61056c714a5b9b9b2b2af7d311ef5c78fe9" 2706 | 2707 | spdx-expression-parse@^3.0.0: 2708 | version "3.0.0" 2709 | resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" 2710 | dependencies: 2711 | spdx-exceptions "^2.1.0" 2712 | spdx-license-ids "^3.0.0" 2713 | 2714 | spdx-license-ids@^3.0.0: 2715 | version "3.0.1" 2716 | resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.1.tgz#e2a303236cac54b04031fa7a5a79c7e701df852f" 2717 | 2718 | split-string@^3.0.1, split-string@^3.0.2: 2719 | version "3.1.0" 2720 | resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" 2721 | dependencies: 2722 | extend-shallow "^3.0.0" 2723 | 2724 | sprintf-js@~1.0.2: 2725 | version "1.0.3" 2726 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 2727 | 2728 | sshpk@^1.7.0: 2729 | version "1.14.2" 2730 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.14.2.tgz#c6fc61648a3d9c4e764fd3fcdf4ea105e492ba98" 2731 | dependencies: 2732 | asn1 "~0.2.3" 2733 | assert-plus "^1.0.0" 2734 | dashdash "^1.12.0" 2735 | getpass "^0.1.1" 2736 | safer-buffer "^2.0.2" 2737 | optionalDependencies: 2738 | bcrypt-pbkdf "^1.0.0" 2739 | ecc-jsbn "~0.1.1" 2740 | jsbn "~0.1.0" 2741 | tweetnacl "~0.14.0" 2742 | 2743 | stack-utils@^1.0.1: 2744 | version "1.0.1" 2745 | resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620" 2746 | 2747 | static-extend@^0.1.1: 2748 | version "0.1.2" 2749 | resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" 2750 | dependencies: 2751 | define-property "^0.2.5" 2752 | object-copy "^0.1.0" 2753 | 2754 | stealthy-require@^1.1.0: 2755 | version "1.1.1" 2756 | resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" 2757 | 2758 | string-length@^2.0.0: 2759 | version "2.0.0" 2760 | resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" 2761 | dependencies: 2762 | astral-regex "^1.0.0" 2763 | strip-ansi "^4.0.0" 2764 | 2765 | string-width@^1.0.1: 2766 | version "1.0.2" 2767 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 2768 | dependencies: 2769 | code-point-at "^1.0.0" 2770 | is-fullwidth-code-point "^1.0.0" 2771 | strip-ansi "^3.0.0" 2772 | 2773 | "string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.1: 2774 | version "2.1.1" 2775 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" 2776 | dependencies: 2777 | is-fullwidth-code-point "^2.0.0" 2778 | strip-ansi "^4.0.0" 2779 | 2780 | string_decoder@~1.1.1: 2781 | version "1.1.1" 2782 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" 2783 | dependencies: 2784 | safe-buffer "~5.1.0" 2785 | 2786 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 2787 | version "3.0.1" 2788 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 2789 | dependencies: 2790 | ansi-regex "^2.0.0" 2791 | 2792 | strip-ansi@^4.0.0: 2793 | version "4.0.0" 2794 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" 2795 | dependencies: 2796 | ansi-regex "^3.0.0" 2797 | 2798 | strip-bom@3.0.0: 2799 | version "3.0.0" 2800 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" 2801 | 2802 | strip-bom@^2.0.0: 2803 | version "2.0.0" 2804 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" 2805 | dependencies: 2806 | is-utf8 "^0.2.0" 2807 | 2808 | strip-eof@^1.0.0: 2809 | version "1.0.0" 2810 | resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" 2811 | 2812 | strip-json-comments@~2.0.1: 2813 | version "2.0.1" 2814 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" 2815 | 2816 | supports-color@^2.0.0: 2817 | version "2.0.0" 2818 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 2819 | 2820 | supports-color@^3.1.2: 2821 | version "3.2.3" 2822 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" 2823 | dependencies: 2824 | has-flag "^1.0.0" 2825 | 2826 | supports-color@^5.3.0: 2827 | version "5.5.0" 2828 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" 2829 | dependencies: 2830 | has-flag "^3.0.0" 2831 | 2832 | symbol-tree@^3.2.2: 2833 | version "3.2.2" 2834 | resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" 2835 | 2836 | tar@^4: 2837 | version "4.4.6" 2838 | resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.6.tgz#63110f09c00b4e60ac8bcfe1bf3c8660235fbc9b" 2839 | dependencies: 2840 | chownr "^1.0.1" 2841 | fs-minipass "^1.2.5" 2842 | minipass "^2.3.3" 2843 | minizlib "^1.1.0" 2844 | mkdirp "^0.5.0" 2845 | safe-buffer "^5.1.2" 2846 | yallist "^3.0.2" 2847 | 2848 | test-exclude@^4.2.1: 2849 | version "4.2.3" 2850 | resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.2.3.tgz#a9a5e64474e4398339245a0a769ad7c2f4a97c20" 2851 | dependencies: 2852 | arrify "^1.0.1" 2853 | micromatch "^2.3.11" 2854 | object-assign "^4.1.0" 2855 | read-pkg-up "^1.0.1" 2856 | require-main-filename "^1.0.1" 2857 | 2858 | throat@^4.0.0: 2859 | version "4.1.0" 2860 | resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" 2861 | 2862 | tmpl@1.0.x: 2863 | version "1.0.4" 2864 | resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" 2865 | 2866 | to-fast-properties@^1.0.3: 2867 | version "1.0.3" 2868 | resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" 2869 | 2870 | to-object-path@^0.3.0: 2871 | version "0.3.0" 2872 | resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" 2873 | dependencies: 2874 | kind-of "^3.0.2" 2875 | 2876 | to-regex-range@^2.1.0: 2877 | version "2.1.1" 2878 | resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" 2879 | dependencies: 2880 | is-number "^3.0.0" 2881 | repeat-string "^1.6.1" 2882 | 2883 | to-regex@^3.0.1, to-regex@^3.0.2: 2884 | version "3.0.2" 2885 | resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" 2886 | dependencies: 2887 | define-property "^2.0.2" 2888 | extend-shallow "^3.0.2" 2889 | regex-not "^1.0.2" 2890 | safe-regex "^1.1.0" 2891 | 2892 | tough-cookie@>=2.3.3, tough-cookie@^2.3.4, tough-cookie@~2.4.3: 2893 | version "2.4.3" 2894 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" 2895 | dependencies: 2896 | psl "^1.1.24" 2897 | punycode "^1.4.1" 2898 | 2899 | tr46@^1.0.1: 2900 | version "1.0.1" 2901 | resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" 2902 | dependencies: 2903 | punycode "^2.1.0" 2904 | 2905 | trim-right@^1.0.1: 2906 | version "1.0.1" 2907 | resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" 2908 | 2909 | tunnel-agent@^0.6.0: 2910 | version "0.6.0" 2911 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 2912 | dependencies: 2913 | safe-buffer "^5.0.1" 2914 | 2915 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 2916 | version "0.14.5" 2917 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 2918 | 2919 | type-check@~0.3.2: 2920 | version "0.3.2" 2921 | resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" 2922 | dependencies: 2923 | prelude-ls "~1.1.2" 2924 | 2925 | uglify-js@^3.1.4: 2926 | version "3.4.9" 2927 | resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.9.tgz#af02f180c1207d76432e473ed24a28f4a782bae3" 2928 | dependencies: 2929 | commander "~2.17.1" 2930 | source-map "~0.6.1" 2931 | 2932 | union-value@^1.0.0: 2933 | version "1.0.0" 2934 | resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" 2935 | dependencies: 2936 | arr-union "^3.1.0" 2937 | get-value "^2.0.6" 2938 | is-extendable "^0.1.1" 2939 | set-value "^0.4.3" 2940 | 2941 | unset-value@^1.0.0: 2942 | version "1.0.0" 2943 | resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" 2944 | dependencies: 2945 | has-value "^0.3.1" 2946 | isobject "^3.0.0" 2947 | 2948 | urix@^0.1.0: 2949 | version "0.1.0" 2950 | resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" 2951 | 2952 | use@^3.1.0: 2953 | version "3.1.1" 2954 | resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" 2955 | 2956 | util-deprecate@~1.0.1: 2957 | version "1.0.2" 2958 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 2959 | 2960 | util.promisify@^1.0.0: 2961 | version "1.0.0" 2962 | resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" 2963 | dependencies: 2964 | define-properties "^1.1.2" 2965 | object.getownpropertydescriptors "^2.0.3" 2966 | 2967 | uuid@^3.3.2: 2968 | version "3.3.2" 2969 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" 2970 | 2971 | validate-npm-package-license@^3.0.1: 2972 | version "3.0.4" 2973 | resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" 2974 | dependencies: 2975 | spdx-correct "^3.0.0" 2976 | spdx-expression-parse "^3.0.0" 2977 | 2978 | verror@1.10.0: 2979 | version "1.10.0" 2980 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" 2981 | dependencies: 2982 | assert-plus "^1.0.0" 2983 | core-util-is "1.0.2" 2984 | extsprintf "^1.2.0" 2985 | 2986 | w3c-hr-time@^1.0.1: 2987 | version "1.0.1" 2988 | resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" 2989 | dependencies: 2990 | browser-process-hrtime "^0.1.2" 2991 | 2992 | walker@~1.0.5: 2993 | version "1.0.7" 2994 | resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" 2995 | dependencies: 2996 | makeerror "1.0.x" 2997 | 2998 | watch@~0.18.0: 2999 | version "0.18.0" 3000 | resolved "https://registry.yarnpkg.com/watch/-/watch-0.18.0.tgz#28095476c6df7c90c963138990c0a5423eb4b986" 3001 | dependencies: 3002 | exec-sh "^0.2.0" 3003 | minimist "^1.2.0" 3004 | 3005 | webidl-conversions@^4.0.2: 3006 | version "4.0.2" 3007 | resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" 3008 | 3009 | whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3: 3010 | version "1.0.4" 3011 | resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.4.tgz#63fb016b7435b795d9025632c086a5209dbd2621" 3012 | dependencies: 3013 | iconv-lite "0.4.23" 3014 | 3015 | whatwg-mimetype@^2.1.0: 3016 | version "2.2.0" 3017 | resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.2.0.tgz#a3d58ef10b76009b042d03e25591ece89b88d171" 3018 | 3019 | whatwg-url@^6.4.1: 3020 | version "6.5.0" 3021 | resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" 3022 | dependencies: 3023 | lodash.sortby "^4.7.0" 3024 | tr46 "^1.0.1" 3025 | webidl-conversions "^4.0.2" 3026 | 3027 | whatwg-url@^7.0.0: 3028 | version "7.0.0" 3029 | resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.0.0.tgz#fde926fa54a599f3adf82dff25a9f7be02dc6edd" 3030 | dependencies: 3031 | lodash.sortby "^4.7.0" 3032 | tr46 "^1.0.1" 3033 | webidl-conversions "^4.0.2" 3034 | 3035 | which-module@^2.0.0: 3036 | version "2.0.0" 3037 | resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" 3038 | 3039 | which@^1.2.12, which@^1.2.9, which@^1.3.0: 3040 | version "1.3.1" 3041 | resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" 3042 | dependencies: 3043 | isexe "^2.0.0" 3044 | 3045 | wide-align@^1.1.0: 3046 | version "1.1.3" 3047 | resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" 3048 | dependencies: 3049 | string-width "^1.0.2 || 2" 3050 | 3051 | wordwrap@~0.0.2: 3052 | version "0.0.3" 3053 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" 3054 | 3055 | wordwrap@~1.0.0: 3056 | version "1.0.0" 3057 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" 3058 | 3059 | wrap-ansi@^2.0.0: 3060 | version "2.1.0" 3061 | resolved "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" 3062 | dependencies: 3063 | string-width "^1.0.1" 3064 | strip-ansi "^3.0.1" 3065 | 3066 | wrappy@1: 3067 | version "1.0.2" 3068 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 3069 | 3070 | write-file-atomic@^2.1.0: 3071 | version "2.3.0" 3072 | resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" 3073 | dependencies: 3074 | graceful-fs "^4.1.11" 3075 | imurmurhash "^0.1.4" 3076 | signal-exit "^3.0.2" 3077 | 3078 | ws@^5.2.0: 3079 | version "5.2.2" 3080 | resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f" 3081 | dependencies: 3082 | async-limiter "~1.0.0" 3083 | 3084 | xml-name-validator@^3.0.0: 3085 | version "3.0.0" 3086 | resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" 3087 | 3088 | y18n@^3.2.1: 3089 | version "3.2.1" 3090 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" 3091 | 3092 | yallist@^2.1.2: 3093 | version "2.1.2" 3094 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" 3095 | 3096 | yallist@^3.0.0, yallist@^3.0.2: 3097 | version "3.0.2" 3098 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9" 3099 | 3100 | yargs-parser@^9.0.2: 3101 | version "9.0.2" 3102 | resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-9.0.2.tgz#9ccf6a43460fe4ed40a9bb68f48d43b8a68cc077" 3103 | dependencies: 3104 | camelcase "^4.1.0" 3105 | 3106 | yargs@^11.0.0: 3107 | version "11.1.0" 3108 | resolved "http://registry.npmjs.org/yargs/-/yargs-11.1.0.tgz#90b869934ed6e871115ea2ff58b03f4724ed2d77" 3109 | dependencies: 3110 | cliui "^4.0.0" 3111 | decamelize "^1.1.1" 3112 | find-up "^2.1.0" 3113 | get-caller-file "^1.0.1" 3114 | os-locale "^2.0.0" 3115 | require-directory "^2.1.1" 3116 | require-main-filename "^1.0.1" 3117 | set-blocking "^2.0.0" 3118 | string-width "^2.0.0" 3119 | which-module "^2.0.0" 3120 | y18n "^3.2.1" 3121 | yargs-parser "^9.0.2" 3122 | --------------------------------------------------------------------------------