From 8e49eefe60d27c9e7616f921c44ecd981939300f Mon Sep 17 00:00:00 2001 From: Alex Velikanov Date: Wed, 18 Aug 2021 17:39:17 -0700 Subject: [PATCH 01/20] Update https-proxy-agent (#223) --- package.json | 2 +- yarn.lock | 52 ++++++++++++++++++++-------------------------------- 2 files changed, 21 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index 1a84f8c..6b383f1 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "dependencies": { "body-parser": "^1.18.2", "express": "^4.16.2", - "https-proxy-agent": "^2.2.3", + "https-proxy-agent": "^5.0.0", "isomorphic-fetch": "^2.2.1", "lodash": "^4.17.14", "uuid": "^3.0.0" diff --git a/yarn.lock b/yarn.lock index c293b5a..de2fced 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,12 +10,12 @@ accepts@~1.3.7: mime-types "~2.1.24" negotiator "0.6.2" -agent-base@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee" - integrity sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg== +agent-base@6: + version "6.0.2" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== dependencies: - es6-promisify "^5.0.0" + debug "4" ansi-regex@^2.0.0: version "2.1.1" @@ -1060,12 +1060,12 @@ debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: dependencies: ms "2.0.0" -debug@^3.1.0: - version "3.2.7" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" - integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== +debug@4: + version "4.3.2" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" + integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw== dependencies: - ms "^2.1.1" + ms "2.1.2" decode-uri-component@^0.2.0: version "0.2.0" @@ -1178,18 +1178,6 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" -es6-promise@^4.0.3: - version "4.2.8" - resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a" - integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w== - -es6-promisify@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-5.0.0.tgz#5109d62f3e56ea967c4b63505aef08291c8a5203" - integrity sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM= - dependencies: - es6-promise "^4.0.3" - escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" @@ -1585,13 +1573,13 @@ http-errors@~1.7.2: statuses ">= 1.5.0 < 2" toidentifier "1.0.0" -https-proxy-agent@^2.2.3: - version "2.2.4" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b" - integrity sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg== +https-proxy-agent@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2" + integrity sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA== dependencies: - agent-base "^4.3.0" - debug "^3.1.0" + agent-base "6" + debug "4" iconv-lite@0.4.24: version "0.4.24" @@ -2163,10 +2151,10 @@ ms@2.1.1: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== -ms@^2.1.1: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== +ms@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== nan@^2.12.1: version "2.14.2" From f320b81d77ab9f66e4d5e449bb2c3e3df05a3ec7 Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Wed, 16 Feb 2022 11:31:36 -0800 Subject: [PATCH 02/20] Set up ShipIt fbshipit-source-id: e0668c8da2ee2a7a9af2f34a7afa07b9848423d1 From 87829441b178254fd9a8f0d5d4985585c481facd Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Mon, 14 Mar 2022 12:13:58 -0700 Subject: [PATCH 03/20] v6.1.0 - Bump API version + kaizens Summary: * bump API version to latest `20210928` * moved API version from `Accept` header to `v` parameter * kaizens * update headers in touched files Reviewed By: ChrisyShine Differential Revision: D34868508 fbshipit-source-id: d4f56e7e3f726fde2473d67a01f600d776ec117e --- CHANGES.md | 5 +++ examples/basic.js | 2 +- lib/config.js | 6 +-- lib/interactive.js | 26 ++++++------- lib/wit.js | 92 ++++++++++++++++++++++++---------------------- package.json | 2 +- 6 files changed, 71 insertions(+), 62 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 47aa3a2..17f5f0d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,8 @@ +## v6.1.0 +Bumped API version to `20210928`. +Moved API version from `Accept` header to `v` HTTP parameter. +Kaizens. + ## v6.0.1 Removed unused `request` dependency Updated various dependencies. diff --git a/examples/basic.js b/examples/basic.js index 970d177..fe6d0ca 100644 --- a/examples/basic.js +++ b/examples/basic.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved. */ 'use strict'; diff --git a/lib/config.js b/lib/config.js index 174c1e3..2d4255e 100644 --- a/lib/config.js +++ b/lib/config.js @@ -1,8 +1,8 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved. */ module.exports = { - DEFAULT_API_VERSION: '20200513', - DEFAULT_WIT_URL: 'https://api.wit.ai' + DEFAULT_API_VERSION: '20210928', + DEFAULT_WIT_URL: 'https://api.wit.ai', }; diff --git a/lib/interactive.js b/lib/interactive.js index ca6a0ba..4a77bb5 100644 --- a/lib/interactive.js +++ b/lib/interactive.js @@ -1,10 +1,9 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved. */ 'use strict'; -const logger = require('./log.js'); const readline = require('readline'); module.exports = (wit, handleMessage, context) => { @@ -18,20 +17,21 @@ module.exports = (wit, handleMessage, context) => { rl.write(null, {ctrl: true, name: 'e'}); }; prompt(); - rl.on('line', (line) => { + rl.on('line', line => { line = line.trim(); if (!line) { return prompt(); } - wit.message(line, context) - .then((rsp) => { - if (handleMessage) { - handleMessage(rsp); - } else { - console.log(JSON.stringify(rsp)); - } - prompt(); - }) - .catch(err => console.error(err)) + wit + .message(line, context) + .then(rsp => { + if (handleMessage) { + handleMessage(rsp); + } else { + console.log(JSON.stringify(rsp)); + } + prompt(); + }) + .catch(err => console.error(err)); }); }; diff --git a/lib/wit.js b/lib/wit.js index 698efd7..c909c83 100644 --- a/lib/wit.js +++ b/lib/wit.js @@ -1,71 +1,54 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved. */ 'use strict'; -const { - DEFAULT_API_VERSION, - DEFAULT_WIT_URL -} = require('./config'); +const {DEFAULT_API_VERSION, DEFAULT_WIT_URL} = require('./config'); const fetch = require('isomorphic-fetch'); const log = require('./log'); const Url = require('url'); const HttpsProxyAgent = require('https-proxy-agent'); -const learnMore = 'Learn more at https://wit.ai/docs/quickstart'; - -function getProxyAgent(witURL) { - const url = Url.parse(witURL); - const proxy = url.protocol === "http:" ? - process.env.http_proxy || process.env.HTTP_PROXY : - process.env.https_proxy || process.env.HTTPS_PROXY; - const noProxy = process.env.no_proxy || process.env.NO_PROXY; - - const shouldIgnore = noProxy && noProxy.indexOf(url.hostname) > -1; - if (proxy && !shouldIgnore) { - return new HttpsProxyAgent(proxy); - } - if(!proxy) return null; -} - function Wit(opts) { if (!(this instanceof Wit)) { return new Wit(opts); } - const { - accessToken, apiVersion, headers, logger, witURL, proxy - } = this.config = Object.freeze(validate(opts)); + const {accessToken, apiVersion, headers, logger, witURL, proxy} = + (this.config = Object.freeze(validate(opts))); this._sessions = {}; - this.message = (message, context, n, verbose, junk) => { - let qs = 'q=' + encodeURIComponent(message); + this.message = (message, context, n) => { + const params = { + v: apiVersion, + q: message, + }; + if (context) { - qs += '&context=' + encodeURIComponent(JSON.stringify(context)); + params.context = JSON.stringify(context); } + if (typeof n === 'number') { - qs += '&n=' + encodeURIComponent(JSON.stringify(n)); - } - if (verbose != null) { - qs += '&verbose=' + encodeURIComponent(JSON.stringify(verbose)); - } - if (junk != null) { - qs += '&junk=true'; + params.n = JSON.stringify(n); } + const method = 'GET'; - const fullURL = witURL + '/message?' + qs; - const handler = makeWitResponseHandler(logger, 'message'); + const fullURL = + witURL + + '/message?' + + Object.entries(params) + .map(([key, value]) => key + '=' + encodeURIComponent(value)) + .join('&'); logger.debug(method, fullURL); return fetch(fullURL, { method, headers, proxy, }) - .then(response => Promise.all([response.json(), response.status])) - .then(handler) - ; + .then(response => Promise.all([response.json(), response.status])) + .then(makeWitResponseHandler(logger, 'message')); }; } @@ -86,7 +69,8 @@ const makeWitResponseHandler = (logger, endpoint) => { return error(json); } - const err = json.error || status !== 200 && json.body + ' (' + status + ')'; + const err = + json.error || (status !== 200 && json.body + ' (' + status + ')'); if (err) { return error(err); @@ -94,18 +78,38 @@ const makeWitResponseHandler = (logger, endpoint) => { logger.debug('[' + endpoint + '] Response: ' + JSON.stringify(json)); return json; + }; +}; + +const getProxyAgent = witURL => { + const url = Url.parse(witURL); + const proxy = + url.protocol === 'http:' + ? process.env.http_proxy || process.env.HTTP_PROXY + : process.env.https_proxy || process.env.HTTPS_PROXY; + const noProxy = process.env.no_proxy || process.env.NO_PROXY; + + const shouldIgnore = noProxy && noProxy.indexOf(url.hostname) > -1; + if (proxy && !shouldIgnore) { + return new HttpsProxyAgent(proxy); + } + + if (!proxy) { + return null; } }; -const validate = (opts) => { +const validate = opts => { if (!opts.accessToken) { - throw new Error('Could not find access token, learn more at https://wit.ai/docs'); + throw new Error( + 'Could not find access token, learn more at https://wit.ai/docs', + ); } + opts.witURL = opts.witURL || DEFAULT_WIT_URL; opts.apiVersion = opts.apiVersion || DEFAULT_API_VERSION; opts.headers = opts.headers || { - 'Authorization': 'Bearer ' + opts.accessToken, - 'Accept': 'application/vnd.wit.' + opts.apiVersion + '+json', + Authorization: 'Bearer ' + opts.accessToken, 'Content-Type': 'application/json', }; opts.logger = opts.logger || new log.Logger(log.INFO); diff --git a/package.json b/package.json index 6b383f1..3b37694 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-wit", - "version": "6.0.1", + "version": "6.1.0", "description": "Wit.ai Node.js SDK", "keywords": [ "wit", From d5469e77fea2dab1a39c685bf4e5d8afaf1835d4 Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Wed, 16 Mar 2022 15:53:25 -0700 Subject: [PATCH 04/20] Basic /speech integration Summary: * Basic `POST /speech` integration * `!speech` support for `interactive`, using `mic` (3s) * Kaizens. Reviewed By: ruoyipu Differential Revision: D34931521 fbshipit-source-id: db3d7ea3d2c5f1a6df5492c4ed1aade21d7adc4e --- .gitignore | 1 + CHANGES.md | 12 +- README.md | 66 +- lib/interactive.js | 69 +- lib/wit.js | 107 +- package.json | 3 +- tests/shared.js | 17 +- yarn.lock | 2879 -------------------------------------------- 8 files changed, 201 insertions(+), 2953 deletions(-) delete mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore index 42450f1..7db2397 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules .DS_Store package-lock.json +yarn.lock diff --git a/CHANGES.md b/CHANGES.md index 17f5f0d..070ee2c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,17 +1,26 @@ +## v6.1.1 + +- Basic `POST /speech` integration. +- `!speech` support for interactive. + ## v6.1.0 + Bumped API version to `20210928`. Moved API version from `Accept` header to `v` HTTP parameter. Kaizens. ## v6.0.1 + Removed unused `request` dependency Updated various dependencies. ## v6.0.0 + Updated API version to latest: `20200513`. Browse the latest HTTP API documentation [here](https://wit.ai/docs/http/20200513#get__message_link). ## v5.0.0 + The most important change is the removal of `.converse()` and `.runActions()`. Follow the migration tutorial [here](https://github.com/wit-ai/wit-stories-migration-tutorial), or [read more here](https://wit.ai/blog/2017/07/27/sunsetting-stories). ### Breaking changes @@ -21,6 +30,7 @@ The most important change is the removal of `.converse()` and `.runActions()`. F - updated wit-ai-basic-app-for-tests.zip for testing ## v4.3.0 + - `converse` and `runActions` are deprecated - `interactive` now calls `message` @@ -51,7 +61,6 @@ We moved to a Promise-based API, instead of callbacks. This makes the code simpl See `./examples` to see how to use the new API. - ### Breaking changes - `say` renamed to `send` to reflect that it deals with more than just text @@ -66,6 +75,7 @@ See `./examples` to see how to use the new API. - allows for overriding API version, by setting `WIT_API_VERSION` ## v3.3.1 + - adding API versioning (defaults to `20160516`) - warns instead of throwing when validating actions - fixing null values when cloning context diff --git a/README.md b/README.md index dc86cc6..cb48c4a 100644 --- a/README.md +++ b/README.md @@ -30,28 +30,32 @@ See `examples/messenger.js` for a thoroughly documented tutorial. ### Overview The Wit module provides a Wit class with the following methods: -* `message` - the Wit [message](https://wit.ai/docs/http/20200513#get__message_link) API -You can also require a library function to test out your bot in the terminal. `require('node-wit').interactive` +- `message` - the Wit [message](https://wit.ai/docs/http#get__message_link) API; +- `speech` - the Wit [speech](https://wit.ai/docs/http#post__speech_link) API. + +You can also require a library function to test out your Wit app in the terminal. `require('node-wit').interactive` ### Wit class The Wit constructor takes the following parameters: -* `accessToken` - the access token of your Wit instance -* `logger` - (optional) the object handling the logging. -* `apiVersion` - (optional) the API version to use instead of the recommended one + +- `accessToken` - the access token of your Wit instance +- `logger` - (optional) the object handling the logging. +- `apiVersion` - (optional) the API version to use instead of the recommended one The `logger` object should implement the methods `debug`, `info`, `warn` and `error`. They can receive an arbitrary number of parameters to log. For convenience, we provide a `Logger` class, taking a log level parameter Example: + ```js const {Wit, log} = require('node-wit'); const client = new Wit({ accessToken: MY_TOKEN, - logger: new log.Logger(log.DEBUG) // optional + logger: new log.Logger(log.DEBUG), // optional }); console.log(client.message('set an alarm tomorrow at 7am')); @@ -59,27 +63,46 @@ console.log(client.message('set an alarm tomorrow at 7am')); ### .message() -The Wit [message](https://wit.ai/docs/http/20200513#get__message_link) API. +The Wit [message](https://wit.ai/docs/http/#get__message_link) API. Takes the following parameters: -* `message` - the text you want Wit.ai to extract the information from -* `context` - (optional) the object representing the session state + +- `q` - the text input you want Wit.ai to extract the information from +- `context` - (optional) the [Context](https://wit.ai/docs/http/#context_link) object +- `n` - (optional) the max number of intents and traits to get back Example: + ```js const client = new Wit({accessToken: 'MY_TOKEN'}); -client.message('what is the weather in London?', {}) -.then((data) => { - console.log('Yay, got Wit.ai response: ' + JSON.stringify(data)); -}) -.catch(console.error); +client + .message('what is the weather in London?', {}) + .then(data => { + console.log('Yay, got Wit.ai response: ' + JSON.stringify(data)); + }) + .catch(console.error); ``` +### .speech() + +The Wit [speech](https://wit.ai/docs/http#post__speech_link) API. + +Takes the following paramters: + +- `contentType` - the Content-Type header +- `body` - the audio `Readable` stream +- `context` - (optional) the [Context](https://wit.ai/docs/http/#context_link) object +- `n` - (optional) the max number of intents and traits to get back + +See `lib/interactive.js` for an example. + ### interactive -Starts an interactive conversation with your bot. +Starts an interactive conversation with your Wit app. +Use `!speech` to send an audio request from the microphone, or enter any text input. Example: + ```js const {interactive} = require('node-wit'); interactive(client); @@ -87,7 +110,6 @@ interactive(client); See the [docs](https://wit.ai/docs) for more information. - ## Changing the API version On May 13th, 2020, the `GET /message` API was updated to reflect the new data model: intents, traits and entities are now distinct. @@ -97,11 +119,13 @@ You can target a specific version by passing the `apiVersion` parameter when cre ```json { "text": "hello", - "intents": [ { - "id": "1353535345345", - "name": "greet", - "confidence": 0.9753 - } ], + "intents": [ + { + "id": "1353535345345", + "name": "greet", + "confidence": 0.9753 + } + ], "entities": [], "traits": [] } diff --git a/lib/interactive.js b/lib/interactive.js index 4a77bb5..fe3324d 100644 --- a/lib/interactive.js +++ b/lib/interactive.js @@ -4,34 +4,79 @@ 'use strict'; +const fs = require('fs'); +const mic = require('mic'); const readline = require('readline'); -module.exports = (wit, handleMessage, context) => { +const AUDIO_PATH = '/tmp/output.raw'; +const MIC_TIMEOUT_MS = 3000; + +module.exports = (wit, handleResponse, context) => { const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.setPrompt('> '); + const prompt = () => { rl.prompt(); rl.write(null, {ctrl: true, name: 'e'}); }; prompt(); + + const makeResponseHandler = rsp => { + if (handleResponse) { + handleResponse(rsp); + } else { + console.log(JSON.stringify(rsp)); + } + prompt(); + }; + rl.on('line', line => { line = line.trim(); if (!line) { return prompt(); } - wit - .message(line, context) - .then(rsp => { - if (handleMessage) { - handleMessage(rsp); - } else { - console.log(JSON.stringify(rsp)); - } - prompt(); - }) - .catch(err => console.error(err)); + + // POST /speech + if (line === '!speech') { + const microphone = mic({ + bitwidth: '16', + channels: '1', + encoding: 'signed-integer', + endian: 'little', + fileType: 'raw', + rate: '16000', + }); + + const inputAudioStream = microphone.getAudioStream(); + const outputFileStream = fs.WriteStream(AUDIO_PATH); + inputAudioStream.pipe(outputFileStream); + + inputAudioStream.on('startComplete', () => { + setTimeout(() => { + microphone.stop(); + }, MIC_TIMEOUT_MS); + }); + inputAudioStream.on('stopComplete', () => { + const stream = fs.ReadStream(AUDIO_PATH); + wit + .speech( + 'audio/raw;encoding=signed-integer;bits=16;rate=16000;endian=little', + stream, + context, + ) + .then(makeResponseHandler) + .catch(console.error); + }); + + microphone.start(); + + return; + } + + // GET /message + wit.message(line, context).then(makeResponseHandler).catch(console.error); }); }; diff --git a/lib/wit.js b/lib/wit.js index c909c83..6ef63e6 100644 --- a/lib/wit.js +++ b/lib/wit.js @@ -5,10 +5,11 @@ 'use strict'; const {DEFAULT_API_VERSION, DEFAULT_WIT_URL} = require('./config'); -const fetch = require('isomorphic-fetch'); const log = require('./log'); +const fetch = require('isomorphic-fetch'); const Url = require('url'); const HttpsProxyAgent = require('https-proxy-agent'); +const {Readable} = require('stream'); function Wit(opts) { if (!(this instanceof Wit)) { @@ -18,15 +19,17 @@ function Wit(opts) { const {accessToken, apiVersion, headers, logger, witURL, proxy} = (this.config = Object.freeze(validate(opts))); - this._sessions = {}; + this.message = (q, context, n) => { + if (typeof q !== 'string') { + throw new Error('Please provide a text input (string).'); + } - this.message = (message, context, n) => { const params = { + q, v: apiVersion, - q: message, }; - if (context) { + if (typeof context === 'object') { params.context = JSON.stringify(context); } @@ -35,13 +38,9 @@ function Wit(opts) { } const method = 'GET'; - const fullURL = - witURL + - '/message?' + - Object.entries(params) - .map(([key, value]) => key + '=' + encodeURIComponent(value)) - .join('&'); + const fullURL = witURL + '/message?' + encodeURIParams(params); logger.debug(method, fullURL); + return fetch(fullURL, { method, headers, @@ -50,35 +49,78 @@ function Wit(opts) { .then(response => Promise.all([response.json(), response.status])) .then(makeWitResponseHandler(logger, 'message')); }; -} -const makeWitResponseHandler = (logger, endpoint) => { - return rsp => { - const error = err => { - logger.error('[' + endpoint + '] Error: ' + err); - throw err; - }; + this.speech = (contentType, body, context, n) => { + if (typeof contentType !== 'string') { + throw new Error('Please provide a content-type (string).'); + } - if (rsp instanceof Error) { - return error(rsp); + if (!body instanceof Readable) { + throw new Error('Please provide an audio stream (Readable).'); } - const [json, status] = rsp; + const params = { + v: apiVersion, + }; - if (json instanceof Error) { - return error(json); + if (typeof context === 'object') { + params.context = JSON.stringify(context); } - const err = - json.error || (status !== 200 && json.body + ' (' + status + ')'); - - if (err) { - return error(err); + if (typeof n === 'number') { + params.n = JSON.stringify(n); } - logger.debug('[' + endpoint + '] Response: ' + JSON.stringify(json)); - return json; + const method = 'POST'; + const fullURL = witURL + '/speech?' + encodeURIParams(params); + logger.debug(method, fullURL); + + return fetch(fullURL, { + body, + method, + headers: { + ...headers, + 'Content-Type': contentType, + 'Transfer-Encoding': 'chunked', + }, + }) + .then(response => Promise.all([response.text(), response.status])) + .then(([contents, status]) => { + const chunks = contents + .split('\r\n') + .map(x => x.trim()) + .filter(x => x.length > 0); + return [JSON.parse(chunks[chunks.length - 1]), status]; + }) + .catch(e => e) + .then(makeWitResponseHandler(logger, 'speech')); + }; +} + +const makeWitResponseHandler = (logger, endpoint) => rsp => { + const error = e => { + logger.error('[' + endpoint + '] Error: ' + e); + throw e; }; + + if (rsp instanceof Error) { + return error(rsp); + } + + const [json, status] = rsp; + + if (json instanceof Error) { + return error(json); + } + + const err = json.error || (status !== 200 && json.body + ' (' + status + ')'); + + if (err) { + return error(err); + } + + logger.debug('[' + endpoint + '] Response: ' + JSON.stringify(json)); + return json; }; const getProxyAgent = witURL => { @@ -99,6 +141,11 @@ const getProxyAgent = witURL => { } }; +const encodeURIParams = params => + Object.entries(params) + .map(([key, value]) => key + '=' + encodeURIComponent(value)) + .join('&'); + const validate = opts => { if (!opts.accessToken) { throw new Error( diff --git a/package.json b/package.json index 3b37694..53e6fbb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-wit", - "version": "6.1.0", + "version": "6.1.1", "description": "Wit.ai Node.js SDK", "keywords": [ "wit", @@ -23,6 +23,7 @@ "https-proxy-agent": "^5.0.0", "isomorphic-fetch": "^2.2.1", "lodash": "^4.17.14", + "mic": "^2.1.2", "uuid": "^3.0.0" }, "engines": { diff --git a/tests/shared.js b/tests/shared.js index 7d22895..5784798 100644 --- a/tests/shared.js +++ b/tests/shared.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved. */ 'use strict'; @@ -7,7 +7,7 @@ const expect = require('chai').expect; const sinon = require('sinon'); -module.exports.runTests = (wit) => { +module.exports.runTests = wit => { const log = wit.log; const Wit = wit.Wit; const interactive = wit.interactive; @@ -61,20 +61,19 @@ module.exports.runTests = (wit) => { describe('Wit', () => { let client = new Wit({ - accessToken: process.env.WIT_TOKEN + accessToken: process.env.WIT_TOKEN, }); it('tests that Wit has correct functions', () => { const witFunctions = Object.keys(client); - expect(witFunctions).to.eql(['config', '_sessions', 'message']); + expect(witFunctions).to.eql(['config', 'message', 'speech']); }); it('tests message', () => { - return client.message('Hello', {}) - .then((data) => { - expect(data.traits['wit$greetings'][0].value).to.be.equal('true'); - expect(data.text).to.be.equal('Hello'); - }); + return client.message('Hello', {}).then(data => { + expect(data.traits['wit$greetings'][0].value).to.be.equal('true'); + expect(data.text).to.be.equal('Hello'); + }); }); }); diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index de2fced..0000000 --- a/yarn.lock +++ /dev/null @@ -1,2879 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -accepts@~1.3.7: - version "1.3.7" - resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd" - integrity sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA== - dependencies: - mime-types "~2.1.24" - negotiator "0.6.2" - -agent-base@6: - version "6.0.2" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= - -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" - integrity sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA== - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" - integrity sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8= - dependencies: - arr-flatten "^1.0.1" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= - -arr-flatten@^1.0.1, arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= - -array-filter@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-1.0.0.tgz#baf79e62e6ef4c2a4c0b831232daffec251f9d83" - integrity sha1-uveeYubvTCpMC4MSMtr/7CUfnYM= - -array-flatten@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" - integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= - -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" - integrity sha1-odl8yvy8JiXMcPrc6zalDFiwGlM= - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= - -assertion-error@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" - integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= - -async-each@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" - integrity sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ== - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - -available-typed-arrays@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.2.tgz#6b098ca9d8039079ee3f77f7b783c4480ba513f5" - integrity sha512-XWX3OX8Onv97LMk/ftVyBibpGwY5a8SmuxZPzeOxqmuEqUCOM9ZE+uIaD1VNJ5QnvU2UQusvmKbuM1FR8QWGfQ== - dependencies: - array-filter "^1.0.0" - -babel-cli@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.26.0.tgz#502ab54874d7db88ad00b887a06383ce03d002f1" - integrity sha1-UCq1SHTX24itALiHoGODzgPQAvE= - dependencies: - babel-core "^6.26.0" - babel-polyfill "^6.26.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - commander "^2.11.0" - convert-source-map "^1.5.0" - fs-readdir-recursive "^1.0.0" - glob "^7.1.2" - lodash "^4.17.4" - output-file-sync "^1.1.2" - path-is-absolute "^1.0.1" - slash "^1.0.0" - source-map "^0.5.6" - v8flags "^2.1.1" - optionalDependencies: - chokidar "^1.6.1" - -babel-code-frame@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - integrity sha1-Y/1D99weO7fONZR9uP42mj9Yx0s= - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - -babel-core@^6.26.0: - version "6.26.3" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" - integrity sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA== - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.1" - debug "^2.6.9" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.8" - slash "^1.0.0" - source-map "^0.5.7" - -babel-generator@^6.26.0: - version "6.26.1" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" - integrity sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA== - dependencies: - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - detect-indent "^4.0.0" - jsesc "^1.3.0" - lodash "^4.17.4" - source-map "^0.5.7" - trim-right "^1.0.1" - -babel-helper-bindify-decorators@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz#14c19e5f142d7b47f19a52431e52b1ccbc40a330" - integrity sha1-FMGeXxQte0fxmlJDHlKxzLxAozA= - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" - integrity sha1-zORReto1b0IgvK6KAsKzRvmlZmQ= - dependencies: - babel-helper-explode-assignable-expression "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - integrity sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340= - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - integrity sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8= - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-explode-assignable-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" - integrity sha1-8luCz33BBDPFX3BZLVdGQArCLKo= - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-explode-class@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz#7dc2a3910dee007056e1e31d640ced3d54eaa9eb" - integrity sha1-fcKjkQ3uAHBW4eMdZAztPVTqqes= - dependencies: - babel-helper-bindify-decorators "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - integrity sha1-00dbjAPtmCQqJbSDUasYOZ01gKk= - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - integrity sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0= - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - integrity sha1-HssnaJydJVE+rbyZFKc/VAi+enY= - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - integrity sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc= - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - integrity sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI= - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-remap-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - integrity sha1-XsWBgnrXI/7N04HxySg5BnbkVRs= - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - integrity sha1-v22/5Dk40XNpohPKiov3S2qQqxo= - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helpers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" - integrity sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI= - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-messages@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - integrity sha1-8830cDhYA1sqKVHG7F7fbGLyYw4= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - integrity sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-syntax-async-functions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" - integrity sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU= - -babel-plugin-syntax-async-generators@^6.5.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a" - integrity sha1-a8lj67FuzLrmuStZbrfzXDQqi5o= - -babel-plugin-syntax-class-constructor-call@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz#9cb9d39fe43c8600bec8146456ddcbd4e1a76416" - integrity sha1-nLnTn+Q8hgC+yBRkVt3L1OGnZBY= - -babel-plugin-syntax-class-properties@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" - integrity sha1-1+sjt5oxf4VDlixQW4J8fWysJ94= - -babel-plugin-syntax-decorators@^6.13.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz#312563b4dbde3cc806cee3e416cceeaddd11ac0b" - integrity sha1-MSVjtNvePMgGzuPkFszurd0RrAs= - -babel-plugin-syntax-do-expressions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-do-expressions/-/babel-plugin-syntax-do-expressions-6.13.0.tgz#5747756139aa26d390d09410b03744ba07e4796d" - integrity sha1-V0d1YTmqJtOQ0JQQsDdEugfkeW0= - -babel-plugin-syntax-dynamic-import@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da" - integrity sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo= - -babel-plugin-syntax-exponentiation-operator@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" - integrity sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4= - -babel-plugin-syntax-export-extensions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz#70a1484f0f9089a4e84ad44bac353c95b9b12721" - integrity sha1-cKFITw+QiaToStRLrDU8lbmxJyE= - -babel-plugin-syntax-function-bind@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz#48c495f177bdf31a981e732f55adc0bdd2601f46" - integrity sha1-SMSV8Xe98xqYHnMvVa3AvdJgH0Y= - -babel-plugin-syntax-object-rest-spread@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" - integrity sha1-/WU28rzhODb/o6VFjEkDpZe7O/U= - -babel-plugin-syntax-trailing-function-commas@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" - integrity sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM= - -babel-plugin-transform-async-generator-functions@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db" - integrity sha1-8FiQAUX9PpkHpt3yjaWfIVJYpds= - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-generators "^6.5.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" - integrity sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E= - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-class-constructor-call@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz#80dc285505ac067dcb8d6c65e2f6f11ab7765ef9" - integrity sha1-gNwoVQWsBn3LjWxl4vbxGrd2Xvk= - dependencies: - babel-plugin-syntax-class-constructor-call "^6.18.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-class-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" - integrity sha1-anl2PqYdM9NvN7YRqp3vgagbRqw= - dependencies: - babel-helper-function-name "^6.24.1" - babel-plugin-syntax-class-properties "^6.8.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-decorators@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz#788013d8f8c6b5222bdf7b344390dfd77569e24d" - integrity sha1-eIAT2PjGtSIr33s0Q5Df13Vp4k0= - dependencies: - babel-helper-explode-class "^6.24.1" - babel-plugin-syntax-decorators "^6.13.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-do-expressions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-do-expressions/-/babel-plugin-transform-do-expressions-6.22.0.tgz#28ccaf92812d949c2cd1281f690c8fdc468ae9bb" - integrity sha1-KMyvkoEtlJws0SgfaQyP3EaK6bs= - dependencies: - babel-plugin-syntax-do-expressions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - integrity sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - integrity sha1-u8UbSflk1wy42OC5ToICRs46YUE= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - integrity sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8= - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - integrity sha1-WkxYpQyclGHlZLSyo7+ryXolhNs= - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - integrity sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM= - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - integrity sha1-mXux8auWf2gtKwh2/jWNYOdlxW0= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - integrity sha1-c+s9MQypaePvnskcU3QabxV2Qj4= - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - integrity sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - integrity sha1-g0yJhTvDaxrw86TF26qU/Y6sqos= - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - integrity sha1-T1SgLWzWbPkVKAAZox0xklN3yi4= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - integrity sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ= - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.2" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz#58a793863a9e7ca870bdc5a881117ffac27db6f3" - integrity sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q== - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - integrity sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM= - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - integrity sha1-rJl+YoXNGO1hdq22B9YCNErThGg= - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - integrity sha1-JM72muIcuDp/hgPa0CH1cusnj40= - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - integrity sha1-V6w1GrScrxSpfNE7CfZv3wpiXys= - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - integrity sha1-JPh11nIch2YbvZmkYi5R8U3jiqA= - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - integrity sha1-1taKmfia7cRTbIGlQujdnxdG+NE= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - integrity sha1-AMHNsaynERLN8M9hJsLta0V8zbw= - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - integrity sha1-qEs0UPfp+PH2g51taH2oS7EjbY0= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - integrity sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - integrity sha1-04sS9C6nMj9yk4fxinxa4frrNek= - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-exponentiation-operator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" - integrity sha1-KrDJx/MJj6SJB3cruBP+QejeOg4= - dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" - babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-export-extensions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-export-extensions/-/babel-plugin-transform-export-extensions-6.22.0.tgz#53738b47e75e8218589eea946cbbd39109bbe653" - integrity sha1-U3OLR+deghhYnuqUbLvTkQm75lM= - dependencies: - babel-plugin-syntax-export-extensions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-function-bind@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-function-bind/-/babel-plugin-transform-function-bind-6.22.0.tgz#c6fb8e96ac296a310b8cf8ea401462407ddf6a97" - integrity sha1-xvuOlqwpajELjPjqQBRiQH3fapc= - dependencies: - babel-plugin-syntax-function-bind "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-object-rest-spread@^6.22.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" - integrity sha1-DzZpLVD+9rfi1LOsFHgTepY7ewY= - dependencies: - babel-plugin-syntax-object-rest-spread "^6.8.0" - babel-runtime "^6.26.0" - -babel-plugin-transform-regenerator@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - integrity sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8= - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - integrity sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g= - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-polyfill@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" - integrity sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM= - dependencies: - babel-runtime "^6.26.0" - core-js "^2.5.0" - regenerator-runtime "^0.10.5" - -babel-preset-es2015@^6.16.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939" - integrity sha1-1EBQ1rwsn+6nAqrzjXJ6AhBTiTk= - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.24.1" - babel-plugin-transform-es2015-classes "^6.24.1" - babel-plugin-transform-es2015-computed-properties "^6.24.1" - babel-plugin-transform-es2015-destructuring "^6.22.0" - babel-plugin-transform-es2015-duplicate-keys "^6.24.1" - babel-plugin-transform-es2015-for-of "^6.22.0" - babel-plugin-transform-es2015-function-name "^6.24.1" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-plugin-transform-es2015-modules-systemjs "^6.24.1" - babel-plugin-transform-es2015-modules-umd "^6.24.1" - babel-plugin-transform-es2015-object-super "^6.24.1" - babel-plugin-transform-es2015-parameters "^6.24.1" - babel-plugin-transform-es2015-shorthand-properties "^6.24.1" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.24.1" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.22.0" - babel-plugin-transform-es2015-unicode-regex "^6.24.1" - babel-plugin-transform-regenerator "^6.24.1" - -babel-preset-stage-0@^6.16.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-stage-0/-/babel-preset-stage-0-6.24.1.tgz#5642d15042f91384d7e5af8bc88b1db95b039e6a" - integrity sha1-VkLRUEL5E4TX5a+LyIsduVsDnmo= - dependencies: - babel-plugin-transform-do-expressions "^6.22.0" - babel-plugin-transform-function-bind "^6.22.0" - babel-preset-stage-1 "^6.24.1" - -babel-preset-stage-1@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz#7692cd7dcd6849907e6ae4a0a85589cfb9e2bfb0" - integrity sha1-dpLNfc1oSZB+auSgqFWJz7niv7A= - dependencies: - babel-plugin-transform-class-constructor-call "^6.24.1" - babel-plugin-transform-export-extensions "^6.22.0" - babel-preset-stage-2 "^6.24.1" - -babel-preset-stage-2@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz#d9e2960fb3d71187f0e64eec62bc07767219bdc1" - integrity sha1-2eKWD7PXEYfw5k7sYrwHdnIZvcE= - dependencies: - babel-plugin-syntax-dynamic-import "^6.18.0" - babel-plugin-transform-class-properties "^6.24.1" - babel-plugin-transform-decorators "^6.24.1" - babel-preset-stage-3 "^6.24.1" - -babel-preset-stage-3@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz#836ada0a9e7a7fa37cb138fb9326f87934a48395" - integrity sha1-g2raCp56f6N8sTj7kyb4eTSkg5U= - dependencies: - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-generator-functions "^6.24.1" - babel-plugin-transform-async-to-generator "^6.24.1" - babel-plugin-transform-exponentiation-operator "^6.24.1" - babel-plugin-transform-object-rest-spread "^6.22.0" - -babel-register@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" - integrity sha1-btAhFz4vy0htestFxgCahW9kcHE= - dependencies: - babel-core "^6.26.0" - babel-runtime "^6.26.0" - core-js "^2.5.0" - home-or-tmp "^2.0.0" - lodash "^4.17.4" - mkdirp "^0.5.1" - source-map-support "^0.4.15" - -babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4= - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -babel-template@^6.24.1, babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - integrity sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI= - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.24.1, babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - integrity sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4= - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - integrity sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc= - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ== - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -binary-extensions@^1.0.0: - version "1.13.1" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65" - integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw== - -bindings@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" - integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== - dependencies: - file-uri-to-path "1.0.0" - -body-parser@1.19.0, body-parser@^1.18.2: - version "1.19.0" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a" - integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw== - dependencies: - bytes "3.1.0" - content-type "~1.0.4" - debug "2.6.9" - depd "~1.1.2" - http-errors "1.7.2" - iconv-lite "0.4.24" - on-finished "~2.3.0" - qs "6.7.0" - raw-body "2.4.0" - type-is "~1.6.17" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" - integrity sha1-uneWLhLf+WnWt2cR6RS3N4V79qc= - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -browser-stdout@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f" - integrity sha1-81HTKWnTL6XXpVZxVCY9korjvR8= - -bytes@3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" - integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -call-bind@^1.0.0, call-bind@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" - integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== - dependencies: - function-bind "^1.1.1" - get-intrinsic "^1.0.2" - -chai@^3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/chai/-/chai-3.5.0.tgz#4d02637b067fe958bdbfdd3a40ec56fef7373247" - integrity sha1-TQJjewZ/6Vi9v906QOxW/vc3Mkc= - dependencies: - assertion-error "^1.0.1" - deep-eql "^0.1.3" - type-detect "^1.0.0" - -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chokidar@^1.6.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" - integrity sha1-eY5ol3gVHIB2tLNg5e3SjNortGg= - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -commander@2.9.0: - version "2.9.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" - integrity sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q= - dependencies: - graceful-readlink ">= 1.0.0" - -commander@^2.11.0: - version "2.20.3" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== - -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= - -content-disposition@0.5.3: - version "0.5.3" - resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" - integrity sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g== - dependencies: - safe-buffer "5.1.2" - -content-type@~1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" - integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== - -convert-source-map@^1.5.0, convert-source-map@^1.5.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" - integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== - dependencies: - safe-buffer "~5.1.1" - -cookie-signature@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" - integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw= - -cookie@0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" - integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= - -core-js@^2.4.0, core-js@^2.5.0: - version "2.6.12" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" - integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ== - -core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= - -debug@2.6.8: - version "2.6.8" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc" - integrity sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw= - dependencies: - ms "2.0.0" - -debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -debug@4: - version "4.3.2" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" - integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw== - dependencies: - ms "2.1.2" - -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= - -deep-eql@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-0.1.3.tgz#ef558acab8de25206cd713906d74e56930eb69f2" - integrity sha1-71WKyrjeJSBs1xOQbXTlaTDrafI= - dependencies: - type-detect "0.1.1" - -define-properties@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" - integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== - dependencies: - object-keys "^1.0.12" - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -depd@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" - integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= - -destroy@~1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" - integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= - -detect-indent@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" - integrity sha1-920GQ1LN9Docts5hnE7jqUdd4gg= - dependencies: - repeating "^2.0.0" - -diff@3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9" - integrity sha1-yc45Okt8vQsFinJck98pkCeGj/k= - -ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= - -encodeurl@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" - integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= - -encoding@^0.1.11: - version "0.1.13" - resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" - integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A== - dependencies: - iconv-lite "^0.6.2" - -es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2: - version "1.18.0" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.0.tgz#ab80b359eecb7ede4c298000390bc5ac3ec7b5a4" - integrity sha512-LJzK7MrQa8TS0ja2w3YNLzUgJCGPdPOV1yVvezjNnS89D+VR08+Szt2mz3YB2Dck/+w5tfIq/RoUAFqJJGM2yw== - dependencies: - call-bind "^1.0.2" - es-to-primitive "^1.2.1" - function-bind "^1.1.1" - get-intrinsic "^1.1.1" - has "^1.0.3" - has-symbols "^1.0.2" - is-callable "^1.2.3" - is-negative-zero "^2.0.1" - is-regex "^1.1.2" - is-string "^1.0.5" - object-inspect "^1.9.0" - object-keys "^1.1.1" - object.assign "^4.1.2" - string.prototype.trimend "^1.0.4" - string.prototype.trimstart "^1.0.4" - unbox-primitive "^1.0.0" - -es-to-primitive@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" - integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== - dependencies: - is-callable "^1.1.4" - is-date-object "^1.0.1" - is-symbol "^1.0.2" - -escape-html@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" - integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= - -escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -etag@~1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" - integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= - -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" - integrity sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s= - dependencies: - is-posix-bracket "^0.1.0" - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" - integrity sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc= - dependencies: - fill-range "^2.1.0" - -express@^4.16.2: - version "4.17.1" - resolved "https://registry.yarnpkg.com/express/-/express-4.17.1.tgz#4491fc38605cf51f8629d39c2b5d026f98a4c134" - integrity sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g== - dependencies: - accepts "~1.3.7" - array-flatten "1.1.1" - body-parser "1.19.0" - content-disposition "0.5.3" - content-type "~1.0.4" - cookie "0.4.0" - cookie-signature "1.0.6" - debug "2.6.9" - depd "~1.1.2" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - finalhandler "~1.1.2" - fresh "0.5.2" - merge-descriptors "1.0.1" - methods "~1.1.2" - on-finished "~2.3.0" - parseurl "~1.3.3" - path-to-regexp "0.1.7" - proxy-addr "~2.0.5" - qs "6.7.0" - range-parser "~1.2.1" - safe-buffer "5.1.2" - send "0.17.1" - serve-static "1.14.1" - setprototypeof "1.1.1" - statuses "~1.5.0" - type-is "~1.6.18" - utils-merge "1.0.1" - vary "~1.1.2" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" - integrity sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE= - dependencies: - is-extglob "^1.0.0" - -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -file-uri-to-path@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" - integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" - integrity sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY= - -fill-range@^2.1.0: - version "2.2.4" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" - integrity sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q== - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^3.0.0" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -finalhandler@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" - integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== - dependencies: - debug "2.6.9" - encodeurl "~1.0.2" - escape-html "~1.0.3" - on-finished "~2.3.0" - parseurl "~1.3.3" - statuses "~1.5.0" - unpipe "~1.0.0" - -for-in@^1.0.1, for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= - -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" - integrity sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4= - dependencies: - for-in "^1.0.1" - -foreach@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" - integrity sha1-C+4AUBiusmDQo6865ljdATbsG5k= - -formatio@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/formatio/-/formatio-1.1.1.tgz#5ed3ccd636551097383465d996199100e86161e9" - integrity sha1-XtPM1jZVEJc4NGXZlhmRAOhhYek= - dependencies: - samsam "~1.1" - -forwarded@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" - integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= - dependencies: - map-cache "^0.2.2" - -fresh@0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" - integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= - -fs-readdir-recursive@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27" - integrity sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA== - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= - -fsevents@^1.0.0: - version "1.2.13" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.13.tgz#f325cb0455592428bcf11b383370ef70e3bfcc38" - integrity sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw== - dependencies: - bindings "^1.5.0" - nan "^2.12.1" - -function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" - integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== - -get-intrinsic@^1.0.2, get-intrinsic@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.1.tgz#15f59f376f855c446963948f0d24cd3637b4abc6" - integrity sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q== - dependencies: - function-bind "^1.1.1" - has "^1.0.3" - has-symbols "^1.0.1" - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= - -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" - integrity sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q= - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - integrity sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg= - dependencies: - is-glob "^2.0.0" - -glob@7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" - integrity sha1-gFIR3wT6rxxjo2ADBs31reULLsg= - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.2" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.1.2: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - integrity sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ== - -graceful-fs@^4.1.11, graceful-fs@^4.1.4: - version "4.2.6" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee" - integrity sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ== - -"graceful-readlink@>= 1.0.0": - version "1.0.1" - resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" - integrity sha1-TK+tdrxi8C+gObL5Tpo906ORpyU= - -growl@1.9.2: - version "1.9.2" - resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f" - integrity sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8= - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE= - dependencies: - ansi-regex "^2.0.0" - -has-bigints@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.1.tgz#64fe6acb020673e3b78db035a5af69aa9d07b113" - integrity sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA== - -has-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" - integrity sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo= - -has-symbols@^1.0.0, has-symbols@^1.0.1, has-symbols@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423" - integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw== - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -has@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" - integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== - dependencies: - function-bind "^1.1.1" - -he@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd" - integrity sha1-k0EP0hsAlzUVH4howvJx80J+I/0= - -home-or-tmp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" - integrity sha1-42w/LSyufXRqhX440Y1fMqeILbg= - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.1" - -http-errors@1.7.2: - version "1.7.2" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f" - integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg== - dependencies: - depd "~1.1.2" - inherits "2.0.3" - setprototypeof "1.1.1" - statuses ">= 1.5.0 < 2" - toidentifier "1.0.0" - -http-errors@~1.7.2: - version "1.7.3" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06" - integrity sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw== - dependencies: - depd "~1.1.2" - inherits "2.0.4" - setprototypeof "1.1.1" - statuses ">= 1.5.0 < 2" - toidentifier "1.0.0" - -https-proxy-agent@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2" - integrity sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA== - dependencies: - agent-base "6" - debug "4" - -iconv-lite@0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -iconv-lite@^0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.2.tgz#ce13d1875b0c3a674bd6a04b7f76b01b1b6ded01" - integrity sha512-2y91h5OpQlolefMPmUlivelittSWy0rP+oYVpn6A7GwVHNE8AWzoYOBNmlwks3LobaJxgHCYZAnyNo2GgpNRNQ== - dependencies: - safer-buffer ">= 2.1.2 < 3.0.0" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -inherits@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= - -invariant@^2.2.2: - version "2.2.4" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" - integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== - dependencies: - loose-envify "^1.0.0" - -ipaddr.js@1.9.1: - version "1.9.1" - resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" - integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== - dependencies: - kind-of "^6.0.0" - -is-arguments@^1.0.4: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.0.tgz#62353031dfbee07ceb34656a6bde59efecae8dd9" - integrity sha512-1Ij4lOMPl/xB5kBDn7I+b2ttPMKa8szhEIrXDuXQD/oe3HJLTLhqhgGspwgyGd6MOywBUqVvYicF72lkgDnIHg== - dependencies: - call-bind "^1.0.0" - -is-bigint@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.1.tgz#6923051dfcbc764278540b9ce0e6b3213aa5ebc2" - integrity sha512-J0ELF4yHFxHy0cmSxZuheDOz2luOdVvqjwmEcj8H/L1JHeuEDSDbeRP+Dk9kFVk5RTFzbucJ2Kb9F7ixY2QaCg== - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - integrity sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg= - dependencies: - binary-extensions "^1.0.0" - -is-boolean-object@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.0.tgz#e2aaad3a3a8fca34c28f6eee135b156ed2587ff0" - integrity sha512-a7Uprx8UtD+HWdyYwnD1+ExtTgqQtD2k/1yJgtXP6wnMm8byhkoTZRl+95LLThpzNZJ5aEvi46cdH+ayMFRwmA== - dependencies: - call-bind "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - -is-callable@^1.1.4, is-callable@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.3.tgz#8b1e0500b73a1d76c70487636f368e519de8db8e" - integrity sha512-J1DcMe8UYTBSrKezuIUTUwjXsho29693unXM2YhJUTR2txK/eG47bvNa/wipPFmZFgr/N6f1GA66dv0mEyTIyQ== - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== - dependencies: - kind-of "^6.0.0" - -is-date-object@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz#bda736f2cd8fd06d32844e7743bfa7494c3bfd7e" - integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" - integrity sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE= - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" - integrity sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ= - dependencies: - is-primitive "^2.0.0" - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" - integrity sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA= - -is-finite@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.1.0.tgz#904135c77fb42c0641d6aa1bcdbc4daa8da082f3" - integrity sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w== - -is-generator-function@^1.0.7: - version "1.0.8" - resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.0.8.tgz#dfb5c2b120e02b0a8d9d2c6806cd5621aa922f7b" - integrity sha512-2Omr/twNtufVZFr1GhxjOMFPAj2sjc/dKaIqBhvo4qciXfJmITGH6ZGd8eZYNHza8t1y0e01AuqRhJwfWp26WQ== - -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" - integrity sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM= - dependencies: - is-extglob "^1.0.0" - -is-negative-zero@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.1.tgz#3de746c18dda2319241a53675908d8f766f11c24" - integrity sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w== - -is-number-object@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.4.tgz#36ac95e741cf18b283fc1ddf5e83da798e3ec197" - integrity sha512-zohwelOAur+5uXtk8O3GPQ1eAcu4ZX3UwxQhUlfFFMNpUd83gXgjbhJh6HmB6LUNV/ieOLQuDwJO3dWJosUeMw== - -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - integrity sha1-Afy7s5NGOlSPL0ZszhbezknbkI8= - dependencies: - kind-of "^3.0.2" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= - dependencies: - kind-of "^3.0.2" - -is-number@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" - integrity sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ== - -is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" - integrity sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q= - -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" - integrity sha1-IHurkWOEmcB7Kt8kCkGochADRXU= - -is-regex@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.2.tgz#81c8ebde4db142f2cf1c53fc86d6a45788266251" - integrity sha512-axvdhb5pdhEVThqJzYXwMlVuZwC+FF2DpcOhTS+y/8jVq4trxyPgfcwIxIKiyeuLlSQYKkmUaPQJ8ZE4yNKXDg== - dependencies: - call-bind "^1.0.2" - has-symbols "^1.0.1" - -is-stream@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= - -is-string@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.5.tgz#40493ed198ef3ff477b8c7f92f644ec82a5cd3a6" - integrity sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ== - -is-symbol@^1.0.2, is-symbol@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.3.tgz#38e1014b9e6329be0de9d24a414fd7441ec61937" - integrity sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ== - dependencies: - has-symbols "^1.0.1" - -is-typed-array@^1.1.3: - version "1.1.5" - resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.5.tgz#f32e6e096455e329eb7b423862456aa213f0eb4e" - integrity sha512-S+GRDgJlR3PyEbsX/Fobd9cqpZBuvUS+8asRqYDMLCb2qMzt1oz5m5oxQCxOgUDxiWsOVNi4yaF+/uvdlHlYug== - dependencies: - available-typed-arrays "^1.0.2" - call-bind "^1.0.2" - es-abstract "^1.18.0-next.2" - foreach "^2.0.5" - has-symbols "^1.0.1" - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -isarray@1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= - -isomorphic-fetch@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" - integrity sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk= - dependencies: - node-fetch "^1.0.1" - whatwg-fetch ">=0.10.0" - -"js-tokens@^3.0.0 || ^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - integrity sha1-mGbfOVECEw449/mWvOtlRDIJwls= - -jsesc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" - integrity sha1-RsP+yMGJKxKwgz25vHYiF226s0s= - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= - -json3@3.3.2: - version "3.3.2" - resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1" - integrity sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE= - -json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== - -kind-of@^6.0.0, kind-of@^6.0.2: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - -lodash._baseassign@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" - integrity sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4= - dependencies: - lodash._basecopy "^3.0.0" - lodash.keys "^3.0.0" - -lodash._basecopy@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" - integrity sha1-jaDmqHbPNEwK2KVIghEd08XHyjY= - -lodash._basecreate@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz#1bc661614daa7fc311b7d03bf16806a0213cf821" - integrity sha1-G8ZhYU2qf8MRt9A78WgGoCE8+CE= - -lodash._getnative@^3.0.0: - version "3.9.1" - resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" - integrity sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U= - -lodash._isiterateecall@^3.0.0: - version "3.0.9" - resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" - integrity sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw= - -lodash.create@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/lodash.create/-/lodash.create-3.1.1.tgz#d7f2849f0dbda7e04682bb8cd72ab022461debe7" - integrity sha1-1/KEnw29p+BGgruM1yqwIkYd6+c= - dependencies: - lodash._baseassign "^3.0.0" - lodash._basecreate "^3.0.0" - lodash._isiterateecall "^3.0.0" - -lodash.isarguments@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" - integrity sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo= - -lodash.isarray@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" - integrity sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U= - -lodash.keys@^3.0.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" - integrity sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo= - dependencies: - lodash._getnative "^3.0.0" - lodash.isarguments "^3.0.0" - lodash.isarray "^3.0.0" - -lodash@^4.17.14, lodash@^4.17.4: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - -lolex@1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/lolex/-/lolex-1.3.2.tgz#7c3da62ffcb30f0f5a80a2566ca24e45d8a01f31" - integrity sha1-fD2mL/yzDw9agKJWbKJORdigHzE= - -loose-envify@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== - dependencies: - js-tokens "^3.0.0 || ^4.0.0" - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= - dependencies: - object-visit "^1.0.0" - -math-random@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.4.tgz#5dd6943c938548267016d4e34f057583080c514c" - integrity sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A== - -media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" - integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= - -merge-descriptors@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" - integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= - -methods@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" - integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= - -micromatch@^2.1.5: - version "2.3.11" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" - integrity sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU= - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -micromatch@^3.1.10: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - -mime-db@1.46.0: - version "1.46.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.46.0.tgz#6267748a7f799594de3cbc8cde91def349661cee" - integrity sha512-svXaP8UQRZ5K7or+ZmfNhg2xX3yKDMUzqadsSqi4NCH/KomcH75MAMYAGVlvXn4+b/xOPhS3I2uHKRUzvjY7BQ== - -mime-types@~2.1.24: - version "2.1.29" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.29.tgz#1d4ab77da64b91f5f72489df29236563754bb1b2" - integrity sha512-Y/jMt/S5sR9OaqteJtslsFZKWOIIqMACsJSiHghlCAyhf7jfVYjKBmLiX8OgpWeW+fjJ2b+Az69aPFPkUOY6xQ== - dependencies: - mime-db "1.46.0" - -mime@1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" - integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== - -minimatch@^3.0.2, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= - -minimist@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" - integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== - -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -mkdirp@0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= - dependencies: - minimist "0.0.8" - -mkdirp@^0.5.1: - version "0.5.5" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" - integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== - dependencies: - minimist "^1.2.5" - -mocha@^3.5.3: - version "3.5.3" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-3.5.3.tgz#1e0480fe36d2da5858d1eb6acc38418b26eaa20d" - integrity sha512-/6na001MJWEtYxHOV1WLfsmR4YIynkUEhBwzsb+fk2qmQ3iqsi258l/Q2MWHJMImAcNpZ8DEdYAK72NHoIQ9Eg== - dependencies: - browser-stdout "1.3.0" - commander "2.9.0" - debug "2.6.8" - diff "3.2.0" - escape-string-regexp "1.0.5" - glob "7.1.1" - growl "1.9.2" - he "1.1.1" - json3 "3.3.2" - lodash.create "3.1.1" - mkdirp "0.5.1" - supports-color "3.1.2" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - -ms@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" - integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -nan@^2.12.1: - version "2.14.2" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19" - integrity sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ== - -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -negotiator@0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" - integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== - -node-fetch@^1.0.1: - version "1.7.3" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" - integrity sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ== - dependencies: - encoding "^0.1.11" - is-stream "^1.0.1" - -normalize-path@^2.0.0, normalize-path@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= - dependencies: - remove-trailing-separator "^1.0.1" - -object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-inspect@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.9.0.tgz#c90521d74e1127b67266ded3394ad6116986533a" - integrity sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw== - -object-keys@^1.0.12, object-keys@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" - integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= - dependencies: - isobject "^3.0.0" - -object.assign@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940" - integrity sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - has-symbols "^1.0.1" - object-keys "^1.1.1" - -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" - integrity sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo= - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= - dependencies: - isobject "^3.0.1" - -on-finished@~2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= - dependencies: - ee-first "1.1.1" - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= - dependencies: - wrappy "1" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= - -os-tmpdir@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= - -output-file-sync@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-1.1.2.tgz#d0a33eefe61a205facb90092e826598d5245ce76" - integrity sha1-0KM+7+YaIF+suQCS6CZZjVJFznY= - dependencies: - graceful-fs "^4.1.4" - mkdirp "^0.5.1" - object-assign "^4.1.0" - -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" - integrity sha1-ssN2z7EfNVE7rdFz7wu246OIORw= - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - -parseurl@~1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" - integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= - -path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= - -path-to-regexp@0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" - integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= - -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" - integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= - -private@^0.1.6, private@^0.1.8: - version "0.1.8" - resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" - integrity sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg== - -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - -proxy-addr@~2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.6.tgz#fdc2336505447d3f2f2c638ed272caf614bbb2bf" - integrity sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw== - dependencies: - forwarded "~0.1.2" - ipaddr.js "1.9.1" - -qs@6.7.0: - version "6.7.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" - integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== - -randomatic@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.1.tgz#b776efc59375984e36c537b2f51a1f0aff0da1ed" - integrity sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw== - dependencies: - is-number "^4.0.0" - kind-of "^6.0.0" - math-random "^1.0.1" - -range-parser@~1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" - integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== - -raw-body@2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332" - integrity sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q== - dependencies: - bytes "3.1.0" - http-errors "1.7.2" - iconv-lite "0.4.24" - unpipe "1.0.0" - -readable-stream@^2.0.2: - version "2.3.7" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" - integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readdirp@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525" - integrity sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ== - dependencies: - graceful-fs "^4.1.11" - micromatch "^3.1.10" - readable-stream "^2.0.2" - -regenerate@^1.2.1: - version "1.4.2" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" - integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== - -regenerator-runtime@^0.10.5: - version "0.10.5" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" - integrity sha1-M2w+/BIgrc7dosn6tntaeVWjNlg= - -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" - integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== - -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" - integrity sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q== - dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" - private "^0.1.6" - -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" - integrity sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ== - dependencies: - is-equal-shallow "^0.1.3" - -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -regexpu-core@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" - integrity sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA= - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - integrity sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc= - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" - integrity sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw= - dependencies: - jsesc "~0.5.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= - -repeat-element@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" - integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== - -repeat-string@^1.5.2, repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - integrity sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo= - dependencies: - is-finite "^1.0.0" - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== - -safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-buffer@^5.1.2: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= - dependencies: - ret "~0.1.10" - -"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -samsam@1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/samsam/-/samsam-1.1.2.tgz#bec11fdc83a9fda063401210e40176c3024d1567" - integrity sha1-vsEf3IOp/aBjQBIQ5AF2wwJNFWc= - -samsam@~1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/samsam/-/samsam-1.1.3.tgz#9f5087419b4d091f232571e7fa52e90b0f552621" - integrity sha1-n1CHQZtNCR8jJXHn+lLpCw9VJiE= - -send@0.17.1: - version "0.17.1" - resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" - integrity sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg== - dependencies: - debug "2.6.9" - depd "~1.1.2" - destroy "~1.0.4" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - fresh "0.5.2" - http-errors "~1.7.2" - mime "1.6.0" - ms "2.1.1" - on-finished "~2.3.0" - range-parser "~1.2.1" - statuses "~1.5.0" - -serve-static@1.14.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" - integrity sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg== - dependencies: - encodeurl "~1.0.2" - escape-html "~1.0.3" - parseurl "~1.3.3" - send "0.17.1" - -set-value@^2.0.0, set-value@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" - integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -setprototypeof@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" - integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== - -sinon@^1.17.6: - version "1.17.7" - resolved "https://registry.yarnpkg.com/sinon/-/sinon-1.17.7.tgz#4542a4f49ba0c45c05eb2e9dd9d203e2b8efe0bf" - integrity sha1-RUKk9JugxFwF6y6d2dID4rjv4L8= - dependencies: - formatio "1.1.1" - lolex "1.3.2" - samsam "1.1.2" - util ">=0.10.3 <1" - -slash@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" - integrity sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU= - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-support@^0.4.15: - version "0.4.18" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" - integrity sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA== - dependencies: - source-map "^0.5.6" - -source-map-url@^0.4.0: - version "0.4.1" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" - integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== - -source-map@^0.5.6, source-map@^0.5.7: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== - dependencies: - extend-shallow "^3.0.0" - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -"statuses@>= 1.5.0 < 2", statuses@~1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" - integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= - -string.prototype.trimend@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz#e75ae90c2942c63504686c18b287b4a0b1a45f80" - integrity sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - -string.prototype.trimstart@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz#b36399af4ab2999b4c9c648bd7a3fb2bb26feeed" - integrity sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - -strip-ansi@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= - dependencies: - ansi-regex "^2.0.0" - -supports-color@3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5" - integrity sha1-cqJiiU2dQIuVbKBf83su2KbiotU= - dependencies: - has-flag "^1.0.0" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= - -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - integrity sha1-uDVx+k2MJbguIxsG46MFXeTKGkc= - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - -toidentifier@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" - integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== - -trim-right@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" - integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= - -type-detect@0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-0.1.1.tgz#0ba5ec2a885640e470ea4e8505971900dac58822" - integrity sha1-C6XsKohWQORw6k6FBZcZANrFiCI= - -type-detect@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2" - integrity sha1-diIXzAbbJY7EiQihKY6LlRIejqI= - -type-is@~1.6.17, type-is@~1.6.18: - version "1.6.18" - resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" - integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== - dependencies: - media-typer "0.3.0" - mime-types "~2.1.24" - -unbox-primitive@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.0.tgz#eeacbc4affa28e9b3d36b5eaeccc50b3251b1d3f" - integrity sha512-P/51NX+JXyxK/aigg1/ZgyccdAxm5K1+n8+tvqSntjOivPt19gvm1VC49RWYetsiub8WViUchdxl/KWHHB0kzA== - dependencies: - function-bind "^1.1.1" - has-bigints "^1.0.0" - has-symbols "^1.0.0" - which-boxed-primitive "^1.0.1" - -union-value@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" - integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^2.0.1" - -unpipe@1.0.0, unpipe@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= - -use@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== - -user-home@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" - integrity sha1-K1viOjK2Onyd640PKNSFcko98ZA= - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= - -"util@>=0.10.3 <1": - version "0.12.3" - resolved "https://registry.yarnpkg.com/util/-/util-0.12.3.tgz#971bb0292d2cc0c892dab7c6a5d37c2bec707888" - integrity sha512-I8XkoQwE+fPQEhy9v012V+TSdH2kp9ts29i20TaaDUXsg7x/onePbhFJUExBfv/2ay1ZOp/Vsm3nDlmnFGSAog== - dependencies: - inherits "^2.0.3" - is-arguments "^1.0.4" - is-generator-function "^1.0.7" - is-typed-array "^1.1.3" - safe-buffer "^5.1.2" - which-typed-array "^1.1.2" - -utils-merge@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= - -uuid@^3.0.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" - integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== - -v8flags@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4" - integrity sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ= - dependencies: - user-home "^1.1.1" - -vary@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" - integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= - -whatwg-fetch@>=0.10.0: - version "3.6.2" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" - integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== - -which-boxed-primitive@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" - integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== - dependencies: - is-bigint "^1.0.1" - is-boolean-object "^1.1.0" - is-number-object "^1.0.4" - is-string "^1.0.5" - is-symbol "^1.0.3" - -which-typed-array@^1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.4.tgz#8fcb7d3ee5adf2d771066fba7cf37e32fe8711ff" - integrity sha512-49E0SpUe90cjpoc7BOJwyPHRqSAd12c10Qm2amdEZrJPCY2NDxaW01zHITrem+rnETY3dwrbH3UUrUwagfCYDA== - dependencies: - available-typed-arrays "^1.0.2" - call-bind "^1.0.0" - es-abstract "^1.18.0-next.1" - foreach "^2.0.5" - function-bind "^1.1.1" - has-symbols "^1.0.1" - is-typed-array "^1.1.3" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= From f38e392e17f9ec3c678e363d906954e5c0b93986 Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Thu, 17 Mar 2022 09:03:16 -0700 Subject: [PATCH 05/20] 6.2.0 - require node >= 6.17.1 (ES6) Summary: Upgrade minimal node version to 6.17.1 to support ES6 features directly. https://node.green/ Reviewed By: ChrisyShine Differential Revision: D34934957 fbshipit-source-id: 0529dbcbbfa28429f361c21f9b258663aea45f1c --- .babelrc | 8 -------- CHANGES.md | 4 ++++ README.md | 7 ++----- lib/wit.js | 21 +++++++++++---------- package.json | 7 ++----- publish.sh | 6 +++--- tests/shared.js | 5 +++-- 7 files changed, 25 insertions(+), 33 deletions(-) delete mode 100644 .babelrc diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 94d651d..0000000 --- a/.babelrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "presets": [ - "es2015", - "stage-0" - ], - "comments": true, - "sourceMaps": false -} diff --git a/CHANGES.md b/CHANGES.md index 070ee2c..3462ece 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +## v6.2.0 + +Requires Node.js >= 6.17.1 to support ES6 directly. + ## v6.1.1 - Basic `POST /speech` integration. diff --git a/README.md b/README.md index cb48c4a..391bfd2 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,10 @@ npm install --save node-wit Run in your terminal: ```bash -# Node.js <= 6.x.x, add the flag --harmony_destructuring -node --harmony_destructuring examples/basic.js -# Node.js >= v6.x.x -node examples/basic.js +node examples/basic.js ``` -See `examples` folder for more examples. Some examples have associated .zip files, do not forget to import those [when creating a new app](https://wit.ai/v2/apps) and grab your access token from the Settings section. +See `examples` folder for more examples. Some examples have associated .zip files, do not forget to import those [when creating a new app](https://wit.ai/apps) and grab your access token from the Settings section. ### Messenger integration example diff --git a/lib/wit.js b/lib/wit.js index 6ef63e6..729446f 100644 --- a/lib/wit.js +++ b/lib/wit.js @@ -11,19 +11,18 @@ const Url = require('url'); const HttpsProxyAgent = require('https-proxy-agent'); const {Readable} = require('stream'); -function Wit(opts) { - if (!(this instanceof Wit)) { - return new Wit(opts); +class Wit { + constructor(opts) { + this.config = Object.freeze(validate(opts)); } - const {accessToken, apiVersion, headers, logger, witURL, proxy} = - (this.config = Object.freeze(validate(opts))); - - this.message = (q, context, n) => { + message(q, context, n) { if (typeof q !== 'string') { throw new Error('Please provide a text input (string).'); } + const {apiVersion, headers, logger, proxy, witURL} = this.config; + const params = { q, v: apiVersion, @@ -48,9 +47,9 @@ function Wit(opts) { }) .then(response => Promise.all([response.json(), response.status])) .then(makeWitResponseHandler(logger, 'message')); - }; + } - this.speech = (contentType, body, context, n) => { + speech(contentType, body, context, n) { if (typeof contentType !== 'string') { throw new Error('Please provide a content-type (string).'); } @@ -59,6 +58,8 @@ function Wit(opts) { throw new Error('Please provide an audio stream (Readable).'); } + const {apiVersion, headers, logger, proxy, witURL} = this.config; + const params = { v: apiVersion, }; @@ -94,7 +95,7 @@ function Wit(opts) { }) .catch(e => e) .then(makeWitResponseHandler(logger, 'speech')); - }; + } } const makeWitResponseHandler = (logger, endpoint) => rsp => { diff --git a/package.json b/package.json index 53e6fbb..e744dca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-wit", - "version": "6.1.1", + "version": "6.2.0", "description": "Wit.ai Node.js SDK", "keywords": [ "wit", @@ -27,12 +27,9 @@ "uuid": "^3.0.0" }, "engines": { - "node": ">=4.0.0" + "node": ">=6.17.1" }, "devDependencies": { - "babel-cli": "^6.26.0", - "babel-preset-es2015": "^6.16.0", - "babel-preset-stage-0": "^6.16.0", "chai": "^3.5.0", "mocha": "^3.5.3", "sinon": "^1.17.6" diff --git a/publish.sh b/publish.sh index c3cc8e2..66a4a8d 100755 --- a/publish.sh +++ b/publish.sh @@ -1,12 +1,12 @@ #!/bin/bash -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and its affiliates. All rights reserved. set -ex mkdir -p dist cp package.json dist -npx babel lib --out-dir dist/lib -npx babel index.js --out-file dist/index.js +cp index.js dist +cp -R lib dist/lib mocha ./tests/dist.js ( cd dist diff --git a/tests/shared.js b/tests/shared.js index 5784798..d32f17e 100644 --- a/tests/shared.js +++ b/tests/shared.js @@ -65,8 +65,9 @@ module.exports.runTests = wit => { }); it('tests that Wit has correct functions', () => { - const witFunctions = Object.keys(client); - expect(witFunctions).to.eql(['config', 'message', 'speech']); + expect(Object.keys(client)).to.eql(['config']); + expect(typeof client.message).to.eql('function'); + expect(typeof client.speech).to.eql('function'); }); it('tests message', () => { From 9fff4f49a4a4b22ed174f65344f61d73cc55d688 Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Thu, 17 Mar 2022 10:19:26 -0700 Subject: [PATCH 06/20] Live transcription support Summary: * emits `partialTranscription` and `fullTranscription` events for `speech()` * `interactive` integration * for simplicity, dup the response handler into 2 promises so we don't have to set up timeouts waiting for a final payload before resolving * showing microphone input feedback in `interactive` * including proxy support for `speech()` Reviewed By: ruoyipu Differential Revision: D34938698 fbshipit-source-id: ec0ac55c8778be8aff4de8b38c6a840f663ca28b --- CHANGES.md | 6 +++++ README.md | 3 +++ lib/interactive.js | 8 +++++++ lib/wit.js | 58 +++++++++++++++++++++++++++++++++++++--------- package.json | 2 +- tests/shared.js | 1 - 6 files changed, 65 insertions(+), 13 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 3462ece..44bf101 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +## v6.2.1 + +- Emits `partialTranscription` and `fullTranscription` events. +- Shows microphone input feedback for `interactive`. +- Includes `proxy` support for `speech()`. + ## v6.2.0 Requires Node.js >= 6.17.1 to support ES6 directly. diff --git a/README.md b/README.md index 391bfd2..5f30af8 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,9 @@ Takes the following paramters: - `context` - (optional) the [Context](https://wit.ai/docs/http/#context_link) object - `n` - (optional) the max number of intents and traits to get back +Emits `partialTranscription` and `fullTranscription` events. +The Promise returns the final JSON payload. + See `lib/interactive.js` for an example. ### interactive diff --git a/lib/interactive.js b/lib/interactive.js index fe3324d..e7db41b 100644 --- a/lib/interactive.js +++ b/lib/interactive.js @@ -33,6 +33,13 @@ module.exports = (wit, handleResponse, context) => { prompt(); }; + wit.on('partialTranscription', text => { + console.log(text + '...'); + }); + wit.on('fullTranscription', text => { + console.log(text + ' (final)'); + }); + rl.on('line', line => { line = line.trim(); if (!line) { @@ -72,6 +79,7 @@ module.exports = (wit, handleResponse, context) => { }); microphone.start(); + console.log('🎤 Listening...'); return; } diff --git a/lib/wit.js b/lib/wit.js index 729446f..e4f1d2c 100644 --- a/lib/wit.js +++ b/lib/wit.js @@ -7,12 +7,14 @@ const {DEFAULT_API_VERSION, DEFAULT_WIT_URL} = require('./config'); const log = require('./log'); const fetch = require('isomorphic-fetch'); -const Url = require('url'); +const EventEmitter = require('events'); const HttpsProxyAgent = require('https-proxy-agent'); const {Readable} = require('stream'); +const Url = require('url'); -class Wit { +class Wit extends EventEmitter { constructor(opts) { + super(); this.config = Object.freeze(validate(opts)); } @@ -76,23 +78,51 @@ class Wit { const fullURL = witURL + '/speech?' + encodeURIParams(params); logger.debug(method, fullURL); - return fetch(fullURL, { + const req = fetch(fullURL, { body, method, + proxy, headers: { ...headers, 'Content-Type': contentType, 'Transfer-Encoding': 'chunked', }, - }) + }); + + const _partialResponses = req + .then( + response => + new Promise((resolve, reject) => { + logger.debug('status', response.status); + const bodyStream = response.body; + bodyStream.on('readable', () => { + let chunk; + let contents = ''; + while (null !== (chunk = bodyStream.read())) { + contents += chunk.toString(); + } + for (const {error, intents, text} of splitHttpChunks( + contents, + ).map(x => JSON.parse(x))) { + if (!(error || intents)) { + logger.debug('[speech] partialTranscription:', text); + this.emit('partialTranscription', text); + } else if (text) { + logger.debug('[speech] fullTranscription:', text); + this.emit('fullTranscription', text); + } + } + }); + }), + ) + .catch(e => logger.error('[speech] could not parse partial response', e)); + + return req .then(response => Promise.all([response.text(), response.status])) - .then(([contents, status]) => { - const chunks = contents - .split('\r\n') - .map(x => x.trim()) - .filter(x => x.length > 0); - return [JSON.parse(chunks[chunks.length - 1]), status]; - }) + .then(([contents, status]) => [ + JSON.parse(splitHttpChunks(contents).pop()), + status, + ]) .catch(e => e) .then(makeWitResponseHandler(logger, 'speech')); } @@ -147,6 +177,12 @@ const encodeURIParams = params => .map(([key, value]) => key + '=' + encodeURIComponent(value)) .join('&'); +const splitHttpChunks = response => + response + .split('\r\n') + .map(x => x.trim()) + .filter(x => x.length > 0); + const validate = opts => { if (!opts.accessToken) { throw new Error( diff --git a/package.json b/package.json index e744dca..04ddf74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-wit", - "version": "6.2.0", + "version": "6.2.1", "description": "Wit.ai Node.js SDK", "keywords": [ "wit", diff --git a/tests/shared.js b/tests/shared.js index d32f17e..06c2219 100644 --- a/tests/shared.js +++ b/tests/shared.js @@ -65,7 +65,6 @@ module.exports.runTests = wit => { }); it('tests that Wit has correct functions', () => { - expect(Object.keys(client)).to.eql(['config']); expect(typeof client.message).to.eql('function'); expect(typeof client.speech).to.eql('function'); }); From 03fa67142c951c532948399b1fa1bc9947980dbf Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Fri, 3 Jun 2022 12:09:12 -0700 Subject: [PATCH 07/20] Fix parsing due to large HTTP chunks Summary: The speech details caused the last payload to be too large to fit into one HTTP chunk. Reviewed By: jayyteee Differential Revision: D36902180 fbshipit-source-id: 8f1a745eea88ea0bdf98d69f399797617021a7b7 --- CHANGES.md | 4 ++++ lib/wit.js | 26 +++++++++++++++++--------- package.json | 2 +- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 44bf101..5cdf04f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +## v6.2.2 + +- Fixes parsing for large HTTP chunks. + ## v6.2.1 - Emits `partialTranscription` and `fullTranscription` events. diff --git a/lib/wit.js b/lib/wit.js index e4f1d2c..80ee009 100644 --- a/lib/wit.js +++ b/lib/wit.js @@ -101,9 +101,7 @@ class Wit extends EventEmitter { while (null !== (chunk = bodyStream.read())) { contents += chunk.toString(); } - for (const {error, intents, text} of splitHttpChunks( - contents, - ).map(x => JSON.parse(x))) { + for (const {error, intents, text} of parseResponse(contents)) { if (!(error || intents)) { logger.debug('[speech] partialTranscription:', text); this.emit('partialTranscription', text); @@ -119,10 +117,7 @@ class Wit extends EventEmitter { return req .then(response => Promise.all([response.text(), response.status])) - .then(([contents, status]) => [ - JSON.parse(splitHttpChunks(contents).pop()), - status, - ]) + .then(([contents, status]) => [parseResponse(contents).pop(), status]) .catch(e => e) .then(makeWitResponseHandler(logger, 'speech')); } @@ -177,12 +172,25 @@ const encodeURIParams = params => .map(([key, value]) => key + '=' + encodeURIComponent(value)) .join('&'); -const splitHttpChunks = response => - response +const parseResponse = response => { + const chunks = response .split('\r\n') .map(x => x.trim()) .filter(x => x.length > 0); + let prev = ''; + let jsons = []; + for (const chunk of chunks) { + try { + prev += chunk; + jsons.push(JSON.parse(prev)); + prev = ''; + } catch (_e) {} + } + + return jsons; +}; + const validate = opts => { if (!opts.accessToken) { throw new Error( diff --git a/package.json b/package.json index 04ddf74..237b98c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-wit", - "version": "6.2.1", + "version": "6.2.2", "description": "Wit.ai Node.js SDK", "keywords": [ "wit", From 15be10764c8de8de69c5d7a59d9d9dcd7168ec89 Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Wed, 8 Jun 2022 16:15:51 -0700 Subject: [PATCH 08/20] Live understanding support Summary: Emits `partialUnderstanding` events; bumped API version to `20220608`; `apiVersion` is now a number. To ship on Wednesday. Reviewed By: ChrisyShine Differential Revision: D36904147 fbshipit-source-id: a896973bd9ce68d9619e8b1bb8eaf7432872417f --- CHANGES.md | 6 ++++++ lib/config.js | 2 +- lib/interactive.js | 3 +++ lib/wit.js | 30 +++++++++++++++++++++++++----- 4 files changed, 35 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 5cdf04f..e3e3c0a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +## Breaking changes + +- Bumped API version to `20220608`. +- Emits `partialUnderstanding` events (live understanding support). +- Updated `apiVersion` type from string to number. + ## v6.2.2 - Fixes parsing for large HTTP chunks. diff --git a/lib/config.js b/lib/config.js index 2d4255e..ddc9781 100644 --- a/lib/config.js +++ b/lib/config.js @@ -3,6 +3,6 @@ */ module.exports = { - DEFAULT_API_VERSION: '20210928', + DEFAULT_API_VERSION: 20220608, DEFAULT_WIT_URL: 'https://api.wit.ai', }; diff --git a/lib/interactive.js b/lib/interactive.js index e7db41b..03e14cf 100644 --- a/lib/interactive.js +++ b/lib/interactive.js @@ -39,6 +39,9 @@ module.exports = (wit, handleResponse, context) => { wit.on('fullTranscription', text => { console.log(text + ' (final)'); }); + wit.on('partialUnderstanding', rsp => { + console.log('Live understanding: ' + JSON.stringify(rsp)); + }); rl.on('line', line => { line = line.trim(); diff --git a/lib/wit.js b/lib/wit.js index 80ee009..cbec448 100644 --- a/lib/wit.js +++ b/lib/wit.js @@ -12,6 +12,8 @@ const HttpsProxyAgent = require('https-proxy-agent'); const {Readable} = require('stream'); const Url = require('url'); +const LIVE_UNDERSTANDING_API_VERSION = 20220608; + class Wit extends EventEmitter { constructor(opts) { super(); @@ -78,6 +80,9 @@ class Wit extends EventEmitter { const fullURL = witURL + '/speech?' + encodeURIParams(params); logger.debug(method, fullURL); + const live_understanding_enabled = + apiVersion >= LIVE_UNDERSTANDING_API_VERSION; + const req = fetch(fullURL, { body, method, @@ -101,13 +106,20 @@ class Wit extends EventEmitter { while (null !== (chunk = bodyStream.read())) { contents += chunk.toString(); } - for (const {error, intents, text} of parseResponse(contents)) { + + for (const rsp of parseResponse(contents)) { + const {error, intents, is_final, text} = rsp; + + // Live transcription if (!(error || intents)) { logger.debug('[speech] partialTranscription:', text); this.emit('partialTranscription', text); - } else if (text) { - logger.debug('[speech] fullTranscription:', text); - this.emit('fullTranscription', text); + } + + // Live understanding + if (live_understanding_enabled && intents && !is_final) { + logger.debug('[speech] partialUnderstanding:', rsp); + this.emit('partialUnderstanding', rsp); } } }); @@ -117,7 +129,15 @@ class Wit extends EventEmitter { return req .then(response => Promise.all([response.text(), response.status])) - .then(([contents, status]) => [parseResponse(contents).pop(), status]) + .then(([contents, status]) => { + const finalResponse = parseResponse(contents).pop(); + const {text} = finalResponse; + + logger.debug('[speech] fullTranscription:', text); + this.emit('fullTranscription', text); + + return [finalResponse, status]; + }) .catch(e => e) .then(makeWitResponseHandler(logger, 'speech')); } From b09f9e02ef958ae64a8d1ebb2701e5f1104b6fe2 Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Wed, 8 Jun 2022 18:37:03 -0700 Subject: [PATCH 09/20] Adding partial understanding doc in README Summary: as title Reviewed By: ChrisyShine Differential Revision: D37024541 fbshipit-source-id: 27abe48430af69e582f5d2d77981ae4a63430f2e --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f30af8..1aea58e 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ Takes the following paramters: - `context` - (optional) the [Context](https://wit.ai/docs/http/#context_link) object - `n` - (optional) the max number of intents and traits to get back -Emits `partialTranscription` and `fullTranscription` events. +Emits `partialTranscription`, `partialUnderstanding` and `fullTranscription` events. The Promise returns the final JSON payload. See `lib/interactive.js` for an example. @@ -112,9 +112,12 @@ See the [docs](https://wit.ai/docs) for more information. ## Changing the API version +The default (recommended, latest) API version is set in `config.js`. + On May 13th, 2020, the `GET /message` API was updated to reflect the new data model: intents, traits and entities are now distinct. We updated the SDK to the latest version: `20200513`. -You can target a specific version by passing the `apiVersion` parameter when creating the `Wit` object. +You can target a specific version by passing the `apiVersion` parameter when +creating the `Wit` object. ```json { From 317818c24a2fe00c634d6e664e3436d4715ccd29 Mon Sep 17 00:00:00 2001 From: Jacob Johnson Date: Fri, 15 Jul 2022 11:01:02 -0700 Subject: [PATCH 10/20] v6.3.0 Summary: bump version to 6.3.0 for live understanding Reviewed By: patapizza Differential Revision: D37859140 fbshipit-source-id: b4c908273dda2c578b462d6647f0e24610b7783b --- CHANGES.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index e3e3c0a..25d6f9c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +## v6.3.0 +- `speech()` emits `partialUnderstanding` events to support live understanding. +- `apiVersion` updated to `20220608` and its type is now a number. + ## Breaking changes - Bumped API version to `20220608`. diff --git a/package.json b/package.json index 237b98c..c617e78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-wit", - "version": "6.2.2", + "version": "6.3.0", "description": "Wit.ai Node.js SDK", "keywords": [ "wit", From cabcb57b7d2b883bedd0ed692d1bd551ee1b0d41 Mon Sep 17 00:00:00 2001 From: Jacob Johnson Date: Fri, 15 Jul 2022 14:13:08 -0700 Subject: [PATCH 11/20] add POST /dictation integration Summary: as title Reviewed By: patapizza Differential Revision: D37859293 fbshipit-source-id: b89b23c50834975de762d837ff97b4adea9f74b1 --- lib/wit.js | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/lib/wit.js b/lib/wit.js index cbec448..9e5c941 100644 --- a/lib/wit.js +++ b/lib/wit.js @@ -141,6 +141,83 @@ class Wit extends EventEmitter { .catch(e => e) .then(makeWitResponseHandler(logger, 'speech')); } + + dictation(contentType, body) { + if (typeof contentType !== 'string') { + throw new Error('Please provide a content-type (string).'); + } + + if (!body instanceof Readable) { + throw new Error('Please provide an audio stream (Readable).'); + } + + const {apiVersion, headers, logger, proxy, witURL} = this.config; + + const params = { + v: apiVersion, + }; + + const method = 'POST'; + const fullURL = witURL + '/dictation?' + encodeURIParams(params); + logger.debug(method, fullURL); + + const req = fetch(fullURL, { + body, + method, + proxy, + headers: { + ...headers, + 'Content-Type': contentType, + 'Transfer-Encoding': 'chunked', + }, + }); + + const _partialResponses = req + .then( + response => + new Promise((resolve, reject) => { + logger.debug('status', response.status); + const bodyStream = response.body; + bodyStream.on('readable', () => { + let chunk; + let contents = ''; + while (null !== (chunk = bodyStream.read())) { + contents += chunk.toString(); + } + + for (const rsp of parseResponse(contents)) { + const {error, is_final, text} = rsp; + + // Live transcription + if (!(error)) { + if (!is_final) { + logger.debug('[dictation] partial transcription:', text); + this.emit('partialTranscription', text); + } else { + logger.debug('[dictation] full sentence transcription:', text); + this.emit('fullTranscription', text); + } + } + } + }); + }), + ) + .catch(e => logger.error('[dictation] could not parse partial response', e)); + + return req + .then(response => Promise.all([response.text(), response.status])) + .then(([contents, status]) => { + const finalResponse = parseResponse(contents).pop(); + const {text} = finalResponse; + + logger.debug('[dictation] last full sentence transcription:', text); + this.emit('fullTranscription', text); + + return [finalResponse, status]; + }) + .catch(e => e) + .then(makeWitResponseHandler(logger, 'dictation')); + } } const makeWitResponseHandler = (logger, endpoint) => rsp => { From a08eba483e142b68c6c4c972dc77c1b8122f7920 Mon Sep 17 00:00:00 2001 From: Jacob Johnson Date: Fri, 15 Jul 2022 14:13:08 -0700 Subject: [PATCH 12/20] add POST /synthesize integration Summary: as title Reviewed By: patapizza Differential Revision: D37859399 fbshipit-source-id: f3b52a16e461bed2e802a5d37e0d41b5bd9e19be --- lib/wit.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/lib/wit.js b/lib/wit.js index 9e5c941..5e808b2 100644 --- a/lib/wit.js +++ b/lib/wit.js @@ -218,6 +218,46 @@ class Wit extends EventEmitter { .catch(e => e) .then(makeWitResponseHandler(logger, 'dictation')); } + + synthesize(q, voice, style = "default", speed = 100, pitch = 100, gain = 100) { + if (typeof q !== 'string') { + throw new Error('Please provide a text input (string).'); + } + if (typeof voice !== 'string') { + throw new Error('Please provide a voice input. (string)'); + } + + const {apiVersion, headers, logger, proxy, witURL} = this.config; + + const params = { + v: apiVersion, + }; + + const body = { + q: q, + voice: voice, + style: style, + speed: speed, + pitch: pitch, + gain: gain, + } + + const method = 'POST'; + const fullURL = witURL + '/synthesize?' + encodeURIParams(params); + logger.debug(method, fullURL); + + return fetch(fullURL, { + body: JSON.stringify(body), + method, + proxy, + headers: { + ...headers, + 'Content-Type': 'application/json', + }, + }) + .then(response => Promise.all([response, response.status])) + .then(makeWitResponseHandler(logger, 'synthesize')); + } } const makeWitResponseHandler = (logger, endpoint) => rsp => { From 42c5fe59cf611c0dca92db03b3918a93997d458e Mon Sep 17 00:00:00 2001 From: Jacob Johnson Date: Fri, 15 Jul 2022 14:13:08 -0700 Subject: [PATCH 13/20] synthesize and dictation example Summary: add in a new example using synthesize() and dictation() Reviewed By: patapizza Differential Revision: D37873359 fbshipit-source-id: ef1c100723946b399adf6c1c6023c88641103795 --- examples/synthesize-speech.js | 124 ++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 examples/synthesize-speech.js diff --git a/examples/synthesize-speech.js b/examples/synthesize-speech.js new file mode 100644 index 0000000..c691847 --- /dev/null +++ b/examples/synthesize-speech.js @@ -0,0 +1,124 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved. + */ + +'use strict'; + +const fs = require('fs'); +const mic = require('mic'); +const readline = require('readline'); + +const AUDIO_PATH = '/tmp/output.raw'; +const VOICE_PATH = __dirname + '/audio.wav'; +const MIC_TIMEOUT_MS = 10000; +const VOICE = 'Charlie'; + +let Wit = null; +let interactive = null; +try { + // if running from repo + Wit = require('../').Wit; + interactive = require('../').interactive; +} catch (e) { + Wit = require('node-wit').Wit; + interactive = require('node-wit').interactive; +} + +const accessToken = (() => { + if (process.argv.length !== 3) { + console.log('usage: node examples/synthesize-speech.js '); + process.exit(1); + } + return process.argv[2]; +})(); + +const wit = new Wit({accessToken}); + +const rl = readline.createInterface({ + input: process.stdin, + output: process.stdout, +}); +rl.setPrompt('Enter a phrase, or type `!s` to start recording > '); + +var fullTranscript; + +const prompt = () => { + rl.prompt(); + rl.write(null, {ctrl: true, name: 'e'}); + fullTranscript = ''; +}; +prompt(); + +const handleTranscription = rsp => { + console.log(`Synthesizing text: ${fullTranscript}`); + + wit.synthesize(fullTranscript, VOICE) + .then(saveVoice) + .catch(console.error); +}; + +const saveVoice = rsp => { + rsp.body.pipe(fs.createWriteStream(VOICE_PATH)); + + console.log("Saved audio to " + VOICE_PATH); + + prompt(); +} + +wit.on('partialTranscription', text => { + console.log(text + '...'); +}); +wit.on('fullTranscription', text => { + console.log(text + ' (final)'); + + fullTranscript += `${text} ` +}); + +rl.on('line', line => { + line = line.trim(); + if (!line) { + return prompt(); + } + + // POST /dictation + if (line === '!s') { + const microphone = mic({ + bitwidth: '16', + channels: '1', + encoding: 'signed-integer', + endian: 'little', + fileType: 'raw', + rate: '16000', + }); + + const inputAudioStream = microphone.getAudioStream(); + const outputFileStream = fs.WriteStream(AUDIO_PATH); + inputAudioStream.pipe(outputFileStream); + + inputAudioStream.on('startComplete', () => { + setTimeout(() => { + microphone.stop(); + }, MIC_TIMEOUT_MS); + }); + inputAudioStream.on('stopComplete', () => { + const stream = fs.ReadStream(AUDIO_PATH); + wit + .dictation( + 'audio/raw;encoding=signed-integer;bits=16;rate=16000;endian=little', + stream, + ) + .then(handleTranscription) + .catch(console.error); + }); + + microphone.start(); + console.log('🎤 Listening...'); + + return; + } + + // POST /synthesize + wit.synthesize(line, VOICE) + .then(saveVoice) + .catch(console.error); +}); From 8237f61b3f3099babe28eeacdb61578b37612313 Mon Sep 17 00:00:00 2001 From: Jacob Johnson Date: Fri, 15 Jul 2022 14:13:08 -0700 Subject: [PATCH 14/20] v6.4.0 Summary: bump version to 6.4.0 with new integrations for synthesize and dictation Reviewed By: patapizza Differential Revision: D37873496 fbshipit-source-id: 1c3831ed400269addae9622f3bb29b6c97d4f0ff --- CHANGES.md | 5 +++++ README.md | 31 +++++++++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 25d6f9c..13fb2e6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,8 @@ +## v6.4.0 +- Add `POST /synthesize` integration. +- Add `POST /dictation` integration. +- New example using `synthesize()` and `dictation()`. + ## v6.3.0 - `speech()` emits `partialUnderstanding` events to support live understanding. - `apiVersion` updated to `20220608` and its type is now a number. diff --git a/README.md b/README.md index 1aea58e..62a860f 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,37 @@ The Promise returns the final JSON payload. See `lib/interactive.js` for an example. +### .dictation() + +The Wit [dictation](https://wit.ai/docs/http#post__dictation_link) API. + +Takes the following paramters: + +- `contentType` - the Content-Type header +- `body` - the audio `Readable` stream + +Emits `partialTranscription`, and `fullTranscription` events. +The Promise returns the final JSON payload. + +See `examples/synthesize-speech.js` for an example. + +### .synthesize() + +The Wit [synthesize](https://wit.ai/docs/http#post__synthesize_link) API. + +Takes the following paramters (click on link above for more details): + +- `q` - The query containting text to synthesize +- `voice` - The voice name. For voices and styles available, see GET [voices.](https://wit.ai/docs/http#get__voices_link) +- `style` - (optional) The style to speak in +- `speed` - (optional) the speed the text is spoken +- `pitch` - (optional) the pitch of the audio +- `gain` - (optional) the gain of the audio + +The Promise returns the final response, with the body containing the audio stream of the synthesized text. + +See `examples/synthesize-speech.js` for an example. + ### interactive Starts an interactive conversation with your Wit app. diff --git a/package.json b/package.json index c617e78..42b585d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-wit", - "version": "6.3.0", + "version": "6.4.0", "description": "Wit.ai Node.js SDK", "keywords": [ "wit", From d18b975f872a468cf7e24a1f4516341117f105b1 Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Tue, 2 Aug 2022 17:53:26 -0700 Subject: [PATCH 15/20] Add Composer integration Summary: as title, see `CHANGES.md` + prettier Reviewed By: jayyteee Differential Revision: D38368445 fbshipit-source-id: 251701fc147e98019bb50bcb7e06517089c06f39 --- CHANGES.md | 10 +++ README.md | 97 +++++++++++++++++++++-- examples/pizza.js | 68 ++++++++++++++++ lib/config.js | 2 +- lib/interactive.js | 114 ++++++++++++++++++++------- lib/wit.js | 191 +++++++++++++++++++++++++++++++++++++++++++-- 6 files changed, 440 insertions(+), 42 deletions(-) create mode 100644 examples/pizza.js diff --git a/CHANGES.md b/CHANGES.md index 13fb2e6..f9d6cfc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,9 +1,19 @@ +## Composer alpha integration + +- Composer integration: `.runComposerAudio()`, `.runComposer()` (and raw `.converse()` + + `.event()`) + `actions` support +- Bumped API version to `20220801`. +- interactive now uses Composer for text inputs, use `!message` for `GET /message` and `!converse` for Composer audio inputs +- added pizza example + ## v6.4.0 + - Add `POST /synthesize` integration. - Add `POST /dictation` integration. - New example using `synthesize()` and `dictation()`. ## v6.3.0 + - `speech()` emits `partialUnderstanding` events to support live understanding. - `apiVersion` updated to `20220608` and its type is now a number. diff --git a/README.md b/README.md index 62a860f..ba1d3e3 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,14 @@ See `examples/messenger.js` for a thoroughly documented tutorial. The Wit module provides a Wit class with the following methods: +- `runComposerAudio` - the [Composer](https://wit.ai/docs/recipes#composer) integration for voice; +- `runComposer` - the [Composer](https://wit.ai/docs/recipes#composer) integration for other inputs; +- `converse` - the Wit [converse](https://wit.ai/docs/http/#post__converse_link) API; +- `event` - the Wit [event](https://wit.ai/docs/http#post__event_link) API; - `message` - the Wit [message](https://wit.ai/docs/http#get__message_link) API; -- `speech` - the Wit [speech](https://wit.ai/docs/http#post__speech_link) API. +- `speech` - the Wit [speech](https://wit.ai/docs/http#post__speech_link) API; +- `dictation` - the Wit [dictation](https://wit.ai/docs/http#post__dictation_link) API; +- `synthetize` - the Wit [synthetize](https://wit.ai/docs/http#post__synthetize_link) API. You can also require a library function to test out your Wit app in the terminal. `require('node-wit').interactive` @@ -37,8 +43,9 @@ You can also require a library function to test out your Wit app in the terminal The Wit constructor takes the following parameters: -- `accessToken` - the access token of your Wit instance -- `logger` - (optional) the object handling the logging. +- `accessToken` - the access token of your Wit instance; +- `actions` - the object of [client action definitions for Composer](https://wit.ai/docs/recipes#run-custom-code); +- `logger` - (optional) the object handling the logging; - `apiVersion` - (optional) the API version to use instead of the recommended one The `logger` object should implement the methods `debug`, `info`, `warn` and `error`. @@ -50,14 +57,83 @@ Example: ```js const {Wit, log} = require('node-wit'); +const actions = { + confirm_order(contextMap) { + return {context_map: {...contextMap, order_confirmation: 'PIZZA42'}}; + }, +}; + const client = new Wit({ accessToken: MY_TOKEN, + actions, logger: new log.Logger(log.DEBUG), // optional }); console.log(client.message('set an alarm tomorrow at 7am')); ``` +## .runComposerAudio() + +The [Composer](https://wit.ai/docs/recipes#composer) integration for voice. + +Takes the following parameters: + +- `sessionId` - a unique string identifying the user session +- `contentType` - the Content-Type header +- `body` - the audio `Readable` stream +- `contextMap` - the [context map](https://wit.ai/docs/recipes#custom-context) object + +Emits `partialTranscription`, `response` and `fullTranscription` events. +Run the provided `actions` as instructed by the API response, and calls back with the resulting updated context map (unless the action returns `stop: true`). +The Promise returns the final JSON payload of the last API call ([POST /converse](https://wit.ai/docs/http#post__converse_link) or [POST +/event](https://wit.ai/docs/http#post__event_link)). + +See `lib/interactive.js` for an example. + +## .runComposer() + +The [Composer](https://wit.ai/docs/recipes#composer) integration for other +inputs, including text. + +Takes the following parameters: + +- `sessionId` - a unique string identifying the user session +- `contextMap` - the [context map](https://wit.ai/docs/recipes#custom-context) object +- `message` - the optional user text query + +Emits `response` events. +Run the provided `actions` as instructed by the API response, and calls back with the resulting updated context map (unless the action returns `stop: true`). +The Promise returns the final JSON payload of the last [POST /event](https://wit.ai/docs/http#post__event_link) API call. + +See `lib/interactive.js` for an example. + +## .converse() + +The Wit [converse](https://wit.ai/docs/http/#post__converse_link) API. + +Takes the following parameters: + +- `sessionId` - a unique string identifying the user session +- `contentType` - the Content-Type header +- `body` - the audio `Readable` stream +- `contextMap` - the [context map](https://wit.ai/docs/recipes#custom-context) object + +Emits `partialTranscription` and `fullTranscription` events. + +We recommend to use `.runComposerAudio()` instead of this raw API. + +## .event() + +The Wit [event](https://wit.ai/docs/http#post__event_link) API. + +Takes the following parameters: + +- `sessionId` - a unique string identifying the user session +- `contextMap` - the [context map](https://wit.ai/docs/recipes#custom-context) object +- `message` - the optional user text query + +We recommend to use `.runComposer()` instead of this raw API. + ### .message() The Wit [message](https://wit.ai/docs/http/#get__message_link) API. @@ -80,6 +156,8 @@ client .catch(console.error); ``` +See `lib/interactive.js` for another example integration. + ### .speech() The Wit [speech](https://wit.ai/docs/http#post__speech_link) API. @@ -130,7 +208,14 @@ See `examples/synthesize-speech.js` for an example. ### interactive Starts an interactive conversation with your Wit app. -Use `!speech` to send an audio request from the microphone, or enter any text input. + +Full conversational interactions: +Use `!converse` to send an audio request from the microphone using Composer. +Enter any text input to send a text request using Composer. + +One-off natural language requests: +Use `!speech` to send an audio request from the microphone. +Use `!message ` to send a text request. Example: @@ -146,9 +231,7 @@ See the [docs](https://wit.ai/docs) for more information. The default (recommended, latest) API version is set in `config.js`. On May 13th, 2020, the `GET /message` API was updated to reflect the new data model: intents, traits and entities are now distinct. -We updated the SDK to the latest version: `20200513`. -You can target a specific version by passing the `apiVersion` parameter when -creating the `Wit` object. +You can target a specific version by passing the `apiVersion` parameter when creating the `Wit` object. ```json { diff --git a/examples/pizza.js b/examples/pizza.js new file mode 100644 index 0000000..501484d --- /dev/null +++ b/examples/pizza.js @@ -0,0 +1,68 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved. + */ + +'use strict'; + +let Wit = null; +let interactive = null; +try { + // if running from repo + Wit = require('../').Wit; + interactive = require('../').interactive; +} catch (e) { + Wit = require('node-wit').Wit; + interactive = require('node-wit').interactive; +} + +const accessToken = (() => { + if (process.argv.length !== 3) { + console.log('usage: node examples/pizza.js '); + process.exit(1); + } + return process.argv[2]; +})(); + +const actions = { + process_order(contextMap) { + const {order} = contextMap; + if (typeof order !== 'object') { + console.log('could not find order'); + return {context_map: contextMap}; + } + + const pizze = Array.from(order.pizze || []); + const pizze_number = pizze.length; + if (pizze_number < 1) { + console.log('could not find any pizze in the order'); + return {context_map: contextMap}; + } + + const processed = pizze.length; + const order_number = pizze[0].type.substring(0, 3).toUpperCase() + '-42X6'; + + return {context_map: {...contextMap, pizze_number, order_number}}; + }, + make_summary(contextMap) { + const {order} = contextMap; + if (typeof order !== 'object') { + console.log('could not find order'); + return {context_map: contextMap}; + } + + const pizze = Array.from(order.pizze || []); + if (pizze.length < 1) { + console.log('could not find any pizze in the order'); + return {context_map: contextMap}; + } + + const order_summary = pizze + .map(({size, type}) => 'a ' + size + ' ' + type) + .join(', '); + + return {context_map: {...contextMap, order_summary}, stop: true}; + }, +}; + +const client = new Wit({accessToken, actions}); +interactive(client); diff --git a/lib/config.js b/lib/config.js index ddc9781..e4074a2 100644 --- a/lib/config.js +++ b/lib/config.js @@ -3,6 +3,6 @@ */ module.exports = { - DEFAULT_API_VERSION: 20220608, + DEFAULT_API_VERSION: 20220801, DEFAULT_WIT_URL: 'https://api.wit.ai', }; diff --git a/lib/interactive.js b/lib/interactive.js index 03e14cf..3cdfdbe 100644 --- a/lib/interactive.js +++ b/lib/interactive.js @@ -7,11 +7,17 @@ const fs = require('fs'); const mic = require('mic'); const readline = require('readline'); +const uuid = require('uuid'); + +const sessionId = uuid.v4(); const AUDIO_PATH = '/tmp/output.raw'; const MIC_TIMEOUT_MS = 3000; +const MSG_PREFIX_COMMAND = '!message'; + +module.exports = (wit, handleResponse, initContextMap) => { + let contextMap = typeof initContextMap === 'object' ? initContextMap : {}; -module.exports = (wit, handleResponse, context) => { const rl = readline.createInterface({ input: process.stdin, output: process.stdout, @@ -25,12 +31,43 @@ module.exports = (wit, handleResponse, context) => { prompt(); const makeResponseHandler = rsp => { + const {context_map} = rsp; + if (typeof context_map === 'object') { + contextMap = context_map; + } + if (handleResponse) { handleResponse(rsp); } else { console.log(JSON.stringify(rsp)); } - prompt(); + + return rsp; + }; + + const openMic = onComplete => { + const microphone = mic({ + bitwidth: '16', + channels: '1', + encoding: 'signed-integer', + endian: 'little', + fileType: 'raw', + rate: '16000', + }); + + const inputAudioStream = microphone.getAudioStream(); + const outputFileStream = fs.WriteStream(AUDIO_PATH); + inputAudioStream.pipe(outputFileStream); + + inputAudioStream.on('startComplete', () => { + setTimeout(() => { + microphone.stop(); + }, MIC_TIMEOUT_MS); + }); + inputAudioStream.on('stopComplete', () => onComplete()); + + microphone.start(); + console.log('🎤 Listening...'); }; wit.on('partialTranscription', text => { @@ -42,6 +79,9 @@ module.exports = (wit, handleResponse, context) => { wit.on('partialUnderstanding', rsp => { console.log('Live understanding: ' + JSON.stringify(rsp)); }); + wit.on('response', ({text}) => { + console.log('< ' + text); + }); rl.on('line', line => { line = line.trim(); @@ -49,45 +89,61 @@ module.exports = (wit, handleResponse, context) => { return prompt(); } + // POST /converse + if (line === '!converse') { + const onComplete = () => { + const stream = fs.ReadStream(AUDIO_PATH); + wit + .runComposerAudio( + sessionId, + 'audio/raw;encoding=signed-integer;bits=16;rate=16000;endian=little', + stream, + contextMap, + ) + .then(makeResponseHandler) + .then(({expects_input}) => { + if (expects_input) { + openMic(onComplete); + } else { + prompt(); + } + }) + .catch(console.error); + }; + + return openMic(onComplete); + } + // POST /speech if (line === '!speech') { - const microphone = mic({ - bitwidth: '16', - channels: '1', - encoding: 'signed-integer', - endian: 'little', - fileType: 'raw', - rate: '16000', - }); - - const inputAudioStream = microphone.getAudioStream(); - const outputFileStream = fs.WriteStream(AUDIO_PATH); - inputAudioStream.pipe(outputFileStream); - - inputAudioStream.on('startComplete', () => { - setTimeout(() => { - microphone.stop(); - }, MIC_TIMEOUT_MS); - }); - inputAudioStream.on('stopComplete', () => { + const onComplete = () => { const stream = fs.ReadStream(AUDIO_PATH); wit .speech( 'audio/raw;encoding=signed-integer;bits=16;rate=16000;endian=little', stream, - context, ) .then(makeResponseHandler) + .then(prompt) .catch(console.error); - }); - - microphone.start(); - console.log('🎤 Listening...'); + }; + return openMic(onComplete); + } - return; + if (line.startsWith(MSG_PREFIX_COMMAND)) { + // GET /message + return wit + .message(line.slice(MSG_PREFIX_COMMAND.length)) + .then(makeResponseHandler) + .then(prompt) + .catch(console.error); } - // GET /message - wit.message(line, context).then(makeResponseHandler).catch(console.error); + // POST /event + wit + .runComposer(sessionId, contextMap, line) + .then(makeResponseHandler) + .then(prompt) + .catch(console.error); }); }; diff --git a/lib/wit.js b/lib/wit.js index 5e808b2..b7ac424 100644 --- a/lib/wit.js +++ b/lib/wit.js @@ -20,6 +20,133 @@ class Wit extends EventEmitter { this.config = Object.freeze(validate(opts)); } + runComposer(sessionId, contextMap, message) { + return this.event(sessionId, contextMap, message).then( + this.makeComposerHandler(sessionId), + ); + } + + runComposerAudio(sessionId, contentType, body, contextMap) { + return this.converse(sessionId, contentType, body, contextMap).then( + this.makeComposerHandler(sessionId), + ); + } + + converse(sessionId, contentType, body, contextMap) { + if (typeof sessionId !== 'string') { + throw new Error('Please provide a session ID (string).'); + } + + if (typeof contentType !== 'string') { + throw new Error('Please provide a content-type (string).'); + } + + if (!body instanceof Readable) { + throw new Error('Please provide an audio stream (Readable).'); + } + + const {apiVersion, headers, logger, proxy, witURL} = this.config; + + const params = { + session_id: sessionId, + v: apiVersion, + }; + + if (typeof contextMap === 'object') { + params.context_map = JSON.stringify(contextMap); + } + + const method = 'POST'; + const fullURL = witURL + '/converse?' + encodeURIParams(params); + logger.debug(method, fullURL); + + const req = fetch(fullURL, { + body, + method, + proxy, + headers: { + ...headers, + 'Content-Type': contentType, + 'Transfer-Encoding': 'chunked', + }, + }); + + const _partialResponses = req + .then( + response => + new Promise((resolve, reject) => { + logger.debug('status', response.status); + const bodyStream = response.body; + + bodyStream.on('readable', () => { + let chunk; + let contents = ''; + while (null !== (chunk = bodyStream.read())) { + contents += chunk.toString(); + } + + for (const rsp of parseResponse(contents)) { + const {error, is_final, text} = rsp; + + // Live transcription + if (!(error || is_final)) { + logger.debug('[converse] partialTranscription:', text); + this.emit('partialTranscription', text); + } + } + }); + }), + ) + .catch(e => + logger.error('[converse] could not parse partial response', e), + ); + + return req + .then(response => Promise.all([response.text(), response.status])) + .then(([contents, status]) => { + const finalResponse = parseResponse(contents).pop(); + const {text} = finalResponse; + + logger.debug('[converse] fullTranscription:', text); + this.emit('fullTranscription', text); + + return [finalResponse, status]; + }) + .catch(e => e) + .then(makeWitResponseHandler(logger, 'converse')); + } + + event(sessionId, contextMap, message) { + if (typeof sessionId !== 'string') { + throw new Error('Please provide a session ID (string).'); + } + + const {apiVersion, headers, logger, proxy, witURL} = this.config; + + const params = { + session_id: sessionId, + v: apiVersion, + }; + + if (typeof contextMap === 'object') { + params.context_map = JSON.stringify(contextMap); + } + + const body = {}; + if (typeof message === 'string') { + body.type = 'message'; + body.message = message; + } + + const method = 'POST'; + const fullURL = witURL + '/event?' + encodeURIParams(params); + logger.debug(method, fullURL); + + return fetch(fullURL, {body: JSON.stringify(body), method, headers, proxy}) + .then(response => Promise.all([response.json(), response.status])) + .then(makeWitResponseHandler(logger, 'event')); + } + message(q, context, n) { if (typeof q !== 'string') { throw new Error('Please provide a text input (string).'); @@ -100,6 +227,7 @@ class Wit extends EventEmitter { new Promise((resolve, reject) => { logger.debug('status', response.status); const bodyStream = response.body; + bodyStream.on('readable', () => { let chunk; let contents = ''; @@ -189,12 +317,15 @@ class Wit extends EventEmitter { const {error, is_final, text} = rsp; // Live transcription - if (!(error)) { + if (!error) { if (!is_final) { logger.debug('[dictation] partial transcription:', text); this.emit('partialTranscription', text); } else { - logger.debug('[dictation] full sentence transcription:', text); + logger.debug( + '[dictation] full sentence transcription:', + text, + ); this.emit('fullTranscription', text); } } @@ -202,7 +333,9 @@ class Wit extends EventEmitter { }); }), ) - .catch(e => logger.error('[dictation] could not parse partial response', e)); + .catch(e => + logger.error('[dictation] could not parse partial response', e), + ); return req .then(response => Promise.all([response.text(), response.status])) @@ -219,7 +352,14 @@ class Wit extends EventEmitter { .then(makeWitResponseHandler(logger, 'dictation')); } - synthesize(q, voice, style = "default", speed = 100, pitch = 100, gain = 100) { + synthesize( + q, + voice, + style = 'default', + speed = 100, + pitch = 100, + gain = 100, + ) { if (typeof q !== 'string') { throw new Error('Please provide a text input (string).'); } @@ -240,7 +380,7 @@ class Wit extends EventEmitter { speed: speed, pitch: pitch, gain: gain, - } + }; const method = 'POST'; const fullURL = witURL + '/synthesize?' + encodeURIParams(params); @@ -258,8 +398,45 @@ class Wit extends EventEmitter { .then(response => Promise.all([response, response.status])) .then(makeWitResponseHandler(logger, 'synthesize')); } + + makeComposerHandler(sessionId) { + const {actions, logger} = this.config; + + return ({context_map, action, expects_input, response}) => { + if (typeof context_map !== 'object') { + throw new Error( + 'Unexpected context_map in API response: ' + + JSON.stringify(context_map), + ); + } + + if (response) { + logger.debug('[composer] response:', response); + this.emit('response', response); + } + + if (action) { + logger.debug('[composer] got action', action); + return runAction(logger, actions, action, context_map).then( + ({context_map, stop}) => { + if (expects_input && !stop) { + return this.runComposer(sessionId, context_map); + } + return {context_map}; + }, + ); + } + + return {context_map, expects_input}; + }; + } } +const runAction = (logger, actions, name, ...rest) => { + logger.debug('Running action', name); + return Promise.resolve(actions[name](...rest)); +}; + const makeWitResponseHandler = (logger, endpoint) => rsp => { const error = e => { logger.error('[' + endpoint + '] Error: ' + e); @@ -344,6 +521,10 @@ const validate = opts => { opts.logger = opts.logger || new log.Logger(log.INFO); opts.proxy = getProxyAgent(opts.witURL); + if (opts.actions && typeof opts.actions !== 'object') { + throw new Error('Please provide actions mapping (string -> function).'); + } + return opts; }; From 10d64737d5994acd9eca02e3ce7f81015ee18e5b Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Fri, 30 Sep 2022 14:06:49 -0700 Subject: [PATCH 16/20] bump to 6.5.0 Summary: - fixed typos in README - bumped version Reviewed By: yuzh174 Differential Revision: D39976646 fbshipit-source-id: e21cce9882e06b94d03f292883f5b0b2c7c3f218 --- CHANGES.md | 5 ++--- README.md | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index f9d6cfc..d9414d0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,6 @@ -## Composer alpha integration +## v6.5.0 - Composer alpha integration -- Composer integration: `.runComposerAudio()`, `.runComposer()` (and raw `.converse()` - + `.event()`) + `actions` support +- Composer integration: `.runComposerAudio()`, `.runComposer()` (and raw `.converse()` + `.event()`) + `actions` support - Bumped API version to `20220801`. - interactive now uses Composer for text inputs, use `!message` for `GET /message` and `!converse` for Composer audio inputs - added pizza example diff --git a/README.md b/README.md index ba1d3e3..7ae758c 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The Wit module provides a Wit class with the following methods: - `message` - the Wit [message](https://wit.ai/docs/http#get__message_link) API; - `speech` - the Wit [speech](https://wit.ai/docs/http#post__speech_link) API; - `dictation` - the Wit [dictation](https://wit.ai/docs/http#post__dictation_link) API; -- `synthetize` - the Wit [synthetize](https://wit.ai/docs/http#post__synthetize_link) API. +- `synthesize` - the Wit [synthesize](https://wit.ai/docs/http#post__synthesize_link) API. You can also require a library function to test out your Wit app in the terminal. `require('node-wit').interactive` diff --git a/package.json b/package.json index 42b585d..591d7b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-wit", - "version": "6.4.0", + "version": "6.5.0", "description": "Wit.ai Node.js SDK", "keywords": [ "wit", From e6c2b7d26bfa7b470c13f188a32b1a4f84b43e89 Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Mon, 10 Oct 2022 12:00:02 -0700 Subject: [PATCH 17/20] appending terms + privacy to the README Summary: as title Reviewed By: yolanother Differential Revision: D40201665 fbshipit-source-id: 81c875c541540be8d948f2be7d59a725cdd51ba9 --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ae758c..bc34d1f 100644 --- a/README.md +++ b/README.md @@ -256,4 +256,15 @@ You can target a specific version by passing the `apiVersion` parameter when cre ## License -The license for node-wit can be found in LICENSE file in the root directory of this source tree. +The license for node-wit can be found in LICENSE file in the root directory of +this source tree. + +## Terms of Use +Our terms of use can be found at https://opensource.facebook.com/legal/terms. + +Use of Wit.ai services fall under the terms of use found here: https://wit.ai/terms. + +## Privacy Policy +Our privacy policy can be found at https://opensource.facebook.com/legal/privacy. + +The privacy policy for the Wit.ai service can be found at https://wit.ai/privacy. From fef90a19e24cbc3a87f4187bdd286f9b345131a0 Mon Sep 17 00:00:00 2001 From: Nishant Singhal Date: Thu, 17 Nov 2022 12:53:26 -0800 Subject: [PATCH 18/20] Update uuid to version 9.0.0 Summary: Update `uuid` to version `9.0.0` Reviewed By: patapizza Differential Revision: D41363015 fbshipit-source-id: 7194320837721b2a0f705882054d33537bcc9f04 --- CHANGES.md | 3 +++ lib/interactive.js | 4 ++-- package.json | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index d9414d0..e7bb65b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,6 @@ +## v6.5.1 +- Update uuid to version 9.0.0 + ## v6.5.0 - Composer alpha integration - Composer integration: `.runComposerAudio()`, `.runComposer()` (and raw `.converse()` + `.event()`) + `actions` support diff --git a/lib/interactive.js b/lib/interactive.js index 3cdfdbe..e910ae9 100644 --- a/lib/interactive.js +++ b/lib/interactive.js @@ -7,9 +7,9 @@ const fs = require('fs'); const mic = require('mic'); const readline = require('readline'); -const uuid = require('uuid'); +const { v4: uuidv4 } = require('uuid'); -const sessionId = uuid.v4(); +const sessionId = uuidv4(); const AUDIO_PATH = '/tmp/output.raw'; const MIC_TIMEOUT_MS = 3000; diff --git a/package.json b/package.json index 591d7b1..3d002fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-wit", - "version": "6.5.0", + "version": "6.5.1", "description": "Wit.ai Node.js SDK", "keywords": [ "wit", @@ -24,7 +24,7 @@ "isomorphic-fetch": "^2.2.1", "lodash": "^4.17.14", "mic": "^2.1.2", - "uuid": "^3.0.0" + "uuid": "^9.0.0" }, "engines": { "node": ">=6.17.1" From 948f2286f01b91d7788ba3f8af18f0d9f613a959 Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Wed, 15 Feb 2023 10:16:26 -0800 Subject: [PATCH 19/20] v6.6.0: Composer multi-responses support Summary: - Composer multi-responses support - bumped API to 20230215 - bumped SDK to 6.6.0 Reviewed By: nishsinghal20, CleanestMink126 Differential Revision: D43291213 fbshipit-source-id: 03f5d26b0f00a07fa6c9a6789a6d53b0fe9b2b35 --- CHANGES.md | 5 +++ README.md | 5 ++- lib/config.js | 2 +- lib/wit.js | 87 +++++++++++++++++++++++++++++++++++++++++++++------ package.json | 5 +-- 5 files changed, 91 insertions(+), 13 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index e7bb65b..89840da 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,8 @@ +## v6.6.0 - Multi-responses in Composer + +- Multi-responses in Composer: `runComposerAudio()`, `.runComposer()` (and raw `.converse()` + `.event()`) now emit `response` events for intermediate responses, and run intermediate actions as well. +- Bumped API version to `20230215`. + ## v6.5.1 - Update uuid to version 9.0.0 diff --git a/README.md b/README.md index bc34d1f..0f527c2 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,8 @@ Takes the following parameters: - `body` - the audio `Readable` stream - `contextMap` - the [context map](https://wit.ai/docs/recipes#custom-context) object -Emits `partialTranscription` and `fullTranscription` events. +Emits `partialTranscription`, `fullTranscription`, and `response` events. Runs +intermediate `actions` as instructed by the API. We recommend to use `.runComposerAudio()` instead of this raw API. @@ -132,6 +133,8 @@ Takes the following parameters: - `contextMap` - the [context map](https://wit.ai/docs/recipes#custom-context) object - `message` - the optional user text query +Emits `response` events, and run intermediate `actions` as instructed by the API. + We recommend to use `.runComposer()` instead of this raw API. ### .message() diff --git a/lib/config.js b/lib/config.js index e4074a2..d46214e 100644 --- a/lib/config.js +++ b/lib/config.js @@ -3,6 +3,6 @@ */ module.exports = { - DEFAULT_API_VERSION: 20220801, + DEFAULT_API_VERSION: 20230215, DEFAULT_WIT_URL: 'https://api.wit.ai', }; diff --git a/lib/wit.js b/lib/wit.js index b7ac424..1cfa07b 100644 --- a/lib/wit.js +++ b/lib/wit.js @@ -13,6 +13,7 @@ const {Readable} = require('stream'); const Url = require('url'); const LIVE_UNDERSTANDING_API_VERSION = 20220608; +const MULTI_RESPONSES_API_VERSION = 20230215; class Wit extends EventEmitter { constructor(opts) { @@ -45,7 +46,7 @@ class Wit extends EventEmitter { throw new Error('Please provide an audio stream (Readable).'); } - const {apiVersion, headers, logger, proxy, witURL} = this.config; + const {actions, apiVersion, headers, logger, proxy, witURL} = this.config; const params = { session_id: sessionId, @@ -60,6 +61,8 @@ class Wit extends EventEmitter { const fullURL = witURL + '/converse?' + encodeURIParams(params); logger.debug(method, fullURL); + const multi_responses_enabled = apiVersion >= MULTI_RESPONSES_API_VERSION; + const req = fetch(fullURL, { body, method, @@ -73,10 +76,10 @@ class Wit extends EventEmitter { const _partialResponses = req .then( - response => + resp => new Promise((resolve, reject) => { - logger.debug('status', response.status); - const bodyStream = response.body; + logger.debug('status', resp.status); + const bodyStream = resp.body; bodyStream.on('readable', () => { let chunk; @@ -86,13 +89,31 @@ class Wit extends EventEmitter { } for (const rsp of parseResponse(contents)) { - const {error, is_final, text} = rsp; + const {action, context_map, error, is_final, response, text} = + rsp; // Live transcription if (!(error || is_final)) { logger.debug('[converse] partialTranscription:', text); this.emit('partialTranscription', text); } + + // Multi-responses + if ( + multi_responses_enabled && + !(error || is_final) && + (action || response) + ) { + if (response) { + logger.debug('[converse] partialResponse:', response); + this.emit('response', response); + } + + if (action) { + logger.debug('[converse] got partial action:', action); + runAction(logger, actions, action, context_map); + } + } } }); }), @@ -121,7 +142,7 @@ class Wit extends EventEmitter { throw new Error('Please provide a session ID (string).'); } - const {apiVersion, headers, logger, proxy, witURL} = this.config; + const {actions, apiVersion, headers, logger, proxy, witURL} = this.config; const params = { session_id: sessionId, @@ -142,8 +163,56 @@ class Wit extends EventEmitter { const fullURL = witURL + '/event?' + encodeURIParams(params); logger.debug(method, fullURL); - return fetch(fullURL, {body: JSON.stringify(body), method, headers, proxy}) - .then(response => Promise.all([response.json(), response.status])) + const req = fetch(fullURL, { + body: JSON.stringify(body), + method, + headers, + proxy, + }); + + // Multi-responses + if (apiVersion >= MULTI_RESPONSES_API_VERSION) { + const _partialResponses = req + .then( + resp => + new Promise((resolve, reject) => { + logger.debug('status', resp.status); + const bodyStream = resp.body; + + bodyStream.on('readable', () => { + let chunk; + let contents = ''; + while (null !== (chunk = bodyStream.read())) { + contents += chunk.toString(); + } + + for (const rsp of parseResponse(contents)) { + const {action, context_map, error, is_final, response} = rsp; + + if (!(error || is_final) && (action || response)) { + if (response) { + logger.debug('[event] partialResponse:', response); + this.emit('response', response); + } + + if (action) { + logger.debug('[event] got partial action:', action); + runAction(logger, actions, action, context_map); + } + } + } + }); + }), + ) + .catch(e => + logger.error('[event] could not parse partial response', e), + ); + } + + return req + .then(response => Promise.all([response.text(), response.status])) + .then(([contents, status]) => ([parseResponse(contents).pop(), status])) + .catch(e => e) .then(makeWitResponseHandler(logger, 'event')); } @@ -364,7 +433,7 @@ class Wit extends EventEmitter { throw new Error('Please provide a text input (string).'); } if (typeof voice !== 'string') { - throw new Error('Please provide a voice input. (string)'); + throw new Error('Please provide a voice input (string).'); } const {apiVersion, headers, logger, proxy, witURL} = this.config; diff --git a/package.json b/package.json index 3d002fd..ec338cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-wit", - "version": "6.5.1", + "version": "6.6.0", "description": "Wit.ai Node.js SDK", "keywords": [ "wit", @@ -9,7 +9,8 @@ "botengine", "bots", "nlp", - "automation" + "automation", + "composer" ], "main": "index.js", "scripts": { From 8a5cfcbf5baf4d27ffca7e7e4d67556af708ef6c Mon Sep 17 00:00:00 2001 From: TonyWang Date: Tue, 21 Feb 2023 11:37:43 -0800 Subject: [PATCH 20/20] should add agent before proxy to fetch (#241) Summary: should add agent before proxy to fetch to respect proxy settings in ENV Pull Request resolved: https://github.com/wit-ai/node-wit/pull/241 Reviewed By: nishsinghal20 Differential Revision: D43472111 Pulled By: patapizza fbshipit-source-id: a763ba82c819047af6c7a07000d32fe4abcd45a4 --- lib/wit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wit.js b/lib/wit.js index 1cfa07b..87c5988 100644 --- a/lib/wit.js +++ b/lib/wit.js @@ -282,7 +282,7 @@ class Wit extends EventEmitter { const req = fetch(fullURL, { body, method, - proxy, + agent: proxy, headers: { ...headers, 'Content-Type': contentType,