diff --git a/README.md b/README.md index 116776c3..718adddf 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ For direct use in a browser script: ```{"language":"html"} - + diff --git a/build/README.md b/build/README.md index 116776c3..718adddf 100644 --- a/build/README.md +++ b/build/README.md @@ -29,7 +29,7 @@ For direct use in a browser script: ```{"language":"html"} - + diff --git a/build/dist/node/purecloud-guest-chat-client.js b/build/dist/node/purecloud-guest-chat-client.js index 07443c4b..555b983a 100644 --- a/build/dist/node/purecloud-guest-chat-client.js +++ b/build/dist/node/purecloud-guest-chat-client.js @@ -6,7 +6,7 @@ var superagent = _interopDefault(require('superagent')); /** * @module purecloud-guest-chat-client/ApiClient - * @version 4.0.0 + * @version 4.1.0 */ class ApiClient { /** @@ -535,7 +535,7 @@ class ApiClient { // set header parameters request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - //request.set({ 'purecloud-sdk': '4.0.0' }); + //request.set({ 'purecloud-sdk': '4.1.0' }); // set request timeout request.timeout(this.timeout); @@ -662,7 +662,7 @@ class WebChatApi { /** * WebChat service. * @module purecloud-guest-chat-client/api/WebChatApi - * @version 4.0.0 + * @version 4.1.0 */ /** @@ -1040,7 +1040,7 @@ class WebChatApi { * *

* @module purecloud-guest-chat-client/index - * @version 4.0.0 + * @version 4.1.0 */ class platformClient { constructor() { diff --git a/build/dist/web-amd/purecloud-guest-chat-client.js b/build/dist/web-amd/purecloud-guest-chat-client.js index 20c303ea..72ccf4b1 100644 --- a/build/dist/web-amd/purecloud-guest-chat-client.js +++ b/build/dist/web-amd/purecloud-guest-chat-client.js @@ -4,7 +4,7 @@ define(['superagent'], function (superagent) { 'use strict'; /** * @module purecloud-guest-chat-client/ApiClient - * @version 4.0.0 + * @version 4.1.0 */ class ApiClient { /** @@ -533,7 +533,7 @@ define(['superagent'], function (superagent) { 'use strict'; // set header parameters request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - //request.set({ 'purecloud-sdk': '4.0.0' }); + //request.set({ 'purecloud-sdk': '4.1.0' }); // set request timeout request.timeout(this.timeout); @@ -660,7 +660,7 @@ define(['superagent'], function (superagent) { 'use strict'; /** * WebChat service. * @module purecloud-guest-chat-client/api/WebChatApi - * @version 4.0.0 + * @version 4.1.0 */ /** @@ -1038,7 +1038,7 @@ define(['superagent'], function (superagent) { 'use strict'; * *

* @module purecloud-guest-chat-client/index - * @version 4.0.0 + * @version 4.1.0 */ class platformClient { constructor() { diff --git a/build/dist/web-cjs/bundle.js b/build/dist/web-cjs/bundle.js index 506dfeac..03b76468 100644 --- a/build/dist/web-cjs/bundle.js +++ b/build/dist/web-cjs/bundle.js @@ -1971,7 +1971,7 @@ function isSlowBuffer (obj) { /** * @module purecloud-guest-chat-client/ApiClient - * @version 4.0.0 + * @version 4.1.0 */ class ApiClient { /** @@ -2500,7 +2500,7 @@ class ApiClient { // set header parameters request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - //request.set({ 'purecloud-sdk': '4.0.0' }); + //request.set({ 'purecloud-sdk': '4.1.0' }); // set request timeout request.timeout(this.timeout); @@ -2627,7 +2627,7 @@ class WebChatApi { /** * WebChat service. * @module purecloud-guest-chat-client/api/WebChatApi - * @version 4.0.0 + * @version 4.1.0 */ /** @@ -3005,7 +3005,7 @@ class WebChatApi { * *

* @module purecloud-guest-chat-client/index - * @version 4.0.0 + * @version 4.1.0 */ class platformClient { constructor() { diff --git a/build/dist/web-cjs/purecloud-guest-chat-client.js b/build/dist/web-cjs/purecloud-guest-chat-client.js index 6d84441f..31284a20 100644 --- a/build/dist/web-cjs/purecloud-guest-chat-client.js +++ b/build/dist/web-cjs/purecloud-guest-chat-client.js @@ -6028,7 +6028,7 @@ function isSlowBuffer (obj) { /** * @module purecloud-guest-chat-client/ApiClient - * @version 4.0.0 + * @version 4.1.0 */ class ApiClient { /** @@ -6557,7 +6557,7 @@ class ApiClient { // set header parameters request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - //request.set({ 'purecloud-sdk': '4.0.0' }); + //request.set({ 'purecloud-sdk': '4.1.0' }); // set request timeout request.timeout(this.timeout); @@ -6684,7 +6684,7 @@ class WebChatApi { /** * WebChat service. * @module purecloud-guest-chat-client/api/WebChatApi - * @version 4.0.0 + * @version 4.1.0 */ /** @@ -7062,7 +7062,7 @@ class WebChatApi { * *

* @module purecloud-guest-chat-client/index - * @version 4.0.0 + * @version 4.1.0 */ class platformClient { constructor() { diff --git a/build/docs/index.md b/build/docs/index.md index 116776c3..718adddf 100644 --- a/build/docs/index.md +++ b/build/docs/index.md @@ -29,7 +29,7 @@ For direct use in a browser script: ```{"language":"html"} - + diff --git a/build/index.d.ts b/build/index.d.ts index 931013aa..a19fcc44 100644 --- a/build/index.d.ts +++ b/build/index.d.ts @@ -112,7 +112,7 @@ declare namespace Models { export interface JourneyAction { "id": string; - "actionMap"?: Models.JourneyActionMap; + "actionMap": Models.JourneyActionMap; } export interface JourneyActionMap { @@ -121,7 +121,7 @@ declare namespace Models { } export interface JourneyContext { - "customer"?: Models.JourneyCustomer; + "customer": Models.JourneyCustomer; "customerSession"?: Models.JourneyCustomerSession; "triggeringAction"?: Models.JourneyAction; } @@ -176,9 +176,9 @@ declare namespace Models { "total"?: number; "firstUri"?: string; "selfUri"?: string; - "nextUri"?: string; - "previousUri"?: string; "lastUri"?: string; + "previousUri"?: string; + "nextUri"?: string; "pageCount"?: number; } diff --git a/build/node_modules/acorn/package.json b/build/node_modules/acorn/package.json index 309e2639..b30264b5 100644 --- a/build/node_modules/acorn/package.json +++ b/build/node_modules/acorn/package.json @@ -33,7 +33,7 @@ "_requiredBy": [ "/rollup-plugin-node-globals" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/acorn/-/acorn-5.7.3.tgz", + "_resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", "_shasum": "67aa231bf8812974b85235a96771eb6bd07ea279", "_shrinkwrap": null, "_spec": "acorn@^5.7.3", diff --git a/build/node_modules/asynckit/package.json b/build/node_modules/asynckit/package.json index 16d97cec..deae7ccb 100644 --- a/build/node_modules/asynckit/package.json +++ b/build/node_modules/asynckit/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/form-data" ], - "_resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/asynckit/-/asynckit-0.4.0.tgz", "_shasum": "c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79", "_shrinkwrap": null, "_spec": "asynckit@^0.4.0", diff --git a/build/node_modules/bl/node_modules/isarray/package.json b/build/node_modules/bl/node_modules/isarray/package.json index 972e9048..bbb1efb5 100644 --- a/build/node_modules/bl/node_modules/isarray/package.json +++ b/build/node_modules/bl/node_modules/isarray/package.json @@ -27,7 +27,7 @@ "_requiredBy": [ "/bl/readable-stream" ], - "_resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/isarray/-/isarray-0.0.1.tgz", "_shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf", "_shrinkwrap": null, "_spec": "isarray@0.0.1", diff --git a/build/node_modules/bl/node_modules/readable-stream/package.json b/build/node_modules/bl/node_modules/readable-stream/package.json index c041afd7..d97e5036 100644 --- a/build/node_modules/bl/node_modules/readable-stream/package.json +++ b/build/node_modules/bl/node_modules/readable-stream/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/bl" ], - "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/readable-stream/-/readable-stream-1.0.34.tgz", "_shasum": "125820e34bc842d2f2aaafafe4c2916ee32c157c", "_shrinkwrap": null, "_spec": "readable-stream@~1.0.26", diff --git a/build/node_modules/bl/node_modules/string_decoder/package.json b/build/node_modules/bl/node_modules/string_decoder/package.json index d4381636..316a1729 100644 --- a/build/node_modules/bl/node_modules/string_decoder/package.json +++ b/build/node_modules/bl/node_modules/string_decoder/package.json @@ -27,7 +27,7 @@ "_requiredBy": [ "/bl/readable-stream" ], - "_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/string_decoder/-/string_decoder-0.10.31.tgz", "_shasum": "62e203bc41766c6c28c9fc84301dab1c5310fa94", "_shrinkwrap": null, "_spec": "string_decoder@~0.10.x", diff --git a/build/node_modules/buffer-from/package.json b/build/node_modules/buffer-from/package.json index 79a5758a..dbd854bc 100644 --- a/build/node_modules/buffer-from/package.json +++ b/build/node_modules/buffer-from/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/concat-stream" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/buffer-from/-/buffer-from-1.1.1.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/buffer-from/-/buffer-from-1.1.1.tgz", "_shasum": "32713bc028f75c02fdb710d7c7bcec1f2c6070ef", "_shrinkwrap": null, "_spec": "buffer-from@^1.0.0", diff --git a/build/node_modules/combined-stream/package.json b/build/node_modules/combined-stream/package.json index 1d271f4a..581a9230 100644 --- a/build/node_modules/combined-stream/package.json +++ b/build/node_modules/combined-stream/package.json @@ -31,7 +31,7 @@ "_requiredBy": [ "/form-data" ], - "_resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/combined-stream/-/combined-stream-1.0.7.tgz", "_shasum": "2d1d24317afb8abe95d6d2c0b07b57813539d828", "_shrinkwrap": null, "_spec": "combined-stream@^1.0.6", diff --git a/build/node_modules/concat-stream/package.json b/build/node_modules/concat-stream/package.json index d1b5ef92..7136d08c 100644 --- a/build/node_modules/concat-stream/package.json +++ b/build/node_modules/concat-stream/package.json @@ -33,7 +33,7 @@ "_requiredBy": [ "/level-filesystem" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/concat-stream/-/concat-stream-1.6.2.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/concat-stream/-/concat-stream-1.6.2.tgz", "_shasum": "904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34", "_shrinkwrap": null, "_spec": "concat-stream@^1.4.4", diff --git a/build/node_modules/core-util-is/package.json b/build/node_modules/core-util-is/package.json index 2b6a1bf0..337af403 100644 --- a/build/node_modules/core-util-is/package.json +++ b/build/node_modules/core-util-is/package.json @@ -32,7 +32,7 @@ "/levelup/readable-stream", "/readable-stream" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/core-util-is/-/core-util-is-1.0.2.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/core-util-is/-/core-util-is-1.0.2.tgz", "_shasum": "b5fd54220aa2bc5ab57aab7140c940754503c1a7", "_shrinkwrap": null, "_spec": "core-util-is@~1.0.0", diff --git a/build/node_modules/debug/package.json b/build/node_modules/debug/package.json index c9ae3e8d..605ccc8b 100644 --- a/build/node_modules/debug/package.json +++ b/build/node_modules/debug/package.json @@ -33,7 +33,7 @@ "_requiredBy": [ "/superagent" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/debug/-/debug-3.2.6.tgz", + "_resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", "_shasum": "e83d17de16d8a7efb7717edbe5fb10135eee629b", "_shrinkwrap": null, "_spec": "debug@^3.1.0", diff --git a/build/node_modules/delayed-stream/package.json b/build/node_modules/delayed-stream/package.json index 354a15fb..103988d4 100644 --- a/build/node_modules/delayed-stream/package.json +++ b/build/node_modules/delayed-stream/package.json @@ -28,7 +28,7 @@ "_requiredBy": [ "/combined-stream" ], - "_resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/delayed-stream/-/delayed-stream-1.0.0.tgz", "_shasum": "df3ae199acadfb7d440aaae0b29e2272b24ec619", "_shrinkwrap": null, "_spec": "delayed-stream@~1.0.0", diff --git a/build/node_modules/estree-walker/CHANGELOG.md b/build/node_modules/estree-walker/CHANGELOG.md index 5e7fd7f9..0642058e 100644 --- a/build/node_modules/estree-walker/CHANGELOG.md +++ b/build/node_modules/estree-walker/CHANGELOG.md @@ -1,5 +1,10 @@ # changelog +## 0.6.0 + +* Fix walker context type +* Update deps, remove unncessary Bublé transformation + ## 0.5.2 * Add types to package diff --git a/build/node_modules/estree-walker/dist/estree-walker.umd.js b/build/node_modules/estree-walker/dist/estree-walker.umd.js index abd5b92f..674765fe 100644 --- a/build/node_modules/estree-walker/dist/estree-walker.umd.js +++ b/build/node_modules/estree-walker/dist/estree-walker.umd.js @@ -4,65 +4,62 @@ (factory((global.estreeWalker = {}))); }(this, (function (exports) { 'use strict'; -function walk ( ast, ref) { - var enter = ref.enter; - var leave = ref.leave; + function walk(ast, { enter, leave }) { + visit(ast, null, enter, leave); + } - visit( ast, null, enter, leave ); -} + let shouldSkip = false; + const context = { skip: () => shouldSkip = true }; -var shouldSkip = false; -var context = { skip: function () { return shouldSkip = true; } }; + const childKeys = {}; -var childKeys = {}; + const toString = Object.prototype.toString; -var toString = Object.prototype.toString; + function isArray(thing) { + return toString.call(thing) === '[object Array]'; + } -function isArray ( thing ) { - return toString.call( thing ) === '[object Array]'; -} + function visit(node, parent, enter, leave, prop, index) { + if (!node) return; -function visit ( node, parent, enter, leave, prop, index ) { - if ( !node ) { return; } + if (enter) { + const _shouldSkip = shouldSkip; + shouldSkip = false; + enter.call(context, node, parent, prop, index); + const skipped = shouldSkip; + shouldSkip = _shouldSkip; - if ( enter ) { - var _shouldSkip = shouldSkip; - shouldSkip = false; - enter.call( context, node, parent, prop, index ); - var skipped = shouldSkip; - shouldSkip = _shouldSkip; + if (skipped) return; + } - if ( skipped ) { return; } - } + const keys = childKeys[node.type] || ( + childKeys[node.type] = Object.keys(node).filter(key => typeof node[key] === 'object') + ); - var keys = childKeys[ node.type ] || ( - childKeys[ node.type ] = Object.keys( node ).filter( function (key) { return typeof node[ key ] === 'object'; } ) - ); + for (let i = 0; i < keys.length; i += 1) { + const key = keys[i]; + const value = node[key]; - for ( var i = 0; i < keys.length; i += 1 ) { - var key = keys[i]; - var value = node[ key ]; + if (isArray(value)) { + for (let j = 0; j < value.length; j += 1) { + visit(value[j], node, enter, leave, key, j); + } + } - if ( isArray( value ) ) { - for ( var j = 0; j < value.length; j += 1 ) { - visit( value[j], node, enter, leave, key, j ); + else if (value && value.type) { + visit(value, node, enter, leave, key, null); } } - else if ( value && value.type ) { - visit( value, node, enter, leave, key, null ); + if (leave) { + leave(node, parent, prop, index); } } - if ( leave ) { - leave( node, parent, prop, index ); - } -} - -exports.walk = walk; -exports.childKeys = childKeys; + exports.walk = walk; + exports.childKeys = childKeys; -Object.defineProperty(exports, '__esModule', { value: true }); + Object.defineProperty(exports, '__esModule', { value: true }); }))); //# sourceMappingURL=estree-walker.umd.js.map diff --git a/build/node_modules/estree-walker/dist/estree-walker.umd.js.map b/build/node_modules/estree-walker/dist/estree-walker.umd.js.map index da7a8b2d..7ea22970 100644 --- a/build/node_modules/estree-walker/dist/estree-walker.umd.js.map +++ b/build/node_modules/estree-walker/dist/estree-walker.umd.js.map @@ -1 +1 @@ -{"version":3,"file":"estree-walker.umd.js","sources":["../src/estree-walker.js"],"sourcesContent":["export function walk ( ast, { enter, leave }) {\n\tvisit( ast, null, enter, leave );\n}\n\nlet shouldSkip = false;\nconst context = { skip: () => shouldSkip = true };\n\nexport const childKeys = {};\n\nconst toString = Object.prototype.toString;\n\nfunction isArray ( thing ) {\n\treturn toString.call( thing ) === '[object Array]';\n}\n\nfunction visit ( node, parent, enter, leave, prop, index ) {\n\tif ( !node ) return;\n\n\tif ( enter ) {\n\t\tlet _shouldSkip = shouldSkip;\n\t\tshouldSkip = false;\n\t\tenter.call( context, node, parent, prop, index );\n\t\tconst skipped = shouldSkip;\n\t\tshouldSkip = _shouldSkip;\n\n\t\tif ( skipped ) return;\n\t}\n\n\tconst keys = childKeys[ node.type ] || (\n\t\tchildKeys[ node.type ] = Object.keys( node ).filter( key => typeof node[ key ] === 'object' )\n\t);\n\n\tfor ( let i = 0; i < keys.length; i += 1 ) {\n\t\tconst key = keys[i];\n\t\tconst value = node[ key ];\n\n\t\tif ( isArray( value ) ) {\n\t\t\tfor ( let j = 0; j < value.length; j += 1 ) {\n\t\t\t\tvisit( value[j], node, enter, leave, key, j );\n\t\t\t}\n\t\t}\n\n\t\telse if ( value && value.type ) {\n\t\t\tvisit( value, node, enter, leave, key, null );\n\t\t}\n\t}\n\n\tif ( leave ) {\n\t\tleave( node, parent, prop, index );\n\t}\n}\n"],"names":["let","const"],"mappings":";;;;;;AAAO,SAAS,IAAI,GAAG,GAAG,EAAE,GAAA,EAAkB;KAAhB,KAAK,aAAE;KAAA,KAAK;;CACzC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;CACjC;;AAEDA,IAAI,UAAU,GAAG,KAAK,CAAC;AACvBC,IAAM,OAAO,GAAG,EAAE,IAAI,EAAE,YAAG,SAAG,UAAU,GAAG,IAAI,GAAA,EAAE,CAAC;;AAElD,AAAOA,IAAM,SAAS,GAAG,EAAE,CAAC;;AAE5BA,IAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;;AAE3C,SAAS,OAAO,GAAG,KAAK,GAAG;CAC1B,OAAO,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,gBAAgB,CAAC;CACnD;;AAED,SAAS,KAAK,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,GAAG;CAC1D,KAAK,CAAC,IAAI,GAAG,EAAA,OAAO,EAAA;;CAEpB,KAAK,KAAK,GAAG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E,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;EACnC;CACD;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"estree-walker.umd.js","sources":["../src/estree-walker.js"],"sourcesContent":["export function walk(ast, { enter, leave }) {\n\tvisit(ast, null, enter, leave);\n}\n\nlet shouldSkip = false;\nconst context = { skip: () => shouldSkip = true };\n\nexport const childKeys = {};\n\nconst toString = Object.prototype.toString;\n\nfunction isArray(thing) {\n\treturn toString.call(thing) === '[object Array]';\n}\n\nfunction visit(node, parent, enter, leave, prop, index) {\n\tif (!node) return;\n\n\tif (enter) {\n\t\tconst _shouldSkip = shouldSkip;\n\t\tshouldSkip = false;\n\t\tenter.call(context, node, parent, prop, index);\n\t\tconst skipped = shouldSkip;\n\t\tshouldSkip = _shouldSkip;\n\n\t\tif (skipped) return;\n\t}\n\n\tconst keys = childKeys[node.type] || (\n\t\tchildKeys[node.type] = Object.keys(node).filter(key => typeof node[key] === 'object')\n\t);\n\n\tfor (let i = 0; i < keys.length; i += 1) {\n\t\tconst key = keys[i];\n\t\tconst value = node[key];\n\n\t\tif (isArray(value)) {\n\t\t\tfor (let j = 0; j < value.length; j += 1) {\n\t\t\t\tvisit(value[j], node, enter, leave, key, j);\n\t\t\t}\n\t\t}\n\n\t\telse if (value && value.type) {\n\t\t\tvisit(value, node, enter, leave, key, null);\n\t\t}\n\t}\n\n\tif (leave) {\n\t\tleave(node, parent, prop, index);\n\t}\n}\n"],"names":[],"mappings":";;;;;;CAAO,SAAS,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;CAC5C,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;CAChC,CAAC;;CAED,IAAI,UAAU,GAAG,KAAK,CAAC;CACvB,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,MAAM,UAAU,GAAG,IAAI,EAAE,CAAC;;AAElD,AAAY,OA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AAE;CACtB,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;CAC7C,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;CAChD,IAAI;CACJ,GAAG;;CAEH,OAAO,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE;CAChC,GAAG,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;CAC/C,GAAG;CACH,EAAE;;CAEF,CAAC,IAAI,KAAK,EAAE;CACZ,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;CACnC,EAAE;CACF,CAAC;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/build/node_modules/estree-walker/index.d.ts b/build/node_modules/estree-walker/index.d.ts index e4d0764c..37fe76a0 100644 --- a/build/node_modules/estree-walker/index.d.ts +++ b/build/node_modules/estree-walker/index.d.ts @@ -6,7 +6,17 @@ declare module "estree-walker" { [propName: string]: any; } - export type WalkerListener = (node: Node, parent?: Node, prop?: string, index?: number) => void; + export type WalkerContext = { + skip: () => void; + }; + + export type WalkerListener = ( + this: WalkerContext, + node: Node, + parent?: Node, + prop?: string, + index?: number + ) => void; export interface WalkerOptions { enter?: WalkerListener; diff --git a/build/node_modules/estree-walker/package.json b/build/node_modules/estree-walker/package.json index cf13b263..b657ba52 100644 --- a/build/node_modules/estree-walker/package.json +++ b/build/node_modules/estree-walker/package.json @@ -1,43 +1,43 @@ { "_args": [ [ - "estree-walker@^0.5.2", + "estree-walker@^0.6.0", "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build/node_modules/rollup-plugin-commonjs" ] ], - "_from": "estree-walker@>=0.5.2 <0.6.0", + "_from": "estree-walker@>=0.6.0 <0.7.0", "_hasShrinkwrap": false, - "_id": "estree-walker@0.5.2", + "_id": "estree-walker@0.6.0", "_inCache": true, "_installable": true, "_location": "/estree-walker", - "_nodeVersion": "9.11.1", + "_nodeVersion": "10.9.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", - "tmp": "tmp/estree-walker_0.5.2_1525470900105_0.15095569501843786" + "tmp": "tmp/estree-walker_0.6.0_1542898238765_0.8611649164733006" }, "_npmUser": { "email": "richard.a.harris@gmail.com", "name": "rich_harris" }, - "_npmVersion": "5.6.0", + "_npmVersion": "6.2.0", "_phantomChildren": {}, "_requested": { "name": "estree-walker", - "raw": "estree-walker@^0.5.2", - "rawSpec": "^0.5.2", + "raw": "estree-walker@^0.6.0", + "rawSpec": "^0.6.0", "scope": null, - "spec": ">=0.5.2 <0.6.0", + "spec": ">=0.6.0 <0.7.0", "type": "range" }, "_requiredBy": [ "/rollup-plugin-commonjs", - "/rollup-plugin-node-globals" + "/rollup-pluginutils" ], - "_resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.5.2.tgz", - "_shasum": "d3850be7529c9580d815600b53126515e146dd39", + "_resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.0.tgz", + "_shasum": "5d865327c44a618dde5699f763891ae31f257dae", "_shrinkwrap": null, - "_spec": "estree-walker@^0.5.2", + "_spec": "estree-walker@^0.6.0", "_where": "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build/node_modules/rollup-plugin-commonjs", "author": { "name": "Rich Harris" @@ -48,30 +48,20 @@ "dependencies": {}, "description": "Traverse an ESTree-compliant AST", "devDependencies": { - "buble": "^0.15.2", - "eslint": "^4.5.0", - "mocha": "^3.5.0", - "rollup": "^0.48.0", - "rollup-plugin-buble": "^0.15.0" + "mocha": "^5.2.0", + "rollup": "^0.67.3" }, "directories": {}, "dist": { - "fileCount": 9, - "integrity": "sha512-XpCnW/AE10ws/kDAs37cngSkvgIR8aN3G0MS85m7dUpuK2EREo9VJ00uvw6Dg/hXEpfsE1I1TvJOJr+Z+TL+ig==", - "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7Na0CRA9TVsSAnZWagAAtw0QAJkHArGAI8bVNSXTjjoL\nHptjfp8rmWP/sdUVgssQSAD3qQC7HA2efQH8eksB9mpLsAMyD/q4lsc/+nxV\nib3+V9giIGN+U10FBHsowqpHPmcDrT2ILM1yH1jBK9Xr5DyXxVZJIiCInzl7\nylKVgJETUGSfrAiDGBY40iU5mF6n/m3jky1JuuX1p9aIROhPnst9ZuEiXxoW\nccGFISzZuvusU41K2ifHh3+h0IsfgJYVFz6y/gX3TAS1XfV4d+Smy98s/s75\nWvN7xd66a9DVsA+wjMHQa1DNoUCKiqmYncQowxOxwC4iZn7QrGn8J9s0AB4g\nXLpSRv/JrwYm7YQ+2n0jaqWWheVNCEjMkWD32up1y7j0huVOxY+HmQKKwPDa\n/QngMgPQ5fEIvFcqdLLQtfxvohZcHbpzEEA0ldkk2zMEZ4wlux3fcHQtruBX\n/pH6vs3MMrq6cYUxoDgKQcIWcSj2W44hLbeBdbGVWz8I9T34i+lEv74LZUzF\nDkakG7xiJZH6Y+449zci5A7toBHWH5L+UAc4AQmTAcf6WLQ28P/oywWLcRSf\nLrnK666cay60iRYSovOOEX1Am0D+sb0N8zptU4blTC4Fl2zilFGw7okKguMH\n16X9mVM65sNqCGO7aU5M815Cm72NT1j/OfjgyanNpr5M5+2f+UGYO3a8VgYS\nI12a\r\n=RQM8\r\n-----END PGP SIGNATURE-----\r\n", - "shasum": "d3850be7529c9580d815600b53126515e146dd39", - "tarball": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.5.2.tgz", - "unpackedSize": 13503 + "fileCount": 7, + "integrity": "sha512-peq1RfVAVzr3PU/jL31RaOjUKLoZJpObQWJJ+LgfcxDUifyLZ1RjPQZTl0pzj2uJ45b7A7XpyppXvxdEqzo4rw==", + "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9sI/CRA9TVsSAnZWagAADOQQAIOrJ/hLFiN7nfqNyfz4\nqinXr3Ls5SG9gB3mNSMxlKmvaW90Py6Q2896Ctc2xbMKpUhsRLNSzbPHg+L7\nh4JypMHfG614lbGkU17kkd4YQgdTtjoKuEVt3ZN2zc+GCf7yt3pJ3QBKv2RN\n8zy+RkEWjlwR8LqcmUxnYbW11c+kZIL+ffgCD76Sjk41NydmG8TxkyEBwYTe\naO6VgimqsMJ95hpa75V5VkGYXglk4gVqgAu93fvogB+qm3UYAdOu6IyiR4yU\nADHZGziz9QiZI0NdHzU1pGBn08XIwLy6abESBfiH5Qy498M6PWYTwYc9BJ5z\nl4ZK1SE4XNXyIJXY16NcpVD4kNRR2nSABCRHgx9kWdLV3fZynOhMEjxP7e4f\noNi5Q5RGEbbr0fMK+SS3/vgXm9ftjuhY+NP8eF5N3R7wxScRSbCcJqQri49x\nI5QwvpJTAEeEuLcHzaxaOy7b1XF70DtDUEXHtFI4OSZW9IQNy6k0TnMF5Djw\n2lT4ZNwsL6gJTgqANdWJa3Tp2EWPtqVdOL7Be4llymovHbJNQqjB6iPDPOPR\n/sKpHzSSK/2mSK5rl5GOObUw9ofQUmmZOKhuoFZvKeYqGbYkoCAdY91eV03s\nYcl75A2FkbEemrGYHeHqFOSVXZOnP0pgiD1Tp1JxaO/YtO2thcaXAjdWCMgP\nWCjp\r\n=rmlV\r\n-----END PGP SIGNATURE-----\r\n", + "shasum": "5d865327c44a618dde5699f763891ae31f257dae", + "tarball": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.0.tgz", + "unpackedSize": 9073 }, - "files": [ - "src", - "dist", - "index.d.ts", - "README.md" - ], - "gitHead": "0bf66c1ee6cba4905d99f74dc2d1d2ed5cf38b9b", + "gitHead": "8ecc0d48a923ae2048db357b1eb448f64bc3c430", "homepage": "https://github.com/Rich-Harris/estree-walker#readme", - "jsnext:main": "dist/estree-walker.es.js", "license": "MIT", "main": "dist/estree-walker.umd.js", "maintainers": [ @@ -80,7 +70,7 @@ "name": "rich_harris" } ], - "module": "dist/estree-walker.es.js", + "module": "src/estree-walker.js", "name": "estree-walker", "optionalDependencies": {}, "readme": "ERROR: No README data found!", @@ -90,11 +80,10 @@ }, "scripts": { "build": "rollup -c", - "lint": "eslint src", - "prepublish": "npm run lint && npm test", + "prepublishOnly": "npm test", "pretest": "npm run build", - "test": "mocha test/test.js --compilers js:buble/register" + "test": "mocha test/test.js" }, "typings": "index.d.ts", - "version": "0.5.2" + "version": "0.6.0" } diff --git a/build/node_modules/estree-walker/src/estree-walker.js b/build/node_modules/estree-walker/src/estree-walker.js index 5630829d..a3af66d6 100644 --- a/build/node_modules/estree-walker/src/estree-walker.js +++ b/build/node_modules/estree-walker/src/estree-walker.js @@ -1,5 +1,5 @@ -export function walk ( ast, { enter, leave }) { - visit( ast, null, enter, leave ); +export function walk(ast, { enter, leave }) { + visit(ast, null, enter, leave); } let shouldSkip = false; @@ -9,43 +9,43 @@ export const childKeys = {}; const toString = Object.prototype.toString; -function isArray ( thing ) { - return toString.call( thing ) === '[object Array]'; +function isArray(thing) { + return toString.call(thing) === '[object Array]'; } -function visit ( node, parent, enter, leave, prop, index ) { - if ( !node ) return; +function visit(node, parent, enter, leave, prop, index) { + if (!node) return; - if ( enter ) { - let _shouldSkip = shouldSkip; + if (enter) { + const _shouldSkip = shouldSkip; shouldSkip = false; - enter.call( context, node, parent, prop, index ); + enter.call(context, node, parent, prop, index); const skipped = shouldSkip; shouldSkip = _shouldSkip; - if ( skipped ) return; + if (skipped) return; } - const keys = childKeys[ node.type ] || ( - childKeys[ node.type ] = Object.keys( node ).filter( key => typeof node[ key ] === 'object' ) + const keys = childKeys[node.type] || ( + childKeys[node.type] = Object.keys(node).filter(key => typeof node[key] === 'object') ); - for ( let i = 0; i < keys.length; i += 1 ) { + for (let i = 0; i < keys.length; i += 1) { const key = keys[i]; - const value = node[ key ]; + const value = node[key]; - if ( isArray( value ) ) { - for ( let j = 0; j < value.length; j += 1 ) { - visit( value[j], node, enter, leave, key, j ); + if (isArray(value)) { + for (let j = 0; j < value.length; j += 1) { + visit(value[j], node, enter, leave, key, j); } } - else if ( value && value.type ) { - visit( value, node, enter, leave, key, null ); + else if (value && value.type) { + visit(value, node, enter, leave, key, null); } } - if ( leave ) { - leave( node, parent, prop, index ); + if (leave) { + leave(node, parent, prop, index); } } diff --git a/build/node_modules/expand-brackets/node_modules/debug/package.json b/build/node_modules/expand-brackets/node_modules/debug/package.json index aabc9545..16cfe7a4 100644 --- a/build/node_modules/expand-brackets/node_modules/debug/package.json +++ b/build/node_modules/expand-brackets/node_modules/debug/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/expand-brackets" ], - "_resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/debug/-/debug-2.6.9.tgz", "_shasum": "5d128515df134ff327e90a4c93f4e077a536341f", "_shrinkwrap": null, "_spec": "debug@^2.3.3", diff --git a/build/node_modules/expand-brackets/node_modules/ms/package.json b/build/node_modules/expand-brackets/node_modules/ms/package.json index ccaed6fe..f253531d 100644 --- a/build/node_modules/expand-brackets/node_modules/ms/package.json +++ b/build/node_modules/expand-brackets/node_modules/ms/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/expand-brackets/debug" ], - "_resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/ms/-/ms-2.0.0.tgz", "_shasum": "5608aeadfc00be6c2901df5f9861788de0d597c8", "_shrinkwrap": null, "_spec": "ms@2.0.0", diff --git a/build/node_modules/extend/package.json b/build/node_modules/extend/package.json index 46afa74b..b02c1f2b 100644 --- a/build/node_modules/extend/package.json +++ b/build/node_modules/extend/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/superagent" ], - "_resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/extend/-/extend-3.0.2.tgz", "_shasum": "f8b1136b4071fbd8eb140aff858b1019ec2915fa", "_shrinkwrap": null, "_spec": "extend@^3.0.0", diff --git a/build/node_modules/form-data/package.json b/build/node_modules/form-data/package.json index 71a0c31d..79acb853 100644 --- a/build/node_modules/form-data/package.json +++ b/build/node_modules/form-data/package.json @@ -33,7 +33,7 @@ "_requiredBy": [ "/superagent" ], - "_resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/form-data/-/form-data-2.3.3.tgz", "_shasum": "dcce52c05f644f298c6a7ab936bd724ceffbf3a6", "_shrinkwrap": null, "_spec": "form-data@^2.3.1", diff --git a/build/node_modules/fwd-stream/node_modules/isarray/package.json b/build/node_modules/fwd-stream/node_modules/isarray/package.json index 43e4b4e6..4ecd14a4 100644 --- a/build/node_modules/fwd-stream/node_modules/isarray/package.json +++ b/build/node_modules/fwd-stream/node_modules/isarray/package.json @@ -27,7 +27,7 @@ "_requiredBy": [ "/fwd-stream/readable-stream" ], - "_resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/isarray/-/isarray-0.0.1.tgz", "_shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf", "_shrinkwrap": null, "_spec": "isarray@0.0.1", diff --git a/build/node_modules/fwd-stream/node_modules/readable-stream/package.json b/build/node_modules/fwd-stream/node_modules/readable-stream/package.json index c440a431..6275c0f1 100644 --- a/build/node_modules/fwd-stream/node_modules/readable-stream/package.json +++ b/build/node_modules/fwd-stream/node_modules/readable-stream/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/fwd-stream" ], - "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/readable-stream/-/readable-stream-1.0.34.tgz", "_shasum": "125820e34bc842d2f2aaafafe4c2916ee32c157c", "_shrinkwrap": null, "_spec": "readable-stream@~1.0.26-4", diff --git a/build/node_modules/fwd-stream/node_modules/string_decoder/package.json b/build/node_modules/fwd-stream/node_modules/string_decoder/package.json index 6ae6810e..7b5e506b 100644 --- a/build/node_modules/fwd-stream/node_modules/string_decoder/package.json +++ b/build/node_modules/fwd-stream/node_modules/string_decoder/package.json @@ -27,7 +27,7 @@ "_requiredBy": [ "/fwd-stream/readable-stream" ], - "_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/string_decoder/-/string_decoder-0.10.31.tgz", "_shasum": "62e203bc41766c6c28c9fc84301dab1c5310fa94", "_shrinkwrap": null, "_spec": "string_decoder@~0.10.x", diff --git a/build/node_modules/inherits/package.json b/build/node_modules/inherits/package.json index c7261dd3..ea126074 100644 --- a/build/node_modules/inherits/package.json +++ b/build/node_modules/inherits/package.json @@ -54,7 +54,7 @@ "/sha.js", "/util" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/inherits/-/inherits-2.0.3.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/inherits/-/inherits-2.0.3.tgz", "_shasum": "633c2c83e3da42a502f52466022480f4208261de", "_shrinkwrap": null, "_spec": "inherits@~2.0.3", diff --git a/build/node_modules/level-blobs/node_modules/isarray/package.json b/build/node_modules/level-blobs/node_modules/isarray/package.json index 578626b5..b0544c05 100644 --- a/build/node_modules/level-blobs/node_modules/isarray/package.json +++ b/build/node_modules/level-blobs/node_modules/isarray/package.json @@ -27,7 +27,7 @@ "_requiredBy": [ "/level-blobs/readable-stream" ], - "_resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/isarray/-/isarray-0.0.1.tgz", "_shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf", "_shrinkwrap": null, "_spec": "isarray@0.0.1", diff --git a/build/node_modules/level-blobs/node_modules/readable-stream/package.json b/build/node_modules/level-blobs/node_modules/readable-stream/package.json index 0aacefa5..785148f7 100644 --- a/build/node_modules/level-blobs/node_modules/readable-stream/package.json +++ b/build/node_modules/level-blobs/node_modules/readable-stream/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/level-blobs" ], - "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/readable-stream/-/readable-stream-1.1.14.tgz", "_shasum": "7cf4c54ef648e3813084c636dd2079e166c081d9", "_shrinkwrap": null, "_spec": "readable-stream@^1.0.26-4", diff --git a/build/node_modules/level-blobs/node_modules/string_decoder/package.json b/build/node_modules/level-blobs/node_modules/string_decoder/package.json index 75a8b766..7bde83df 100644 --- a/build/node_modules/level-blobs/node_modules/string_decoder/package.json +++ b/build/node_modules/level-blobs/node_modules/string_decoder/package.json @@ -27,7 +27,7 @@ "_requiredBy": [ "/level-blobs/readable-stream" ], - "_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/string_decoder/-/string_decoder-0.10.31.tgz", "_shasum": "62e203bc41766c6c28c9fc84301dab1c5310fa94", "_shrinkwrap": null, "_spec": "string_decoder@~0.10.x", diff --git a/build/node_modules/levelup/node_modules/isarray/package.json b/build/node_modules/levelup/node_modules/isarray/package.json index f7260d0e..c7939ce4 100644 --- a/build/node_modules/levelup/node_modules/isarray/package.json +++ b/build/node_modules/levelup/node_modules/isarray/package.json @@ -27,7 +27,7 @@ "_requiredBy": [ "/levelup/readable-stream" ], - "_resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/isarray/-/isarray-0.0.1.tgz", "_shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf", "_shrinkwrap": null, "_spec": "isarray@0.0.1", diff --git a/build/node_modules/levelup/node_modules/readable-stream/package.json b/build/node_modules/levelup/node_modules/readable-stream/package.json index cdd2465b..6ecbfa5d 100644 --- a/build/node_modules/levelup/node_modules/readable-stream/package.json +++ b/build/node_modules/levelup/node_modules/readable-stream/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/levelup" ], - "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/readable-stream/-/readable-stream-1.0.34.tgz", "_shasum": "125820e34bc842d2f2aaafafe4c2916ee32c157c", "_shrinkwrap": null, "_spec": "readable-stream@~1.0.26", diff --git a/build/node_modules/levelup/node_modules/string_decoder/package.json b/build/node_modules/levelup/node_modules/string_decoder/package.json index 8bfb5f65..65b56fc1 100644 --- a/build/node_modules/levelup/node_modules/string_decoder/package.json +++ b/build/node_modules/levelup/node_modules/string_decoder/package.json @@ -27,7 +27,7 @@ "_requiredBy": [ "/levelup/readable-stream" ], - "_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/string_decoder/-/string_decoder-0.10.31.tgz", "_shasum": "62e203bc41766c6c28c9fc84301dab1c5310fa94", "_shrinkwrap": null, "_spec": "string_decoder@~0.10.x", diff --git a/build/node_modules/lru-cache/package.json b/build/node_modules/lru-cache/package.json index 0983425f..8ff6507e 100644 --- a/build/node_modules/lru-cache/package.json +++ b/build/node_modules/lru-cache/package.json @@ -28,7 +28,7 @@ "_requiredBy": [ "/minimatch" ], - "_resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/lru-cache/-/lru-cache-2.7.3.tgz", "_shasum": "6d4524e8b955f95d4f5b58851ce21dd72fb4e952", "_shrinkwrap": null, "_spec": "lru-cache@2", diff --git a/build/node_modules/magic-string/package.json b/build/node_modules/magic-string/package.json index 84271bed..29bcc02b 100644 --- a/build/node_modules/magic-string/package.json +++ b/build/node_modules/magic-string/package.json @@ -1,11 +1,11 @@ { "_args": [ [ - "magic-string@^0.25.1", + "magic-string@^0.25.2", "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build/node_modules/rollup-plugin-commonjs" ] ], - "_from": "magic-string@>=0.25.1 <0.26.0", + "_from": "magic-string@>=0.25.2 <0.26.0", "_hasShrinkwrap": false, "_id": "magic-string@0.25.2", "_inCache": true, @@ -24,10 +24,10 @@ "_phantomChildren": {}, "_requested": { "name": "magic-string", - "raw": "magic-string@^0.25.1", - "rawSpec": "^0.25.1", + "raw": "magic-string@^0.25.2", + "rawSpec": "^0.25.2", "scope": null, - "spec": ">=0.25.1 <0.26.0", + "spec": ">=0.25.2 <0.26.0", "type": "range" }, "_requiredBy": [ @@ -36,7 +36,7 @@ "_resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.2.tgz", "_shasum": "139c3a729515ec55e96e69e82a11fe890a293ad9", "_shrinkwrap": null, - "_spec": "magic-string@^0.25.1", + "_spec": "magic-string@^0.25.2", "_where": "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build/node_modules/rollup-plugin-commonjs", "author": { "name": "Rich Harris" diff --git a/build/node_modules/mime-db/package.json b/build/node_modules/mime-db/package.json index 5d880bf4..ad875930 100644 --- a/build/node_modules/mime-db/package.json +++ b/build/node_modules/mime-db/package.json @@ -33,7 +33,7 @@ "_requiredBy": [ "/mime-types" ], - "_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/mime-db/-/mime-db-1.38.0.tgz", "_shasum": "1a2aab16da9eb167b49c6e4df2d9c68d63d8e2ad", "_shrinkwrap": null, "_spec": "mime-db@~1.38.0", diff --git a/build/node_modules/mime-types/package.json b/build/node_modules/mime-types/package.json index 22639733..1818e3c6 100644 --- a/build/node_modules/mime-types/package.json +++ b/build/node_modules/mime-types/package.json @@ -33,7 +33,7 @@ "_requiredBy": [ "/form-data" ], - "_resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/mime-types/-/mime-types-2.1.22.tgz", "_shasum": "fe6b355a190926ab7698c9a0556a11199b2199bd", "_shrinkwrap": null, "_spec": "mime-types@^2.1.12", diff --git a/build/node_modules/minimatch/package.json b/build/node_modules/minimatch/package.json index 560e8098..ad7d84d1 100644 --- a/build/node_modules/minimatch/package.json +++ b/build/node_modules/minimatch/package.json @@ -27,7 +27,7 @@ "_requiredBy": [ "/glob" ], - "_resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/minimatch/-/minimatch-0.2.14.tgz", "_shasum": "c74e780574f63c6f9a090e90efbe6ef53a6a756a", "_shrinkwrap": null, "_spec": "minimatch@~0.2.11", diff --git a/build/node_modules/ms/package.json b/build/node_modules/ms/package.json index 0d6b1ad1..049379f2 100644 --- a/build/node_modules/ms/package.json +++ b/build/node_modules/ms/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/debug" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/ms/-/ms-2.1.1.tgz", + "_resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", "_shasum": "30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a", "_shrinkwrap": null, "_spec": "ms@^2.1.1", diff --git a/build/node_modules/once/package.json b/build/node_modules/once/package.json index c93da788..88417176 100644 --- a/build/node_modules/once/package.json +++ b/build/node_modules/once/package.json @@ -33,7 +33,7 @@ "/level-blobs", "/level-filesystem" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/once/-/once-1.4.0.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/once/-/once-1.4.0.tgz", "_shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1", "_shrinkwrap": null, "_spec": "once@^1.3.0", diff --git a/build/node_modules/process-nextick-args/package.json b/build/node_modules/process-nextick-args/package.json index 670b3bae..d616b664 100644 --- a/build/node_modules/process-nextick-args/package.json +++ b/build/node_modules/process-nextick-args/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/readable-stream" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/process-nextick-args/-/process-nextick-args-2.0.0.tgz", "_shasum": "a37d732f4271b4ab1ad070d35508e8290788ffaa", "_shrinkwrap": null, "_spec": "process-nextick-args@~2.0.0", diff --git a/build/node_modules/qs/.editorconfig b/build/node_modules/qs/.editorconfig index b2654e7a..a4893ddf 100644 --- a/build/node_modules/qs/.editorconfig +++ b/build/node_modules/qs/.editorconfig @@ -7,7 +7,7 @@ end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true -max_line_length = 140 +max_line_length = 160 [test/*] max_line_length = off diff --git a/build/node_modules/qs/CHANGELOG.md b/build/node_modules/qs/CHANGELOG.md index 13e2c77c..50505c46 100644 --- a/build/node_modules/qs/CHANGELOG.md +++ b/build/node_modules/qs/CHANGELOG.md @@ -1,3 +1,17 @@ +## **6.7.0** +- [New] `stringify`/`parse`: add `comma` as an `arrayFormat` option (#276, #219) +- [Fix] correctly parse nested arrays (#212) +- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source, also with an array source +- [Robustness] `stringify`: cache `Object.prototype.hasOwnProperty` +- [Refactor] `utils`: `isBuffer`: small tweak; add tests +- [Refactor] use cached `Array.isArray` +- [Refactor] `parse`/`stringify`: make a function to normalize the options +- [Refactor] `utils`: reduce observable [[Get]]s +- [Refactor] `stringify`/`utils`: cache `Array.isArray` +- [Tests] always use `String(x)` over `x.toString()` +- [Tests] fix Buffer tests to work in node < 4.5 and node < 5.10 +- [Tests] temporarily allow coverage to fail + ## **6.6.0** - [New] Add support for iso-8859-1, utf8 "sentinel" and numeric entities (#268) - [New] move two-value combine to a `utils` function (#189) @@ -11,7 +25,7 @@ - [Refactor] add missing defaults - [Refactor] `parse`: one less `concat` call - [Refactor] `utils`: `compactQueue`: make it explicitly side-effecting -- [Dev Deps] update `browserify, `eslint`, `@ljharb/eslint-config`, `iconv-lite`, `safe-publish-latest`, `tape` +- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`, `iconv-lite`, `safe-publish-latest`, `tape` - [Tests] up to `node` `v10.10`, `v9.11`, `v8.12`, `v6.14`, `v4.9`; pin included builds to LTS ## **6.5.2** diff --git a/build/node_modules/qs/README.md b/build/node_modules/qs/README.md index 7fbe063a..8590cfd3 100644 --- a/build/node_modules/qs/README.md +++ b/build/node_modules/qs/README.md @@ -238,7 +238,7 @@ assert.deepEqual(withIndexedEmptyString, { a: ['b', '', 'c'] }); ``` **qs** will also limit specifying indices in an array to a maximum index of `20`. Any array members with an index of greater than `20` will -instead be converted to an object with the index as the key: +instead be converted to an object with the index as the key. This is needed to handle cases when someone sent, for example, `a[999999999]` and it will take significant time to iterate over this huge array. ```javascript var withMaxIndex = qs.parse('a[100]=b'); @@ -273,6 +273,13 @@ var arraysOfObjects = qs.parse('a[][b]=c'); assert.deepEqual(arraysOfObjects, { a: [{ b: 'c' }] }); ``` +Some people use comma to join array, **qs** can parse it: +```javascript +var arraysOfObjects = qs.parse('a=b,c', { comma: true }) +assert.deepEqual(arraysOfObjects, { a: ['b', 'c'] }) +``` +(_this cannot convert nested objects, such as `a={b:1},{c:d}`_) + ### Stringifying [](#preventEval) @@ -348,6 +355,8 @@ qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' }) // 'a[]=b&a[]=c' qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' }) // 'a=b&a=c' +qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'comma' }) +// 'a=b,c' ``` When objects are stringified, by default they use bracket notation: diff --git a/build/node_modules/qs/dist/qs.js b/build/node_modules/qs/dist/qs.js index b9482991..17f4e600 100644 --- a/build/node_modules/qs/dist/qs.js +++ b/build/node_modules/qs/dist/qs.js @@ -44,6 +44,7 @@ var defaults = { arrayLimit: 20, charset: 'utf-8', charsetSentinel: false, + comma: false, decoder: utils.decode, delimiter: '&', depth: 5, @@ -115,6 +116,11 @@ var parseValues = function parseQueryStringValues(str, options) { if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { val = interpretNumericEntities(val); } + + if (val && options.comma && val.indexOf(',') > -1) { + val = val.split(','); + } + if (has.call(obj, key)) { obj[key] = utils.combine(obj[key], val); } else { @@ -214,31 +220,41 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options) { return parseObject(keys, val, options); }; -module.exports = function (str, opts) { - var options = opts ? utils.assign({}, opts) : {}; +var normalizeParseOptions = function normalizeParseOptions(opts) { + if (!opts) { + return defaults; + } - if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') { + if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { throw new TypeError('Decoder has to be a function.'); } - options.ignoreQueryPrefix = options.ignoreQueryPrefix === true; - options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter; - options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth; - options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit; - options.parseArrays = options.parseArrays !== false; - options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder; - options.allowDots = typeof options.allowDots === 'undefined' ? defaults.allowDots : !!options.allowDots; - options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects; - options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes; - options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit; - options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling; - - if (typeof options.charset !== 'undefined' && options.charset !== 'utf-8' && options.charset !== 'iso-8859-1') { + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { throw new Error('The charset option must be either utf-8, iso-8859-1, or undefined'); } - if (typeof options.charset === 'undefined') { - options.charset = defaults.charset; - } + var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; + + return { + allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, + allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, + arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, + decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, + delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, + depth: typeof opts.depth === 'number' ? opts.depth : defaults.depth, + ignoreQueryPrefix: opts.ignoreQueryPrefix === true, + interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, + parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, + parseArrays: opts.parseArrays !== false, + plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; + +module.exports = function (str, opts) { + var options = normalizeParseOptions(opts); if (str === '' || str === null || typeof str === 'undefined') { return options.plainObjects ? Object.create(null) : {}; @@ -264,11 +280,13 @@ module.exports = function (str, opts) { var utils = require('./utils'); var formats = require('./formats'); +var has = Object.prototype.hasOwnProperty; var arrayPrefixGenerators = { brackets: function brackets(prefix) { // eslint-disable-line func-name-matching return prefix + '[]'; }, + comma: 'comma', indices: function indices(prefix, key) { // eslint-disable-line func-name-matching return prefix + '[' + key + ']'; }, @@ -294,6 +312,7 @@ var defaults = { encode: true, encoder: utils.encode, encodeValuesOnly: false, + formatter: formats.formatters[formats['default']], // deprecated indices: false, serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching @@ -323,6 +342,8 @@ var stringify = function stringify( // eslint-disable-line func-name-matching obj = filter(prefix, obj); } else if (obj instanceof Date) { obj = serializeDate(obj); + } else if (generateArrayPrefix === 'comma' && isArray(obj)) { + obj = obj.join(','); } if (obj === null) { @@ -348,7 +369,7 @@ var stringify = function stringify( // eslint-disable-line func-name-matching } var objKeys; - if (Array.isArray(filter)) { + if (isArray(filter)) { objKeys = filter; } else { var keys = Object.keys(obj); @@ -362,10 +383,10 @@ var stringify = function stringify( // eslint-disable-line func-name-matching continue; } - if (Array.isArray(obj)) { + if (isArray(obj)) { pushToArray(values, stringify( obj[key], - generateArrayPrefix(prefix, key), + typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix, generateArrayPrefix, strictNullHandling, skipNulls, @@ -400,41 +421,63 @@ var stringify = function stringify( // eslint-disable-line func-name-matching return values; }; -module.exports = function (object, opts) { - var obj = object; - var options = opts ? utils.assign({}, opts) : {}; +var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { + if (!opts) { + return defaults; + } - if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') { + if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') { throw new TypeError('Encoder has to be a function.'); } - var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter; - var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling; - var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls; - var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode; - var encoder = typeof options.encoder === 'function' ? options.encoder : defaults.encoder; - var sort = typeof options.sort === 'function' ? options.sort : null; - var allowDots = typeof options.allowDots === 'undefined' ? defaults.allowDots : !!options.allowDots; - var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate; - var encodeValuesOnly = typeof options.encodeValuesOnly === 'boolean' ? options.encodeValuesOnly : defaults.encodeValuesOnly; - var charset = options.charset || defaults.charset; - if (typeof options.charset !== 'undefined' && options.charset !== 'utf-8' && options.charset !== 'iso-8859-1') { - throw new Error('The charset option must be either utf-8, iso-8859-1, or undefined'); + var charset = opts.charset || defaults.charset; + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); } - if (typeof options.format === 'undefined') { - options.format = formats['default']; - } else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) { - throw new TypeError('Unknown format option provided.'); - } - var formatter = formats.formatters[options.format]; + var format = formats['default']; + if (typeof opts.format !== 'undefined') { + if (!has.call(formats.formatters, opts.format)) { + throw new TypeError('Unknown format option provided.'); + } + format = opts.format; + } + var formatter = formats.formatters[format]; + + var filter = defaults.filter; + if (typeof opts.filter === 'function' || isArray(opts.filter)) { + filter = opts.filter; + } + + return { + addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, + allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, + encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, + encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, + encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, + filter: filter, + formatter: formatter, + serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, + skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, + sort: typeof opts.sort === 'function' ? opts.sort : null, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; + +module.exports = function (object, opts) { + var obj = object; + var options = normalizeStringifyOptions(opts); + var objKeys; var filter; if (typeof options.filter === 'function') { filter = options.filter; obj = filter('', obj); - } else if (Array.isArray(options.filter)) { + } else if (isArray(options.filter)) { filter = options.filter; objKeys = filter; } @@ -446,10 +489,10 @@ module.exports = function (object, opts) { } var arrayFormat; - if (options.arrayFormat in arrayPrefixGenerators) { - arrayFormat = options.arrayFormat; - } else if ('indices' in options) { - arrayFormat = options.indices ? 'indices' : 'repeat'; + if (opts && opts.arrayFormat in arrayPrefixGenerators) { + arrayFormat = opts.arrayFormat; + } else if (opts && 'indices' in opts) { + arrayFormat = opts.indices ? 'indices' : 'repeat'; } else { arrayFormat = 'indices'; } @@ -460,38 +503,38 @@ module.exports = function (object, opts) { objKeys = Object.keys(obj); } - if (sort) { - objKeys.sort(sort); + if (options.sort) { + objKeys.sort(options.sort); } for (var i = 0; i < objKeys.length; ++i) { var key = objKeys[i]; - if (skipNulls && obj[key] === null) { + if (options.skipNulls && obj[key] === null) { continue; } pushToArray(keys, stringify( obj[key], key, generateArrayPrefix, - strictNullHandling, - skipNulls, - encode ? encoder : null, - filter, - sort, - allowDots, - serializeDate, - formatter, - encodeValuesOnly, - charset + options.strictNullHandling, + options.skipNulls, + options.encode ? options.encoder : null, + options.filter, + options.sort, + options.allowDots, + options.serializeDate, + options.formatter, + options.encodeValuesOnly, + options.charset )); } - var joined = keys.join(delimiter); + var joined = keys.join(options.delimiter); var prefix = options.addQueryPrefix === true ? '?' : ''; if (options.charsetSentinel) { - if (charset === 'iso-8859-1') { + if (options.charset === 'iso-8859-1') { // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark prefix += 'utf8=%26%2310003%3B&'; } else { @@ -507,6 +550,7 @@ module.exports = function (object, opts) { 'use strict'; var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; var hexTable = (function () { var array = []; @@ -522,7 +566,7 @@ var compactQueue = function compactQueue(queue) { var item = queue.pop(); var obj = item.obj[item.prop]; - if (Array.isArray(obj)) { + if (isArray(obj)) { var compacted = []; for (var j = 0; j < obj.length; ++j) { @@ -553,9 +597,9 @@ var merge = function merge(target, source, options) { } if (typeof source !== 'object') { - if (Array.isArray(target)) { + if (isArray(target)) { target.push(source); - } else if (typeof target === 'object') { + } else if (target && typeof target === 'object') { if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { target[source] = true; } @@ -566,20 +610,21 @@ var merge = function merge(target, source, options) { return target; } - if (typeof target !== 'object') { + if (!target || typeof target !== 'object') { return [target].concat(source); } var mergeTarget = target; - if (Array.isArray(target) && !Array.isArray(source)) { + if (isArray(target) && !isArray(source)) { mergeTarget = arrayToObject(target, options); } - if (Array.isArray(target) && Array.isArray(source)) { + if (isArray(target) && isArray(source)) { source.forEach(function (item, i) { if (has.call(target, i)) { - if (target[i] && typeof target[i] === 'object') { - target[i] = merge(target[i], item, options); + var targetItem = target[i]; + if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { + target[i] = merge(targetItem, item, options); } else { target.push(item); } @@ -710,7 +755,7 @@ var isRegExp = function isRegExp(obj) { }; var isBuffer = function isBuffer(obj) { - if (obj === null || typeof obj === 'undefined') { + if (!obj || typeof obj !== 'object') { return false; } diff --git a/build/node_modules/qs/lib/parse.js b/build/node_modules/qs/lib/parse.js index fd675089..d81628b5 100644 --- a/build/node_modules/qs/lib/parse.js +++ b/build/node_modules/qs/lib/parse.js @@ -10,6 +10,7 @@ var defaults = { arrayLimit: 20, charset: 'utf-8', charsetSentinel: false, + comma: false, decoder: utils.decode, delimiter: '&', depth: 5, @@ -81,6 +82,11 @@ var parseValues = function parseQueryStringValues(str, options) { if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { val = interpretNumericEntities(val); } + + if (val && options.comma && val.indexOf(',') > -1) { + val = val.split(','); + } + if (has.call(obj, key)) { obj[key] = utils.combine(obj[key], val); } else { @@ -180,31 +186,41 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options) { return parseObject(keys, val, options); }; -module.exports = function (str, opts) { - var options = opts ? utils.assign({}, opts) : {}; +var normalizeParseOptions = function normalizeParseOptions(opts) { + if (!opts) { + return defaults; + } - if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') { + if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { throw new TypeError('Decoder has to be a function.'); } - options.ignoreQueryPrefix = options.ignoreQueryPrefix === true; - options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter; - options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth; - options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit; - options.parseArrays = options.parseArrays !== false; - options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder; - options.allowDots = typeof options.allowDots === 'undefined' ? defaults.allowDots : !!options.allowDots; - options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects; - options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes; - options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit; - options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling; - - if (typeof options.charset !== 'undefined' && options.charset !== 'utf-8' && options.charset !== 'iso-8859-1') { + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { throw new Error('The charset option must be either utf-8, iso-8859-1, or undefined'); } - if (typeof options.charset === 'undefined') { - options.charset = defaults.charset; - } + var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; + + return { + allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, + allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, + arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, + decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, + delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, + depth: typeof opts.depth === 'number' ? opts.depth : defaults.depth, + ignoreQueryPrefix: opts.ignoreQueryPrefix === true, + interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, + parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, + parseArrays: opts.parseArrays !== false, + plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; + +module.exports = function (str, opts) { + var options = normalizeParseOptions(opts); if (str === '' || str === null || typeof str === 'undefined') { return options.plainObjects ? Object.create(null) : {}; diff --git a/build/node_modules/qs/lib/stringify.js b/build/node_modules/qs/lib/stringify.js index b5e69ead..7455049c 100644 --- a/build/node_modules/qs/lib/stringify.js +++ b/build/node_modules/qs/lib/stringify.js @@ -2,11 +2,13 @@ var utils = require('./utils'); var formats = require('./formats'); +var has = Object.prototype.hasOwnProperty; var arrayPrefixGenerators = { brackets: function brackets(prefix) { // eslint-disable-line func-name-matching return prefix + '[]'; }, + comma: 'comma', indices: function indices(prefix, key) { // eslint-disable-line func-name-matching return prefix + '[' + key + ']'; }, @@ -32,6 +34,7 @@ var defaults = { encode: true, encoder: utils.encode, encodeValuesOnly: false, + formatter: formats.formatters[formats['default']], // deprecated indices: false, serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching @@ -61,6 +64,8 @@ var stringify = function stringify( // eslint-disable-line func-name-matching obj = filter(prefix, obj); } else if (obj instanceof Date) { obj = serializeDate(obj); + } else if (generateArrayPrefix === 'comma' && isArray(obj)) { + obj = obj.join(','); } if (obj === null) { @@ -86,7 +91,7 @@ var stringify = function stringify( // eslint-disable-line func-name-matching } var objKeys; - if (Array.isArray(filter)) { + if (isArray(filter)) { objKeys = filter; } else { var keys = Object.keys(obj); @@ -100,10 +105,10 @@ var stringify = function stringify( // eslint-disable-line func-name-matching continue; } - if (Array.isArray(obj)) { + if (isArray(obj)) { pushToArray(values, stringify( obj[key], - generateArrayPrefix(prefix, key), + typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix, generateArrayPrefix, strictNullHandling, skipNulls, @@ -138,41 +143,63 @@ var stringify = function stringify( // eslint-disable-line func-name-matching return values; }; -module.exports = function (object, opts) { - var obj = object; - var options = opts ? utils.assign({}, opts) : {}; +var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { + if (!opts) { + return defaults; + } - if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') { + if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') { throw new TypeError('Encoder has to be a function.'); } - var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter; - var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling; - var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls; - var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode; - var encoder = typeof options.encoder === 'function' ? options.encoder : defaults.encoder; - var sort = typeof options.sort === 'function' ? options.sort : null; - var allowDots = typeof options.allowDots === 'undefined' ? defaults.allowDots : !!options.allowDots; - var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate; - var encodeValuesOnly = typeof options.encodeValuesOnly === 'boolean' ? options.encodeValuesOnly : defaults.encodeValuesOnly; - var charset = options.charset || defaults.charset; - if (typeof options.charset !== 'undefined' && options.charset !== 'utf-8' && options.charset !== 'iso-8859-1') { - throw new Error('The charset option must be either utf-8, iso-8859-1, or undefined'); + var charset = opts.charset || defaults.charset; + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); } - if (typeof options.format === 'undefined') { - options.format = formats['default']; - } else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) { - throw new TypeError('Unknown format option provided.'); + var format = formats['default']; + if (typeof opts.format !== 'undefined') { + if (!has.call(formats.formatters, opts.format)) { + throw new TypeError('Unknown format option provided.'); + } + format = opts.format; } - var formatter = formats.formatters[options.format]; + var formatter = formats.formatters[format]; + + var filter = defaults.filter; + if (typeof opts.filter === 'function' || isArray(opts.filter)) { + filter = opts.filter; + } + + return { + addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, + allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, + encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, + encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, + encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, + filter: filter, + formatter: formatter, + serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, + skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, + sort: typeof opts.sort === 'function' ? opts.sort : null, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; + +module.exports = function (object, opts) { + var obj = object; + var options = normalizeStringifyOptions(opts); + var objKeys; var filter; if (typeof options.filter === 'function') { filter = options.filter; obj = filter('', obj); - } else if (Array.isArray(options.filter)) { + } else if (isArray(options.filter)) { filter = options.filter; objKeys = filter; } @@ -184,10 +211,10 @@ module.exports = function (object, opts) { } var arrayFormat; - if (options.arrayFormat in arrayPrefixGenerators) { - arrayFormat = options.arrayFormat; - } else if ('indices' in options) { - arrayFormat = options.indices ? 'indices' : 'repeat'; + if (opts && opts.arrayFormat in arrayPrefixGenerators) { + arrayFormat = opts.arrayFormat; + } else if (opts && 'indices' in opts) { + arrayFormat = opts.indices ? 'indices' : 'repeat'; } else { arrayFormat = 'indices'; } @@ -198,38 +225,38 @@ module.exports = function (object, opts) { objKeys = Object.keys(obj); } - if (sort) { - objKeys.sort(sort); + if (options.sort) { + objKeys.sort(options.sort); } for (var i = 0; i < objKeys.length; ++i) { var key = objKeys[i]; - if (skipNulls && obj[key] === null) { + if (options.skipNulls && obj[key] === null) { continue; } pushToArray(keys, stringify( obj[key], key, generateArrayPrefix, - strictNullHandling, - skipNulls, - encode ? encoder : null, - filter, - sort, - allowDots, - serializeDate, - formatter, - encodeValuesOnly, - charset + options.strictNullHandling, + options.skipNulls, + options.encode ? options.encoder : null, + options.filter, + options.sort, + options.allowDots, + options.serializeDate, + options.formatter, + options.encodeValuesOnly, + options.charset )); } - var joined = keys.join(delimiter); + var joined = keys.join(options.delimiter); var prefix = options.addQueryPrefix === true ? '?' : ''; if (options.charsetSentinel) { - if (charset === 'iso-8859-1') { + if (options.charset === 'iso-8859-1') { // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark prefix += 'utf8=%26%2310003%3B&'; } else { diff --git a/build/node_modules/qs/lib/utils.js b/build/node_modules/qs/lib/utils.js index fe11c162..1b219cdd 100644 --- a/build/node_modules/qs/lib/utils.js +++ b/build/node_modules/qs/lib/utils.js @@ -1,6 +1,7 @@ 'use strict'; var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; var hexTable = (function () { var array = []; @@ -16,7 +17,7 @@ var compactQueue = function compactQueue(queue) { var item = queue.pop(); var obj = item.obj[item.prop]; - if (Array.isArray(obj)) { + if (isArray(obj)) { var compacted = []; for (var j = 0; j < obj.length; ++j) { @@ -47,9 +48,9 @@ var merge = function merge(target, source, options) { } if (typeof source !== 'object') { - if (Array.isArray(target)) { + if (isArray(target)) { target.push(source); - } else if (typeof target === 'object') { + } else if (target && typeof target === 'object') { if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { target[source] = true; } @@ -60,20 +61,21 @@ var merge = function merge(target, source, options) { return target; } - if (typeof target !== 'object') { + if (!target || typeof target !== 'object') { return [target].concat(source); } var mergeTarget = target; - if (Array.isArray(target) && !Array.isArray(source)) { + if (isArray(target) && !isArray(source)) { mergeTarget = arrayToObject(target, options); } - if (Array.isArray(target) && Array.isArray(source)) { + if (isArray(target) && isArray(source)) { source.forEach(function (item, i) { if (has.call(target, i)) { - if (target[i] && typeof target[i] === 'object') { - target[i] = merge(target[i], item, options); + var targetItem = target[i]; + if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { + target[i] = merge(targetItem, item, options); } else { target.push(item); } @@ -204,7 +206,7 @@ var isRegExp = function isRegExp(obj) { }; var isBuffer = function isBuffer(obj) { - if (obj === null || typeof obj === 'undefined') { + if (!obj || typeof obj !== 'object') { return false; } diff --git a/build/node_modules/qs/package.json b/build/node_modules/qs/package.json index c085d57f..caf4eebd 100644 --- a/build/node_modules/qs/package.json +++ b/build/node_modules/qs/package.json @@ -7,20 +7,20 @@ ], "_from": "qs@>=6.5.1 <7.0.0", "_hasShrinkwrap": false, - "_id": "qs@6.6.0", + "_id": "qs@6.7.0", "_inCache": true, "_installable": true, "_location": "/qs", - "_nodeVersion": "11.2.0", + "_nodeVersion": "11.12.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", - "tmp": "tmp/qs_6.6.0_1543128281582_0.7909573175660216" + "tmp": "tmp/qs_6.7.0_1553287731018_0.8639544724083812" }, "_npmUser": { "email": "ljharb@gmail.com", "name": "ljharb" }, - "_npmVersion": "6.4.1", + "_npmVersion": "6.7.0", "_phantomChildren": {}, "_requested": { "name": "qs", @@ -33,8 +33,8 @@ "_requiredBy": [ "/superagent" ], - "_resolved": "https://registry.npmjs.org/qs/-/qs-6.6.0.tgz", - "_shasum": "a99c0f69a8d26bf7ef012f871cdabb0aee4424c2", + "_resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "_shasum": "41dc1a015e3d581f1621776be31afb2876a9b1bc", "_shrinkwrap": null, "_spec": "qs@^6.5.1", "_where": "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build/node_modules/superagent", @@ -51,36 +51,42 @@ "dependencies": {}, "description": "A querystring parser that supports nesting and arrays, with a depth limit", "devDependencies": { - "@ljharb/eslint-config": "^13.0.0", + "@ljharb/eslint-config": "^13.1.1", "browserify": "^16.2.3", - "covert": "^1.1.0", + "covert": "^1.1.1", "editorconfig-tools": "^0.1.1", - "eslint": "^5.9.0", + "eslint": "^5.15.3", "evalmd": "^0.0.17", + "for-each": "^0.3.3", "iconv-lite": "^0.4.24", "mkdirp": "^0.5.1", + "object-inspect": "^1.6.0", "qs-iconv": "^1.0.4", "safe-publish-latest": "^1.1.2", "safer-buffer": "^2.1.2", - "tape": "^4.9.1" + "tape": "^4.10.1" }, "directories": {}, "dist": { "fileCount": 18, - "integrity": "sha512-KIJqT9jQJDQx5h5uAVPimw6yVg2SekOKu959OCtktD3FjzbpvaPr8i4zzg07DOMz+igA4W/aNM7OV8H37pFYfA==", - "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+kTaCRA9TVsSAnZWagAAoKgQAJ3yaFKHAZdEPsXsO36H\n3uSKGYfSd8+QqDXMYkOQIWfUtFQiscARQbWHctPfd07zdfAgYMx6Gx2N62qz\n9VJVFPe5USaoV7Y6uRFeOwsnh0qcEwOF5worq/rCNhIctKl10BBVAhQe84e4\natanjbg3l2WsIKv+4MjFs890dOB+gXNimoXYP4KzJvUTOplbIETbfFYcMI6k\nrR9Gu6zVriEqF5j/R1WWwAICFYK9+vF7QY1BVLhP/Xxu3vdI1e88j5BPx9Jf\nZ4b2v+S12Fqoe3iiDYmqTdwHrEAWUkDxJswWKKkP4JrH6D/rgA3HKVAQgs+y\nI6O+Fznr6zNPnwAowRw9y0FBIkBWgvHOAbbmG5tjkLDqB/7jmzMWveYU1hMI\nHCLoYtZ4oj/dUDGxWMQssDwdIQrNwWa+c7ZByKDisvzQwY70BI3whckTFYWj\n4onUR9nGCzsHPd0HYu8iVEU2kMil3xQLl5Zr/XPZsx4rLwtXD2SIIlg7YXVn\n3UzkGAKvsICOla+XoMUZgSbwHu8yoHvPGQOX/+8SvUIitbBbX3ADoWoTTclh\nB3KiH/0QbdXUMyAolVwA1sNhhb7mIXKAsg8y9NvyhtZ5B2ZIN1GMomqub68v\nQ+d+rVWtgRe13rJCQ0kx0SpzmaXd96PkoADsYibXM61hBnxBYKQSSydhVShD\nPWXC\r\n=NVkV\r\n-----END PGP SIGNATURE-----\r\n", - "shasum": "a99c0f69a8d26bf7ef012f871cdabb0aee4424c2", - "tarball": "https://registry.npmjs.org/qs/-/qs-6.6.0.tgz", - "unpackedSize": 134583 + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", + "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJclUozCRA9TVsSAnZWagAAoroP/0PHjSUPNl7JIbIdKciJ\nBCTXasz49hv66gp1crSOmRPut07b3ao8gfYA4asdVauyJUteb9LtFqDOcvz9\n/VXV7XU63SnJIF2tsWV5sRvLgX4NgQzViijUH5XuE62potDawIa6M2i4zJTh\nWO5OSmizv/ODNCkoNw0tNiriB9sqQ1hXzcWg55geAWy4COB5E0+OvWKV9j/x\neAHQVUKBJTfNb+SsN8YqtDK9Dp+rGy0VCKn606FWu/l79sK4JvMYdpDpRliE\nX546lMOEzYZDDH+2Yq7n365PKV2pDzomRSoJnPWDimz6AbKDy0MIKpXQVmhi\n52MjXPgHhCntt2ETQToj6yA9Suy4DQ1nxtZtDdudMxr+4hqJShBhgMGTqpX6\nMS9wBP5CisDzpzHglcH5gRvDF4HLJU52/AXk2hECQsfVPTQx4R6gl/c0jCRQ\nIo7bBcFPaAsYQUjfo7PiOpMUZX5T1STBXAS7rN3tf02OBpnWD38xNu9t/6hI\n5HiurnlTVCUxajdGSitX0JZKDTI7bskIoiXTDMQxT3ppo1aptzP+9ZGiUZjz\nJRVD6LAC1PFC0cFXvlo0ZNbh0DxgiIHOCMpveS/8uh4KdZaWjnbhoMRTRgi+\novatKeu2pqLJqtZkh+016+dRR8QYDsFVDgRPc3qBOmMsR1CZ2E54euLpoFzf\nRfi3\r\n=ivNL\r\n-----END PGP SIGNATURE-----\r\n", + "shasum": "41dc1a015e3d581f1621776be31afb2876a9b1bc", + "tarball": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "unpackedSize": 142918 }, "engines": { "node": ">=0.6" }, - "gitHead": "34af57edde61639054ea7b38fdfce050cffdab29", + "gitHead": "125e103b61f2bef245970f5a2a8dceffe5aab59a", "homepage": "https://github.com/ljharb/qs", "keywords": [ "querystring", - "qs" + "qs", + "query", + "url", + "parse", + "stringify" ], "license": "BSD-3-Clause", "main": "lib/index.js", @@ -116,5 +122,5 @@ "test": "npm run --silent coverage", "tests-only": "node test" }, - "version": "6.6.0" + "version": "6.7.0" } diff --git a/build/node_modules/qs/test/parse.js b/build/node_modules/qs/test/parse.js index c888bf59..89677899 100644 --- a/build/node_modules/qs/test/parse.js +++ b/build/node_modules/qs/test/parse.js @@ -237,6 +237,14 @@ test('parse()', function (t) { st.end(); }); + t.test('parses jquery-param strings', function (st) { + // readable = 'filter[0][]=int1&filter[0][]==&filter[0][]=77&filter[]=and&filter[2][]=int2&filter[2][]==&filter[2][]=8' + var encoded = 'filter%5B0%5D%5B%5D=int1&filter%5B0%5D%5B%5D=%3D&filter%5B0%5D%5B%5D=77&filter%5B%5D=and&filter%5B2%5D%5B%5D=int2&filter%5B2%5D%5B%5D=%3D&filter%5B2%5D%5B%5D=8'; + var expected = { filter: [['int1', '=', '77'], 'and', ['int2', '=', '8']] }; + st.deepEqual(qs.parse(encoded), expected); + st.end(); + }); + t.test('continues parsing when no parent is found', function (st) { st.deepEqual(qs.parse('[]=&a=b'), { 0: '', a: 'b' }); st.deepEqual(qs.parse('[]&a=b', { strictNullHandling: true }), { 0: null, a: 'b' }); @@ -339,6 +347,15 @@ test('parse()', function (t) { st.end(); }); + t.test('parses string with comma as array divider', function (st) { + st.deepEqual(qs.parse('foo=bar,tee', { comma: true }), { foo: ['bar', 'tee'] }); + st.deepEqual(qs.parse('foo[bar]=coffee,tee', { comma: true }), { foo: { bar: ['coffee', 'tee'] } }); + st.deepEqual(qs.parse('foo=', { comma: true }), { foo: '' }); + st.deepEqual(qs.parse('foo', { comma: true }), { foo: '' }); + st.deepEqual(qs.parse('foo', { comma: true, strictNullHandling: true }), { foo: null }); + st.end(); + }); + t.test('parses an object in dot notation', function (st) { var input = { 'user.name': { 'pop[bob]': 3 }, @@ -547,7 +564,7 @@ test('parse()', function (t) { result.push(parseInt(parts[1], 16)); parts = reg.exec(str); } - return iconv.decode(SaferBuffer.from(result), 'shift_jis').toString(); + return String(iconv.decode(SaferBuffer.from(result), 'shift_jis')); } }), { 県: '大阪府' }); st.end(); diff --git a/build/node_modules/qs/test/stringify.js b/build/node_modules/qs/test/stringify.js index 7901ea00..53041c2e 100644 --- a/build/node_modules/qs/test/stringify.js +++ b/build/node_modules/qs/test/stringify.js @@ -19,6 +19,15 @@ test('stringify()', function (t) { st.end(); }); + t.test('stringifies falsy values', function (st) { + st.equal(qs.stringify(undefined), ''); + st.equal(qs.stringify(null), ''); + st.equal(qs.stringify(null, { strictNullHandling: true }), ''); + st.equal(qs.stringify(false), ''); + st.equal(qs.stringify(0), ''); + st.end(); + }); + t.test('adds query prefix', function (st) { st.equal(qs.stringify({ a: 'b' }, { addQueryPrefix: true }), '?a=b'); st.end(); @@ -29,6 +38,13 @@ test('stringify()', function (t) { st.end(); }); + t.test('stringifies nested falsy values', function (st) { + st.equal(qs.stringify({ a: { b: { c: null } } }), 'a%5Bb%5D%5Bc%5D='); + st.equal(qs.stringify({ a: { b: { c: null } } }, { strictNullHandling: true }), 'a%5Bb%5D%5Bc%5D'); + st.equal(qs.stringify({ a: { b: { c: false } } }), 'a%5Bb%5D%5Bc%5D=false'); + st.end(); + }); + t.test('stringifies a nested object', function (st) { st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c'); st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }), 'a%5Bb%5D%5Bc%5D%5Bd%5D=e'); @@ -52,6 +68,11 @@ test('stringify()', function (t) { 'a%5B%5D=b&a%5B%5D=c&a%5B%5D=d', 'brackets => brackets' ); + st.equal( + qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'comma' }), + 'a=b%2Cc%2Cd', + 'comma => comma' + ); st.equal( qs.stringify({ a: ['b', 'c', 'd'] }), 'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d', @@ -78,6 +99,7 @@ test('stringify()', function (t) { t.test('stringifies a nested array value', function (st) { st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { arrayFormat: 'indices' }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d'); st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { arrayFormat: 'brackets' }), 'a%5Bb%5D%5B%5D=c&a%5Bb%5D%5B%5D=d'); + st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { arrayFormat: 'comma' }), 'a%5Bb%5D=c%2Cd'); // a[b]=c,d st.equal(qs.stringify({ a: { b: ['c', 'd'] } }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d'); st.end(); }); @@ -99,6 +121,14 @@ test('stringify()', function (t) { 'a.b[]=c&a.b[]=d', 'brackets: stringifies with dots + brackets' ); + st.equal( + qs.stringify( + { a: { b: ['c', 'd'] } }, + { allowDots: true, encode: false, arrayFormat: 'comma' } + ), + 'a.b=c,d', + 'comma: stringifies with dots + comma' + ); st.equal( qs.stringify( { a: { b: ['c', 'd'] } }, @@ -113,12 +143,12 @@ test('stringify()', function (t) { t.test('stringifies an object inside an array', function (st) { st.equal( qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'indices' }), - 'a%5B0%5D%5Bb%5D=c', + 'a%5B0%5D%5Bb%5D=c', // a[0][b]=c 'indices => brackets' ); st.equal( qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'brackets' }), - 'a%5B%5D%5Bb%5D=c', + 'a%5B%5D%5Bb%5D=c', // a[][b]=c 'brackets => brackets' ); st.equal( diff --git a/build/node_modules/qs/test/utils.js b/build/node_modules/qs/test/utils.js index c11af553..da31ce53 100644 --- a/build/node_modules/qs/test/utils.js +++ b/build/node_modules/qs/test/utils.js @@ -1,9 +1,16 @@ 'use strict'; var test = require('tape'); +var inspect = require('object-inspect'); +var SaferBuffer = require('safer-buffer').Buffer; +var forEach = require('for-each'); var utils = require('../lib/utils'); test('merge()', function (t) { + t.deepEqual(utils.merge(null, true), [null, true], 'merges true into null'); + + t.deepEqual(utils.merge(null, [42]), [null, 42], 'merges null into an array'); + t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key'); var oneMerged = utils.merge({ foo: 'bar' }, { foo: { first: '123' } }); @@ -21,6 +28,30 @@ test('merge()', function (t) { var noOptionsNonObjectSource = utils.merge({ foo: 'baz' }, 'bar'); t.deepEqual(noOptionsNonObjectSource, { foo: 'baz', bar: true }); + t.test( + 'avoids invoking array setters unnecessarily', + { skip: typeof Object.defineProperty !== 'function' }, + function (st) { + var setCount = 0; + var getCount = 0; + var observed = []; + Object.defineProperty(observed, 0, { + get: function () { + getCount += 1; + return { bar: 'baz' }; + }, + set: function () { setCount += 1; } + }); + utils.merge(observed, [null]); + st.equal(setCount, 0); + st.equal(getCount, 1); + observed[0] = observed[0]; // eslint-disable-line no-self-assign + st.equal(setCount, 1); + st.equal(getCount, 2); + st.end(); + } + ); + t.end(); }); @@ -87,3 +118,19 @@ test('combine()', function (t) { t.end(); }); + +test('isBuffer()', function (t) { + forEach([null, undefined, true, false, '', 'abc', 42, 0, NaN, {}, [], function () {}, /a/g], function (x) { + t.equal(utils.isBuffer(x), false, inspect(x) + ' is not a buffer'); + }); + + var fakeBuffer = { constructor: Buffer }; + t.equal(utils.isBuffer(fakeBuffer), false, 'fake buffer is not a buffer'); + + var saferBuffer = SaferBuffer.from('abc'); + t.equal(utils.isBuffer(saferBuffer), true, 'SaferBuffer instance is a buffer'); + + var buffer = Buffer.from ? Buffer.from('abc') : new Buffer('abc'); + t.equal(utils.isBuffer(buffer), true, 'real Buffer instance is a buffer'); + t.end(); +}); diff --git a/build/node_modules/readable-stream/package.json b/build/node_modules/readable-stream/package.json index 5aac4492..3dccdce9 100644 --- a/build/node_modules/readable-stream/package.json +++ b/build/node_modules/readable-stream/package.json @@ -34,7 +34,7 @@ "/concat-stream", "/superagent" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/readable-stream/-/readable-stream-2.3.6.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/readable-stream/-/readable-stream-2.3.6.tgz", "_shasum": "b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf", "_shrinkwrap": null, "_spec": "readable-stream@^2.3.5", diff --git a/build/node_modules/rollup-plugin-commonjs/CHANGELOG.md b/build/node_modules/rollup-plugin-commonjs/CHANGELOG.md index 217d4fd4..4ca996ae 100644 --- a/build/node_modules/rollup-plugin-commonjs/CHANGELOG.md +++ b/build/node_modules/rollup-plugin-commonjs/CHANGELOG.md @@ -1,5 +1,15 @@ # rollup-plugin-commonjs changelog +## 9.2.3 +*2019-04-02* +* Improve support for ES3 browsers ([#364](https://github.com/rollup/rollup-plugin-commonjs/issues/364)) +* Add note about monorepo usage to readme ([#372](https://github.com/rollup/rollup-plugin-commonjs/issues/372)) +* Add .js extension to generated helper file ([#373](https://github.com/rollup/rollup-plugin-commonjs/issues/373)) + +## 9.2.2 +*2019-03-25* +* Handle array destructuring assignment ([#379](https://github.com/rollup/rollup-plugin-commonjs/issues/379)) + ## 9.2.1 *2019-02-23* * Use correct context when manually resolving ids ([#370](https://github.com/rollup/rollup-plugin-commonjs/issues/370)) diff --git a/build/node_modules/rollup-plugin-commonjs/README.md b/build/node_modules/rollup-plugin-commonjs/README.md index 4a446f72..3502ccc5 100644 --- a/build/node_modules/rollup-plugin-commonjs/README.md +++ b/build/node_modules/rollup-plugin-commonjs/README.md @@ -66,6 +66,16 @@ export default { }; ``` +### Usage in monorepo + +In case you are using a monorepo, you may want to use a regular expression for `include` as the string 'node_modules' will not match if your `node_modules` is not in your current working directory (i.e. '../node_modules'). Try this: + +``` +commonjs({ + include: /node_modules/ +}) +``` + ### Custom named exports This plugin will attempt to create named exports, where appropriate, so you can do this... diff --git a/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js b/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js index 7153110f..c954dcfe 100644 --- a/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js +++ b/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js @@ -11,9 +11,11 @@ var MagicString = _interopDefault(require('magic-string')); var PROXY_PREFIX = '\0commonjs-proxy:'; var EXTERNAL_PREFIX = '\0commonjs-external:'; -var HELPERS_ID = '\0commonjsHelpers'; +var HELPERS_ID = '\0commonjsHelpers.js'; -var HELPERS = "\nexport var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x.default : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nexport function getCjsExportFromNamespace (n) {\n\treturn n && n.default || n;\n}"; +// `x['default']` is used instead of `x.default` for backward compatibility with ES3 browsers. +// Minifiers like uglify will usually transpile it back if compatibility with ES3 is not enabled. +var HELPERS = "\nexport var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nexport function getCjsExportFromNamespace (n) {\n\treturn n && n['default'] || n;\n}"; var isCjsPromises = Object.create(null); @@ -21,9 +23,9 @@ function getIsCjsPromise(id) { var isCjsPromise = isCjsPromises[id]; if (isCjsPromise) { return isCjsPromise.promise; } - var promise = new Promise(function (resolve$$1) { + var promise = new Promise(function (resolve) { isCjsPromises[id] = isCjsPromise = { - resolve: resolve$$1, + resolve: resolve, promise: undefined }; }); @@ -64,8 +66,8 @@ function addJsExtensionIfNecessary(file) { var absolutePath = /^(?:\/|(?:[A-Za-z]:)?[\\|/])/; -function isAbsolute(path$$1) { - return absolutePath.test(path$$1); +function isAbsolute(path) { + return absolutePath.test(path); } function defaultResolver(importee, importer) { @@ -100,8 +102,7 @@ function first(candidates) { while ( len-- ) args[ len ] = arguments[ len ]; return candidates.reduce(function (promise, candidate) { - return promise.then( - function (result) { return (result != null ? result : Promise.resolve(candidate.call.apply(candidate, [ this$1 ].concat( args )))); } + return promise.then(function (result) { return result != null ? result : Promise.resolve(candidate.call.apply(candidate, [ this$1 ].concat( args ))); } ); }, Promise.resolve()); }; @@ -249,6 +250,10 @@ var extractors = { AssignmentPattern: function AssignmentPattern(names, node) { extractors[node.left.type](names, node.left); + }, + + MemberExpression: function MemberExpression(names, node) { + extractors[node.property.type](names, node.property); } }; diff --git a/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js.map b/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js.map index 85073e28..3ee420d6 100644 --- a/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js.map +++ b/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js.map @@ -1 +1 @@ -{"version":3,"file":"rollup-plugin-commonjs.cjs.js","sources":["../src/helpers.js","../src/is-cjs.js","../src/default-resolver.js","../src/utils.js","../src/resolve-id.js","../src/ast-utils.js","../src/transform.js","../src/index.js"],"sourcesContent":["export const PROXY_PREFIX = '\\0commonjs-proxy:';\nexport const EXTERNAL_PREFIX = '\\0commonjs-external:';\nexport const HELPERS_ID = '\\0commonjsHelpers';\n\nexport const HELPERS = `\nexport var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x.default : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nexport function getCjsExportFromNamespace (n) {\n\treturn n && n.default || n;\n}`;\n","const isCjsPromises = Object.create(null);\n\nexport function getIsCjsPromise(id) {\n\tlet isCjsPromise = isCjsPromises[id];\n\tif (isCjsPromise) return isCjsPromise.promise;\n\n\tconst promise = new Promise(resolve => {\n\t\tisCjsPromises[id] = isCjsPromise = {\n\t\t\tresolve,\n\t\t\tpromise: undefined\n\t\t};\n\t});\n\tisCjsPromise.promise = promise;\n\n\treturn promise;\n}\n\nexport function setIsCjsPromise(id, promise) {\n\tconst isCjsPromise = isCjsPromises[id];\n\tif (isCjsPromise) {\n\t\tif (isCjsPromise.resolve) {\n\t\t\tisCjsPromise.resolve(promise);\n\t\t\tisCjsPromise.resolve = undefined;\n\t\t}\n\t} else {\n\t\tisCjsPromises[id] = { promise, resolve: undefined };\n\t}\n}\n","import * as fs from 'fs';\nimport { dirname, resolve } from 'path';\n\nfunction isFile(file) {\n\ttry {\n\t\tconst stats = fs.statSync(file);\n\t\treturn stats.isFile();\n\t} catch (err) {\n\t\treturn false;\n\t}\n}\n\nfunction addJsExtensionIfNecessary(file) {\n\tif (isFile(file)) return file;\n\n\tfile += '.js';\n\tif (isFile(file)) return file;\n\n\treturn null;\n}\n\nconst absolutePath = /^(?:\\/|(?:[A-Za-z]:)?[\\\\|/])/;\n\nfunction isAbsolute(path) {\n\treturn absolutePath.test(path);\n}\n\nexport default function defaultResolver(importee, importer) {\n\t// absolute paths are left untouched\n\tif (isAbsolute(importee)) return addJsExtensionIfNecessary(resolve(importee));\n\n\t// if this is the entry point, resolve against cwd\n\tif (importer === undefined) return addJsExtensionIfNecessary(resolve(process.cwd(), importee));\n\n\t// external modules are skipped at this stage\n\tif (importee[0] !== '.') return null;\n\n\treturn addJsExtensionIfNecessary(resolve(dirname(importer), importee));\n}\n","import { basename, dirname, extname, sep } from 'path';\nimport { makeLegalIdentifier } from 'rollup-pluginutils';\n\nexport function getName(id) {\n\tconst name = makeLegalIdentifier(basename(id, extname(id)));\n\tif (name !== 'index') {\n\t\treturn name;\n\t} else {\n\t\tconst segments = dirname(id).split(sep);\n\t\treturn makeLegalIdentifier(segments[segments.length - 1]);\n\t}\n}\n\n// Return the first non-falsy result from an array of\n// maybe-sync, maybe-promise-returning functions\nexport function first(candidates) {\n\treturn function(...args) {\n\t\treturn candidates.reduce((promise, candidate) => {\n\t\t\treturn promise.then(\n\t\t\t\tresult => (result != null ? result : Promise.resolve(candidate.call(this, ...args)))\n\t\t\t);\n\t\t}, Promise.resolve());\n\t};\n}\n","import { statSync } from 'fs';\nimport { dirname, resolve, sep } from 'path';\nimport defaultResolver from './default-resolver';\nimport { EXTERNAL_PREFIX, PROXY_PREFIX } from './helpers';\nimport { first } from './utils';\n\nfunction getCandidatesForExtension(resolved, extension) {\n\treturn [resolved + extension, resolved + `${sep}index${extension}`];\n}\n\nfunction getCandidates(resolved, extensions) {\n\treturn extensions.reduce(\n\t\t(paths, extension) => paths.concat(getCandidatesForExtension(resolved, extension)),\n\t\t[resolved]\n\t);\n}\n\nexport function getResolveId(extensions) {\n\tlet resolveUsingOtherResolvers;\n\n\tfunction resolveId(importee, importer) {\n\t\tconst isProxyModule = importee.startsWith(PROXY_PREFIX);\n\t\tif (isProxyModule) {\n\t\t\timportee = importee.slice(PROXY_PREFIX.length);\n\t\t} else if (importee.startsWith('\\0')) {\n\t\t\treturn importee;\n\t\t}\n\n\t\tif (importer && importer.startsWith(PROXY_PREFIX)) {\n\t\t\timporter = importer.slice(PROXY_PREFIX.length);\n\t\t}\n\n\t\treturn resolveUsingOtherResolvers.call(this, importee, importer).then(resolved => {\n\t\t\tif (resolved) return isProxyModule ? PROXY_PREFIX + resolved : resolved;\n\n\t\t\tresolved = defaultResolver(importee, importer);\n\n\t\t\tif (isProxyModule) {\n\t\t\t\tif (resolved) return PROXY_PREFIX + resolved;\n\t\t\t\treturn EXTERNAL_PREFIX + importee; // external\n\t\t\t}\n\n\t\t\treturn resolved;\n\t\t});\n\t}\n\n\tresolveId.setRollupOptions = function(options) {\n\t\tconst resolvers = (options.plugins || [])\n\t\t\t.map(plugin => {\n\t\t\t\tif (plugin.resolveId === resolveId) {\n\t\t\t\t\t// substitute CommonJS resolution logic\n\t\t\t\t\treturn (importee, importer) => {\n\t\t\t\t\t\tif (importee[0] !== '.' || !importer) return; // not our problem\n\n\t\t\t\t\t\tconst resolved = resolve(dirname(importer), importee);\n\t\t\t\t\t\tconst candidates = getCandidates(resolved, extensions);\n\n\t\t\t\t\t\tfor (let i = 0; i < candidates.length; i += 1) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tconst stats = statSync(candidates[i]);\n\t\t\t\t\t\t\t\tif (stats.isFile()) return candidates[i];\n\t\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\t\t/* noop */\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn plugin.resolveId;\n\t\t\t})\n\t\t\t.filter(Boolean);\n\n\t\tconst isExternal = id =>\n\t\t\toptions.external\n\t\t\t\t? Array.isArray(options.external)\n\t\t\t\t\t? options.external.includes(id)\n\t\t\t\t\t: options.external(id)\n\t\t\t\t: false;\n\n\t\tresolvers.unshift(id => (isExternal(id) ? false : null));\n\n\t\tresolveUsingOtherResolvers = first(resolvers);\n\t};\n\n\treturn resolveId;\n}\n","export function isReference(node, parent) {\n\tif (parent.type === 'MemberExpression') return parent.computed || node === parent.object;\n\n\t// disregard the `bar` in { bar: foo }\n\tif (parent.type === 'Property' && node !== parent.value) return false;\n\n\t// disregard the `bar` in `class Foo { bar () {...} }`\n\tif (parent.type === 'MethodDefinition') return false;\n\n\t// disregard the `bar` in `export { foo as bar }`\n\tif (parent.type === 'ExportSpecifier' && node !== parent.local) return false;\n\n\treturn true;\n}\n\nexport function flatten(node) {\n\tconst parts = [];\n\n\twhile (node.type === 'MemberExpression') {\n\t\tif (node.computed) return null;\n\n\t\tparts.unshift(node.property.name);\n\t\tnode = node.object;\n\t}\n\n\tif (node.type !== 'Identifier') return null;\n\n\tconst name = node.name;\n\tparts.unshift(name);\n\n\treturn { name, keypath: parts.join('.') };\n}\n\nexport function extractNames(node) {\n\tconst names = [];\n\textractors[node.type](names, node);\n\treturn names;\n}\n\nconst extractors = {\n\tIdentifier(names, node) {\n\t\tnames.push(node.name);\n\t},\n\n\tObjectPattern(names, node) {\n\t\tnode.properties.forEach(prop => {\n\t\t\textractors[prop.value.type](names, prop.value);\n\t\t});\n\t},\n\n\tArrayPattern(names, node) {\n\t\tnode.elements.forEach(element => {\n\t\t\tif (element) extractors[element.type](names, element);\n\t\t});\n\t},\n\n\tRestElement(names, node) {\n\t\textractors[node.argument.type](names, node.argument);\n\t},\n\n\tAssignmentPattern(names, node) {\n\t\textractors[node.left.type](names, node.left);\n\t}\n};\n\nexport function isTruthy(node) {\n\tif (node.type === 'Literal') return !!node.value;\n\tif (node.type === 'ParenthesizedExpression') return isTruthy(node.expression);\n\tif (node.operator in operators) return operators[node.operator](node);\n}\n\nexport function isFalsy(node) {\n\treturn not(isTruthy(node));\n}\n\nfunction not(value) {\n\treturn value === undefined ? value : !value;\n}\n\nfunction equals(a, b, strict) {\n\tif (a.type !== b.type) return undefined;\n\tif (a.type === 'Literal') return strict ? a.value === b.value : a.value == b.value;\n}\n\nconst operators = {\n\t'==': x => {\n\t\treturn equals(x.left, x.right, false);\n\t},\n\n\t'!=': x => not(operators['=='](x)),\n\n\t'===': x => {\n\t\treturn equals(x.left, x.right, true);\n\t},\n\n\t'!==': x => not(operators['==='](x)),\n\n\t'!': x => isFalsy(x.argument),\n\n\t'&&': x => isTruthy(x.left) && isTruthy(x.right),\n\n\t'||': x => isTruthy(x.left) || isTruthy(x.right)\n};\n","import { walk } from 'estree-walker';\nimport MagicString from 'magic-string';\nimport { attachScopes, makeLegalIdentifier } from 'rollup-pluginutils';\nimport { extractNames, flatten, isFalsy, isReference, isTruthy } from './ast-utils.js';\nimport { HELPERS_ID, PROXY_PREFIX } from './helpers.js';\nimport { getName } from './utils.js';\n\nconst reserved = 'process location abstract arguments boolean break byte case catch char class const continue debugger default delete do double else enum eval export extends false final finally float for from function goto if implements import in instanceof int interface let long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var void volatile while with yield'.split(\n\t' '\n);\nconst blacklist = { __esModule: true };\nreserved.forEach(word => (blacklist[word] = true));\n\nconst exportsPattern = /^(?:module\\.)?exports(?:\\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/;\n\nconst firstpassGlobal = /\\b(?:require|module|exports|global)\\b/;\nconst firstpassNoGlobal = /\\b(?:require|module|exports)\\b/;\nconst importExportDeclaration = /^(?:Import|Export(?:Named|Default))Declaration/;\nconst functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;\n\nfunction deconflict(scope, globals, identifier) {\n\tlet i = 1;\n\tlet deconflicted = identifier;\n\n\twhile (scope.contains(deconflicted) || globals.has(deconflicted) || deconflicted in blacklist)\n\t\tdeconflicted = `${identifier}_${i++}`;\n\tscope.declarations[deconflicted] = true;\n\n\treturn deconflicted;\n}\n\nfunction tryParse(parse, code, id) {\n\ttry {\n\t\treturn parse(code, { allowReturnOutsideFunction: true });\n\t} catch (err) {\n\t\terr.message += ` in ${id}`;\n\t\tthrow err;\n\t}\n}\n\nexport function hasCjsKeywords(code, ignoreGlobal) {\n\tconst firstpass = ignoreGlobal ? firstpassNoGlobal : firstpassGlobal;\n\treturn firstpass.test(code);\n}\n\nexport function checkEsModule(parse, code, id) {\n\tconst ast = tryParse(parse, code, id);\n\n\tlet isEsModule = false;\n\tfor (const node of ast.body) {\n\t\tif (node.type === 'ExportDefaultDeclaration')\n\t\t\treturn { isEsModule: true, hasDefaultExport: true, ast };\n\t\tif (node.type === 'ExportNamedDeclaration') {\n\t\t\tisEsModule = true;\n\t\t\tfor (const specifier of node.specifiers) {\n\t\t\t\tif (specifier.exported.name === 'default') {\n\t\t\t\t\treturn { isEsModule: true, hasDefaultExport: true, ast };\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (importExportDeclaration.test(node.type)) isEsModule = true;\n\t}\n\n\treturn { isEsModule, hasDefaultExport: false, ast };\n}\n\nexport function transformCommonjs(\n\tparse,\n\tcode,\n\tid,\n\tisEntry,\n\tignoreGlobal,\n\tignoreRequire,\n\tcustomNamedExports,\n\tsourceMap,\n\tallowDynamicRequire,\n\tastCache\n) {\n\tconst ast = astCache || tryParse(parse, code, id);\n\n\tconst magicString = new MagicString(code);\n\n\tconst required = {};\n\t// Because objects have no guaranteed ordering, yet we need it,\n\t// we need to keep track of the order in a array\n\tconst sources = [];\n\n\tlet uid = 0;\n\n\tlet scope = attachScopes(ast, 'scope');\n\tconst uses = { module: false, exports: false, global: false, require: false };\n\n\tlet lexicalDepth = 0;\n\tlet programDepth = 0;\n\n\tconst globals = new Set();\n\n\tconst HELPERS_NAME = deconflict(scope, globals, 'commonjsHelpers'); // TODO technically wrong since globals isn't populated yet, but ¯\\_(ツ)_/¯\n\n\tconst namedExports = {};\n\n\t// TODO handle transpiled modules\n\tlet shouldWrap = /__esModule/.test(code);\n\n\tfunction isRequireStatement(node) {\n\t\tif (!node) return;\n\t\tif (node.type !== 'CallExpression') return;\n\t\tif (node.callee.name !== 'require' || scope.contains('require')) return;\n\t\tif (node.arguments.length === 0) return; // Weird case of require() without arguments\n\t\treturn true;\n\t}\n\n\tfunction hasDynamicArguments(node) {\n\t\treturn (\n\t\t\tnode.arguments.length > 1 ||\n\t\t\t(node.arguments[0].type !== 'Literal' &&\n\t\t\t\t(node.arguments[0].type !== 'TemplateLiteral' || node.arguments[0].expressions.length > 0))\n\t\t);\n\t}\n\n\tfunction isStaticRequireStatement(node) {\n\t\tif (!isRequireStatement(node)) return;\n\t\tif (hasDynamicArguments(node)) return;\n\t\tif (ignoreRequire(node.arguments[0].value)) return;\n\t\treturn true;\n\t}\n\n\tfunction getRequireStringArg(node) {\n\t\treturn node.arguments[0].type === 'Literal'\n\t\t\t? node.arguments[0].value\n\t\t\t: node.arguments[0].quasis[0].value.cooked;\n\t}\n\n\tfunction getRequired(node, name) {\n\t\tconst sourceId = getRequireStringArg(node);\n\t\tconst existing = required[sourceId];\n\t\tif (existing === undefined) {\n\t\t\tif (!name) {\n\t\t\t\tdo name = `require$$${uid++}`;\n\t\t\t\twhile (scope.contains(name));\n\t\t\t}\n\n\t\t\tsources.push(sourceId);\n\t\t\trequired[sourceId] = { source: sourceId, name, importsDefault: false };\n\t\t}\n\n\t\treturn required[sourceId];\n\t}\n\n\t// do a first pass, see which names are assigned to. This is necessary to prevent\n\t// illegally replacing `var foo = require('foo')` with `import foo from 'foo'`,\n\t// where `foo` is later reassigned. (This happens in the wild. CommonJS, sigh)\n\tconst assignedTo = new Set();\n\twalk(ast, {\n\t\tenter(node) {\n\t\t\tif (node.type !== 'AssignmentExpression') return;\n\t\t\tif (node.left.type === 'MemberExpression') return;\n\n\t\t\textractNames(node.left).forEach(name => {\n\t\t\t\tassignedTo.add(name);\n\t\t\t});\n\t\t}\n\t});\n\n\twalk(ast, {\n\t\tenter(node, parent) {\n\t\t\tif (sourceMap) {\n\t\t\t\tmagicString.addSourcemapLocation(node.start);\n\t\t\t\tmagicString.addSourcemapLocation(node.end);\n\t\t\t}\n\n\t\t\t// skip dead branches\n\t\t\tif (parent && (parent.type === 'IfStatement' || parent.type === 'ConditionalExpression')) {\n\t\t\t\tif (node === parent.consequent && isFalsy(parent.test)) return this.skip();\n\t\t\t\tif (node === parent.alternate && isTruthy(parent.test)) return this.skip();\n\t\t\t}\n\n\t\t\tif (node._skip) return this.skip();\n\n\t\t\tprogramDepth += 1;\n\n\t\t\tif (node.scope) scope = node.scope;\n\t\t\tif (functionType.test(node.type)) lexicalDepth += 1;\n\n\t\t\t// if toplevel return, we need to wrap it\n\t\t\tif (node.type === 'ReturnStatement' && lexicalDepth === 0) {\n\t\t\t\tshouldWrap = true;\n\t\t\t}\n\n\t\t\t// rewrite `this` as `commonjsHelpers.commonjsGlobal`\n\t\t\tif (node.type === 'ThisExpression' && lexicalDepth === 0) {\n\t\t\t\tuses.global = true;\n\t\t\t\tif (!ignoreGlobal)\n\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// rewrite `typeof module`, `typeof module.exports` and `typeof exports` (https://github.com/rollup/rollup-plugin-commonjs/issues/151)\n\t\t\tif (node.type === 'UnaryExpression' && node.operator === 'typeof') {\n\t\t\t\tconst flattened = flatten(node.argument);\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tif (scope.contains(flattened.name)) return;\n\n\t\t\t\tif (\n\t\t\t\t\tflattened.keypath === 'module.exports' ||\n\t\t\t\t\tflattened.keypath === 'module' ||\n\t\t\t\t\tflattened.keypath === 'exports'\n\t\t\t\t) {\n\t\t\t\t\tmagicString.overwrite(node.start, node.end, `'object'`, { storeName: false });\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// rewrite `require` (if not already handled) `global` and `define`, and handle free references to\n\t\t\t// `module` and `exports` as these mean we need to wrap the module in commonjsHelpers.createCommonjsModule\n\t\t\tif (node.type === 'Identifier') {\n\t\t\t\tif (isReference(node, parent) && !scope.contains(node.name)) {\n\t\t\t\t\tif (node.name in uses) {\n\t\t\t\t\t\tif (node.name === 'require') {\n\t\t\t\t\t\t\tif (allowDynamicRequire) return;\n\t\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {\n\t\t\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tuses[node.name] = true;\n\t\t\t\t\t\tif (node.name === 'global' && !ignoreGlobal) {\n\t\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n\t\t\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// if module or exports are used outside the context of an assignment\n\t\t\t\t\t\t// expression, we need to wrap the module\n\t\t\t\t\t\tif (node.name === 'module' || node.name === 'exports') {\n\t\t\t\t\t\t\tshouldWrap = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (node.name === 'define') {\n\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, 'undefined', { storeName: true });\n\t\t\t\t\t}\n\n\t\t\t\t\tglobals.add(node.name);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Is this an assignment to exports or module.exports?\n\t\t\tif (node.type === 'AssignmentExpression') {\n\t\t\t\tif (node.left.type !== 'MemberExpression') return;\n\n\t\t\t\tconst flattened = flatten(node.left);\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tif (scope.contains(flattened.name)) return;\n\n\t\t\t\tconst match = exportsPattern.exec(flattened.keypath);\n\t\t\t\tif (!match || flattened.keypath === 'exports') return;\n\n\t\t\t\tuses[flattened.name] = true;\n\n\t\t\t\t// we're dealing with `module.exports = ...` or `[module.]exports.foo = ...` –\n\t\t\t\t// if this isn't top-level, we'll need to wrap the module\n\t\t\t\tif (programDepth > 3) shouldWrap = true;\n\n\t\t\t\tnode.left._skip = true;\n\n\t\t\t\tif (flattened.keypath === 'module.exports' && node.right.type === 'ObjectExpression') {\n\t\t\t\t\treturn node.right.properties.forEach(prop => {\n\t\t\t\t\t\tif (prop.computed || prop.key.type !== 'Identifier') return;\n\t\t\t\t\t\tconst name = prop.key.name;\n\t\t\t\t\t\tif (name === makeLegalIdentifier(name)) namedExports[name] = true;\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif (match[1]) namedExports[match[1]] = true;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// if this is `var x = require('x')`, we can do `import x from 'x'`\n\t\t\tif (\n\t\t\t\tnode.type === 'VariableDeclarator' &&\n\t\t\t\tnode.id.type === 'Identifier' &&\n\t\t\t\tisStaticRequireStatement(node.init)\n\t\t\t) {\n\t\t\t\t// for now, only do this for top-level requires. maybe fix this in future\n\t\t\t\tif (scope.parent) return;\n\n\t\t\t\t// edge case — CJS allows you to assign to imports. ES doesn't\n\t\t\t\tif (assignedTo.has(node.id.name)) return;\n\n\t\t\t\tconst required = getRequired(node.init, node.id.name);\n\t\t\t\trequired.importsDefault = true;\n\n\t\t\t\tif (required.name === node.id.name) {\n\t\t\t\t\tnode._shouldRemove = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!isStaticRequireStatement(node)) return;\n\n\t\t\tconst required = getRequired(node);\n\n\t\t\tif (parent.type === 'ExpressionStatement') {\n\t\t\t\t// is a bare import, e.g. `require('foo');`\n\t\t\t\tmagicString.remove(parent.start, parent.end);\n\t\t\t} else {\n\t\t\t\trequired.importsDefault = true;\n\t\t\t\tmagicString.overwrite(node.start, node.end, required.name);\n\t\t\t}\n\n\t\t\tnode.callee._skip = true;\n\t\t},\n\n\t\tleave(node) {\n\t\t\tprogramDepth -= 1;\n\t\t\tif (node.scope) scope = scope.parent;\n\t\t\tif (functionType.test(node.type)) lexicalDepth -= 1;\n\n\t\t\tif (node.type === 'VariableDeclaration') {\n\t\t\t\tlet keepDeclaration = false;\n\t\t\t\tlet c = node.declarations[0].start;\n\n\t\t\t\tfor (let i = 0; i < node.declarations.length; i += 1) {\n\t\t\t\t\tconst declarator = node.declarations[i];\n\n\t\t\t\t\tif (declarator._shouldRemove) {\n\t\t\t\t\t\tmagicString.remove(c, declarator.end);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!keepDeclaration) {\n\t\t\t\t\t\t\tmagicString.remove(c, declarator.start);\n\t\t\t\t\t\t\tkeepDeclaration = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tc = declarator.end;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!keepDeclaration) {\n\t\t\t\t\tmagicString.remove(node.start, node.end);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\tif (\n\t\t!sources.length &&\n\t\t!uses.module &&\n\t\t!uses.exports &&\n\t\t!uses.require &&\n\t\t(ignoreGlobal || !uses.global)\n\t) {\n\t\tif (Object.keys(namedExports).length) {\n\t\t\tthrow new Error(\n\t\t\t\t`Custom named exports were specified for ${id} but it does not appear to be a CommonJS module`\n\t\t\t);\n\t\t}\n\t\treturn null; // not a CommonJS module\n\t}\n\n\tconst includeHelpers = shouldWrap || uses.global || uses.require;\n\tconst importBlock =\n\t\t(includeHelpers ? [`import * as ${HELPERS_NAME} from '${HELPERS_ID}';`] : [])\n\t\t\t.concat(\n\t\t\t\tsources.map(source => {\n\t\t\t\t\t// import the actual module before the proxy, so that we know\n\t\t\t\t\t// what kind of proxy to build\n\t\t\t\t\treturn `import '${source}';`;\n\t\t\t\t}),\n\t\t\t\tsources.map(source => {\n\t\t\t\t\tconst { name, importsDefault } = required[source];\n\t\t\t\t\treturn `import ${importsDefault ? `${name} from ` : ``}'${PROXY_PREFIX}${source}';`;\n\t\t\t\t})\n\t\t\t)\n\t\t\t.join('\\n') + '\\n\\n';\n\n\tconst namedExportDeclarations = [];\n\tlet wrapperStart = '';\n\tlet wrapperEnd = '';\n\n\tconst moduleName = deconflict(scope, globals, getName(id));\n\tif (!isEntry) {\n\t\tconst exportModuleExports = {\n\t\t\tstr: `export { ${moduleName} as __moduleExports };`,\n\t\t\tname: '__moduleExports'\n\t\t};\n\n\t\tnamedExportDeclarations.push(exportModuleExports);\n\t}\n\n\tconst name = getName(id);\n\n\tfunction addExport(x) {\n\t\tconst deconflicted = deconflict(scope, globals, name);\n\n\t\tconst declaration =\n\t\t\tdeconflicted === name\n\t\t\t\t? `export var ${x} = ${moduleName}.${x};`\n\t\t\t\t: `var ${deconflicted} = ${moduleName}.${x};\\nexport { ${deconflicted} as ${x} };`;\n\n\t\tnamedExportDeclarations.push({\n\t\t\tstr: declaration,\n\t\t\tname: x\n\t\t});\n\t}\n\n\tif (customNamedExports) customNamedExports.forEach(addExport);\n\n\tconst defaultExportPropertyAssignments = [];\n\tlet hasDefaultExport = false;\n\n\tif (shouldWrap) {\n\t\tconst args = `module${uses.exports ? ', exports' : ''}`;\n\n\t\twrapperStart = `var ${moduleName} = ${HELPERS_NAME}.createCommonjsModule(function (${args}) {\\n`;\n\t\twrapperEnd = `\\n});`;\n\t} else {\n\t\tconst names = [];\n\n\t\tast.body.forEach(node => {\n\t\t\tif (node.type === 'ExpressionStatement' && node.expression.type === 'AssignmentExpression') {\n\t\t\t\tconst left = node.expression.left;\n\t\t\t\tconst flattened = flatten(left);\n\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tconst match = exportsPattern.exec(flattened.keypath);\n\t\t\t\tif (!match) return;\n\n\t\t\t\tif (flattened.keypath === 'module.exports') {\n\t\t\t\t\thasDefaultExport = true;\n\t\t\t\t\tmagicString.overwrite(left.start, left.end, `var ${moduleName}`);\n\t\t\t\t} else {\n\t\t\t\t\tconst name = match[1];\n\t\t\t\t\tconst deconflicted = deconflict(scope, globals, name);\n\n\t\t\t\t\tnames.push({ name, deconflicted });\n\n\t\t\t\t\tmagicString.overwrite(node.start, left.end, `var ${deconflicted}`);\n\n\t\t\t\t\tconst declaration =\n\t\t\t\t\t\tname === deconflicted\n\t\t\t\t\t\t\t? `export { ${name} };`\n\t\t\t\t\t\t\t: `export { ${deconflicted} as ${name} };`;\n\n\t\t\t\t\tif (name !== 'default') {\n\t\t\t\t\t\tnamedExportDeclarations.push({\n\t\t\t\t\t\t\tstr: declaration,\n\t\t\t\t\t\t\tname\n\t\t\t\t\t\t});\n\t\t\t\t\t\tdelete namedExports[name];\n\t\t\t\t\t}\n\n\t\t\t\t\tdefaultExportPropertyAssignments.push(`${moduleName}.${name} = ${deconflicted};`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (!hasDefaultExport) {\n\t\t\twrapperEnd = `\\n\\nvar ${moduleName} = {\\n${names\n\t\t\t\t.map(({ name, deconflicted }) => `\\t${name}: ${deconflicted}`)\n\t\t\t\t.join(',\\n')}\\n};`;\n\t\t}\n\t}\n\tObject.keys(namedExports)\n\t\t.filter(key => !blacklist[key])\n\t\t.forEach(addExport);\n\n\tconst defaultExport = /__esModule/.test(code)\n\t\t? `export default ${HELPERS_NAME}.unwrapExports(${moduleName});`\n\t\t: `export default ${moduleName};`;\n\n\tconst named = namedExportDeclarations\n\t\t.filter(x => x.name !== 'default' || !hasDefaultExport)\n\t\t.map(x => x.str);\n\n\tconst exportBlock =\n\t\t'\\n\\n' +\n\t\t[defaultExport]\n\t\t\t.concat(named)\n\t\t\t.concat(hasDefaultExport ? defaultExportPropertyAssignments : [])\n\t\t\t.join('\\n');\n\n\tmagicString\n\t\t.trim()\n\t\t.prepend(importBlock + wrapperStart)\n\t\t.trim()\n\t\t.append(wrapperEnd + exportBlock);\n\n\tcode = magicString.toString();\n\tconst map = sourceMap ? magicString.generateMap() : null;\n\n\treturn { code, map };\n}\n","import { extname, resolve } from 'path';\nimport { sync as nodeResolveSync } from 'resolve';\nimport { createFilter } from 'rollup-pluginutils';\nimport { EXTERNAL_PREFIX, HELPERS, HELPERS_ID, PROXY_PREFIX } from './helpers.js';\nimport { getIsCjsPromise, setIsCjsPromise } from './is-cjs';\nimport { getResolveId } from './resolve-id';\nimport { checkEsModule, hasCjsKeywords, transformCommonjs } from './transform.js';\nimport { getName } from './utils.js';\n\nexport default function commonjs(options = {}) {\n\tconst extensions = options.extensions || ['.js'];\n\tconst filter = createFilter(options.include, options.exclude);\n\tconst ignoreGlobal = options.ignoreGlobal;\n\n\tconst customNamedExports = {};\n\tif (options.namedExports) {\n\t\tObject.keys(options.namedExports).forEach(id => {\n\t\t\tlet resolvedId;\n\n\t\t\ttry {\n\t\t\t\tresolvedId = nodeResolveSync(id, { basedir: process.cwd() });\n\t\t\t} catch (err) {\n\t\t\t\tresolvedId = resolve(id);\n\t\t\t}\n\n\t\t\tcustomNamedExports[resolvedId] = options.namedExports[id];\n\t\t});\n\t}\n\n\tconst esModulesWithoutDefaultExport = Object.create(null);\n\tconst esModulesWithDefaultExport = Object.create(null);\n\tconst allowDynamicRequire = !!options.ignore; // TODO maybe this should be configurable?\n\n\tconst ignoreRequire =\n\t\ttypeof options.ignore === 'function'\n\t\t\t? options.ignore\n\t\t\t: Array.isArray(options.ignore)\n\t\t\t\t? id => options.ignore.includes(id)\n\t\t\t\t: () => false;\n\n\tlet entryModuleIdsPromise = null;\n\n\tconst resolveId = getResolveId(extensions);\n\n\tconst sourceMap = options.sourceMap !== false;\n\n\treturn {\n\t\tname: 'commonjs',\n\n\t\toptions(options) {\n\t\t\tresolveId.setRollupOptions(options);\n\t\t\tconst input = options.input || options.entry;\n\t\t\tconst entryModules = Array.isArray(input)\n\t\t\t\t? input\n\t\t\t\t: typeof input === 'object' && input !== null\n\t\t\t\t\t? Object.values(input)\n\t\t\t\t\t: [input];\n\t\t\tentryModuleIdsPromise = Promise.all(entryModules.map(entry => resolveId(entry)));\n\t\t},\n\n\t\tresolveId,\n\n\t\tload(id) {\n\t\t\tif (id === HELPERS_ID) return HELPERS;\n\n\t\t\t// generate proxy modules\n\t\t\tif (id.startsWith(EXTERNAL_PREFIX)) {\n\t\t\t\tconst actualId = id.slice(EXTERNAL_PREFIX.length);\n\t\t\t\tconst name = getName(actualId);\n\n\t\t\t\treturn `import ${name} from ${JSON.stringify(actualId)}; export default ${name};`;\n\t\t\t}\n\n\t\t\tif (id.startsWith(PROXY_PREFIX)) {\n\t\t\t\tconst actualId = id.slice(PROXY_PREFIX.length);\n\t\t\t\tconst name = getName(actualId);\n\n\t\t\t\treturn getIsCjsPromise(actualId).then(isCjs => {\n\t\t\t\t\tif (isCjs)\n\t\t\t\t\t\treturn `import { __moduleExports } from ${JSON.stringify(\n\t\t\t\t\t\t\tactualId\n\t\t\t\t\t\t)}; export default __moduleExports;`;\n\t\t\t\t\telse if (esModulesWithoutDefaultExport[actualId])\n\t\t\t\t\t\treturn `import * as ${name} from ${JSON.stringify(actualId)}; export default ${name};`;\n\t\t\t\t\telse if (esModulesWithDefaultExport[actualId]) {\n\t\t\t\t\t\treturn `export {default} from ${JSON.stringify(actualId)};`;\n\t\t\t\t\t} else\n\t\t\t\t\t\treturn `import * as ${name} from ${JSON.stringify(\n\t\t\t\t\t\t\tactualId\n\t\t\t\t\t\t)}; import {getCjsExportFromNamespace} from \"${HELPERS_ID}\"; export default getCjsExportFromNamespace(${name})`;\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\ttransform(code, id) {\n\t\t\tif (!filter(id) || extensions.indexOf(extname(id)) === -1) {\n\t\t\t\tsetIsCjsPromise(id, Promise.resolve(null));\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tconst transformPromise = entryModuleIdsPromise\n\t\t\t\t.then(entryModuleIds => {\n\t\t\t\t\tconst { isEsModule, hasDefaultExport, ast } = checkEsModule(this.parse, code, id);\n\t\t\t\t\tif (isEsModule) {\n\t\t\t\t\t\t(hasDefaultExport ? esModulesWithDefaultExport : esModulesWithoutDefaultExport)[\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// it is not an ES module but it does not have CJS-specific elements.\n\t\t\t\t\tif (!hasCjsKeywords(code, ignoreGlobal)) {\n\t\t\t\t\t\tesModulesWithoutDefaultExport[id] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst transformed = transformCommonjs(\n\t\t\t\t\t\tthis.parse,\n\t\t\t\t\t\tcode,\n\t\t\t\t\t\tid,\n\t\t\t\t\t\tentryModuleIds.indexOf(id) !== -1,\n\t\t\t\t\t\tignoreGlobal,\n\t\t\t\t\t\tignoreRequire,\n\t\t\t\t\t\tcustomNamedExports[id],\n\t\t\t\t\t\tsourceMap,\n\t\t\t\t\t\tallowDynamicRequire,\n\t\t\t\t\t\tast\n\t\t\t\t\t);\n\t\t\t\t\tif (!transformed) {\n\t\t\t\t\t\tesModulesWithoutDefaultExport[id] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn transformed;\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tthis.error(err, err.loc);\n\t\t\t\t});\n\n\t\t\tsetIsCjsPromise(id, transformPromise.then(Boolean, () => false));\n\t\t\treturn transformPromise;\n\t\t}\n\t};\n}\n"],"names":["const","let","resolve","fs.statSync","path","dirname","makeLegalIdentifier","basename","extname","sep","this","statSync","attachScopes","walk","flattened","required","createFilter","nodeResolveSync","options","actualId","name"],"mappings":";;;;;;;;;;;AAAOA,IAAM,YAAY,GAAG,mBAAmB,CAAC;AAChD,AAAOA,IAAM,eAAe,GAAG,sBAAsB,CAAC;AACtD,AAAOA,IAAM,UAAU,GAAG,mBAAmB,CAAC;;AAE9C,AAAOA,IAAM,OAAO,GAAG,8oBAiBrB,CAAC;;ACrBHA,IAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;;AAE1C,AAAO,SAAS,eAAe,CAAC,EAAE,EAAE;CACnCC,IAAI,YAAY,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;CACrC,IAAI,YAAY,IAAE,OAAO,YAAY,CAAC,OAAO,GAAC;;CAE9CD,IAAM,OAAO,GAAG,IAAI,OAAO,WAACE,YAAQ;EACnC,a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AAU,EAAE;MACf,CAAC,gBAAgB,GAAG,0BAA0B,GAAG,6BAA6B;OAC7E,EAAE;OACF,GAAG,IAAI,CAAC;MACT,OAAO,IAAI,CAAC;MACZ;;;KAGD,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,EAAE;MACxC,6BAA6B,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;MACzC,OAAO,IAAI,CAAC;MACZ;;KAEDV,IAAM,WAAW,GAAG,iBAAiB;MACpCU,MAAI,CAAC,KAAK;MACV,IAAI;MACJ,EAAE;MACF,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;MACjC,YAAY;MACZ,aAAa;MACb,kBAAkB,CAAC,EAAE,CAAC;MACtB,SAAS;MACT,mBAAmB;MACnB,GAAG;MACH,CAAC;KACF,IAAI,CAAC,WAAW,EAAE;MACjB,6BAA6B,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;MACzC,OAAO,IAAI,CAAC;MACZ;;KAED,OAAO,WAAW,CAAC;KACnB,CAAC;KACD,KAAK,WAAC,KAAI;KACVA,MAAI,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC,CAAC;;GAEJ,eAAe,CAAC,EAAE,EAAE,gBAAgB,CAAC,IAAI,CAAC,OAAO,cAAK,SAAG,QAAK,CAAC,CAAC,CAAC;GACjE,OAAO,gBAAgB,CAAC;GACxB;EACD,CAAC;CACF;;;;"} \ No newline at end of file +{"version":3,"file":"rollup-plugin-commonjs.cjs.js","sources":["../src/helpers.js","../src/is-cjs.js","../src/default-resolver.js","../src/utils.js","../src/resolve-id.js","../src/ast-utils.js","../src/transform.js","../src/index.js"],"sourcesContent":["export const PROXY_PREFIX = '\\0commonjs-proxy:';\nexport const EXTERNAL_PREFIX = '\\0commonjs-external:';\nexport const HELPERS_ID = '\\0commonjsHelpers.js';\n\n// `x['default']` is used instead of `x.default` for backward compatibility with ES3 browsers.\n// Minifiers like uglify will usually transpile it back if compatibility with ES3 is not enabled.\nexport const HELPERS = `\nexport var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nexport function getCjsExportFromNamespace (n) {\n\treturn n && n['default'] || n;\n}`;\n","const isCjsPromises = Object.create(null);\n\nexport function getIsCjsPromise(id) {\n\tlet isCjsPromise = isCjsPromises[id];\n\tif (isCjsPromise) return isCjsPromise.promise;\n\n\tconst promise = new Promise(resolve => {\n\t\tisCjsPromises[id] = isCjsPromise = {\n\t\t\tresolve,\n\t\t\tpromise: undefined\n\t\t};\n\t});\n\tisCjsPromise.promise = promise;\n\n\treturn promise;\n}\n\nexport function setIsCjsPromise(id, promise) {\n\tconst isCjsPromise = isCjsPromises[id];\n\tif (isCjsPromise) {\n\t\tif (isCjsPromise.resolve) {\n\t\t\tisCjsPromise.resolve(promise);\n\t\t\tisCjsPromise.resolve = undefined;\n\t\t}\n\t} else {\n\t\tisCjsPromises[id] = { promise, resolve: undefined };\n\t}\n}\n","import * as fs from 'fs';\nimport { dirname, resolve } from 'path';\n\nfunction isFile(file) {\n\ttry {\n\t\tconst stats = fs.statSync(file);\n\t\treturn stats.isFile();\n\t} catch (err) {\n\t\treturn false;\n\t}\n}\n\nfunction addJsExtensionIfNecessary(file) {\n\tif (isFile(file)) return file;\n\n\tfile += '.js';\n\tif (isFile(file)) return file;\n\n\treturn null;\n}\n\nconst absolutePath = /^(?:\\/|(?:[A-Za-z]:)?[\\\\|/])/;\n\nfunction isAbsolute(path) {\n\treturn absolutePath.test(path);\n}\n\nexport default function defaultResolver(importee, importer) {\n\t// absolute paths are left untouched\n\tif (isAbsolute(importee)) return addJsExtensionIfNecessary(resolve(importee));\n\n\t// if this is the entry point, resolve against cwd\n\tif (importer === undefined) return addJsExtensionIfNecessary(resolve(process.cwd(), importee));\n\n\t// external modules are skipped at this stage\n\tif (importee[0] !== '.') return null;\n\n\treturn addJsExtensionIfNecessary(resolve(dirname(importer), importee));\n}\n","import { basename, dirname, extname, sep } from 'path';\nimport { makeLegalIdentifier } from 'rollup-pluginutils';\n\nexport function getName(id) {\n\tconst name = makeLegalIdentifier(basename(id, extname(id)));\n\tif (name !== 'index') {\n\t\treturn name;\n\t} else {\n\t\tconst segments = dirname(id).split(sep);\n\t\treturn makeLegalIdentifier(segments[segments.length - 1]);\n\t}\n}\n\n// Return the first non-falsy result from an array of\n// maybe-sync, maybe-promise-returning functions\nexport function first(candidates) {\n\treturn function(...args) {\n\t\treturn candidates.reduce((promise, candidate) => {\n\t\t\treturn promise.then(result =>\n\t\t\t\tresult != null ? result : Promise.resolve(candidate.call(this, ...args))\n\t\t\t);\n\t\t}, Promise.resolve());\n\t};\n}\n","import { statSync } from 'fs';\nimport { dirname, resolve, sep } from 'path';\nimport defaultResolver from './default-resolver';\nimport { EXTERNAL_PREFIX, PROXY_PREFIX } from './helpers';\nimport { first } from './utils';\n\nfunction getCandidatesForExtension(resolved, extension) {\n\treturn [resolved + extension, resolved + `${sep}index${extension}`];\n}\n\nfunction getCandidates(resolved, extensions) {\n\treturn extensions.reduce(\n\t\t(paths, extension) => paths.concat(getCandidatesForExtension(resolved, extension)),\n\t\t[resolved]\n\t);\n}\n\nexport function getResolveId(extensions) {\n\tlet resolveUsingOtherResolvers;\n\n\tfunction resolveId(importee, importer) {\n\t\tconst isProxyModule = importee.startsWith(PROXY_PREFIX);\n\t\tif (isProxyModule) {\n\t\t\timportee = importee.slice(PROXY_PREFIX.length);\n\t\t} else if (importee.startsWith('\\0')) {\n\t\t\treturn importee;\n\t\t}\n\n\t\tif (importer && importer.startsWith(PROXY_PREFIX)) {\n\t\t\timporter = importer.slice(PROXY_PREFIX.length);\n\t\t}\n\n\t\treturn resolveUsingOtherResolvers.call(this, importee, importer).then(resolved => {\n\t\t\tif (resolved) return isProxyModule ? PROXY_PREFIX + resolved : resolved;\n\n\t\t\tresolved = defaultResolver(importee, importer);\n\n\t\t\tif (isProxyModule) {\n\t\t\t\tif (resolved) return PROXY_PREFIX + resolved;\n\t\t\t\treturn EXTERNAL_PREFIX + importee; // external\n\t\t\t}\n\n\t\t\treturn resolved;\n\t\t});\n\t}\n\n\tresolveId.setRollupOptions = function(options) {\n\t\tconst resolvers = (options.plugins || [])\n\t\t\t.map(plugin => {\n\t\t\t\tif (plugin.resolveId === resolveId) {\n\t\t\t\t\t// substitute CommonJS resolution logic\n\t\t\t\t\treturn (importee, importer) => {\n\t\t\t\t\t\tif (importee[0] !== '.' || !importer) return; // not our problem\n\n\t\t\t\t\t\tconst resolved = resolve(dirname(importer), importee);\n\t\t\t\t\t\tconst candidates = getCandidates(resolved, extensions);\n\n\t\t\t\t\t\tfor (let i = 0; i < candidates.length; i += 1) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tconst stats = statSync(candidates[i]);\n\t\t\t\t\t\t\t\tif (stats.isFile()) return candidates[i];\n\t\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\t\t/* noop */\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn plugin.resolveId;\n\t\t\t})\n\t\t\t.filter(Boolean);\n\n\t\tconst isExternal = id =>\n\t\t\toptions.external\n\t\t\t\t? Array.isArray(options.external)\n\t\t\t\t\t? options.external.includes(id)\n\t\t\t\t\t: options.external(id)\n\t\t\t\t: false;\n\n\t\tresolvers.unshift(id => (isExternal(id) ? false : null));\n\n\t\tresolveUsingOtherResolvers = first(resolvers);\n\t};\n\n\treturn resolveId;\n}\n","export function isReference(node, parent) {\n\tif (parent.type === 'MemberExpression') return parent.computed || node === parent.object;\n\n\t// disregard the `bar` in { bar: foo }\n\tif (parent.type === 'Property' && node !== parent.value) return false;\n\n\t// disregard the `bar` in `class Foo { bar () {...} }`\n\tif (parent.type === 'MethodDefinition') return false;\n\n\t// disregard the `bar` in `export { foo as bar }`\n\tif (parent.type === 'ExportSpecifier' && node !== parent.local) return false;\n\n\treturn true;\n}\n\nexport function flatten(node) {\n\tconst parts = [];\n\n\twhile (node.type === 'MemberExpression') {\n\t\tif (node.computed) return null;\n\n\t\tparts.unshift(node.property.name);\n\t\tnode = node.object;\n\t}\n\n\tif (node.type !== 'Identifier') return null;\n\n\tconst name = node.name;\n\tparts.unshift(name);\n\n\treturn { name, keypath: parts.join('.') };\n}\n\nexport function extractNames(node) {\n\tconst names = [];\n\textractors[node.type](names, node);\n\treturn names;\n}\n\nconst extractors = {\n\tIdentifier(names, node) {\n\t\tnames.push(node.name);\n\t},\n\n\tObjectPattern(names, node) {\n\t\tnode.properties.forEach(prop => {\n\t\t\textractors[prop.value.type](names, prop.value);\n\t\t});\n\t},\n\n\tArrayPattern(names, node) {\n\t\tnode.elements.forEach(element => {\n\t\t\tif (element) extractors[element.type](names, element);\n\t\t});\n\t},\n\n\tRestElement(names, node) {\n\t\textractors[node.argument.type](names, node.argument);\n\t},\n\n\tAssignmentPattern(names, node) {\n\t\textractors[node.left.type](names, node.left);\n\t},\n\n\tMemberExpression(names, node) {\n\t\textractors[node.property.type](names, node.property);\n\t}\n};\n\nexport function isTruthy(node) {\n\tif (node.type === 'Literal') return !!node.value;\n\tif (node.type === 'ParenthesizedExpression') return isTruthy(node.expression);\n\tif (node.operator in operators) return operators[node.operator](node);\n}\n\nexport function isFalsy(node) {\n\treturn not(isTruthy(node));\n}\n\nfunction not(value) {\n\treturn value === undefined ? value : !value;\n}\n\nfunction equals(a, b, strict) {\n\tif (a.type !== b.type) return undefined;\n\tif (a.type === 'Literal') return strict ? a.value === b.value : a.value == b.value;\n}\n\nconst operators = {\n\t'==': x => {\n\t\treturn equals(x.left, x.right, false);\n\t},\n\n\t'!=': x => not(operators['=='](x)),\n\n\t'===': x => {\n\t\treturn equals(x.left, x.right, true);\n\t},\n\n\t'!==': x => not(operators['==='](x)),\n\n\t'!': x => isFalsy(x.argument),\n\n\t'&&': x => isTruthy(x.left) && isTruthy(x.right),\n\n\t'||': x => isTruthy(x.left) || isTruthy(x.right)\n};\n","import { walk } from 'estree-walker';\nimport MagicString from 'magic-string';\nimport { attachScopes, makeLegalIdentifier } from 'rollup-pluginutils';\nimport { extractNames, flatten, isFalsy, isReference, isTruthy } from './ast-utils.js';\nimport { HELPERS_ID, PROXY_PREFIX } from './helpers.js';\nimport { getName } from './utils.js';\n\nconst reserved = 'process location abstract arguments boolean break byte case catch char class const continue debugger default delete do double else enum eval export extends false final finally float for from function goto if implements import in instanceof int interface let long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var void volatile while with yield'.split(\n\t' '\n);\nconst blacklist = { __esModule: true };\nreserved.forEach(word => (blacklist[word] = true));\n\nconst exportsPattern = /^(?:module\\.)?exports(?:\\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/;\n\nconst firstpassGlobal = /\\b(?:require|module|exports|global)\\b/;\nconst firstpassNoGlobal = /\\b(?:require|module|exports)\\b/;\nconst importExportDeclaration = /^(?:Import|Export(?:Named|Default))Declaration/;\nconst functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;\n\nfunction deconflict(scope, globals, identifier) {\n\tlet i = 1;\n\tlet deconflicted = identifier;\n\n\twhile (scope.contains(deconflicted) || globals.has(deconflicted) || deconflicted in blacklist)\n\t\tdeconflicted = `${identifier}_${i++}`;\n\tscope.declarations[deconflicted] = true;\n\n\treturn deconflicted;\n}\n\nfunction tryParse(parse, code, id) {\n\ttry {\n\t\treturn parse(code, { allowReturnOutsideFunction: true });\n\t} catch (err) {\n\t\terr.message += ` in ${id}`;\n\t\tthrow err;\n\t}\n}\n\nexport function hasCjsKeywords(code, ignoreGlobal) {\n\tconst firstpass = ignoreGlobal ? firstpassNoGlobal : firstpassGlobal;\n\treturn firstpass.test(code);\n}\n\nexport function checkEsModule(parse, code, id) {\n\tconst ast = tryParse(parse, code, id);\n\n\tlet isEsModule = false;\n\tfor (const node of ast.body) {\n\t\tif (node.type === 'ExportDefaultDeclaration')\n\t\t\treturn { isEsModule: true, hasDefaultExport: true, ast };\n\t\tif (node.type === 'ExportNamedDeclaration') {\n\t\t\tisEsModule = true;\n\t\t\tfor (const specifier of node.specifiers) {\n\t\t\t\tif (specifier.exported.name === 'default') {\n\t\t\t\t\treturn { isEsModule: true, hasDefaultExport: true, ast };\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (importExportDeclaration.test(node.type)) isEsModule = true;\n\t}\n\n\treturn { isEsModule, hasDefaultExport: false, ast };\n}\n\nexport function transformCommonjs(\n\tparse,\n\tcode,\n\tid,\n\tisEntry,\n\tignoreGlobal,\n\tignoreRequire,\n\tcustomNamedExports,\n\tsourceMap,\n\tallowDynamicRequire,\n\tastCache\n) {\n\tconst ast = astCache || tryParse(parse, code, id);\n\n\tconst magicString = new MagicString(code);\n\n\tconst required = {};\n\t// Because objects have no guaranteed ordering, yet we need it,\n\t// we need to keep track of the order in a array\n\tconst sources = [];\n\n\tlet uid = 0;\n\n\tlet scope = attachScopes(ast, 'scope');\n\tconst uses = { module: false, exports: false, global: false, require: false };\n\n\tlet lexicalDepth = 0;\n\tlet programDepth = 0;\n\n\tconst globals = new Set();\n\n\tconst HELPERS_NAME = deconflict(scope, globals, 'commonjsHelpers'); // TODO technically wrong since globals isn't populated yet, but ¯\\_(ツ)_/¯\n\n\tconst namedExports = {};\n\n\t// TODO handle transpiled modules\n\tlet shouldWrap = /__esModule/.test(code);\n\n\tfunction isRequireStatement(node) {\n\t\tif (!node) return;\n\t\tif (node.type !== 'CallExpression') return;\n\t\tif (node.callee.name !== 'require' || scope.contains('require')) return;\n\t\tif (node.arguments.length === 0) return; // Weird case of require() without arguments\n\t\treturn true;\n\t}\n\n\tfunction hasDynamicArguments(node) {\n\t\treturn (\n\t\t\tnode.arguments.length > 1 ||\n\t\t\t(node.arguments[0].type !== 'Literal' &&\n\t\t\t\t(node.arguments[0].type !== 'TemplateLiteral' || node.arguments[0].expressions.length > 0))\n\t\t);\n\t}\n\n\tfunction isStaticRequireStatement(node) {\n\t\tif (!isRequireStatement(node)) return;\n\t\tif (hasDynamicArguments(node)) return;\n\t\tif (ignoreRequire(node.arguments[0].value)) return;\n\t\treturn true;\n\t}\n\n\tfunction getRequireStringArg(node) {\n\t\treturn node.arguments[0].type === 'Literal'\n\t\t\t? node.arguments[0].value\n\t\t\t: node.arguments[0].quasis[0].value.cooked;\n\t}\n\n\tfunction getRequired(node, name) {\n\t\tconst sourceId = getRequireStringArg(node);\n\t\tconst existing = required[sourceId];\n\t\tif (existing === undefined) {\n\t\t\tif (!name) {\n\t\t\t\tdo name = `require$$${uid++}`;\n\t\t\t\twhile (scope.contains(name));\n\t\t\t}\n\n\t\t\tsources.push(sourceId);\n\t\t\trequired[sourceId] = { source: sourceId, name, importsDefault: false };\n\t\t}\n\n\t\treturn required[sourceId];\n\t}\n\n\t// do a first pass, see which names are assigned to. This is necessary to prevent\n\t// illegally replacing `var foo = require('foo')` with `import foo from 'foo'`,\n\t// where `foo` is later reassigned. (This happens in the wild. CommonJS, sigh)\n\tconst assignedTo = new Set();\n\twalk(ast, {\n\t\tenter(node) {\n\t\t\tif (node.type !== 'AssignmentExpression') return;\n\t\t\tif (node.left.type === 'MemberExpression') return;\n\n\t\t\textractNames(node.left).forEach(name => {\n\t\t\t\tassignedTo.add(name);\n\t\t\t});\n\t\t}\n\t});\n\n\twalk(ast, {\n\t\tenter(node, parent) {\n\t\t\tif (sourceMap) {\n\t\t\t\tmagicString.addSourcemapLocation(node.start);\n\t\t\t\tmagicString.addSourcemapLocation(node.end);\n\t\t\t}\n\n\t\t\t// skip dead branches\n\t\t\tif (parent && (parent.type === 'IfStatement' || parent.type === 'ConditionalExpression')) {\n\t\t\t\tif (node === parent.consequent && isFalsy(parent.test)) return this.skip();\n\t\t\t\tif (node === parent.alternate && isTruthy(parent.test)) return this.skip();\n\t\t\t}\n\n\t\t\tif (node._skip) return this.skip();\n\n\t\t\tprogramDepth += 1;\n\n\t\t\tif (node.scope) scope = node.scope;\n\t\t\tif (functionType.test(node.type)) lexicalDepth += 1;\n\n\t\t\t// if toplevel return, we need to wrap it\n\t\t\tif (node.type === 'ReturnStatement' && lexicalDepth === 0) {\n\t\t\t\tshouldWrap = true;\n\t\t\t}\n\n\t\t\t// rewrite `this` as `commonjsHelpers.commonjsGlobal`\n\t\t\tif (node.type === 'ThisExpression' && lexicalDepth === 0) {\n\t\t\t\tuses.global = true;\n\t\t\t\tif (!ignoreGlobal)\n\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// rewrite `typeof module`, `typeof module.exports` and `typeof exports` (https://github.com/rollup/rollup-plugin-commonjs/issues/151)\n\t\t\tif (node.type === 'UnaryExpression' && node.operator === 'typeof') {\n\t\t\t\tconst flattened = flatten(node.argument);\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tif (scope.contains(flattened.name)) return;\n\n\t\t\t\tif (\n\t\t\t\t\tflattened.keypath === 'module.exports' ||\n\t\t\t\t\tflattened.keypath === 'module' ||\n\t\t\t\t\tflattened.keypath === 'exports'\n\t\t\t\t) {\n\t\t\t\t\tmagicString.overwrite(node.start, node.end, `'object'`, { storeName: false });\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// rewrite `require` (if not already handled) `global` and `define`, and handle free references to\n\t\t\t// `module` and `exports` as these mean we need to wrap the module in commonjsHelpers.createCommonjsModule\n\t\t\tif (node.type === 'Identifier') {\n\t\t\t\tif (isReference(node, parent) && !scope.contains(node.name)) {\n\t\t\t\t\tif (node.name in uses) {\n\t\t\t\t\t\tif (node.name === 'require') {\n\t\t\t\t\t\t\tif (allowDynamicRequire) return;\n\t\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {\n\t\t\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tuses[node.name] = true;\n\t\t\t\t\t\tif (node.name === 'global' && !ignoreGlobal) {\n\t\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n\t\t\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// if module or exports are used outside the context of an assignment\n\t\t\t\t\t\t// expression, we need to wrap the module\n\t\t\t\t\t\tif (node.name === 'module' || node.name === 'exports') {\n\t\t\t\t\t\t\tshouldWrap = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (node.name === 'define') {\n\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, 'undefined', { storeName: true });\n\t\t\t\t\t}\n\n\t\t\t\t\tglobals.add(node.name);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Is this an assignment to exports or module.exports?\n\t\t\tif (node.type === 'AssignmentExpression') {\n\t\t\t\tif (node.left.type !== 'MemberExpression') return;\n\n\t\t\t\tconst flattened = flatten(node.left);\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tif (scope.contains(flattened.name)) return;\n\n\t\t\t\tconst match = exportsPattern.exec(flattened.keypath);\n\t\t\t\tif (!match || flattened.keypath === 'exports') return;\n\n\t\t\t\tuses[flattened.name] = true;\n\n\t\t\t\t// we're dealing with `module.exports = ...` or `[module.]exports.foo = ...` –\n\t\t\t\t// if this isn't top-level, we'll need to wrap the module\n\t\t\t\tif (programDepth > 3) shouldWrap = true;\n\n\t\t\t\tnode.left._skip = true;\n\n\t\t\t\tif (flattened.keypath === 'module.exports' && node.right.type === 'ObjectExpression') {\n\t\t\t\t\treturn node.right.properties.forEach(prop => {\n\t\t\t\t\t\tif (prop.computed || prop.key.type !== 'Identifier') return;\n\t\t\t\t\t\tconst name = prop.key.name;\n\t\t\t\t\t\tif (name === makeLegalIdentifier(name)) namedExports[name] = true;\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif (match[1]) namedExports[match[1]] = true;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// if this is `var x = require('x')`, we can do `import x from 'x'`\n\t\t\tif (\n\t\t\t\tnode.type === 'VariableDeclarator' &&\n\t\t\t\tnode.id.type === 'Identifier' &&\n\t\t\t\tisStaticRequireStatement(node.init)\n\t\t\t) {\n\t\t\t\t// for now, only do this for top-level requires. maybe fix this in future\n\t\t\t\tif (scope.parent) return;\n\n\t\t\t\t// edge case — CJS allows you to assign to imports. ES doesn't\n\t\t\t\tif (assignedTo.has(node.id.name)) return;\n\n\t\t\t\tconst required = getRequired(node.init, node.id.name);\n\t\t\t\trequired.importsDefault = true;\n\n\t\t\t\tif (required.name === node.id.name) {\n\t\t\t\t\tnode._shouldRemove = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!isStaticRequireStatement(node)) return;\n\n\t\t\tconst required = getRequired(node);\n\n\t\t\tif (parent.type === 'ExpressionStatement') {\n\t\t\t\t// is a bare import, e.g. `require('foo');`\n\t\t\t\tmagicString.remove(parent.start, parent.end);\n\t\t\t} else {\n\t\t\t\trequired.importsDefault = true;\n\t\t\t\tmagicString.overwrite(node.start, node.end, required.name);\n\t\t\t}\n\n\t\t\tnode.callee._skip = true;\n\t\t},\n\n\t\tleave(node) {\n\t\t\tprogramDepth -= 1;\n\t\t\tif (node.scope) scope = scope.parent;\n\t\t\tif (functionType.test(node.type)) lexicalDepth -= 1;\n\n\t\t\tif (node.type === 'VariableDeclaration') {\n\t\t\t\tlet keepDeclaration = false;\n\t\t\t\tlet c = node.declarations[0].start;\n\n\t\t\t\tfor (let i = 0; i < node.declarations.length; i += 1) {\n\t\t\t\t\tconst declarator = node.declarations[i];\n\n\t\t\t\t\tif (declarator._shouldRemove) {\n\t\t\t\t\t\tmagicString.remove(c, declarator.end);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!keepDeclaration) {\n\t\t\t\t\t\t\tmagicString.remove(c, declarator.start);\n\t\t\t\t\t\t\tkeepDeclaration = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tc = declarator.end;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!keepDeclaration) {\n\t\t\t\t\tmagicString.remove(node.start, node.end);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\tif (\n\t\t!sources.length &&\n\t\t!uses.module &&\n\t\t!uses.exports &&\n\t\t!uses.require &&\n\t\t(ignoreGlobal || !uses.global)\n\t) {\n\t\tif (Object.keys(namedExports).length) {\n\t\t\tthrow new Error(\n\t\t\t\t`Custom named exports were specified for ${id} but it does not appear to be a CommonJS module`\n\t\t\t);\n\t\t}\n\t\treturn null; // not a CommonJS module\n\t}\n\n\tconst includeHelpers = shouldWrap || uses.global || uses.require;\n\tconst importBlock =\n\t\t(includeHelpers ? [`import * as ${HELPERS_NAME} from '${HELPERS_ID}';`] : [])\n\t\t\t.concat(\n\t\t\t\tsources.map(source => {\n\t\t\t\t\t// import the actual module before the proxy, so that we know\n\t\t\t\t\t// what kind of proxy to build\n\t\t\t\t\treturn `import '${source}';`;\n\t\t\t\t}),\n\t\t\t\tsources.map(source => {\n\t\t\t\t\tconst { name, importsDefault } = required[source];\n\t\t\t\t\treturn `import ${importsDefault ? `${name} from ` : ``}'${PROXY_PREFIX}${source}';`;\n\t\t\t\t})\n\t\t\t)\n\t\t\t.join('\\n') + '\\n\\n';\n\n\tconst namedExportDeclarations = [];\n\tlet wrapperStart = '';\n\tlet wrapperEnd = '';\n\n\tconst moduleName = deconflict(scope, globals, getName(id));\n\tif (!isEntry) {\n\t\tconst exportModuleExports = {\n\t\t\tstr: `export { ${moduleName} as __moduleExports };`,\n\t\t\tname: '__moduleExports'\n\t\t};\n\n\t\tnamedExportDeclarations.push(exportModuleExports);\n\t}\n\n\tconst name = getName(id);\n\n\tfunction addExport(x) {\n\t\tconst deconflicted = deconflict(scope, globals, name);\n\n\t\tconst declaration =\n\t\t\tdeconflicted === name\n\t\t\t\t? `export var ${x} = ${moduleName}.${x};`\n\t\t\t\t: `var ${deconflicted} = ${moduleName}.${x};\\nexport { ${deconflicted} as ${x} };`;\n\n\t\tnamedExportDeclarations.push({\n\t\t\tstr: declaration,\n\t\t\tname: x\n\t\t});\n\t}\n\n\tif (customNamedExports) customNamedExports.forEach(addExport);\n\n\tconst defaultExportPropertyAssignments = [];\n\tlet hasDefaultExport = false;\n\n\tif (shouldWrap) {\n\t\tconst args = `module${uses.exports ? ', exports' : ''}`;\n\n\t\twrapperStart = `var ${moduleName} = ${HELPERS_NAME}.createCommonjsModule(function (${args}) {\\n`;\n\t\twrapperEnd = `\\n});`;\n\t} else {\n\t\tconst names = [];\n\n\t\tast.body.forEach(node => {\n\t\t\tif (node.type === 'ExpressionStatement' && node.expression.type === 'AssignmentExpression') {\n\t\t\t\tconst left = node.expression.left;\n\t\t\t\tconst flattened = flatten(left);\n\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tconst match = exportsPattern.exec(flattened.keypath);\n\t\t\t\tif (!match) return;\n\n\t\t\t\tif (flattened.keypath === 'module.exports') {\n\t\t\t\t\thasDefaultExport = true;\n\t\t\t\t\tmagicString.overwrite(left.start, left.end, `var ${moduleName}`);\n\t\t\t\t} else {\n\t\t\t\t\tconst name = match[1];\n\t\t\t\t\tconst deconflicted = deconflict(scope, globals, name);\n\n\t\t\t\t\tnames.push({ name, deconflicted });\n\n\t\t\t\t\tmagicString.overwrite(node.start, left.end, `var ${deconflicted}`);\n\n\t\t\t\t\tconst declaration =\n\t\t\t\t\t\tname === deconflicted\n\t\t\t\t\t\t\t? `export { ${name} };`\n\t\t\t\t\t\t\t: `export { ${deconflicted} as ${name} };`;\n\n\t\t\t\t\tif (name !== 'default') {\n\t\t\t\t\t\tnamedExportDeclarations.push({\n\t\t\t\t\t\t\tstr: declaration,\n\t\t\t\t\t\t\tname\n\t\t\t\t\t\t});\n\t\t\t\t\t\tdelete namedExports[name];\n\t\t\t\t\t}\n\n\t\t\t\t\tdefaultExportPropertyAssignments.push(`${moduleName}.${name} = ${deconflicted};`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (!hasDefaultExport) {\n\t\t\twrapperEnd = `\\n\\nvar ${moduleName} = {\\n${names\n\t\t\t\t.map(({ name, deconflicted }) => `\\t${name}: ${deconflicted}`)\n\t\t\t\t.join(',\\n')}\\n};`;\n\t\t}\n\t}\n\tObject.keys(namedExports)\n\t\t.filter(key => !blacklist[key])\n\t\t.forEach(addExport);\n\n\tconst defaultExport = /__esModule/.test(code)\n\t\t? `export default ${HELPERS_NAME}.unwrapExports(${moduleName});`\n\t\t: `export default ${moduleName};`;\n\n\tconst named = namedExportDeclarations\n\t\t.filter(x => x.name !== 'default' || !hasDefaultExport)\n\t\t.map(x => x.str);\n\n\tconst exportBlock =\n\t\t'\\n\\n' +\n\t\t[defaultExport]\n\t\t\t.concat(named)\n\t\t\t.concat(hasDefaultExport ? defaultExportPropertyAssignments : [])\n\t\t\t.join('\\n');\n\n\tmagicString\n\t\t.trim()\n\t\t.prepend(importBlock + wrapperStart)\n\t\t.trim()\n\t\t.append(wrapperEnd + exportBlock);\n\n\tcode = magicString.toString();\n\tconst map = sourceMap ? magicString.generateMap() : null;\n\n\treturn { code, map };\n}\n","import { extname, resolve } from 'path';\nimport { sync as nodeResolveSync } from 'resolve';\nimport { createFilter } from 'rollup-pluginutils';\nimport { EXTERNAL_PREFIX, HELPERS, HELPERS_ID, PROXY_PREFIX } from './helpers.js';\nimport { getIsCjsPromise, setIsCjsPromise } from './is-cjs';\nimport { getResolveId } from './resolve-id';\nimport { checkEsModule, hasCjsKeywords, transformCommonjs } from './transform.js';\nimport { getName } from './utils.js';\n\nexport default function commonjs(options = {}) {\n\tconst extensions = options.extensions || ['.js'];\n\tconst filter = createFilter(options.include, options.exclude);\n\tconst ignoreGlobal = options.ignoreGlobal;\n\n\tconst customNamedExports = {};\n\tif (options.namedExports) {\n\t\tObject.keys(options.namedExports).forEach(id => {\n\t\t\tlet resolvedId;\n\n\t\t\ttry {\n\t\t\t\tresolvedId = nodeResolveSync(id, { basedir: process.cwd() });\n\t\t\t} catch (err) {\n\t\t\t\tresolvedId = resolve(id);\n\t\t\t}\n\n\t\t\tcustomNamedExports[resolvedId] = options.namedExports[id];\n\t\t});\n\t}\n\n\tconst esModulesWithoutDefaultExport = Object.create(null);\n\tconst esModulesWithDefaultExport = Object.create(null);\n\tconst allowDynamicRequire = !!options.ignore; // TODO maybe this should be configurable?\n\n\tconst ignoreRequire =\n\t\ttypeof options.ignore === 'function'\n\t\t\t? options.ignore\n\t\t\t: Array.isArray(options.ignore)\n\t\t\t\t? id => options.ignore.includes(id)\n\t\t\t\t: () => false;\n\n\tlet entryModuleIdsPromise = null;\n\n\tconst resolveId = getResolveId(extensions);\n\n\tconst sourceMap = options.sourceMap !== false;\n\n\treturn {\n\t\tname: 'commonjs',\n\n\t\toptions(options) {\n\t\t\tresolveId.setRollupOptions(options);\n\t\t\tconst input = options.input || options.entry;\n\t\t\tconst entryModules = Array.isArray(input)\n\t\t\t\t? input\n\t\t\t\t: typeof input === 'object' && input !== null\n\t\t\t\t\t? Object.values(input)\n\t\t\t\t\t: [input];\n\t\t\tentryModuleIdsPromise = Promise.all(entryModules.map(entry => resolveId(entry)));\n\t\t},\n\n\t\tresolveId,\n\n\t\tload(id) {\n\t\t\tif (id === HELPERS_ID) return HELPERS;\n\n\t\t\t// generate proxy modules\n\t\t\tif (id.startsWith(EXTERNAL_PREFIX)) {\n\t\t\t\tconst actualId = id.slice(EXTERNAL_PREFIX.length);\n\t\t\t\tconst name = getName(actualId);\n\n\t\t\t\treturn `import ${name} from ${JSON.stringify(actualId)}; export default ${name};`;\n\t\t\t}\n\n\t\t\tif (id.startsWith(PROXY_PREFIX)) {\n\t\t\t\tconst actualId = id.slice(PROXY_PREFIX.length);\n\t\t\t\tconst name = getName(actualId);\n\n\t\t\t\treturn getIsCjsPromise(actualId).then(isCjs => {\n\t\t\t\t\tif (isCjs)\n\t\t\t\t\t\treturn `import { __moduleExports } from ${JSON.stringify(\n\t\t\t\t\t\t\tactualId\n\t\t\t\t\t\t)}; export default __moduleExports;`;\n\t\t\t\t\telse if (esModulesWithoutDefaultExport[actualId])\n\t\t\t\t\t\treturn `import * as ${name} from ${JSON.stringify(actualId)}; export default ${name};`;\n\t\t\t\t\telse if (esModulesWithDefaultExport[actualId]) {\n\t\t\t\t\t\treturn `export {default} from ${JSON.stringify(actualId)};`;\n\t\t\t\t\t} else\n\t\t\t\t\t\treturn `import * as ${name} from ${JSON.stringify(\n\t\t\t\t\t\t\tactualId\n\t\t\t\t\t\t)}; import {getCjsExportFromNamespace} from \"${HELPERS_ID}\"; export default getCjsExportFromNamespace(${name})`;\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\ttransform(code, id) {\n\t\t\tif (!filter(id) || extensions.indexOf(extname(id)) === -1) {\n\t\t\t\tsetIsCjsPromise(id, Promise.resolve(null));\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tconst transformPromise = entryModuleIdsPromise\n\t\t\t\t.then(entryModuleIds => {\n\t\t\t\t\tconst { isEsModule, hasDefaultExport, ast } = checkEsModule(this.parse, code, id);\n\t\t\t\t\tif (isEsModule) {\n\t\t\t\t\t\t(hasDefaultExport ? esModulesWithDefaultExport : esModulesWithoutDefaultExport)[\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// it is not an ES module but it does not have CJS-specific elements.\n\t\t\t\t\tif (!hasCjsKeywords(code, ignoreGlobal)) {\n\t\t\t\t\t\tesModulesWithoutDefaultExport[id] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst transformed = transformCommonjs(\n\t\t\t\t\t\tthis.parse,\n\t\t\t\t\t\tcode,\n\t\t\t\t\t\tid,\n\t\t\t\t\t\tentryModuleIds.indexOf(id) !== -1,\n\t\t\t\t\t\tignoreGlobal,\n\t\t\t\t\t\tignoreRequire,\n\t\t\t\t\t\tcustomNamedExports[id],\n\t\t\t\t\t\tsourceMap,\n\t\t\t\t\t\tallowDynamicRequire,\n\t\t\t\t\t\tast\n\t\t\t\t\t);\n\t\t\t\t\tif (!transformed) {\n\t\t\t\t\t\tesModulesWithoutDefaultExport[id] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn transformed;\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tthis.error(err, err.loc);\n\t\t\t\t});\n\n\t\t\tsetIsCjsPromise(id, transformPromise.then(Boolean, () => false));\n\t\t\treturn transformPromise;\n\t\t}\n\t};\n}\n"],"names":["const","let","fs.statSync","resolve","dirname","makeLegalIdentifier","basename","extname","sep","this","statSync","attachScopes","walk","flattened","required","createFilter","nodeResolveSync","options","actualId","name"],"mappings":";;;;;;;;;;;AAAOA,IAAM,YAAY,GAAG,mBAAmB,CAAC;AAChD,AAAOA,IAAM,eAAe,GAAG,sBAAsB,CAAC;AACtD,AAAOA,IAAM,UAAU,GAAG,sBAAsB,CAAC;;;;AAIjD,AAAOA,IAAM,OAAO,GAAG,qsBAiBrB,CAAC;;ACvBHA,IAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;;AAE1C,AAAO,SAAS,eAAe,CAAC,EAAE,EAAE;CACnCC,IAAI,YAAY,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;CACrC,IAAI,YAAY,IAAE,OAAO,YAAY,CAAC,OAAO,GAAC;;CAE9CD,IAAM,OAAO,GAAG,IA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GAEDP,IAAM,gBAAgB,GAAG,qBAAqB;KAC5C,IAAI,WAAC,gBAAe;KACpB,OAA2C,GAAG,aAAa,CAACS,MAAI,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;KAAxE;KAAY;KAAkB,kBAA4C;KAClF,IAAI,UAAU,EAAE;MACf,CAAC,gBAAgB,GAAG,0BAA0B,GAAG,6BAA6B;OAC7E,EAAE;OACF,GAAG,IAAI,CAAC;MACT,OAAO,IAAI,CAAC;MACZ;;;KAGD,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,EAAE;MACxC,6BAA6B,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;MACzC,OAAO,IAAI,CAAC;MACZ;;KAEDT,IAAM,WAAW,GAAG,iBAAiB;MACpCS,MAAI,CAAC,KAAK;MACV,IAAI;MACJ,EAAE;MACF,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;MACjC,YAAY;MACZ,aAAa;MACb,kBAAkB,CAAC,EAAE,CAAC;MACtB,SAAS;MACT,mBAAmB;MACnB,GAAG;MACH,CAAC;KACF,IAAI,CAAC,WAAW,EAAE;MACjB,6BAA6B,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;MACzC,OAAO,IAAI,CAAC;MACZ;;KAED,OAAO,WAAW,CAAC;KACnB,CAAC;KACD,KAAK,WAAC,KAAI;KACVA,MAAI,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC,CAAC;;GAEJ,eAAe,CAAC,EAAE,EAAE,gBAAgB,CAAC,IAAI,CAAC,OAAO,cAAK,SAAG,QAAK,CAAC,CAAC,CAAC;GACjE,OAAO,gBAAgB,CAAC;GACxB;EACD,CAAC;CACF;;;;"} \ No newline at end of file diff --git a/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js b/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js index 623f7dd0..1cbbdb37 100644 --- a/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js +++ b/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js @@ -7,9 +7,11 @@ import MagicString from 'magic-string'; var PROXY_PREFIX = '\0commonjs-proxy:'; var EXTERNAL_PREFIX = '\0commonjs-external:'; -var HELPERS_ID = '\0commonjsHelpers'; +var HELPERS_ID = '\0commonjsHelpers.js'; -var HELPERS = "\nexport var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x.default : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nexport function getCjsExportFromNamespace (n) {\n\treturn n && n.default || n;\n}"; +// `x['default']` is used instead of `x.default` for backward compatibility with ES3 browsers. +// Minifiers like uglify will usually transpile it back if compatibility with ES3 is not enabled. +var HELPERS = "\nexport var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nexport function getCjsExportFromNamespace (n) {\n\treturn n && n['default'] || n;\n}"; var isCjsPromises = Object.create(null); @@ -17,9 +19,9 @@ function getIsCjsPromise(id) { var isCjsPromise = isCjsPromises[id]; if (isCjsPromise) { return isCjsPromise.promise; } - var promise = new Promise(function (resolve$$1) { + var promise = new Promise(function (resolve) { isCjsPromises[id] = isCjsPromise = { - resolve: resolve$$1, + resolve: resolve, promise: undefined }; }); @@ -96,8 +98,7 @@ function first(candidates) { while ( len-- ) args[ len ] = arguments[ len ]; return candidates.reduce(function (promise, candidate) { - return promise.then( - function (result) { return (result != null ? result : Promise.resolve(candidate.call.apply(candidate, [ this$1 ].concat( args )))); } + return promise.then(function (result) { return result != null ? result : Promise.resolve(candidate.call.apply(candidate, [ this$1 ].concat( args ))); } ); }, Promise.resolve()); }; @@ -245,6 +246,10 @@ var extractors = { AssignmentPattern: function AssignmentPattern(names, node) { extractors[node.left.type](names, node.left); + }, + + MemberExpression: function MemberExpression(names, node) { + extractors[node.property.type](names, node.property); } }; diff --git a/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js.map b/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js.map index ada4b604..b73cf504 100644 --- a/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js.map +++ b/build/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js.map @@ -1 +1 @@ -{"version":3,"file":"rollup-plugin-commonjs.es.js","sources":["../src/helpers.js","../src/is-cjs.js","../src/default-resolver.js","../src/utils.js","../src/resolve-id.js","../src/ast-utils.js","../src/transform.js","../src/index.js"],"sourcesContent":["export const PROXY_PREFIX = '\\0commonjs-proxy:';\nexport const EXTERNAL_PREFIX = '\\0commonjs-external:';\nexport const HELPERS_ID = '\\0commonjsHelpers';\n\nexport const HELPERS = `\nexport var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x.default : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nexport function getCjsExportFromNamespace (n) {\n\treturn n && n.default || n;\n}`;\n","const isCjsPromises = Object.create(null);\n\nexport function getIsCjsPromise(id) {\n\tlet isCjsPromise = isCjsPromises[id];\n\tif (isCjsPromise) return isCjsPromise.promise;\n\n\tconst promise = new Promise(resolve => {\n\t\tisCjsPromises[id] = isCjsPromise = {\n\t\t\tresolve,\n\t\t\tpromise: undefined\n\t\t};\n\t});\n\tisCjsPromise.promise = promise;\n\n\treturn promise;\n}\n\nexport function setIsCjsPromise(id, promise) {\n\tconst isCjsPromise = isCjsPromises[id];\n\tif (isCjsPromise) {\n\t\tif (isCjsPromise.resolve) {\n\t\t\tisCjsPromise.resolve(promise);\n\t\t\tisCjsPromise.resolve = undefined;\n\t\t}\n\t} else {\n\t\tisCjsPromises[id] = { promise, resolve: undefined };\n\t}\n}\n","import * as fs from 'fs';\nimport { dirname, resolve } from 'path';\n\nfunction isFile(file) {\n\ttry {\n\t\tconst stats = fs.statSync(file);\n\t\treturn stats.isFile();\n\t} catch (err) {\n\t\treturn false;\n\t}\n}\n\nfunction addJsExtensionIfNecessary(file) {\n\tif (isFile(file)) return file;\n\n\tfile += '.js';\n\tif (isFile(file)) return file;\n\n\treturn null;\n}\n\nconst absolutePath = /^(?:\\/|(?:[A-Za-z]:)?[\\\\|/])/;\n\nfunction isAbsolute(path) {\n\treturn absolutePath.test(path);\n}\n\nexport default function defaultResolver(importee, importer) {\n\t// absolute paths are left untouched\n\tif (isAbsolute(importee)) return addJsExtensionIfNecessary(resolve(importee));\n\n\t// if this is the entry point, resolve against cwd\n\tif (importer === undefined) return addJsExtensionIfNecessary(resolve(process.cwd(), importee));\n\n\t// external modules are skipped at this stage\n\tif (importee[0] !== '.') return null;\n\n\treturn addJsExtensionIfNecessary(resolve(dirname(importer), importee));\n}\n","import { basename, dirname, extname, sep } from 'path';\nimport { makeLegalIdentifier } from 'rollup-pluginutils';\n\nexport function getName(id) {\n\tconst name = makeLegalIdentifier(basename(id, extname(id)));\n\tif (name !== 'index') {\n\t\treturn name;\n\t} else {\n\t\tconst segments = dirname(id).split(sep);\n\t\treturn makeLegalIdentifier(segments[segments.length - 1]);\n\t}\n}\n\n// Return the first non-falsy result from an array of\n// maybe-sync, maybe-promise-returning functions\nexport function first(candidates) {\n\treturn function(...args) {\n\t\treturn candidates.reduce((promise, candidate) => {\n\t\t\treturn promise.then(\n\t\t\t\tresult => (result != null ? result : Promise.resolve(candidate.call(this, ...args)))\n\t\t\t);\n\t\t}, Promise.resolve());\n\t};\n}\n","import { statSync } from 'fs';\nimport { dirname, resolve, sep } from 'path';\nimport defaultResolver from './default-resolver';\nimport { EXTERNAL_PREFIX, PROXY_PREFIX } from './helpers';\nimport { first } from './utils';\n\nfunction getCandidatesForExtension(resolved, extension) {\n\treturn [resolved + extension, resolved + `${sep}index${extension}`];\n}\n\nfunction getCandidates(resolved, extensions) {\n\treturn extensions.reduce(\n\t\t(paths, extension) => paths.concat(getCandidatesForExtension(resolved, extension)),\n\t\t[resolved]\n\t);\n}\n\nexport function getResolveId(extensions) {\n\tlet resolveUsingOtherResolvers;\n\n\tfunction resolveId(importee, importer) {\n\t\tconst isProxyModule = importee.startsWith(PROXY_PREFIX);\n\t\tif (isProxyModule) {\n\t\t\timportee = importee.slice(PROXY_PREFIX.length);\n\t\t} else if (importee.startsWith('\\0')) {\n\t\t\treturn importee;\n\t\t}\n\n\t\tif (importer && importer.startsWith(PROXY_PREFIX)) {\n\t\t\timporter = importer.slice(PROXY_PREFIX.length);\n\t\t}\n\n\t\treturn resolveUsingOtherResolvers.call(this, importee, importer).then(resolved => {\n\t\t\tif (resolved) return isProxyModule ? PROXY_PREFIX + resolved : resolved;\n\n\t\t\tresolved = defaultResolver(importee, importer);\n\n\t\t\tif (isProxyModule) {\n\t\t\t\tif (resolved) return PROXY_PREFIX + resolved;\n\t\t\t\treturn EXTERNAL_PREFIX + importee; // external\n\t\t\t}\n\n\t\t\treturn resolved;\n\t\t});\n\t}\n\n\tresolveId.setRollupOptions = function(options) {\n\t\tconst resolvers = (options.plugins || [])\n\t\t\t.map(plugin => {\n\t\t\t\tif (plugin.resolveId === resolveId) {\n\t\t\t\t\t// substitute CommonJS resolution logic\n\t\t\t\t\treturn (importee, importer) => {\n\t\t\t\t\t\tif (importee[0] !== '.' || !importer) return; // not our problem\n\n\t\t\t\t\t\tconst resolved = resolve(dirname(importer), importee);\n\t\t\t\t\t\tconst candidates = getCandidates(resolved, extensions);\n\n\t\t\t\t\t\tfor (let i = 0; i < candidates.length; i += 1) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tconst stats = statSync(candidates[i]);\n\t\t\t\t\t\t\t\tif (stats.isFile()) return candidates[i];\n\t\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\t\t/* noop */\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn plugin.resolveId;\n\t\t\t})\n\t\t\t.filter(Boolean);\n\n\t\tconst isExternal = id =>\n\t\t\toptions.external\n\t\t\t\t? Array.isArray(options.external)\n\t\t\t\t\t? options.external.includes(id)\n\t\t\t\t\t: options.external(id)\n\t\t\t\t: false;\n\n\t\tresolvers.unshift(id => (isExternal(id) ? false : null));\n\n\t\tresolveUsingOtherResolvers = first(resolvers);\n\t};\n\n\treturn resolveId;\n}\n","export function isReference(node, parent) {\n\tif (parent.type === 'MemberExpression') return parent.computed || node === parent.object;\n\n\t// disregard the `bar` in { bar: foo }\n\tif (parent.type === 'Property' && node !== parent.value) return false;\n\n\t// disregard the `bar` in `class Foo { bar () {...} }`\n\tif (parent.type === 'MethodDefinition') return false;\n\n\t// disregard the `bar` in `export { foo as bar }`\n\tif (parent.type === 'ExportSpecifier' && node !== parent.local) return false;\n\n\treturn true;\n}\n\nexport function flatten(node) {\n\tconst parts = [];\n\n\twhile (node.type === 'MemberExpression') {\n\t\tif (node.computed) return null;\n\n\t\tparts.unshift(node.property.name);\n\t\tnode = node.object;\n\t}\n\n\tif (node.type !== 'Identifier') return null;\n\n\tconst name = node.name;\n\tparts.unshift(name);\n\n\treturn { name, keypath: parts.join('.') };\n}\n\nexport function extractNames(node) {\n\tconst names = [];\n\textractors[node.type](names, node);\n\treturn names;\n}\n\nconst extractors = {\n\tIdentifier(names, node) {\n\t\tnames.push(node.name);\n\t},\n\n\tObjectPattern(names, node) {\n\t\tnode.properties.forEach(prop => {\n\t\t\textractors[prop.value.type](names, prop.value);\n\t\t});\n\t},\n\n\tArrayPattern(names, node) {\n\t\tnode.elements.forEach(element => {\n\t\t\tif (element) extractors[element.type](names, element);\n\t\t});\n\t},\n\n\tRestElement(names, node) {\n\t\textractors[node.argument.type](names, node.argument);\n\t},\n\n\tAssignmentPattern(names, node) {\n\t\textractors[node.left.type](names, node.left);\n\t}\n};\n\nexport function isTruthy(node) {\n\tif (node.type === 'Literal') return !!node.value;\n\tif (node.type === 'ParenthesizedExpression') return isTruthy(node.expression);\n\tif (node.operator in operators) return operators[node.operator](node);\n}\n\nexport function isFalsy(node) {\n\treturn not(isTruthy(node));\n}\n\nfunction not(value) {\n\treturn value === undefined ? value : !value;\n}\n\nfunction equals(a, b, strict) {\n\tif (a.type !== b.type) return undefined;\n\tif (a.type === 'Literal') return strict ? a.value === b.value : a.value == b.value;\n}\n\nconst operators = {\n\t'==': x => {\n\t\treturn equals(x.left, x.right, false);\n\t},\n\n\t'!=': x => not(operators['=='](x)),\n\n\t'===': x => {\n\t\treturn equals(x.left, x.right, true);\n\t},\n\n\t'!==': x => not(operators['==='](x)),\n\n\t'!': x => isFalsy(x.argument),\n\n\t'&&': x => isTruthy(x.left) && isTruthy(x.right),\n\n\t'||': x => isTruthy(x.left) || isTruthy(x.right)\n};\n","import { walk } from 'estree-walker';\nimport MagicString from 'magic-string';\nimport { attachScopes, makeLegalIdentifier } from 'rollup-pluginutils';\nimport { extractNames, flatten, isFalsy, isReference, isTruthy } from './ast-utils.js';\nimport { HELPERS_ID, PROXY_PREFIX } from './helpers.js';\nimport { getName } from './utils.js';\n\nconst reserved = 'process location abstract arguments boolean break byte case catch char class const continue debugger default delete do double else enum eval export extends false final finally float for from function goto if implements import in instanceof int interface let long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var void volatile while with yield'.split(\n\t' '\n);\nconst blacklist = { __esModule: true };\nreserved.forEach(word => (blacklist[word] = true));\n\nconst exportsPattern = /^(?:module\\.)?exports(?:\\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/;\n\nconst firstpassGlobal = /\\b(?:require|module|exports|global)\\b/;\nconst firstpassNoGlobal = /\\b(?:require|module|exports)\\b/;\nconst importExportDeclaration = /^(?:Import|Export(?:Named|Default))Declaration/;\nconst functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;\n\nfunction deconflict(scope, globals, identifier) {\n\tlet i = 1;\n\tlet deconflicted = identifier;\n\n\twhile (scope.contains(deconflicted) || globals.has(deconflicted) || deconflicted in blacklist)\n\t\tdeconflicted = `${identifier}_${i++}`;\n\tscope.declarations[deconflicted] = true;\n\n\treturn deconflicted;\n}\n\nfunction tryParse(parse, code, id) {\n\ttry {\n\t\treturn parse(code, { allowReturnOutsideFunction: true });\n\t} catch (err) {\n\t\terr.message += ` in ${id}`;\n\t\tthrow err;\n\t}\n}\n\nexport function hasCjsKeywords(code, ignoreGlobal) {\n\tconst firstpass = ignoreGlobal ? firstpassNoGlobal : firstpassGlobal;\n\treturn firstpass.test(code);\n}\n\nexport function checkEsModule(parse, code, id) {\n\tconst ast = tryParse(parse, code, id);\n\n\tlet isEsModule = false;\n\tfor (const node of ast.body) {\n\t\tif (node.type === 'ExportDefaultDeclaration')\n\t\t\treturn { isEsModule: true, hasDefaultExport: true, ast };\n\t\tif (node.type === 'ExportNamedDeclaration') {\n\t\t\tisEsModule = true;\n\t\t\tfor (const specifier of node.specifiers) {\n\t\t\t\tif (specifier.exported.name === 'default') {\n\t\t\t\t\treturn { isEsModule: true, hasDefaultExport: true, ast };\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (importExportDeclaration.test(node.type)) isEsModule = true;\n\t}\n\n\treturn { isEsModule, hasDefaultExport: false, ast };\n}\n\nexport function transformCommonjs(\n\tparse,\n\tcode,\n\tid,\n\tisEntry,\n\tignoreGlobal,\n\tignoreRequire,\n\tcustomNamedExports,\n\tsourceMap,\n\tallowDynamicRequire,\n\tastCache\n) {\n\tconst ast = astCache || tryParse(parse, code, id);\n\n\tconst magicString = new MagicString(code);\n\n\tconst required = {};\n\t// Because objects have no guaranteed ordering, yet we need it,\n\t// we need to keep track of the order in a array\n\tconst sources = [];\n\n\tlet uid = 0;\n\n\tlet scope = attachScopes(ast, 'scope');\n\tconst uses = { module: false, exports: false, global: false, require: false };\n\n\tlet lexicalDepth = 0;\n\tlet programDepth = 0;\n\n\tconst globals = new Set();\n\n\tconst HELPERS_NAME = deconflict(scope, globals, 'commonjsHelpers'); // TODO technically wrong since globals isn't populated yet, but ¯\\_(ツ)_/¯\n\n\tconst namedExports = {};\n\n\t// TODO handle transpiled modules\n\tlet shouldWrap = /__esModule/.test(code);\n\n\tfunction isRequireStatement(node) {\n\t\tif (!node) return;\n\t\tif (node.type !== 'CallExpression') return;\n\t\tif (node.callee.name !== 'require' || scope.contains('require')) return;\n\t\tif (node.arguments.length === 0) return; // Weird case of require() without arguments\n\t\treturn true;\n\t}\n\n\tfunction hasDynamicArguments(node) {\n\t\treturn (\n\t\t\tnode.arguments.length > 1 ||\n\t\t\t(node.arguments[0].type !== 'Literal' &&\n\t\t\t\t(node.arguments[0].type !== 'TemplateLiteral' || node.arguments[0].expressions.length > 0))\n\t\t);\n\t}\n\n\tfunction isStaticRequireStatement(node) {\n\t\tif (!isRequireStatement(node)) return;\n\t\tif (hasDynamicArguments(node)) return;\n\t\tif (ignoreRequire(node.arguments[0].value)) return;\n\t\treturn true;\n\t}\n\n\tfunction getRequireStringArg(node) {\n\t\treturn node.arguments[0].type === 'Literal'\n\t\t\t? node.arguments[0].value\n\t\t\t: node.arguments[0].quasis[0].value.cooked;\n\t}\n\n\tfunction getRequired(node, name) {\n\t\tconst sourceId = getRequireStringArg(node);\n\t\tconst existing = required[sourceId];\n\t\tif (existing === undefined) {\n\t\t\tif (!name) {\n\t\t\t\tdo name = `require$$${uid++}`;\n\t\t\t\twhile (scope.contains(name));\n\t\t\t}\n\n\t\t\tsources.push(sourceId);\n\t\t\trequired[sourceId] = { source: sourceId, name, importsDefault: false };\n\t\t}\n\n\t\treturn required[sourceId];\n\t}\n\n\t// do a first pass, see which names are assigned to. This is necessary to prevent\n\t// illegally replacing `var foo = require('foo')` with `import foo from 'foo'`,\n\t// where `foo` is later reassigned. (This happens in the wild. CommonJS, sigh)\n\tconst assignedTo = new Set();\n\twalk(ast, {\n\t\tenter(node) {\n\t\t\tif (node.type !== 'AssignmentExpression') return;\n\t\t\tif (node.left.type === 'MemberExpression') return;\n\n\t\t\textractNames(node.left).forEach(name => {\n\t\t\t\tassignedTo.add(name);\n\t\t\t});\n\t\t}\n\t});\n\n\twalk(ast, {\n\t\tenter(node, parent) {\n\t\t\tif (sourceMap) {\n\t\t\t\tmagicString.addSourcemapLocation(node.start);\n\t\t\t\tmagicString.addSourcemapLocation(node.end);\n\t\t\t}\n\n\t\t\t// skip dead branches\n\t\t\tif (parent && (parent.type === 'IfStatement' || parent.type === 'ConditionalExpression')) {\n\t\t\t\tif (node === parent.consequent && isFalsy(parent.test)) return this.skip();\n\t\t\t\tif (node === parent.alternate && isTruthy(parent.test)) return this.skip();\n\t\t\t}\n\n\t\t\tif (node._skip) return this.skip();\n\n\t\t\tprogramDepth += 1;\n\n\t\t\tif (node.scope) scope = node.scope;\n\t\t\tif (functionType.test(node.type)) lexicalDepth += 1;\n\n\t\t\t// if toplevel return, we need to wrap it\n\t\t\tif (node.type === 'ReturnStatement' && lexicalDepth === 0) {\n\t\t\t\tshouldWrap = true;\n\t\t\t}\n\n\t\t\t// rewrite `this` as `commonjsHelpers.commonjsGlobal`\n\t\t\tif (node.type === 'ThisExpression' && lexicalDepth === 0) {\n\t\t\t\tuses.global = true;\n\t\t\t\tif (!ignoreGlobal)\n\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// rewrite `typeof module`, `typeof module.exports` and `typeof exports` (https://github.com/rollup/rollup-plugin-commonjs/issues/151)\n\t\t\tif (node.type === 'UnaryExpression' && node.operator === 'typeof') {\n\t\t\t\tconst flattened = flatten(node.argument);\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tif (scope.contains(flattened.name)) return;\n\n\t\t\t\tif (\n\t\t\t\t\tflattened.keypath === 'module.exports' ||\n\t\t\t\t\tflattened.keypath === 'module' ||\n\t\t\t\t\tflattened.keypath === 'exports'\n\t\t\t\t) {\n\t\t\t\t\tmagicString.overwrite(node.start, node.end, `'object'`, { storeName: false });\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// rewrite `require` (if not already handled) `global` and `define`, and handle free references to\n\t\t\t// `module` and `exports` as these mean we need to wrap the module in commonjsHelpers.createCommonjsModule\n\t\t\tif (node.type === 'Identifier') {\n\t\t\t\tif (isReference(node, parent) && !scope.contains(node.name)) {\n\t\t\t\t\tif (node.name in uses) {\n\t\t\t\t\t\tif (node.name === 'require') {\n\t\t\t\t\t\t\tif (allowDynamicRequire) return;\n\t\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {\n\t\t\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tuses[node.name] = true;\n\t\t\t\t\t\tif (node.name === 'global' && !ignoreGlobal) {\n\t\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n\t\t\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// if module or exports are used outside the context of an assignment\n\t\t\t\t\t\t// expression, we need to wrap the module\n\t\t\t\t\t\tif (node.name === 'module' || node.name === 'exports') {\n\t\t\t\t\t\t\tshouldWrap = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (node.name === 'define') {\n\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, 'undefined', { storeName: true });\n\t\t\t\t\t}\n\n\t\t\t\t\tglobals.add(node.name);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Is this an assignment to exports or module.exports?\n\t\t\tif (node.type === 'AssignmentExpression') {\n\t\t\t\tif (node.left.type !== 'MemberExpression') return;\n\n\t\t\t\tconst flattened = flatten(node.left);\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tif (scope.contains(flattened.name)) return;\n\n\t\t\t\tconst match = exportsPattern.exec(flattened.keypath);\n\t\t\t\tif (!match || flattened.keypath === 'exports') return;\n\n\t\t\t\tuses[flattened.name] = true;\n\n\t\t\t\t// we're dealing with `module.exports = ...` or `[module.]exports.foo = ...` –\n\t\t\t\t// if this isn't top-level, we'll need to wrap the module\n\t\t\t\tif (programDepth > 3) shouldWrap = true;\n\n\t\t\t\tnode.left._skip = true;\n\n\t\t\t\tif (flattened.keypath === 'module.exports' && node.right.type === 'ObjectExpression') {\n\t\t\t\t\treturn node.right.properties.forEach(prop => {\n\t\t\t\t\t\tif (prop.computed || prop.key.type !== 'Identifier') return;\n\t\t\t\t\t\tconst name = prop.key.name;\n\t\t\t\t\t\tif (name === makeLegalIdentifier(name)) namedExports[name] = true;\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif (match[1]) namedExports[match[1]] = true;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// if this is `var x = require('x')`, we can do `import x from 'x'`\n\t\t\tif (\n\t\t\t\tnode.type === 'VariableDeclarator' &&\n\t\t\t\tnode.id.type === 'Identifier' &&\n\t\t\t\tisStaticRequireStatement(node.init)\n\t\t\t) {\n\t\t\t\t// for now, only do this for top-level requires. maybe fix this in future\n\t\t\t\tif (scope.parent) return;\n\n\t\t\t\t// edge case — CJS allows you to assign to imports. ES doesn't\n\t\t\t\tif (assignedTo.has(node.id.name)) return;\n\n\t\t\t\tconst required = getRequired(node.init, node.id.name);\n\t\t\t\trequired.importsDefault = true;\n\n\t\t\t\tif (required.name === node.id.name) {\n\t\t\t\t\tnode._shouldRemove = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!isStaticRequireStatement(node)) return;\n\n\t\t\tconst required = getRequired(node);\n\n\t\t\tif (parent.type === 'ExpressionStatement') {\n\t\t\t\t// is a bare import, e.g. `require('foo');`\n\t\t\t\tmagicString.remove(parent.start, parent.end);\n\t\t\t} else {\n\t\t\t\trequired.importsDefault = true;\n\t\t\t\tmagicString.overwrite(node.start, node.end, required.name);\n\t\t\t}\n\n\t\t\tnode.callee._skip = true;\n\t\t},\n\n\t\tleave(node) {\n\t\t\tprogramDepth -= 1;\n\t\t\tif (node.scope) scope = scope.parent;\n\t\t\tif (functionType.test(node.type)) lexicalDepth -= 1;\n\n\t\t\tif (node.type === 'VariableDeclaration') {\n\t\t\t\tlet keepDeclaration = false;\n\t\t\t\tlet c = node.declarations[0].start;\n\n\t\t\t\tfor (let i = 0; i < node.declarations.length; i += 1) {\n\t\t\t\t\tconst declarator = node.declarations[i];\n\n\t\t\t\t\tif (declarator._shouldRemove) {\n\t\t\t\t\t\tmagicString.remove(c, declarator.end);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!keepDeclaration) {\n\t\t\t\t\t\t\tmagicString.remove(c, declarator.start);\n\t\t\t\t\t\t\tkeepDeclaration = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tc = declarator.end;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!keepDeclaration) {\n\t\t\t\t\tmagicString.remove(node.start, node.end);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\tif (\n\t\t!sources.length &&\n\t\t!uses.module &&\n\t\t!uses.exports &&\n\t\t!uses.require &&\n\t\t(ignoreGlobal || !uses.global)\n\t) {\n\t\tif (Object.keys(namedExports).length) {\n\t\t\tthrow new Error(\n\t\t\t\t`Custom named exports were specified for ${id} but it does not appear to be a CommonJS module`\n\t\t\t);\n\t\t}\n\t\treturn null; // not a CommonJS module\n\t}\n\n\tconst includeHelpers = shouldWrap || uses.global || uses.require;\n\tconst importBlock =\n\t\t(includeHelpers ? [`import * as ${HELPERS_NAME} from '${HELPERS_ID}';`] : [])\n\t\t\t.concat(\n\t\t\t\tsources.map(source => {\n\t\t\t\t\t// import the actual module before the proxy, so that we know\n\t\t\t\t\t// what kind of proxy to build\n\t\t\t\t\treturn `import '${source}';`;\n\t\t\t\t}),\n\t\t\t\tsources.map(source => {\n\t\t\t\t\tconst { name, importsDefault } = required[source];\n\t\t\t\t\treturn `import ${importsDefault ? `${name} from ` : ``}'${PROXY_PREFIX}${source}';`;\n\t\t\t\t})\n\t\t\t)\n\t\t\t.join('\\n') + '\\n\\n';\n\n\tconst namedExportDeclarations = [];\n\tlet wrapperStart = '';\n\tlet wrapperEnd = '';\n\n\tconst moduleName = deconflict(scope, globals, getName(id));\n\tif (!isEntry) {\n\t\tconst exportModuleExports = {\n\t\t\tstr: `export { ${moduleName} as __moduleExports };`,\n\t\t\tname: '__moduleExports'\n\t\t};\n\n\t\tnamedExportDeclarations.push(exportModuleExports);\n\t}\n\n\tconst name = getName(id);\n\n\tfunction addExport(x) {\n\t\tconst deconflicted = deconflict(scope, globals, name);\n\n\t\tconst declaration =\n\t\t\tdeconflicted === name\n\t\t\t\t? `export var ${x} = ${moduleName}.${x};`\n\t\t\t\t: `var ${deconflicted} = ${moduleName}.${x};\\nexport { ${deconflicted} as ${x} };`;\n\n\t\tnamedExportDeclarations.push({\n\t\t\tstr: declaration,\n\t\t\tname: x\n\t\t});\n\t}\n\n\tif (customNamedExports) customNamedExports.forEach(addExport);\n\n\tconst defaultExportPropertyAssignments = [];\n\tlet hasDefaultExport = false;\n\n\tif (shouldWrap) {\n\t\tconst args = `module${uses.exports ? ', exports' : ''}`;\n\n\t\twrapperStart = `var ${moduleName} = ${HELPERS_NAME}.createCommonjsModule(function (${args}) {\\n`;\n\t\twrapperEnd = `\\n});`;\n\t} else {\n\t\tconst names = [];\n\n\t\tast.body.forEach(node => {\n\t\t\tif (node.type === 'ExpressionStatement' && node.expression.type === 'AssignmentExpression') {\n\t\t\t\tconst left = node.expression.left;\n\t\t\t\tconst flattened = flatten(left);\n\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tconst match = exportsPattern.exec(flattened.keypath);\n\t\t\t\tif (!match) return;\n\n\t\t\t\tif (flattened.keypath === 'module.exports') {\n\t\t\t\t\thasDefaultExport = true;\n\t\t\t\t\tmagicString.overwrite(left.start, left.end, `var ${moduleName}`);\n\t\t\t\t} else {\n\t\t\t\t\tconst name = match[1];\n\t\t\t\t\tconst deconflicted = deconflict(scope, globals, name);\n\n\t\t\t\t\tnames.push({ name, deconflicted });\n\n\t\t\t\t\tmagicString.overwrite(node.start, left.end, `var ${deconflicted}`);\n\n\t\t\t\t\tconst declaration =\n\t\t\t\t\t\tname === deconflicted\n\t\t\t\t\t\t\t? `export { ${name} };`\n\t\t\t\t\t\t\t: `export { ${deconflicted} as ${name} };`;\n\n\t\t\t\t\tif (name !== 'default') {\n\t\t\t\t\t\tnamedExportDeclarations.push({\n\t\t\t\t\t\t\tstr: declaration,\n\t\t\t\t\t\t\tname\n\t\t\t\t\t\t});\n\t\t\t\t\t\tdelete namedExports[name];\n\t\t\t\t\t}\n\n\t\t\t\t\tdefaultExportPropertyAssignments.push(`${moduleName}.${name} = ${deconflicted};`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (!hasDefaultExport) {\n\t\t\twrapperEnd = `\\n\\nvar ${moduleName} = {\\n${names\n\t\t\t\t.map(({ name, deconflicted }) => `\\t${name}: ${deconflicted}`)\n\t\t\t\t.join(',\\n')}\\n};`;\n\t\t}\n\t}\n\tObject.keys(namedExports)\n\t\t.filter(key => !blacklist[key])\n\t\t.forEach(addExport);\n\n\tconst defaultExport = /__esModule/.test(code)\n\t\t? `export default ${HELPERS_NAME}.unwrapExports(${moduleName});`\n\t\t: `export default ${moduleName};`;\n\n\tconst named = namedExportDeclarations\n\t\t.filter(x => x.name !== 'default' || !hasDefaultExport)\n\t\t.map(x => x.str);\n\n\tconst exportBlock =\n\t\t'\\n\\n' +\n\t\t[defaultExport]\n\t\t\t.concat(named)\n\t\t\t.concat(hasDefaultExport ? defaultExportPropertyAssignments : [])\n\t\t\t.join('\\n');\n\n\tmagicString\n\t\t.trim()\n\t\t.prepend(importBlock + wrapperStart)\n\t\t.trim()\n\t\t.append(wrapperEnd + exportBlock);\n\n\tcode = magicString.toString();\n\tconst map = sourceMap ? magicString.generateMap() : null;\n\n\treturn { code, map };\n}\n","import { extname, resolve } from 'path';\nimport { sync as nodeResolveSync } from 'resolve';\nimport { createFilter } from 'rollup-pluginutils';\nimport { EXTERNAL_PREFIX, HELPERS, HELPERS_ID, PROXY_PREFIX } from './helpers.js';\nimport { getIsCjsPromise, setIsCjsPromise } from './is-cjs';\nimport { getResolveId } from './resolve-id';\nimport { checkEsModule, hasCjsKeywords, transformCommonjs } from './transform.js';\nimport { getName } from './utils.js';\n\nexport default function commonjs(options = {}) {\n\tconst extensions = options.extensions || ['.js'];\n\tconst filter = createFilter(options.include, options.exclude);\n\tconst ignoreGlobal = options.ignoreGlobal;\n\n\tconst customNamedExports = {};\n\tif (options.namedExports) {\n\t\tObject.keys(options.namedExports).forEach(id => {\n\t\t\tlet resolvedId;\n\n\t\t\ttry {\n\t\t\t\tresolvedId = nodeResolveSync(id, { basedir: process.cwd() });\n\t\t\t} catch (err) {\n\t\t\t\tresolvedId = resolve(id);\n\t\t\t}\n\n\t\t\tcustomNamedExports[resolvedId] = options.namedExports[id];\n\t\t});\n\t}\n\n\tconst esModulesWithoutDefaultExport = Object.create(null);\n\tconst esModulesWithDefaultExport = Object.create(null);\n\tconst allowDynamicRequire = !!options.ignore; // TODO maybe this should be configurable?\n\n\tconst ignoreRequire =\n\t\ttypeof options.ignore === 'function'\n\t\t\t? options.ignore\n\t\t\t: Array.isArray(options.ignore)\n\t\t\t\t? id => options.ignore.includes(id)\n\t\t\t\t: () => false;\n\n\tlet entryModuleIdsPromise = null;\n\n\tconst resolveId = getResolveId(extensions);\n\n\tconst sourceMap = options.sourceMap !== false;\n\n\treturn {\n\t\tname: 'commonjs',\n\n\t\toptions(options) {\n\t\t\tresolveId.setRollupOptions(options);\n\t\t\tconst input = options.input || options.entry;\n\t\t\tconst entryModules = Array.isArray(input)\n\t\t\t\t? input\n\t\t\t\t: typeof input === 'object' && input !== null\n\t\t\t\t\t? Object.values(input)\n\t\t\t\t\t: [input];\n\t\t\tentryModuleIdsPromise = Promise.all(entryModules.map(entry => resolveId(entry)));\n\t\t},\n\n\t\tresolveId,\n\n\t\tload(id) {\n\t\t\tif (id === HELPERS_ID) return HELPERS;\n\n\t\t\t// generate proxy modules\n\t\t\tif (id.startsWith(EXTERNAL_PREFIX)) {\n\t\t\t\tconst actualId = id.slice(EXTERNAL_PREFIX.length);\n\t\t\t\tconst name = getName(actualId);\n\n\t\t\t\treturn `import ${name} from ${JSON.stringify(actualId)}; export default ${name};`;\n\t\t\t}\n\n\t\t\tif (id.startsWith(PROXY_PREFIX)) {\n\t\t\t\tconst actualId = id.slice(PROXY_PREFIX.length);\n\t\t\t\tconst name = getName(actualId);\n\n\t\t\t\treturn getIsCjsPromise(actualId).then(isCjs => {\n\t\t\t\t\tif (isCjs)\n\t\t\t\t\t\treturn `import { __moduleExports } from ${JSON.stringify(\n\t\t\t\t\t\t\tactualId\n\t\t\t\t\t\t)}; export default __moduleExports;`;\n\t\t\t\t\telse if (esModulesWithoutDefaultExport[actualId])\n\t\t\t\t\t\treturn `import * as ${name} from ${JSON.stringify(actualId)}; export default ${name};`;\n\t\t\t\t\telse if (esModulesWithDefaultExport[actualId]) {\n\t\t\t\t\t\treturn `export {default} from ${JSON.stringify(actualId)};`;\n\t\t\t\t\t} else\n\t\t\t\t\t\treturn `import * as ${name} from ${JSON.stringify(\n\t\t\t\t\t\t\tactualId\n\t\t\t\t\t\t)}; import {getCjsExportFromNamespace} from \"${HELPERS_ID}\"; export default getCjsExportFromNamespace(${name})`;\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\ttransform(code, id) {\n\t\t\tif (!filter(id) || extensions.indexOf(extname(id)) === -1) {\n\t\t\t\tsetIsCjsPromise(id, Promise.resolve(null));\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tconst transformPromise = entryModuleIdsPromise\n\t\t\t\t.then(entryModuleIds => {\n\t\t\t\t\tconst { isEsModule, hasDefaultExport, ast } = checkEsModule(this.parse, code, id);\n\t\t\t\t\tif (isEsModule) {\n\t\t\t\t\t\t(hasDefaultExport ? esModulesWithDefaultExport : esModulesWithoutDefaultExport)[\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// it is not an ES module but it does not have CJS-specific elements.\n\t\t\t\t\tif (!hasCjsKeywords(code, ignoreGlobal)) {\n\t\t\t\t\t\tesModulesWithoutDefaultExport[id] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst transformed = transformCommonjs(\n\t\t\t\t\t\tthis.parse,\n\t\t\t\t\t\tcode,\n\t\t\t\t\t\tid,\n\t\t\t\t\t\tentryModuleIds.indexOf(id) !== -1,\n\t\t\t\t\t\tignoreGlobal,\n\t\t\t\t\t\tignoreRequire,\n\t\t\t\t\t\tcustomNamedExports[id],\n\t\t\t\t\t\tsourceMap,\n\t\t\t\t\t\tallowDynamicRequire,\n\t\t\t\t\t\tast\n\t\t\t\t\t);\n\t\t\t\t\tif (!transformed) {\n\t\t\t\t\t\tesModulesWithoutDefaultExport[id] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn transformed;\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tthis.error(err, err.loc);\n\t\t\t\t});\n\n\t\t\tsetIsCjsPromise(id, transformPromise.then(Boolean, () => false));\n\t\t\treturn transformPromise;\n\t\t}\n\t};\n}\n"],"names":["const","let","resolve","fs.statSync","this","flattened","required","nodeResolveSync","options","actualId","name"],"mappings":";;;;;;;AAAOA,IAAM,YAAY,GAAG,mBAAmB,CAAC;AAChD,AAAOA,IAAM,eAAe,GAAG,sBAAsB,CAAC;AACtD,AAAOA,IAAM,UAAU,GAAG,mBAAmB,CAAC;;AAE9C,AAAOA,IAAM,OAAO,GAAG,8oBAiBrB,CAAC;;ACrBHA,IAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;;AAE1C,AAAO,SAAS,eAAe,CAAC,EAAE,EAAE;CACnCC,IAAI,YAAY,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;CACrC,IAAI,YAAY,IAAE,OAAO,YAAY,CAAC,OAAO,GAAC;;CAE9CD,IAAM,OAAO,GAAG,IAAI,OAAO,WAACE,YAAQ;EACnC,aAAa,CAAC,EAAE,CAAC,GAAG,YAAY,GAAG;YAClCA,UAAO;GACP,OAAO,EAAE,SAAS;GAClB,CAAC;EACF,CAAC,CAAC;CACH,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC;;CAE/B,OAAO,OAAO,CAAC;CACf;;AAED,AAAO,SAAS,eAAe,CAAC,EAAE,EAAE,OAAO,EAAE;CAC5CF,IAAM,YAAY,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;CACvC,IAAI,YAAY,EAAE;EACjB,IAAI,YAAY,CAAC,OAAO,EAAE;GACzB,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;GAC9B,YAAY,CAAC,OAAO,GAAG,SAAS,CAA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AS;MACT,mBAAmB;MACnB,GAAG;MACH,CAAC;KACF,IAAI,CAAC,WAAW,EAAE;MACjB,6BAA6B,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;MACzC,OAAO,IAAI,CAAC;MACZ;;KAED,OAAO,WAAW,CAAC;KACnB,CAAC;KACD,KAAK,WAAC,KAAI;KACVA,MAAI,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC,CAAC;;GAEJ,eAAe,CAAC,EAAE,EAAE,gBAAgB,CAAC,IAAI,CAAC,OAAO,cAAK,SAAG,QAAK,CAAC,CAAC,CAAC;GACjE,OAAO,gBAAgB,CAAC;GACxB;EACD,CAAC;CACF;;;;"} \ No newline at end of file +{"version":3,"file":"rollup-plugin-commonjs.es.js","sources":["../src/helpers.js","../src/is-cjs.js","../src/default-resolver.js","../src/utils.js","../src/resolve-id.js","../src/ast-utils.js","../src/transform.js","../src/index.js"],"sourcesContent":["export const PROXY_PREFIX = '\\0commonjs-proxy:';\nexport const EXTERNAL_PREFIX = '\\0commonjs-external:';\nexport const HELPERS_ID = '\\0commonjsHelpers.js';\n\n// `x['default']` is used instead of `x.default` for backward compatibility with ES3 browsers.\n// Minifiers like uglify will usually transpile it back if compatibility with ES3 is not enabled.\nexport const HELPERS = `\nexport var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nexport function getCjsExportFromNamespace (n) {\n\treturn n && n['default'] || n;\n}`;\n","const isCjsPromises = Object.create(null);\n\nexport function getIsCjsPromise(id) {\n\tlet isCjsPromise = isCjsPromises[id];\n\tif (isCjsPromise) return isCjsPromise.promise;\n\n\tconst promise = new Promise(resolve => {\n\t\tisCjsPromises[id] = isCjsPromise = {\n\t\t\tresolve,\n\t\t\tpromise: undefined\n\t\t};\n\t});\n\tisCjsPromise.promise = promise;\n\n\treturn promise;\n}\n\nexport function setIsCjsPromise(id, promise) {\n\tconst isCjsPromise = isCjsPromises[id];\n\tif (isCjsPromise) {\n\t\tif (isCjsPromise.resolve) {\n\t\t\tisCjsPromise.resolve(promise);\n\t\t\tisCjsPromise.resolve = undefined;\n\t\t}\n\t} else {\n\t\tisCjsPromises[id] = { promise, resolve: undefined };\n\t}\n}\n","import * as fs from 'fs';\nimport { dirname, resolve } from 'path';\n\nfunction isFile(file) {\n\ttry {\n\t\tconst stats = fs.statSync(file);\n\t\treturn stats.isFile();\n\t} catch (err) {\n\t\treturn false;\n\t}\n}\n\nfunction addJsExtensionIfNecessary(file) {\n\tif (isFile(file)) return file;\n\n\tfile += '.js';\n\tif (isFile(file)) return file;\n\n\treturn null;\n}\n\nconst absolutePath = /^(?:\\/|(?:[A-Za-z]:)?[\\\\|/])/;\n\nfunction isAbsolute(path) {\n\treturn absolutePath.test(path);\n}\n\nexport default function defaultResolver(importee, importer) {\n\t// absolute paths are left untouched\n\tif (isAbsolute(importee)) return addJsExtensionIfNecessary(resolve(importee));\n\n\t// if this is the entry point, resolve against cwd\n\tif (importer === undefined) return addJsExtensionIfNecessary(resolve(process.cwd(), importee));\n\n\t// external modules are skipped at this stage\n\tif (importee[0] !== '.') return null;\n\n\treturn addJsExtensionIfNecessary(resolve(dirname(importer), importee));\n}\n","import { basename, dirname, extname, sep } from 'path';\nimport { makeLegalIdentifier } from 'rollup-pluginutils';\n\nexport function getName(id) {\n\tconst name = makeLegalIdentifier(basename(id, extname(id)));\n\tif (name !== 'index') {\n\t\treturn name;\n\t} else {\n\t\tconst segments = dirname(id).split(sep);\n\t\treturn makeLegalIdentifier(segments[segments.length - 1]);\n\t}\n}\n\n// Return the first non-falsy result from an array of\n// maybe-sync, maybe-promise-returning functions\nexport function first(candidates) {\n\treturn function(...args) {\n\t\treturn candidates.reduce((promise, candidate) => {\n\t\t\treturn promise.then(result =>\n\t\t\t\tresult != null ? result : Promise.resolve(candidate.call(this, ...args))\n\t\t\t);\n\t\t}, Promise.resolve());\n\t};\n}\n","import { statSync } from 'fs';\nimport { dirname, resolve, sep } from 'path';\nimport defaultResolver from './default-resolver';\nimport { EXTERNAL_PREFIX, PROXY_PREFIX } from './helpers';\nimport { first } from './utils';\n\nfunction getCandidatesForExtension(resolved, extension) {\n\treturn [resolved + extension, resolved + `${sep}index${extension}`];\n}\n\nfunction getCandidates(resolved, extensions) {\n\treturn extensions.reduce(\n\t\t(paths, extension) => paths.concat(getCandidatesForExtension(resolved, extension)),\n\t\t[resolved]\n\t);\n}\n\nexport function getResolveId(extensions) {\n\tlet resolveUsingOtherResolvers;\n\n\tfunction resolveId(importee, importer) {\n\t\tconst isProxyModule = importee.startsWith(PROXY_PREFIX);\n\t\tif (isProxyModule) {\n\t\t\timportee = importee.slice(PROXY_PREFIX.length);\n\t\t} else if (importee.startsWith('\\0')) {\n\t\t\treturn importee;\n\t\t}\n\n\t\tif (importer && importer.startsWith(PROXY_PREFIX)) {\n\t\t\timporter = importer.slice(PROXY_PREFIX.length);\n\t\t}\n\n\t\treturn resolveUsingOtherResolvers.call(this, importee, importer).then(resolved => {\n\t\t\tif (resolved) return isProxyModule ? PROXY_PREFIX + resolved : resolved;\n\n\t\t\tresolved = defaultResolver(importee, importer);\n\n\t\t\tif (isProxyModule) {\n\t\t\t\tif (resolved) return PROXY_PREFIX + resolved;\n\t\t\t\treturn EXTERNAL_PREFIX + importee; // external\n\t\t\t}\n\n\t\t\treturn resolved;\n\t\t});\n\t}\n\n\tresolveId.setRollupOptions = function(options) {\n\t\tconst resolvers = (options.plugins || [])\n\t\t\t.map(plugin => {\n\t\t\t\tif (plugin.resolveId === resolveId) {\n\t\t\t\t\t// substitute CommonJS resolution logic\n\t\t\t\t\treturn (importee, importer) => {\n\t\t\t\t\t\tif (importee[0] !== '.' || !importer) return; // not our problem\n\n\t\t\t\t\t\tconst resolved = resolve(dirname(importer), importee);\n\t\t\t\t\t\tconst candidates = getCandidates(resolved, extensions);\n\n\t\t\t\t\t\tfor (let i = 0; i < candidates.length; i += 1) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tconst stats = statSync(candidates[i]);\n\t\t\t\t\t\t\t\tif (stats.isFile()) return candidates[i];\n\t\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\t\t/* noop */\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn plugin.resolveId;\n\t\t\t})\n\t\t\t.filter(Boolean);\n\n\t\tconst isExternal = id =>\n\t\t\toptions.external\n\t\t\t\t? Array.isArray(options.external)\n\t\t\t\t\t? options.external.includes(id)\n\t\t\t\t\t: options.external(id)\n\t\t\t\t: false;\n\n\t\tresolvers.unshift(id => (isExternal(id) ? false : null));\n\n\t\tresolveUsingOtherResolvers = first(resolvers);\n\t};\n\n\treturn resolveId;\n}\n","export function isReference(node, parent) {\n\tif (parent.type === 'MemberExpression') return parent.computed || node === parent.object;\n\n\t// disregard the `bar` in { bar: foo }\n\tif (parent.type === 'Property' && node !== parent.value) return false;\n\n\t// disregard the `bar` in `class Foo { bar () {...} }`\n\tif (parent.type === 'MethodDefinition') return false;\n\n\t// disregard the `bar` in `export { foo as bar }`\n\tif (parent.type === 'ExportSpecifier' && node !== parent.local) return false;\n\n\treturn true;\n}\n\nexport function flatten(node) {\n\tconst parts = [];\n\n\twhile (node.type === 'MemberExpression') {\n\t\tif (node.computed) return null;\n\n\t\tparts.unshift(node.property.name);\n\t\tnode = node.object;\n\t}\n\n\tif (node.type !== 'Identifier') return null;\n\n\tconst name = node.name;\n\tparts.unshift(name);\n\n\treturn { name, keypath: parts.join('.') };\n}\n\nexport function extractNames(node) {\n\tconst names = [];\n\textractors[node.type](names, node);\n\treturn names;\n}\n\nconst extractors = {\n\tIdentifier(names, node) {\n\t\tnames.push(node.name);\n\t},\n\n\tObjectPattern(names, node) {\n\t\tnode.properties.forEach(prop => {\n\t\t\textractors[prop.value.type](names, prop.value);\n\t\t});\n\t},\n\n\tArrayPattern(names, node) {\n\t\tnode.elements.forEach(element => {\n\t\t\tif (element) extractors[element.type](names, element);\n\t\t});\n\t},\n\n\tRestElement(names, node) {\n\t\textractors[node.argument.type](names, node.argument);\n\t},\n\n\tAssignmentPattern(names, node) {\n\t\textractors[node.left.type](names, node.left);\n\t},\n\n\tMemberExpression(names, node) {\n\t\textractors[node.property.type](names, node.property);\n\t}\n};\n\nexport function isTruthy(node) {\n\tif (node.type === 'Literal') return !!node.value;\n\tif (node.type === 'ParenthesizedExpression') return isTruthy(node.expression);\n\tif (node.operator in operators) return operators[node.operator](node);\n}\n\nexport function isFalsy(node) {\n\treturn not(isTruthy(node));\n}\n\nfunction not(value) {\n\treturn value === undefined ? value : !value;\n}\n\nfunction equals(a, b, strict) {\n\tif (a.type !== b.type) return undefined;\n\tif (a.type === 'Literal') return strict ? a.value === b.value : a.value == b.value;\n}\n\nconst operators = {\n\t'==': x => {\n\t\treturn equals(x.left, x.right, false);\n\t},\n\n\t'!=': x => not(operators['=='](x)),\n\n\t'===': x => {\n\t\treturn equals(x.left, x.right, true);\n\t},\n\n\t'!==': x => not(operators['==='](x)),\n\n\t'!': x => isFalsy(x.argument),\n\n\t'&&': x => isTruthy(x.left) && isTruthy(x.right),\n\n\t'||': x => isTruthy(x.left) || isTruthy(x.right)\n};\n","import { walk } from 'estree-walker';\nimport MagicString from 'magic-string';\nimport { attachScopes, makeLegalIdentifier } from 'rollup-pluginutils';\nimport { extractNames, flatten, isFalsy, isReference, isTruthy } from './ast-utils.js';\nimport { HELPERS_ID, PROXY_PREFIX } from './helpers.js';\nimport { getName } from './utils.js';\n\nconst reserved = 'process location abstract arguments boolean break byte case catch char class const continue debugger default delete do double else enum eval export extends false final finally float for from function goto if implements import in instanceof int interface let long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var void volatile while with yield'.split(\n\t' '\n);\nconst blacklist = { __esModule: true };\nreserved.forEach(word => (blacklist[word] = true));\n\nconst exportsPattern = /^(?:module\\.)?exports(?:\\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/;\n\nconst firstpassGlobal = /\\b(?:require|module|exports|global)\\b/;\nconst firstpassNoGlobal = /\\b(?:require|module|exports)\\b/;\nconst importExportDeclaration = /^(?:Import|Export(?:Named|Default))Declaration/;\nconst functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;\n\nfunction deconflict(scope, globals, identifier) {\n\tlet i = 1;\n\tlet deconflicted = identifier;\n\n\twhile (scope.contains(deconflicted) || globals.has(deconflicted) || deconflicted in blacklist)\n\t\tdeconflicted = `${identifier}_${i++}`;\n\tscope.declarations[deconflicted] = true;\n\n\treturn deconflicted;\n}\n\nfunction tryParse(parse, code, id) {\n\ttry {\n\t\treturn parse(code, { allowReturnOutsideFunction: true });\n\t} catch (err) {\n\t\terr.message += ` in ${id}`;\n\t\tthrow err;\n\t}\n}\n\nexport function hasCjsKeywords(code, ignoreGlobal) {\n\tconst firstpass = ignoreGlobal ? firstpassNoGlobal : firstpassGlobal;\n\treturn firstpass.test(code);\n}\n\nexport function checkEsModule(parse, code, id) {\n\tconst ast = tryParse(parse, code, id);\n\n\tlet isEsModule = false;\n\tfor (const node of ast.body) {\n\t\tif (node.type === 'ExportDefaultDeclaration')\n\t\t\treturn { isEsModule: true, hasDefaultExport: true, ast };\n\t\tif (node.type === 'ExportNamedDeclaration') {\n\t\t\tisEsModule = true;\n\t\t\tfor (const specifier of node.specifiers) {\n\t\t\t\tif (specifier.exported.name === 'default') {\n\t\t\t\t\treturn { isEsModule: true, hasDefaultExport: true, ast };\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (importExportDeclaration.test(node.type)) isEsModule = true;\n\t}\n\n\treturn { isEsModule, hasDefaultExport: false, ast };\n}\n\nexport function transformCommonjs(\n\tparse,\n\tcode,\n\tid,\n\tisEntry,\n\tignoreGlobal,\n\tignoreRequire,\n\tcustomNamedExports,\n\tsourceMap,\n\tallowDynamicRequire,\n\tastCache\n) {\n\tconst ast = astCache || tryParse(parse, code, id);\n\n\tconst magicString = new MagicString(code);\n\n\tconst required = {};\n\t// Because objects have no guaranteed ordering, yet we need it,\n\t// we need to keep track of the order in a array\n\tconst sources = [];\n\n\tlet uid = 0;\n\n\tlet scope = attachScopes(ast, 'scope');\n\tconst uses = { module: false, exports: false, global: false, require: false };\n\n\tlet lexicalDepth = 0;\n\tlet programDepth = 0;\n\n\tconst globals = new Set();\n\n\tconst HELPERS_NAME = deconflict(scope, globals, 'commonjsHelpers'); // TODO technically wrong since globals isn't populated yet, but ¯\\_(ツ)_/¯\n\n\tconst namedExports = {};\n\n\t// TODO handle transpiled modules\n\tlet shouldWrap = /__esModule/.test(code);\n\n\tfunction isRequireStatement(node) {\n\t\tif (!node) return;\n\t\tif (node.type !== 'CallExpression') return;\n\t\tif (node.callee.name !== 'require' || scope.contains('require')) return;\n\t\tif (node.arguments.length === 0) return; // Weird case of require() without arguments\n\t\treturn true;\n\t}\n\n\tfunction hasDynamicArguments(node) {\n\t\treturn (\n\t\t\tnode.arguments.length > 1 ||\n\t\t\t(node.arguments[0].type !== 'Literal' &&\n\t\t\t\t(node.arguments[0].type !== 'TemplateLiteral' || node.arguments[0].expressions.length > 0))\n\t\t);\n\t}\n\n\tfunction isStaticRequireStatement(node) {\n\t\tif (!isRequireStatement(node)) return;\n\t\tif (hasDynamicArguments(node)) return;\n\t\tif (ignoreRequire(node.arguments[0].value)) return;\n\t\treturn true;\n\t}\n\n\tfunction getRequireStringArg(node) {\n\t\treturn node.arguments[0].type === 'Literal'\n\t\t\t? node.arguments[0].value\n\t\t\t: node.arguments[0].quasis[0].value.cooked;\n\t}\n\n\tfunction getRequired(node, name) {\n\t\tconst sourceId = getRequireStringArg(node);\n\t\tconst existing = required[sourceId];\n\t\tif (existing === undefined) {\n\t\t\tif (!name) {\n\t\t\t\tdo name = `require$$${uid++}`;\n\t\t\t\twhile (scope.contains(name));\n\t\t\t}\n\n\t\t\tsources.push(sourceId);\n\t\t\trequired[sourceId] = { source: sourceId, name, importsDefault: false };\n\t\t}\n\n\t\treturn required[sourceId];\n\t}\n\n\t// do a first pass, see which names are assigned to. This is necessary to prevent\n\t// illegally replacing `var foo = require('foo')` with `import foo from 'foo'`,\n\t// where `foo` is later reassigned. (This happens in the wild. CommonJS, sigh)\n\tconst assignedTo = new Set();\n\twalk(ast, {\n\t\tenter(node) {\n\t\t\tif (node.type !== 'AssignmentExpression') return;\n\t\t\tif (node.left.type === 'MemberExpression') return;\n\n\t\t\textractNames(node.left).forEach(name => {\n\t\t\t\tassignedTo.add(name);\n\t\t\t});\n\t\t}\n\t});\n\n\twalk(ast, {\n\t\tenter(node, parent) {\n\t\t\tif (sourceMap) {\n\t\t\t\tmagicString.addSourcemapLocation(node.start);\n\t\t\t\tmagicString.addSourcemapLocation(node.end);\n\t\t\t}\n\n\t\t\t// skip dead branches\n\t\t\tif (parent && (parent.type === 'IfStatement' || parent.type === 'ConditionalExpression')) {\n\t\t\t\tif (node === parent.consequent && isFalsy(parent.test)) return this.skip();\n\t\t\t\tif (node === parent.alternate && isTruthy(parent.test)) return this.skip();\n\t\t\t}\n\n\t\t\tif (node._skip) return this.skip();\n\n\t\t\tprogramDepth += 1;\n\n\t\t\tif (node.scope) scope = node.scope;\n\t\t\tif (functionType.test(node.type)) lexicalDepth += 1;\n\n\t\t\t// if toplevel return, we need to wrap it\n\t\t\tif (node.type === 'ReturnStatement' && lexicalDepth === 0) {\n\t\t\t\tshouldWrap = true;\n\t\t\t}\n\n\t\t\t// rewrite `this` as `commonjsHelpers.commonjsGlobal`\n\t\t\tif (node.type === 'ThisExpression' && lexicalDepth === 0) {\n\t\t\t\tuses.global = true;\n\t\t\t\tif (!ignoreGlobal)\n\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// rewrite `typeof module`, `typeof module.exports` and `typeof exports` (https://github.com/rollup/rollup-plugin-commonjs/issues/151)\n\t\t\tif (node.type === 'UnaryExpression' && node.operator === 'typeof') {\n\t\t\t\tconst flattened = flatten(node.argument);\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tif (scope.contains(flattened.name)) return;\n\n\t\t\t\tif (\n\t\t\t\t\tflattened.keypath === 'module.exports' ||\n\t\t\t\t\tflattened.keypath === 'module' ||\n\t\t\t\t\tflattened.keypath === 'exports'\n\t\t\t\t) {\n\t\t\t\t\tmagicString.overwrite(node.start, node.end, `'object'`, { storeName: false });\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// rewrite `require` (if not already handled) `global` and `define`, and handle free references to\n\t\t\t// `module` and `exports` as these mean we need to wrap the module in commonjsHelpers.createCommonjsModule\n\t\t\tif (node.type === 'Identifier') {\n\t\t\t\tif (isReference(node, parent) && !scope.contains(node.name)) {\n\t\t\t\t\tif (node.name in uses) {\n\t\t\t\t\t\tif (node.name === 'require') {\n\t\t\t\t\t\t\tif (allowDynamicRequire) return;\n\t\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {\n\t\t\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tuses[node.name] = true;\n\t\t\t\t\t\tif (node.name === 'global' && !ignoreGlobal) {\n\t\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n\t\t\t\t\t\t\t\tstoreName: true\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// if module or exports are used outside the context of an assignment\n\t\t\t\t\t\t// expression, we need to wrap the module\n\t\t\t\t\t\tif (node.name === 'module' || node.name === 'exports') {\n\t\t\t\t\t\t\tshouldWrap = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (node.name === 'define') {\n\t\t\t\t\t\tmagicString.overwrite(node.start, node.end, 'undefined', { storeName: true });\n\t\t\t\t\t}\n\n\t\t\t\t\tglobals.add(node.name);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Is this an assignment to exports or module.exports?\n\t\t\tif (node.type === 'AssignmentExpression') {\n\t\t\t\tif (node.left.type !== 'MemberExpression') return;\n\n\t\t\t\tconst flattened = flatten(node.left);\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tif (scope.contains(flattened.name)) return;\n\n\t\t\t\tconst match = exportsPattern.exec(flattened.keypath);\n\t\t\t\tif (!match || flattened.keypath === 'exports') return;\n\n\t\t\t\tuses[flattened.name] = true;\n\n\t\t\t\t// we're dealing with `module.exports = ...` or `[module.]exports.foo = ...` –\n\t\t\t\t// if this isn't top-level, we'll need to wrap the module\n\t\t\t\tif (programDepth > 3) shouldWrap = true;\n\n\t\t\t\tnode.left._skip = true;\n\n\t\t\t\tif (flattened.keypath === 'module.exports' && node.right.type === 'ObjectExpression') {\n\t\t\t\t\treturn node.right.properties.forEach(prop => {\n\t\t\t\t\t\tif (prop.computed || prop.key.type !== 'Identifier') return;\n\t\t\t\t\t\tconst name = prop.key.name;\n\t\t\t\t\t\tif (name === makeLegalIdentifier(name)) namedExports[name] = true;\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif (match[1]) namedExports[match[1]] = true;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// if this is `var x = require('x')`, we can do `import x from 'x'`\n\t\t\tif (\n\t\t\t\tnode.type === 'VariableDeclarator' &&\n\t\t\t\tnode.id.type === 'Identifier' &&\n\t\t\t\tisStaticRequireStatement(node.init)\n\t\t\t) {\n\t\t\t\t// for now, only do this for top-level requires. maybe fix this in future\n\t\t\t\tif (scope.parent) return;\n\n\t\t\t\t// edge case — CJS allows you to assign to imports. ES doesn't\n\t\t\t\tif (assignedTo.has(node.id.name)) return;\n\n\t\t\t\tconst required = getRequired(node.init, node.id.name);\n\t\t\t\trequired.importsDefault = true;\n\n\t\t\t\tif (required.name === node.id.name) {\n\t\t\t\t\tnode._shouldRemove = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!isStaticRequireStatement(node)) return;\n\n\t\t\tconst required = getRequired(node);\n\n\t\t\tif (parent.type === 'ExpressionStatement') {\n\t\t\t\t// is a bare import, e.g. `require('foo');`\n\t\t\t\tmagicString.remove(parent.start, parent.end);\n\t\t\t} else {\n\t\t\t\trequired.importsDefault = true;\n\t\t\t\tmagicString.overwrite(node.start, node.end, required.name);\n\t\t\t}\n\n\t\t\tnode.callee._skip = true;\n\t\t},\n\n\t\tleave(node) {\n\t\t\tprogramDepth -= 1;\n\t\t\tif (node.scope) scope = scope.parent;\n\t\t\tif (functionType.test(node.type)) lexicalDepth -= 1;\n\n\t\t\tif (node.type === 'VariableDeclaration') {\n\t\t\t\tlet keepDeclaration = false;\n\t\t\t\tlet c = node.declarations[0].start;\n\n\t\t\t\tfor (let i = 0; i < node.declarations.length; i += 1) {\n\t\t\t\t\tconst declarator = node.declarations[i];\n\n\t\t\t\t\tif (declarator._shouldRemove) {\n\t\t\t\t\t\tmagicString.remove(c, declarator.end);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!keepDeclaration) {\n\t\t\t\t\t\t\tmagicString.remove(c, declarator.start);\n\t\t\t\t\t\t\tkeepDeclaration = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tc = declarator.end;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!keepDeclaration) {\n\t\t\t\t\tmagicString.remove(node.start, node.end);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\tif (\n\t\t!sources.length &&\n\t\t!uses.module &&\n\t\t!uses.exports &&\n\t\t!uses.require &&\n\t\t(ignoreGlobal || !uses.global)\n\t) {\n\t\tif (Object.keys(namedExports).length) {\n\t\t\tthrow new Error(\n\t\t\t\t`Custom named exports were specified for ${id} but it does not appear to be a CommonJS module`\n\t\t\t);\n\t\t}\n\t\treturn null; // not a CommonJS module\n\t}\n\n\tconst includeHelpers = shouldWrap || uses.global || uses.require;\n\tconst importBlock =\n\t\t(includeHelpers ? [`import * as ${HELPERS_NAME} from '${HELPERS_ID}';`] : [])\n\t\t\t.concat(\n\t\t\t\tsources.map(source => {\n\t\t\t\t\t// import the actual module before the proxy, so that we know\n\t\t\t\t\t// what kind of proxy to build\n\t\t\t\t\treturn `import '${source}';`;\n\t\t\t\t}),\n\t\t\t\tsources.map(source => {\n\t\t\t\t\tconst { name, importsDefault } = required[source];\n\t\t\t\t\treturn `import ${importsDefault ? `${name} from ` : ``}'${PROXY_PREFIX}${source}';`;\n\t\t\t\t})\n\t\t\t)\n\t\t\t.join('\\n') + '\\n\\n';\n\n\tconst namedExportDeclarations = [];\n\tlet wrapperStart = '';\n\tlet wrapperEnd = '';\n\n\tconst moduleName = deconflict(scope, globals, getName(id));\n\tif (!isEntry) {\n\t\tconst exportModuleExports = {\n\t\t\tstr: `export { ${moduleName} as __moduleExports };`,\n\t\t\tname: '__moduleExports'\n\t\t};\n\n\t\tnamedExportDeclarations.push(exportModuleExports);\n\t}\n\n\tconst name = getName(id);\n\n\tfunction addExport(x) {\n\t\tconst deconflicted = deconflict(scope, globals, name);\n\n\t\tconst declaration =\n\t\t\tdeconflicted === name\n\t\t\t\t? `export var ${x} = ${moduleName}.${x};`\n\t\t\t\t: `var ${deconflicted} = ${moduleName}.${x};\\nexport { ${deconflicted} as ${x} };`;\n\n\t\tnamedExportDeclarations.push({\n\t\t\tstr: declaration,\n\t\t\tname: x\n\t\t});\n\t}\n\n\tif (customNamedExports) customNamedExports.forEach(addExport);\n\n\tconst defaultExportPropertyAssignments = [];\n\tlet hasDefaultExport = false;\n\n\tif (shouldWrap) {\n\t\tconst args = `module${uses.exports ? ', exports' : ''}`;\n\n\t\twrapperStart = `var ${moduleName} = ${HELPERS_NAME}.createCommonjsModule(function (${args}) {\\n`;\n\t\twrapperEnd = `\\n});`;\n\t} else {\n\t\tconst names = [];\n\n\t\tast.body.forEach(node => {\n\t\t\tif (node.type === 'ExpressionStatement' && node.expression.type === 'AssignmentExpression') {\n\t\t\t\tconst left = node.expression.left;\n\t\t\t\tconst flattened = flatten(left);\n\n\t\t\t\tif (!flattened) return;\n\n\t\t\t\tconst match = exportsPattern.exec(flattened.keypath);\n\t\t\t\tif (!match) return;\n\n\t\t\t\tif (flattened.keypath === 'module.exports') {\n\t\t\t\t\thasDefaultExport = true;\n\t\t\t\t\tmagicString.overwrite(left.start, left.end, `var ${moduleName}`);\n\t\t\t\t} else {\n\t\t\t\t\tconst name = match[1];\n\t\t\t\t\tconst deconflicted = deconflict(scope, globals, name);\n\n\t\t\t\t\tnames.push({ name, deconflicted });\n\n\t\t\t\t\tmagicString.overwrite(node.start, left.end, `var ${deconflicted}`);\n\n\t\t\t\t\tconst declaration =\n\t\t\t\t\t\tname === deconflicted\n\t\t\t\t\t\t\t? `export { ${name} };`\n\t\t\t\t\t\t\t: `export { ${deconflicted} as ${name} };`;\n\n\t\t\t\t\tif (name !== 'default') {\n\t\t\t\t\t\tnamedExportDeclarations.push({\n\t\t\t\t\t\t\tstr: declaration,\n\t\t\t\t\t\t\tname\n\t\t\t\t\t\t});\n\t\t\t\t\t\tdelete namedExports[name];\n\t\t\t\t\t}\n\n\t\t\t\t\tdefaultExportPropertyAssignments.push(`${moduleName}.${name} = ${deconflicted};`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (!hasDefaultExport) {\n\t\t\twrapperEnd = `\\n\\nvar ${moduleName} = {\\n${names\n\t\t\t\t.map(({ name, deconflicted }) => `\\t${name}: ${deconflicted}`)\n\t\t\t\t.join(',\\n')}\\n};`;\n\t\t}\n\t}\n\tObject.keys(namedExports)\n\t\t.filter(key => !blacklist[key])\n\t\t.forEach(addExport);\n\n\tconst defaultExport = /__esModule/.test(code)\n\t\t? `export default ${HELPERS_NAME}.unwrapExports(${moduleName});`\n\t\t: `export default ${moduleName};`;\n\n\tconst named = namedExportDeclarations\n\t\t.filter(x => x.name !== 'default' || !hasDefaultExport)\n\t\t.map(x => x.str);\n\n\tconst exportBlock =\n\t\t'\\n\\n' +\n\t\t[defaultExport]\n\t\t\t.concat(named)\n\t\t\t.concat(hasDefaultExport ? defaultExportPropertyAssignments : [])\n\t\t\t.join('\\n');\n\n\tmagicString\n\t\t.trim()\n\t\t.prepend(importBlock + wrapperStart)\n\t\t.trim()\n\t\t.append(wrapperEnd + exportBlock);\n\n\tcode = magicString.toString();\n\tconst map = sourceMap ? magicString.generateMap() : null;\n\n\treturn { code, map };\n}\n","import { extname, resolve } from 'path';\nimport { sync as nodeResolveSync } from 'resolve';\nimport { createFilter } from 'rollup-pluginutils';\nimport { EXTERNAL_PREFIX, HELPERS, HELPERS_ID, PROXY_PREFIX } from './helpers.js';\nimport { getIsCjsPromise, setIsCjsPromise } from './is-cjs';\nimport { getResolveId } from './resolve-id';\nimport { checkEsModule, hasCjsKeywords, transformCommonjs } from './transform.js';\nimport { getName } from './utils.js';\n\nexport default function commonjs(options = {}) {\n\tconst extensions = options.extensions || ['.js'];\n\tconst filter = createFilter(options.include, options.exclude);\n\tconst ignoreGlobal = options.ignoreGlobal;\n\n\tconst customNamedExports = {};\n\tif (options.namedExports) {\n\t\tObject.keys(options.namedExports).forEach(id => {\n\t\t\tlet resolvedId;\n\n\t\t\ttry {\n\t\t\t\tresolvedId = nodeResolveSync(id, { basedir: process.cwd() });\n\t\t\t} catch (err) {\n\t\t\t\tresolvedId = resolve(id);\n\t\t\t}\n\n\t\t\tcustomNamedExports[resolvedId] = options.namedExports[id];\n\t\t});\n\t}\n\n\tconst esModulesWithoutDefaultExport = Object.create(null);\n\tconst esModulesWithDefaultExport = Object.create(null);\n\tconst allowDynamicRequire = !!options.ignore; // TODO maybe this should be configurable?\n\n\tconst ignoreRequire =\n\t\ttypeof options.ignore === 'function'\n\t\t\t? options.ignore\n\t\t\t: Array.isArray(options.ignore)\n\t\t\t\t? id => options.ignore.includes(id)\n\t\t\t\t: () => false;\n\n\tlet entryModuleIdsPromise = null;\n\n\tconst resolveId = getResolveId(extensions);\n\n\tconst sourceMap = options.sourceMap !== false;\n\n\treturn {\n\t\tname: 'commonjs',\n\n\t\toptions(options) {\n\t\t\tresolveId.setRollupOptions(options);\n\t\t\tconst input = options.input || options.entry;\n\t\t\tconst entryModules = Array.isArray(input)\n\t\t\t\t? input\n\t\t\t\t: typeof input === 'object' && input !== null\n\t\t\t\t\t? Object.values(input)\n\t\t\t\t\t: [input];\n\t\t\tentryModuleIdsPromise = Promise.all(entryModules.map(entry => resolveId(entry)));\n\t\t},\n\n\t\tresolveId,\n\n\t\tload(id) {\n\t\t\tif (id === HELPERS_ID) return HELPERS;\n\n\t\t\t// generate proxy modules\n\t\t\tif (id.startsWith(EXTERNAL_PREFIX)) {\n\t\t\t\tconst actualId = id.slice(EXTERNAL_PREFIX.length);\n\t\t\t\tconst name = getName(actualId);\n\n\t\t\t\treturn `import ${name} from ${JSON.stringify(actualId)}; export default ${name};`;\n\t\t\t}\n\n\t\t\tif (id.startsWith(PROXY_PREFIX)) {\n\t\t\t\tconst actualId = id.slice(PROXY_PREFIX.length);\n\t\t\t\tconst name = getName(actualId);\n\n\t\t\t\treturn getIsCjsPromise(actualId).then(isCjs => {\n\t\t\t\t\tif (isCjs)\n\t\t\t\t\t\treturn `import { __moduleExports } from ${JSON.stringify(\n\t\t\t\t\t\t\tactualId\n\t\t\t\t\t\t)}; export default __moduleExports;`;\n\t\t\t\t\telse if (esModulesWithoutDefaultExport[actualId])\n\t\t\t\t\t\treturn `import * as ${name} from ${JSON.stringify(actualId)}; export default ${name};`;\n\t\t\t\t\telse if (esModulesWithDefaultExport[actualId]) {\n\t\t\t\t\t\treturn `export {default} from ${JSON.stringify(actualId)};`;\n\t\t\t\t\t} else\n\t\t\t\t\t\treturn `import * as ${name} from ${JSON.stringify(\n\t\t\t\t\t\t\tactualId\n\t\t\t\t\t\t)}; import {getCjsExportFromNamespace} from \"${HELPERS_ID}\"; export default getCjsExportFromNamespace(${name})`;\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\ttransform(code, id) {\n\t\t\tif (!filter(id) || extensions.indexOf(extname(id)) === -1) {\n\t\t\t\tsetIsCjsPromise(id, Promise.resolve(null));\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tconst transformPromise = entryModuleIdsPromise\n\t\t\t\t.then(entryModuleIds => {\n\t\t\t\t\tconst { isEsModule, hasDefaultExport, ast } = checkEsModule(this.parse, code, id);\n\t\t\t\t\tif (isEsModule) {\n\t\t\t\t\t\t(hasDefaultExport ? esModulesWithDefaultExport : esModulesWithoutDefaultExport)[\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// it is not an ES module but it does not have CJS-specific elements.\n\t\t\t\t\tif (!hasCjsKeywords(code, ignoreGlobal)) {\n\t\t\t\t\t\tesModulesWithoutDefaultExport[id] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst transformed = transformCommonjs(\n\t\t\t\t\t\tthis.parse,\n\t\t\t\t\t\tcode,\n\t\t\t\t\t\tid,\n\t\t\t\t\t\tentryModuleIds.indexOf(id) !== -1,\n\t\t\t\t\t\tignoreGlobal,\n\t\t\t\t\t\tignoreRequire,\n\t\t\t\t\t\tcustomNamedExports[id],\n\t\t\t\t\t\tsourceMap,\n\t\t\t\t\t\tallowDynamicRequire,\n\t\t\t\t\t\tast\n\t\t\t\t\t);\n\t\t\t\t\tif (!transformed) {\n\t\t\t\t\t\tesModulesWithoutDefaultExport[id] = true;\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn transformed;\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tthis.error(err, err.loc);\n\t\t\t\t});\n\n\t\t\tsetIsCjsPromise(id, transformPromise.then(Boolean, () => false));\n\t\t\treturn transformPromise;\n\t\t}\n\t};\n}\n"],"names":["const","let","fs.statSync","this","flattened","required","nodeResolveSync","options","actualId","name"],"mappings":";;;;;;;AAAOA,IAAM,YAAY,GAAG,mBAAmB,CAAC;AAChD,AAAOA,IAAM,eAAe,GAAG,sBAAsB,CAAC;AACtD,AAAOA,IAAM,UAAU,GAAG,sBAAsB,CAAC;;;;AAIjD,AAAOA,IAAM,OAAO,GAAG,qsBAiBrB,CAAC;;ACvBHA,IAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;;AAE1C,AAAO,SAAS,eAAe,CAAC,EAAE,EAAE;CACnCC,IAAI,YAAY,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;CACrC,IAAI,YAAY,IAAE,OAAO,YAAY,CAAC,OAAO,GAAC;;CAE9CD,IAAM,OAAO,GAAG,IAAI,OAAO,WAAC,SAAQ;EACnC,aAAa,CAAC,EAAE,CAAC,GAAG,YAAY,GAAG;YAClC,OAAO;GACP,OAAO,EAAE,SAAS;GAClB,CAAC;EACF,CAAC,CAAC;CACH,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC;;CAE/B,OAAO,OAAO,CAAC;CACf;;AAED,AAAO,SAAS,eAAe,CAAC,EAAE,EAAE,OAAO,EAAE;CAC5CA,IAAM,YAAY,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;CACvC,IAAI,YAAY,EAAE;EACjB,IAAI,YAAY,CAAC,OAAO,EAAE;GACzB,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;GAC9B,YAAY,CAAC,OAAO,GAAG,SAAS,CAAC;GACjC;EACD,MAAM;EACN,aAAa,CAAC,EAAE,CAAC,GAAG,WAAE,OAAO,EA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,KAAK,CAAC,CAAC;MACjC,YAAY;MACZ,aAAa;MACb,kBAAkB,CAAC,EAAE,CAAC;MACtB,SAAS;MACT,mBAAmB;MACnB,GAAG;MACH,CAAC;KACF,IAAI,CAAC,WAAW,EAAE;MACjB,6BAA6B,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;MACzC,OAAO,IAAI,CAAC;MACZ;;KAED,OAAO,WAAW,CAAC;KACnB,CAAC;KACD,KAAK,WAAC,KAAI;KACVA,MAAI,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC,CAAC;;GAEJ,eAAe,CAAC,EAAE,EAAE,gBAAgB,CAAC,IAAI,CAAC,OAAO,cAAK,SAAG,QAAK,CAAC,CAAC,CAAC;GACjE,OAAO,gBAAgB,CAAC;GACxB;EACD,CAAC;CACF;;;;"} \ No newline at end of file diff --git a/build/node_modules/rollup-plugin-commonjs/package.json b/build/node_modules/rollup-plugin-commonjs/package.json index 3ca2c85b..898856ad 100644 --- a/build/node_modules/rollup-plugin-commonjs/package.json +++ b/build/node_modules/rollup-plugin-commonjs/package.json @@ -7,20 +7,20 @@ ], "_from": "rollup-plugin-commonjs@>=9.1.3 <10.0.0", "_hasShrinkwrap": false, - "_id": "rollup-plugin-commonjs@9.2.1", + "_id": "rollup-plugin-commonjs@9.2.3", "_inCache": true, "_installable": true, "_location": "/rollup-plugin-commonjs", "_nodeVersion": "10.7.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", - "tmp": "tmp/rollup-plugin-commonjs_9.2.1_1550928432710_0.9907046700947904" + "tmp": "tmp/rollup-plugin-commonjs_9.2.3_1554188465250_0.4705364588784968" }, "_npmUser": { "email": "lukas.taegert@tngtech.com", "name": "lukastaegert" }, - "_npmVersion": "6.8.0", + "_npmVersion": "6.9.0", "_phantomChildren": {}, "_requested": { "name": "rollup-plugin-commonjs", @@ -33,8 +33,8 @@ "_requiredBy": [ "#DEV:/" ], - "_resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.2.1.tgz", - "_shasum": "bb151ca8fa23600c7a03e25f9f0a45b1ee922dac", + "_resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.2.3.tgz", + "_shasum": "1b468910ca200f7d741506a2781edae2859780f9", "_shrinkwrap": null, "_spec": "rollup-plugin-commonjs@^9.1.3", "_where": "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build", @@ -45,39 +45,39 @@ "url": "https://github.com/rollup/rollup-plugin-commonjs/issues" }, "dependencies": { - "estree-walker": "^0.5.2", - "magic-string": "^0.25.1", + "estree-walker": "^0.6.0", + "magic-string": "^0.25.2", "resolve": "^1.10.0", - "rollup-pluginutils": "^2.3.3" + "rollup-pluginutils": "^2.5.0" }, "description": "Convert CommonJS modules to ES2015", "devDependencies": { - "acorn": "^6.0.5", - "eslint": "^5.12.1", - "eslint-plugin-import": "^2.15.0", + "acorn": "^6.1.1", + "eslint": "^5.15.3", + "eslint-plugin-import": "^2.16.0", "husky": "^1.3.1", - "lint-staged": "^8.1.0", + "lint-staged": "^8.1.5", "locate-character": "^2.0.5", - "mocha": "^5.2.0", - "prettier": "^1.16.1", + "mocha": "^6.0.2", + "prettier": "^1.16.4", "require-relative": "^0.8.7", - "rollup": "^1.1.2", + "rollup": "^1.7.3", "rollup-plugin-buble": "^0.19.6", - "rollup-plugin-node-resolve": "^4.0.0", + "rollup-plugin-node-resolve": "^4.0.1", "shx": "^0.3.2", "source-map": "^0.7.3", - "source-map-support": "^0.5.10" + "source-map-support": "^0.5.11" }, "directories": {}, "dist": { "fileCount": 16, - "integrity": "sha512-X0A/Cp/t+zbONFinBhiTZrfuUaVwRIp4xsbKq/2ohA2CDULa/7ONSJTelqxon+Vds2R2t2qJTqJQucKUC8GKkw==", - "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccUoxCRA9TVsSAnZWagAAhTwP/0LfXqXPDqZVSGL/lbab\nRk9by/pVYWy9LrpQHvMoiGmLr4L/TVRIx9i1lzRzBnVxjYPJuxmfpRVQS4Ge\n6O8gqOJjjdB4wqxqugg4HECF5EVw/ETSEiiUYyNBrgZysWtBMK/n5TnVfFcP\ne5AQRFBsf2l2JCrpYLQEfVZq74sywmzUilA08WdsUd4M7vWSi9IaqG2c7oaZ\nfFUJ4EiWHM+tKJZgLIV6uNzJAAKKv70vEYCEuBA/baiQGsbRvHCslH2XDMh/\nXTo+EM2TxvtZHQINRy/c7I/earFloaAyXClV/92r6ZtsJgPP/p1gjEE4Ecq0\nOs3jj7u5/NGnAU1VSdcV+6getvMS3NSsGn6dHxC4e0E4IdK8/gSzd0LOIf3u\nZGFMzMQPhjxUHFJJV9wo/460B0m41hdlAClMCXVtkGADZcKfAQN8XRaeWojj\njITxcYrL2/LcDoP0F1feQyXfgc7WtwhiWcoqbhABIvuYUDBdPv479dV22c2h\nnQvPk3JJLFLQJ/hPTXStIYYwKDSTuRoBrg+UrnJYk/aXcZ2us+ylxfv3I7AK\nxK2fMR1HTKjoYdH6sOclmYm0bPcGJbYxLHk/08H/9OPUJjegXTgY4ZiqMr1P\nWJfD1L5yWd9syRxdoUjzHVg8gHkD5tVcduWh8ZdO6ToEaFhrweYog7hn5/my\nU+Uc\r\n=zras\r\n-----END PGP SIGNATURE-----\r\n", - "shasum": "bb151ca8fa23600c7a03e25f9f0a45b1ee922dac", - "tarball": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.2.1.tgz", - "unpackedSize": 208623 + "integrity": "sha512-VFPESAh1ag2AEhqbECjSxm9C1T2oNx4Yd3kIvPbU17iO5IOHtnOr/ZH0Bf5Y+a1IUDppKmg3kV2gu2/Bkhh0Hw==", + "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcowixCRA9TVsSAnZWagAALMYQAICCDM8avu7oC4LbgUBW\nOhwEXs/TD8pEUMm/xXzU7umZ58/Paty/aKG9xecrO6iMmUjGVWAT4rdq8TjZ\nIFEfjQZA3DHmSgTVrNuMucRRWE1VOxjNJCV3O8bVPaXx84lRVDzO/IITejlG\noqUqWBeuzOL7XrWhieR04/G+xqb/6a5Bl+AsSX/4LiI3HqvrHt/z7Ef4rYmI\n77oJUf4jPlOY17zkQY6gT49Yjg0sim5UisoRE1NguepKHWfLPX375AdcGQX7\n/HnEaGPSRnHx1uyBB0r22VhuTBwA4UNyg9ElyUUwGSxhz3BbPDXeMKPyfdXp\noPHaubG8WjUpDUWT+6/U4IGF2bZhABMHai8cJWomzjdLiyNn2XSd+f1MkZ99\nQc3TFTO8w9nL4SvIwJRZenn1PXYeRGwRsJ8Tzw1F7dzTwvVhekTVYyKeeXNK\nK+9RJcp25A7JdT8dqYIFnjq8M6juraRqbVeacZSO4BJqktsEDXXtpeWhaOLO\nNnLNYKh2G7iFBp/FPjCmzXCK+Pq7t5a4TckZEJfs23KY+mCiy4g1MUtI1GjY\nji3UlmJtrcNPsRuMoy8C2IuSf09D/c9HVsJj7McVbzfB9MXc8Vk8U73VsupI\noQgXbSuLnJeG4ESnO6o46brEonrvwUmIoawh+kWfWCoGo6quWwR+xSERKY4G\nNMGq\r\n=63az\r\n-----END PGP SIGNATURE-----\r\n", + "shasum": "1b468910ca200f7d741506a2781edae2859780f9", + "tarball": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.2.3.tgz", + "unpackedSize": 211406 }, - "gitHead": "4d2624092aae352c5619ebedaa3d16b8911b4165", + "gitHead": "1081282f9bb84a11d126d57646444386772909af", "homepage": "https://github.com/rollup/rollup-plugin-commonjs", "jsnext:main": "dist/rollup-plugin-commonjs.es.js", "license": "MIT", @@ -121,5 +121,5 @@ "test": "npm run test:only", "test:only": "mocha" }, - "version": "9.2.1" + "version": "9.2.3" } diff --git a/build/node_modules/rollup-plugin-commonjs/src/ast-utils.js b/build/node_modules/rollup-plugin-commonjs/src/ast-utils.js index cc6e9012..9b723f58 100644 --- a/build/node_modules/rollup-plugin-commonjs/src/ast-utils.js +++ b/build/node_modules/rollup-plugin-commonjs/src/ast-utils.js @@ -60,6 +60,10 @@ const extractors = { AssignmentPattern(names, node) { extractors[node.left.type](names, node.left); + }, + + MemberExpression(names, node) { + extractors[node.property.type](names, node.property); } }; diff --git a/build/node_modules/rollup-plugin-commonjs/src/helpers.js b/build/node_modules/rollup-plugin-commonjs/src/helpers.js index ed248cc8..3c63c794 100644 --- a/build/node_modules/rollup-plugin-commonjs/src/helpers.js +++ b/build/node_modules/rollup-plugin-commonjs/src/helpers.js @@ -1,16 +1,18 @@ export const PROXY_PREFIX = '\0commonjs-proxy:'; export const EXTERNAL_PREFIX = '\0commonjs-external:'; -export const HELPERS_ID = '\0commonjsHelpers'; +export const HELPERS_ID = '\0commonjsHelpers.js'; +// `x['default']` is used instead of `x.default` for backward compatibility with ES3 browsers. +// Minifiers like uglify will usually transpile it back if compatibility with ES3 is not enabled. export const HELPERS = ` -export var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; +export var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; export function commonjsRequire () { throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs'); } export function unwrapExports (x) { - return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x.default : x; + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } export function createCommonjsModule(fn, module) { @@ -18,5 +20,5 @@ export function createCommonjsModule(fn, module) { } export function getCjsExportFromNamespace (n) { - return n && n.default || n; + return n && n['default'] || n; }`; diff --git a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/CHANGELOG.md b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/CHANGELOG.md similarity index 87% rename from build/node_modules/rollup-pluginutils/node_modules/estree-walker/CHANGELOG.md rename to build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/CHANGELOG.md index 0642058e..5e7fd7f9 100644 --- a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/CHANGELOG.md +++ b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/CHANGELOG.md @@ -1,10 +1,5 @@ # changelog -## 0.6.0 - -* Fix walker context type -* Update deps, remove unncessary Bublé transformation - ## 0.5.2 * Add types to package diff --git a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/README.md b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/README.md similarity index 100% rename from build/node_modules/rollup-pluginutils/node_modules/estree-walker/README.md rename to build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/README.md diff --git a/build/node_modules/estree-walker/dist/estree-walker.es.js b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/dist/estree-walker.es.js similarity index 100% rename from build/node_modules/estree-walker/dist/estree-walker.es.js rename to build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/dist/estree-walker.es.js diff --git a/build/node_modules/estree-walker/dist/estree-walker.es.js.map b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/dist/estree-walker.es.js.map similarity index 100% rename from build/node_modules/estree-walker/dist/estree-walker.es.js.map rename to build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/dist/estree-walker.es.js.map diff --git a/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/dist/estree-walker.umd.js b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/dist/estree-walker.umd.js new file mode 100644 index 00000000..abd5b92f --- /dev/null +++ b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/dist/estree-walker.umd.js @@ -0,0 +1,68 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : + typeof define === 'function' && define.amd ? define(['exports'], factory) : + (factory((global.estreeWalker = {}))); +}(this, (function (exports) { 'use strict'; + +function walk ( ast, ref) { + var enter = ref.enter; + var leave = ref.leave; + + visit( ast, null, enter, leave ); +} + +var shouldSkip = false; +var context = { skip: function () { return shouldSkip = true; } }; + +var childKeys = {}; + +var toString = Object.prototype.toString; + +function isArray ( thing ) { + return toString.call( thing ) === '[object Array]'; +} + +function visit ( node, parent, enter, leave, prop, index ) { + if ( !node ) { return; } + + if ( enter ) { + var _shouldSkip = shouldSkip; + shouldSkip = false; + enter.call( context, node, parent, prop, index ); + var skipped = shouldSkip; + shouldSkip = _shouldSkip; + + if ( skipped ) { return; } + } + + var keys = childKeys[ node.type ] || ( + childKeys[ node.type ] = Object.keys( node ).filter( function (key) { return typeof node[ key ] === 'object'; } ) + ); + + for ( var i = 0; i < keys.length; i += 1 ) { + var key = keys[i]; + var value = node[ key ]; + + if ( isArray( value ) ) { + for ( var j = 0; j < value.length; j += 1 ) { + visit( value[j], node, enter, leave, key, j ); + } + } + + else if ( value && value.type ) { + visit( value, node, enter, leave, key, null ); + } + } + + if ( leave ) { + leave( node, parent, prop, index ); + } +} + +exports.walk = walk; +exports.childKeys = childKeys; + +Object.defineProperty(exports, '__esModule', { value: true }); + +}))); +//# sourceMappingURL=estree-walker.umd.js.map diff --git a/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/dist/estree-walker.umd.js.map b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/dist/estree-walker.umd.js.map new file mode 100644 index 00000000..da7a8b2d --- /dev/null +++ b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/dist/estree-walker.umd.js.map @@ -0,0 +1 @@ +{"version":3,"file":"estree-walker.umd.js","sources":["../src/estree-walker.js"],"sourcesContent":["export function walk ( ast, { enter, leave }) {\n\tvisit( ast, null, enter, leave );\n}\n\nlet shouldSkip = false;\nconst context = { skip: () => shouldSkip = true };\n\nexport const childKeys = {};\n\nconst toString = Object.prototype.toString;\n\nfunction isArray ( thing ) {\n\treturn toString.call( thing ) === '[object Array]';\n}\n\nfunction visit ( node, parent, enter, leave, prop, index ) {\n\tif ( !node ) return;\n\n\tif ( enter ) {\n\t\tlet _shouldSkip = shouldSkip;\n\t\tshouldSkip = false;\n\t\tenter.call( context, node, parent, prop, index );\n\t\tconst skipped = shouldSkip;\n\t\tshouldSkip = _shouldSkip;\n\n\t\tif ( skipped ) return;\n\t}\n\n\tconst keys = childKeys[ node.type ] || (\n\t\tchildKeys[ node.type ] = Object.keys( node ).filter( key => typeof node[ key ] === 'object' )\n\t);\n\n\tfor ( let i = 0; i < keys.length; i += 1 ) {\n\t\tconst key = keys[i];\n\t\tconst value = node[ key ];\n\n\t\tif ( isArray( value ) ) {\n\t\t\tfor ( let j = 0; j < value.length; j += 1 ) {\n\t\t\t\tvisit( value[j], node, enter, leave, key, j );\n\t\t\t}\n\t\t}\n\n\t\telse if ( value && value.type ) {\n\t\t\tvisit( value, node, enter, leave, key, null );\n\t\t}\n\t}\n\n\tif ( leave ) {\n\t\tleave( node, parent, prop, index );\n\t}\n}\n"],"names":["let","const"],"mappings":";;;;;;AAAO,SAAS,IAAI,GAAG,GAAG,EAAE,GAAA,EAAkB;KAAhB,KAAK,aAAE;KAAA,KAAK;;CACzC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;CACjC;;AAEDA,IAAI,UAAU,GAAG,KAAK,CAAC;AACvBC,IAAM,OAAO,GAAG,EAAE,IAAI,EAAE,YAAG,SAAG,UAAU,GAAG,IAAI,GAAA,EAAE,CAAC;;AAElD,AAAOA,IAAM,SAAS,GAAG,EAAE,CAAC;;AAE5BA,IAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;;AAE3C,SAAS,OAAO,GAAG,KAAK,GAAG;CAC1B,OAAO,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,gBAAgB,CAAC;CACnD;;AAED,S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C,IAAI,GAAG;GAC/B,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;GAC9C;EACD;;CAED,KAAK,KAAK,GAAG;EACZ,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;EACnC;CACD;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/index.d.ts b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/index.d.ts similarity index 60% rename from build/node_modules/rollup-pluginutils/node_modules/estree-walker/index.d.ts rename to build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/index.d.ts index 37fe76a0..e4d0764c 100644 --- a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/index.d.ts +++ b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/index.d.ts @@ -6,17 +6,7 @@ declare module "estree-walker" { [propName: string]: any; } - export type WalkerContext = { - skip: () => void; - }; - - export type WalkerListener = ( - this: WalkerContext, - node: Node, - parent?: Node, - prop?: string, - index?: number - ) => void; + export type WalkerListener = (node: Node, parent?: Node, prop?: string, index?: number) => void; export interface WalkerOptions { enter?: WalkerListener; diff --git a/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/package.json b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/package.json new file mode 100644 index 00000000..8545041e --- /dev/null +++ b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/package.json @@ -0,0 +1,99 @@ +{ + "_args": [ + [ + "estree-walker@^0.5.2", + "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build/node_modules/rollup-plugin-node-globals" + ] + ], + "_from": "estree-walker@>=0.5.2 <0.6.0", + "_hasShrinkwrap": false, + "_id": "estree-walker@0.5.2", + "_inCache": true, + "_installable": true, + "_location": "/rollup-plugin-node-globals/estree-walker", + "_nodeVersion": "9.11.1", + "_npmOperationalInternal": { + "host": "s3://npm-registry-packages", + "tmp": "tmp/estree-walker_0.5.2_1525470900105_0.15095569501843786" + }, + "_npmUser": { + "email": "richard.a.harris@gmail.com", + "name": "rich_harris" + }, + "_npmVersion": "5.6.0", + "_phantomChildren": {}, + "_requested": { + "name": "estree-walker", + "raw": "estree-walker@^0.5.2", + "rawSpec": "^0.5.2", + "scope": null, + "spec": ">=0.5.2 <0.6.0", + "type": "range" + }, + "_requiredBy": [ + "/rollup-plugin-node-globals" + ], + "_resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.5.2.tgz", + "_shasum": "d3850be7529c9580d815600b53126515e146dd39", + "_shrinkwrap": null, + "_spec": "estree-walker@^0.5.2", + "_where": "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build/node_modules/rollup-plugin-node-globals", + "author": { + "name": "Rich Harris" + }, + "bugs": { + "url": "https://github.com/Rich-Harris/estree-walker/issues" + }, + "dependencies": {}, + "description": "Traverse an ESTree-compliant AST", + "devDependencies": { + "buble": "^0.15.2", + "eslint": "^4.5.0", + "mocha": "^3.5.0", + "rollup": "^0.48.0", + "rollup-plugin-buble": "^0.15.0" + }, + "directories": {}, + "dist": { + "fileCount": 9, + "integrity": "sha512-XpCnW/AE10ws/kDAs37cngSkvgIR8aN3G0MS85m7dUpuK2EREo9VJ00uvw6Dg/hXEpfsE1I1TvJOJr+Z+TL+ig==", + "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7Na0CRA9TVsSAnZWagAAtw0QAJkHArGAI8bVNSXTjjoL\nHptjfp8rmWP/sdUVgssQSAD3qQC7HA2efQH8eksB9mpLsAMyD/q4lsc/+nxV\nib3+V9giIGN+U10FBHsowqpHPmcDrT2ILM1yH1jBK9Xr5DyXxVZJIiCInzl7\nylKVgJETUGSfrAiDGBY40iU5mF6n/m3jky1JuuX1p9aIROhPnst9ZuEiXxoW\nccGFISzZuvusU41K2ifHh3+h0IsfgJYVFz6y/gX3TAS1XfV4d+Smy98s/s75\nWvN7xd66a9DVsA+wjMHQa1DNoUCKiqmYncQowxOxwC4iZn7QrGn8J9s0AB4g\nXLpSRv/JrwYm7YQ+2n0jaqWWheVNCEjMkWD32up1y7j0huVOxY+HmQKKwPDa\n/QngMgPQ5fEIvFcqdLLQtfxvohZcHbpzEEA0ldkk2zMEZ4wlux3fcHQtruBX\n/pH6vs3MMrq6cYUxoDgKQcIWcSj2W44hLbeBdbGVWz8I9T34i+lEv74LZUzF\nDkakG7xiJZH6Y+449zci5A7toBHWH5L+UAc4AQmTAcf6WLQ28P/oywWLcRSf\nLrnK666cay60iRYSovOOEX1Am0D+sb0N8zptU4blTC4Fl2zilFGw7okKguMH\n16X9mVM65sNqCGO7aU5M815Cm72NT1j/OfjgyanNpr5M5+2f+UGYO3a8VgYS\nI12a\r\n=RQM8\r\n-----END PGP SIGNATURE-----\r\n", + "shasum": "d3850be7529c9580d815600b53126515e146dd39", + "tarball": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.5.2.tgz", + "unpackedSize": 13503 + }, + "files": [ + "src", + "dist", + "index.d.ts", + "README.md" + ], + "gitHead": "0bf66c1ee6cba4905d99f74dc2d1d2ed5cf38b9b", + "homepage": "https://github.com/Rich-Harris/estree-walker#readme", + "jsnext:main": "dist/estree-walker.es.js", + "license": "MIT", + "main": "dist/estree-walker.umd.js", + "maintainers": [ + { + "email": "richard.a.harris@gmail.com", + "name": "rich_harris" + } + ], + "module": "dist/estree-walker.es.js", + "name": "estree-walker", + "optionalDependencies": {}, + "readme": "ERROR: No README data found!", + "repository": { + "type": "git", + "url": "git+https://github.com/Rich-Harris/estree-walker.git" + }, + "scripts": { + "build": "rollup -c", + "lint": "eslint src", + "prepublish": "npm run lint && npm test", + "pretest": "npm run build", + "test": "mocha test/test.js --compilers js:buble/register" + }, + "typings": "index.d.ts", + "version": "0.5.2" +} diff --git a/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/src/estree-walker.js b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/src/estree-walker.js new file mode 100644 index 00000000..5630829d --- /dev/null +++ b/build/node_modules/rollup-plugin-node-globals/node_modules/estree-walker/src/estree-walker.js @@ -0,0 +1,51 @@ +export function walk ( ast, { enter, leave }) { + visit( ast, null, enter, leave ); +} + +let shouldSkip = false; +const context = { skip: () => shouldSkip = true }; + +export const childKeys = {}; + +const toString = Object.prototype.toString; + +function isArray ( thing ) { + return toString.call( thing ) === '[object Array]'; +} + +function visit ( node, parent, enter, leave, prop, index ) { + if ( !node ) return; + + if ( enter ) { + let _shouldSkip = shouldSkip; + shouldSkip = false; + enter.call( context, node, parent, prop, index ); + const skipped = shouldSkip; + shouldSkip = _shouldSkip; + + if ( skipped ) return; + } + + const keys = childKeys[ node.type ] || ( + childKeys[ node.type ] = Object.keys( node ).filter( key => typeof node[ key ] === 'object' ) + ); + + for ( let i = 0; i < keys.length; i += 1 ) { + const key = keys[i]; + const value = node[ key ]; + + if ( isArray( value ) ) { + for ( let j = 0; j < value.length; j += 1 ) { + visit( value[j], node, enter, leave, key, j ); + } + } + + else if ( value && value.type ) { + visit( value, node, enter, leave, key, null ); + } + } + + if ( leave ) { + leave( node, parent, prop, index ); + } +} diff --git a/build/node_modules/rollup-pluginutils/CHANGELOG.md b/build/node_modules/rollup-pluginutils/CHANGELOG.md index 7a347816..def32dee 100644 --- a/build/node_modules/rollup-pluginutils/CHANGELOG.md +++ b/build/node_modules/rollup-pluginutils/CHANGELOG.md @@ -1,33 +1,50 @@ # rollup-pluginutils changelog +## 2.5.0 +*2019-03-18* +* Generalize dataToEsm type ([#55](https://github.com/rollup/rollup-pluginutils/issues/55)) +* Handle empty keys in dataToEsm ([#56](https://github.com/rollup/rollup-pluginutils/issues/56)) + +## 2.4.1 +*2019-02-16* +* Remove unnecessary dependency + +## 2.4.0 +*2019-02-16* +Update dependencies to solve micromatch vulnerability ([#53](https://github.com/rollup/rollup-pluginutils/issues/53)) + ## 2.3.3 -*2017-09-19* +*2018-09-19* * Revert micromatch update ([#43](https://github.com/rollup/rollup-pluginutils/issues/43)) ## 2.3.2 -*2017-09-18* +*2018-09-18* * Bumb micromatch dependency ([#36](https://github.com/rollup/rollup-pluginutils/issues/36)) * Bumb dependencies ([#41](https://github.com/rollup/rollup-pluginutils/issues/41)) * Split up tests ([#40](https://github.com/rollup/rollup-pluginutils/issues/40)) ## 2.3.1 -*2017-08-06* +*2018-08-06* * Fixed ObjectPattern scope in attachScopes to recognise { ...rest } syntax ([#37](https://github.com/rollup/rollup-pluginutils/issues/37)) ## 2.3.0 -*2017-05-21* +*2018-05-21* * Add option to not generate named exports ([#32](https://github.com/rollup/rollup-pluginutils/issues/32)) ## 2.2.1 -*2017-05-21* +*2018-05-21* * Support `null` serialization ([#34](https://github.com/rollup/rollup-pluginutils/issues/34)) ## 2.2.0 -*2017-05-11* +*2018-05-11* * Improve white-space handling in `dataToEsm` and add `prepare` script ([#31](https://github.com/rollup/rollup-pluginutils/issues/31)) +## 2.1.1 +*2018-05-09* +* Update dependencies + ## 2.1.0 -*2017-05-07* +*2018-05-08* * Add `dataToEsm` helper to create named exports from objects ([#29](https://github.com/rollup/rollup-pluginutils/issues/29)) * Support literal keys in object patterns ([#27](https://github.com/rollup/rollup-pluginutils/issues/27)) * Support function declarations without id in `attachScopes` ([#28](https://github.com/rollup/rollup-pluginutils/issues/28)) diff --git a/build/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js b/build/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js index ea6aaaab..c2482f1d 100644 --- a/build/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +++ b/build/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js @@ -191,14 +191,15 @@ function isRegexp(val) { return val instanceof RegExp; } -var reservedWords = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public'.split(' '); -var builtins = 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl'.split(' '); -var blacklisted = Object.create(null); -reservedWords.concat(builtins).forEach(function (word) { return (blacklisted[word] = true); }); +var reservedWords = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public'; +var builtins = 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl'; +var forbiddenIdentifiers = new Set((reservedWords + " " + builtins).split(' ')); +forbiddenIdentifiers.add(''); function makeLegalIdentifier(str) { str = str.replace(/-(\w)/g, function (_, letter) { return letter.toUpperCase(); }).replace(/[^$_a-zA-Z0-9]/g, '_'); - if (/\d/.test(str[0]) || blacklisted[str]) + if (/\d/.test(str[0]) || forbiddenIdentifiers.has(str)) { str = "_" + str; + } return str; } diff --git a/build/node_modules/rollup-pluginutils/dist/pluginutils.es.js b/build/node_modules/rollup-pluginutils/dist/pluginutils.es.js index f7b77bca..1e2120c1 100644 --- a/build/node_modules/rollup-pluginutils/dist/pluginutils.es.js +++ b/build/node_modules/rollup-pluginutils/dist/pluginutils.es.js @@ -171,13 +171,13 @@ function createFilter(include, exclude) { return false; id = id.split(sep).join('/'); for (var i = 0; i < excludeMatchers.length; ++i) { - var matcher$$1 = excludeMatchers[i]; - if (matcher$$1.test(id)) + var matcher = excludeMatchers[i]; + if (matcher.test(id)) return false; } for (var i = 0; i < includeMatchers.length; ++i) { - var matcher$$1 = includeMatchers[i]; - if (matcher$$1.test(id)) + var matcher = includeMatchers[i]; + if (matcher.test(id)) return true; } return !includeMatchers.length; @@ -187,14 +187,15 @@ function isRegexp(val) { return val instanceof RegExp; } -var reservedWords = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public'.split(' '); -var builtins = 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl'.split(' '); -var blacklisted = Object.create(null); -reservedWords.concat(builtins).forEach(function (word) { return (blacklisted[word] = true); }); +var reservedWords = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public'; +var builtins = 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl'; +var forbiddenIdentifiers = new Set((reservedWords + " " + builtins).split(' ')); +forbiddenIdentifiers.add(''); function makeLegalIdentifier(str) { str = str.replace(/-(\w)/g, function (_, letter) { return letter.toUpperCase(); }).replace(/[^$_a-zA-Z0-9]/g, '_'); - if (/\d/.test(str[0]) || blacklisted[str]) + if (/\d/.test(str[0]) || forbiddenIdentifiers.has(str)) { str = "_" + str; + } return str; } diff --git a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js b/build/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js deleted file mode 100644 index 674765fe..00000000 --- a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js +++ /dev/null @@ -1,65 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (factory((global.estreeWalker = {}))); -}(this, (function (exports) { 'use strict'; - - function walk(ast, { enter, leave }) { - visit(ast, null, enter, leave); - } - - let shouldSkip = false; - const context = { skip: () => shouldSkip = true }; - - const childKeys = {}; - - const toString = Object.prototype.toString; - - function isArray(thing) { - return toString.call(thing) === '[object Array]'; - } - - function visit(node, parent, enter, leave, prop, index) { - if (!node) return; - - if (enter) { - const _shouldSkip = shouldSkip; - shouldSkip = false; - enter.call(context, node, parent, prop, index); - const skipped = shouldSkip; - shouldSkip = _shouldSkip; - - if (skipped) return; - } - - const keys = childKeys[node.type] || ( - childKeys[node.type] = Object.keys(node).filter(key => typeof node[key] === 'object') - ); - - for (let i = 0; i < keys.length; i += 1) { - const key = keys[i]; - const value = node[key]; - - if (isArray(value)) { - for (let j = 0; j < value.length; j += 1) { - visit(value[j], node, enter, leave, key, j); - } - } - - else if (value && value.type) { - visit(value, node, enter, leave, key, null); - } - } - - if (leave) { - leave(node, parent, prop, index); - } - } - - exports.walk = walk; - exports.childKeys = childKeys; - - Object.defineProperty(exports, '__esModule', { value: true }); - -}))); -//# sourceMappingURL=estree-walker.umd.js.map diff --git a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js.map b/build/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js.map deleted file mode 100644 index 7ea22970..00000000 --- a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"estree-walker.umd.js","sources":["../src/estree-walker.js"],"sourcesContent":["export function walk(ast, { enter, leave }) {\n\tvisit(ast, null, enter, leave);\n}\n\nlet shouldSkip = false;\nconst context = { skip: () => shouldSkip = true };\n\nexport const childKeys = {};\n\nconst toString = Object.prototype.toString;\n\nfunction isArray(thing) {\n\treturn toString.call(thing) === '[object Array]';\n}\n\nfunction visit(node, parent, enter, leave, prop, index) {\n\tif (!node) return;\n\n\tif (enter) {\n\t\tconst _shouldSkip = shouldSkip;\n\t\tshouldSkip = false;\n\t\tenter.call(context, node, parent, prop, index);\n\t\tconst skipped = shouldSkip;\n\t\tshouldSkip = _shouldSkip;\n\n\t\tif (skipped) return;\n\t}\n\n\tconst keys = childKeys[node.type] || (\n\t\tchildKeys[node.type] = Object.keys(node).filter(key => typeof node[key] === 'object')\n\t);\n\n\tfor (let i = 0; i < keys.length; i += 1) {\n\t\tconst key = keys[i];\n\t\tconst value = node[key];\n\n\t\tif (isArray(value)) {\n\t\t\tfor (let j = 0; j < value.length; j += 1) {\n\t\t\t\tvisit(value[j], node, enter, leave, key, j);\n\t\t\t}\n\t\t}\n\n\t\telse if (value && value.type) {\n\t\t\tvisit(value, node, enter, leave, key, null);\n\t\t}\n\t}\n\n\tif (leave) {\n\t\tleave(node, parent, prop, index);\n\t}\n}\n"],"names":[],"mappings":";;;;;;CAAO,SAAS,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;CAC5C,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;CAChC,CAAC;;CAED,IAAI,UAAU,GAAG,KAAK,CAAC;CACvB,MAAM,OAAO,GAAG,EAAE,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GAAG,CAAC,CAAC;;CAE1B,EAAE,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;CACtB,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;CAC7C,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;CAChD,IAAI;CACJ,GAAG;;CAEH,OAAO,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE;CAChC,GAAG,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;CAC/C,GAAG;CACH,EAAE;;CAEF,CAAC,IAAI,KAAK,EAAE;CACZ,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;CACnC,EAAE;CACF,CAAC;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/package.json b/build/node_modules/rollup-pluginutils/node_modules/estree-walker/package.json deleted file mode 100644 index cb30335e..00000000 --- a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "_args": [ - [ - "estree-walker@^0.6.0", - "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build/node_modules/rollup-pluginutils" - ] - ], - "_from": "estree-walker@>=0.6.0 <0.7.0", - "_hasShrinkwrap": false, - "_id": "estree-walker@0.6.0", - "_inCache": true, - "_installable": true, - "_location": "/rollup-pluginutils/estree-walker", - "_nodeVersion": "10.9.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/estree-walker_0.6.0_1542898238765_0.8611649164733006" - }, - "_npmUser": { - "email": "richard.a.harris@gmail.com", - "name": "rich_harris" - }, - "_npmVersion": "6.2.0", - "_phantomChildren": {}, - "_requested": { - "name": "estree-walker", - "raw": "estree-walker@^0.6.0", - "rawSpec": "^0.6.0", - "scope": null, - "spec": ">=0.6.0 <0.7.0", - "type": "range" - }, - "_requiredBy": [ - "/rollup-pluginutils" - ], - "_resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.0.tgz", - "_shasum": "5d865327c44a618dde5699f763891ae31f257dae", - "_shrinkwrap": null, - "_spec": "estree-walker@^0.6.0", - "_where": "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build/node_modules/rollup-pluginutils", - "author": { - "name": "Rich Harris" - }, - "bugs": { - "url": "https://github.com/Rich-Harris/estree-walker/issues" - }, - "dependencies": {}, - "description": "Traverse an ESTree-compliant AST", - "devDependencies": { - "mocha": "^5.2.0", - "rollup": "^0.67.3" - }, - "directories": {}, - "dist": { - "fileCount": 7, - "integrity": "sha512-peq1RfVAVzr3PU/jL31RaOjUKLoZJpObQWJJ+LgfcxDUifyLZ1RjPQZTl0pzj2uJ45b7A7XpyppXvxdEqzo4rw==", - "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9sI/CRA9TVsSAnZWagAADOQQAIOrJ/hLFiN7nfqNyfz4\nqinXr3Ls5SG9gB3mNSMxlKmvaW90Py6Q2896Ctc2xbMKpUhsRLNSzbPHg+L7\nh4JypMHfG614lbGkU17kkd4YQgdTtjoKuEVt3ZN2zc+GCf7yt3pJ3QBKv2RN\n8zy+RkEWjlwR8LqcmUxnYbW11c+kZIL+ffgCD76Sjk41NydmG8TxkyEBwYTe\naO6VgimqsMJ95hpa75V5VkGYXglk4gVqgAu93fvogB+qm3UYAdOu6IyiR4yU\nADHZGziz9QiZI0NdHzU1pGBn08XIwLy6abESBfiH5Qy498M6PWYTwYc9BJ5z\nl4ZK1SE4XNXyIJXY16NcpVD4kNRR2nSABCRHgx9kWdLV3fZynOhMEjxP7e4f\noNi5Q5RGEbbr0fMK+SS3/vgXm9ftjuhY+NP8eF5N3R7wxScRSbCcJqQri49x\nI5QwvpJTAEeEuLcHzaxaOy7b1XF70DtDUEXHtFI4OSZW9IQNy6k0TnMF5Djw\n2lT4ZNwsL6gJTgqANdWJa3Tp2EWPtqVdOL7Be4llymovHbJNQqjB6iPDPOPR\n/sKpHzSSK/2mSK5rl5GOObUw9ofQUmmZOKhuoFZvKeYqGbYkoCAdY91eV03s\nYcl75A2FkbEemrGYHeHqFOSVXZOnP0pgiD1Tp1JxaO/YtO2thcaXAjdWCMgP\nWCjp\r\n=rmlV\r\n-----END PGP SIGNATURE-----\r\n", - "shasum": "5d865327c44a618dde5699f763891ae31f257dae", - "tarball": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.0.tgz", - "unpackedSize": 9073 - }, - "gitHead": "8ecc0d48a923ae2048db357b1eb448f64bc3c430", - "homepage": "https://github.com/Rich-Harris/estree-walker#readme", - "license": "MIT", - "main": "dist/estree-walker.umd.js", - "maintainers": [ - { - "email": "richard.a.harris@gmail.com", - "name": "rich_harris" - } - ], - "module": "src/estree-walker.js", - "name": "estree-walker", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/Rich-Harris/estree-walker.git" - }, - "scripts": { - "build": "rollup -c", - "prepublishOnly": "npm test", - "pretest": "npm run build", - "test": "mocha test/test.js" - }, - "typings": "index.d.ts", - "version": "0.6.0" -} diff --git a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/src/estree-walker.js b/build/node_modules/rollup-pluginutils/node_modules/estree-walker/src/estree-walker.js deleted file mode 100644 index a3af66d6..00000000 --- a/build/node_modules/rollup-pluginutils/node_modules/estree-walker/src/estree-walker.js +++ /dev/null @@ -1,51 +0,0 @@ -export function walk(ast, { enter, leave }) { - visit(ast, null, enter, leave); -} - -let shouldSkip = false; -const context = { skip: () => shouldSkip = true }; - -export const childKeys = {}; - -const toString = Object.prototype.toString; - -function isArray(thing) { - return toString.call(thing) === '[object Array]'; -} - -function visit(node, parent, enter, leave, prop, index) { - if (!node) return; - - if (enter) { - const _shouldSkip = shouldSkip; - shouldSkip = false; - enter.call(context, node, parent, prop, index); - const skipped = shouldSkip; - shouldSkip = _shouldSkip; - - if (skipped) return; - } - - const keys = childKeys[node.type] || ( - childKeys[node.type] = Object.keys(node).filter(key => typeof node[key] === 'object') - ); - - for (let i = 0; i < keys.length; i += 1) { - const key = keys[i]; - const value = node[key]; - - if (isArray(value)) { - for (let j = 0; j < value.length; j += 1) { - visit(value[j], node, enter, leave, key, j); - } - } - - else if (value && value.type) { - visit(value, node, enter, leave, key, null); - } - } - - if (leave) { - leave(node, parent, prop, index); - } -} diff --git a/build/node_modules/rollup-pluginutils/package.json b/build/node_modules/rollup-pluginutils/package.json index de9b70e3..fac07820 100644 --- a/build/node_modules/rollup-pluginutils/package.json +++ b/build/node_modules/rollup-pluginutils/package.json @@ -1,20 +1,20 @@ { "_args": [ [ - "rollup-pluginutils@^2.3.3", + "rollup-pluginutils@^2.5.0", "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build/node_modules/rollup-plugin-commonjs" ] ], - "_from": "rollup-pluginutils@>=2.3.3 <3.0.0", + "_from": "rollup-pluginutils@>=2.5.0 <3.0.0", "_hasShrinkwrap": false, - "_id": "rollup-pluginutils@2.4.1", + "_id": "rollup-pluginutils@2.5.0", "_inCache": true, "_installable": true, "_location": "/rollup-pluginutils", "_nodeVersion": "10.7.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", - "tmp": "tmp/rollup-pluginutils_2.4.1_1550354842505_0.930596163456191" + "tmp": "tmp/rollup-pluginutils_2.5.0_1552926475367_0.9717627850816957" }, "_npmUser": { "email": "lukas.taegert@tngtech.com", @@ -24,10 +24,10 @@ "_phantomChildren": {}, "_requested": { "name": "rollup-pluginutils", - "raw": "rollup-pluginutils@^2.3.3", - "rawSpec": "^2.3.3", + "raw": "rollup-pluginutils@^2.5.0", + "rawSpec": "^2.5.0", "scope": null, - "spec": ">=2.3.3 <3.0.0", + "spec": ">=2.5.0 <3.0.0", "type": "range" }, "_requiredBy": [ @@ -36,10 +36,10 @@ "/rollup-plugin-node-globals", "/rollup-plugin-re" ], - "_resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.4.1.tgz", - "_shasum": "de43ab54965bbf47843599a7f3adceb723de38db", + "_resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.5.0.tgz", + "_shasum": "23be0f05ac3972ea7b08fc7870cb91fde5b23a09", "_shrinkwrap": null, - "_spec": "rollup-pluginutils@^2.3.3", + "_spec": "rollup-pluginutils@^2.5.0", "_where": "/var/build/workspace/build-platform-sdks/platform-client-sdk-common/output/purecloudjavascript-guest/build/node_modules/rollup-plugin-commonjs", "author": { "email": "richard.a.harris@gmail.com", @@ -55,30 +55,30 @@ "description": "Functionality commonly needed by Rollup plugins", "devDependencies": { "@types/estree": "0.0.39", - "@types/jest": "^24.0.5", + "@types/jest": "^24.0.11", "@types/micromatch": "^3.1.0", - "@types/node": "^11.9.4", + "@types/node": "^11.11.3", "husky": "^1.3.1", - "jest": "^24.1.0", - "lint-staged": "^8.1.4", + "jest": "^24.5.0", + "lint-staged": "^8.1.5", "prettier": "^1.16.4", - "rollup": "^1.1.2", + "rollup": "^1.6.0", "rollup-plugin-typescript": "^1.0.0", - "ts-jest": "^23.10.5", - "tslint": "^5.12.1", - "typescript": "^3.3.3", + "ts-jest": "^24.0.0", + "tslint": "^5.14.0", + "typescript": "^3.3.3333", "typescript-eslint-parser": "^22.0.0" }, "directories": {}, "dist": { "fileCount": 12, - "integrity": "sha512-wesMQ9/172IJDIW/lYWm0vW0LiKe5Ekjws481R7z9WTRtmO59cqyM/2uUlxvf6yzm/fElFmHUobeQOYz46dZJw==", - "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcaImbCRA9TVsSAnZWagAA4NAP/20NguEIFu/2BbV0zDFO\n7eZrI/jSnbZkSuRirPM0HA9VqNbFZtSv3TcJyHfRH1tY7YbHEAmCcawKl1Eu\nbUkiyE2dvUfQNG6SZnlp0nhkEk5tupxWMs52FriuENvi5E8wSbHyGmfnp7je\nUuZ7ZdZ/HmiSOug/weDEAM75eN+35P8IesjtbFtxHNpNCeeIHSNo/KQpex9/\nlrxE4TVmIQ/rqQOSOBPPgOd6gr0P/nR2oc/gQo1ZqSwnZ41eYyDl8cCpTw5O\nDJSYxXUPWT2G/gQSf2sXXZjJ34BT/JT2rnLloeIFznlcHF6PBVeZAa6yo1d6\naxsUYN0gPZJQ14j1p1J+0cXH4GeORPaxpOk+KGm9x4ZoRKqNANSm9K5HBMyJ\nGJsqCzhcnwGE62R/5YoW33ihprxss0ddUM5odQ7xu7D2wDCANexmYORx5Fy/\nsX8Sgr3KRxm5yqLazTASDYUGEGZWUmWma70C+LxeYvHt01Lskf9+7MstOZG4\ndMbTUUz6Ps0TYJs0b/8S7lMqJXjjSNzlVn6KkP7kYU88uV1+a2XLBZLH+aPA\n9hYb53bJx9cAhew0yKkmTZTyaxefqOY0S3iq89uMVcW/tRrwfy3mcifnYbLC\nTL0fY35/iEI5QJcOV7Pa84ManaUhkGjatBek5E49ydCv+zowSET1un3CEmiK\nIS3W\r\n=jg+n\r\n-----END PGP SIGNATURE-----\r\n", - "shasum": "de43ab54965bbf47843599a7f3adceb723de38db", - "tarball": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.4.1.tgz", - "unpackedSize": 38128 + "integrity": "sha512-9Muh1H+XB5f5ONmKMayUoTYR1EZwHbwJJ9oZLrKT5yuTf/RLIQ5mYIGsrERquVucJmjmaAW0Y7+6Qo1Ep+5w3Q==", + "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcj8cLCRA9TVsSAnZWagAAY4EP/2yda2FdH65dYxaPYszY\n/8nK+0t8n5WwuDpymNYbXo4dCUGjll4cg7UeB7bNxJ+D59zVzs82j1MWLmpO\nUIDsNt/XqWuwn8b02aaE9xivFKPGUEB1qdXZOMJY6IT7ARKAEBy2q7lSqs/L\nPDV+rqx0ACJc1dbgbUh/miZZjqvpWRKItSHieHsMput6AvV3BEy5cn0om6P+\nxY7sNFziWJB3aJ0F5i8h3V0ZM6rz4DmvRlbtJGq/aVGJXgXYGoCeqdYML/X7\nA/hUwmYcFB1ziXbN5mJxVPTxoqDJAl+2tJ6VKKlqsGFNdVxCGoxN995vSPA6\nUkWE3TZeVJi4LQJ1fBWabV3gn1rSitC1qQDFNnEAkJLjiME3/G0O8kgsVTv+\nuyhbWAd63yht+kUGh1Kwa8i0gdGIEJX7BetOyvVcqcPD3xTrRT913+1EThHJ\nmR/Qdfu8bUFDBmsDNxwiABI/Tpr9ldiWJ1JPMb+8b5Vg4SBkznm8b3l4acle\nPaus1PtmoRp3lB+M6YiYYkVu7zzDjTKxdS/tp/tTM5krQqVuys6X3Xhn9BRK\ncyK7t9ORVplO9JrFJqocuuOIaHqBPWTi3Vjmt/izE9FgT44eLgmkMh0JJ/Ek\nkWn+CpbfJZ3cggqtuCPlhi7WldWpZxM2TIDfhOYzC7LMdYJia9v8Ca8Tzab2\nx0fi\r\n=kbpm\r\n-----END PGP SIGNATURE-----\r\n", + "shasum": "23be0f05ac3972ea7b08fc7870cb91fde5b23a09", + "tarball": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.5.0.tgz", + "unpackedSize": 38444 }, - "gitHead": "f91cca020f3b70e500a9dac8adbc90752dda6e50", + "gitHead": "9f061d083eca42463bdefadbcb978aa2040bc035", "homepage": "https://github.com/rollup/rollup-pluginutils#readme", "jsnext:main": "dist/pluginutils.es.js", "keywords": [ @@ -119,5 +119,5 @@ "test": "jest" }, "typings": "src/index.d.ts", - "version": "2.4.1" + "version": "2.5.0" } diff --git a/build/node_modules/rollup-pluginutils/src/dataToEsm.ts b/build/node_modules/rollup-pluginutils/src/dataToEsm.ts index 11f38927..6d427f0d 100644 --- a/build/node_modules/rollup-pluginutils/src/dataToEsm.ts +++ b/build/node_modules/rollup-pluginutils/src/dataToEsm.ts @@ -48,10 +48,7 @@ export interface Options { } // convert data object into separate named exports (and default) -export default function dataToNamedExports( - data: T | Array, - options: Options = {} -): string { +export default function dataToNamedExports(data: any, options: Options = {}): string { const t = options.compact ? '' : 'indent' in options ? options.indent : '\t'; const _ = options.compact ? '' : ' '; const n = options.compact ? '' : '\n'; diff --git a/build/node_modules/rollup-pluginutils/src/makeLegalIdentifier.ts b/build/node_modules/rollup-pluginutils/src/makeLegalIdentifier.ts index e5649ef9..ad98cd51 100644 --- a/build/node_modules/rollup-pluginutils/src/makeLegalIdentifier.ts +++ b/build/node_modules/rollup-pluginutils/src/makeLegalIdentifier.ts @@ -1,17 +1,17 @@ -const reservedWords = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public'.split( - ' ' -); -const builtins = 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl'.split( - ' ' -); +const reservedWords = + 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public'; +const builtins = + 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl'; -const blacklisted: { [key: string]: boolean } = Object.create(null); -reservedWords.concat(builtins).forEach(word => (blacklisted[word] = true)); +const forbiddenIdentifiers = new Set(`${reservedWords} ${builtins}`.split(' ')); +forbiddenIdentifiers.add(''); export default function makeLegalIdentifier(str: string): string { str = str.replace(/-(\w)/g, (_, letter) => letter.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g, '_'); - if (/\d/.test(str[0]) || blacklisted[str]) str = `_${str}`; + if (/\d/.test(str[0]) || forbiddenIdentifiers.has(str)) { + str = `_${str}`; + } return str; } diff --git a/build/node_modules/safe-buffer/package.json b/build/node_modules/safe-buffer/package.json index af5e4e60..d04d218a 100644 --- a/build/node_modules/safe-buffer/package.json +++ b/build/node_modules/safe-buffer/package.json @@ -47,7 +47,7 @@ "/sha.js", "/string_decoder" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/safe-buffer/-/safe-buffer-5.1.2.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/safe-buffer/-/safe-buffer-5.1.2.tgz", "_shasum": "991ec69d296e0313747d59bdfd2b745c35f8828d", "_shrinkwrap": null, "_spec": "safe-buffer@~5.1.1", diff --git a/build/node_modules/sigmund/package.json b/build/node_modules/sigmund/package.json index 465ed9b2..e49b3be4 100644 --- a/build/node_modules/sigmund/package.json +++ b/build/node_modules/sigmund/package.json @@ -28,7 +28,7 @@ "_requiredBy": [ "/minimatch" ], - "_resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/sigmund/-/sigmund-1.0.1.tgz", "_shasum": "3ff21f198cad2175f9f3b781853fd94d0d19b590", "_shrinkwrap": null, "_spec": "sigmund@~1.0.0", diff --git a/build/node_modules/snapdragon/node_modules/debug/package.json b/build/node_modules/snapdragon/node_modules/debug/package.json index 9b85cd00..aef296a6 100644 --- a/build/node_modules/snapdragon/node_modules/debug/package.json +++ b/build/node_modules/snapdragon/node_modules/debug/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/snapdragon" ], - "_resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/debug/-/debug-2.6.9.tgz", "_shasum": "5d128515df134ff327e90a4c93f4e077a536341f", "_shrinkwrap": null, "_spec": "debug@^2.2.0", diff --git a/build/node_modules/snapdragon/node_modules/ms/package.json b/build/node_modules/snapdragon/node_modules/ms/package.json index 32d2ad39..8185f744 100644 --- a/build/node_modules/snapdragon/node_modules/ms/package.json +++ b/build/node_modules/snapdragon/node_modules/ms/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/snapdragon/debug" ], - "_resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/ms/-/ms-2.0.0.tgz", "_shasum": "5608aeadfc00be6c2901df5f9861788de0d597c8", "_shrinkwrap": null, "_spec": "ms@2.0.0", diff --git a/build/node_modules/string_decoder/package.json b/build/node_modules/string_decoder/package.json index 2f03c7fb..3f0b8bf4 100644 --- a/build/node_modules/string_decoder/package.json +++ b/build/node_modules/string_decoder/package.json @@ -33,7 +33,7 @@ "_requiredBy": [ "/readable-stream" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/string_decoder/-/string_decoder-1.1.1.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/string_decoder/-/string_decoder-1.1.1.tgz", "_shasum": "9cf1611ba62685d7030ae9e4ba34149c3af03fc8", "_shrinkwrap": null, "_spec": "string_decoder@~1.1.1", diff --git a/build/node_modules/typedarray/package.json b/build/node_modules/typedarray/package.json index 534a6025..e5558d2f 100644 --- a/build/node_modules/typedarray/package.json +++ b/build/node_modules/typedarray/package.json @@ -27,7 +27,7 @@ "_requiredBy": [ "/concat-stream" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/typedarray/-/typedarray-0.0.6.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/typedarray/-/typedarray-0.0.6.tgz", "_shasum": "867ac74e3864187b1d3d47d996a78ec5c8830777", "_shrinkwrap": null, "_spec": "typedarray@^0.0.6", diff --git a/build/node_modules/util-deprecate/package.json b/build/node_modules/util-deprecate/package.json index 289fabab..50708bbe 100644 --- a/build/node_modules/util-deprecate/package.json +++ b/build/node_modules/util-deprecate/package.json @@ -28,7 +28,7 @@ "_requiredBy": [ "/readable-stream" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/util-deprecate/-/util-deprecate-1.0.2.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/util-deprecate/-/util-deprecate-1.0.2.tgz", "_shasum": "450d4dc9fa70de732762fbd2d4a28981419a0ccf", "_shrinkwrap": null, "_spec": "util-deprecate@~1.0.1", diff --git a/build/node_modules/wrappy/package.json b/build/node_modules/wrappy/package.json index 3cfb5a65..9e176711 100644 --- a/build/node_modules/wrappy/package.json +++ b/build/node_modules/wrappy/package.json @@ -32,7 +32,7 @@ "_requiredBy": [ "/once" ], - "_resolved": "https://purecloud.jfrog.io/purecloud/api/npm/inin-internal-npm/wrappy/-/wrappy-1.0.2.tgz", + "_resolved": "https://purecloud.artifactoryonline.com/purecloud/api/npm/inin-internal-npm/wrappy/-/wrappy-1.0.2.tgz", "_shasum": "b5243d8f3ec1aa35f1364605bc0d1036e30ab69f", "_shrinkwrap": null, "_spec": "wrappy@1", diff --git a/build/package.json b/build/package.json index be216daa..8dd20242 100644 --- a/build/package.json +++ b/build/package.json @@ -1,6 +1,6 @@ { "name": "purecloud-guest-chat-client", - "version": "4.0.0", + "version": "4.1.0", "description": "A JavaScript library to interface with the PureCloud Platform API", "license": "MIT", "main": "dist/node/purecloud-guest-chat-client.js", diff --git a/build/src/purecloud-guest-chat-client/ApiClient.js b/build/src/purecloud-guest-chat-client/ApiClient.js index 3f1b967a..566b79f5 100644 --- a/build/src/purecloud-guest-chat-client/ApiClient.js +++ b/build/src/purecloud-guest-chat-client/ApiClient.js @@ -2,7 +2,7 @@ import superagent from 'superagent'; /** * @module purecloud-guest-chat-client/ApiClient - * @version 4.0.0 + * @version 4.1.0 */ class ApiClient { /** @@ -531,7 +531,7 @@ class ApiClient { // set header parameters request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - //request.set({ 'purecloud-sdk': '4.0.0' }); + //request.set({ 'purecloud-sdk': '4.1.0' }); // set request timeout request.timeout(this.timeout); diff --git a/build/src/purecloud-guest-chat-client/api/WebChatApi.js b/build/src/purecloud-guest-chat-client/api/WebChatApi.js index 6892f1d6..39fa679a 100644 --- a/build/src/purecloud-guest-chat-client/api/WebChatApi.js +++ b/build/src/purecloud-guest-chat-client/api/WebChatApi.js @@ -5,7 +5,7 @@ class WebChatApi { /** * WebChat service. * @module purecloud-guest-chat-client/api/WebChatApi - * @version 4.0.0 + * @version 4.1.0 */ /** diff --git a/build/src/purecloud-guest-chat-client/index.js b/build/src/purecloud-guest-chat-client/index.js index 548c2f84..36ee8a56 100644 --- a/build/src/purecloud-guest-chat-client/index.js +++ b/build/src/purecloud-guest-chat-client/index.js @@ -31,7 +31,7 @@ import WebChatApi from './api/WebChatApi.js'; * *

* @module purecloud-guest-chat-client/index - * @version 4.0.0 + * @version 4.1.0 */ class platformClient { constructor() { diff --git a/releaseNotes.md b/releaseNotes.md index 3ee2b1d2..d5cd1b3e 100644 --- a/releaseNotes.md +++ b/releaseNotes.md @@ -1,19 +1,22 @@ -Platform API version: 3102 +Platform API version: 3144 -# Major Changes (2 changes) +# Major Changes (0 changes) -**JourneyCustomer** (2 changes) -* Property type was removed -* Required property idType was added +# Minor Changes (6 changes) +**WebChatMessage** (3 changes) -# Minor Changes (1 change) +* Enum value member-join was added to property bodyType +* Enum value member-leave was added to property bodyType +* Enum value media-request was added to property bodyType -**WebChatGuestMediaRequest** (1 change) +**CreateWebChatMessageRequest** (3 changes) -* Optional property securityKey was added +* Enum value member-join was added to property bodyType +* Enum value member-leave was added to property bodyType +* Enum value media-request was added to property bodyType # Point Changes (0 changes) diff --git a/swagger.json b/swagger.json index 23e84259..a9331dbb 100644 --- a/swagger.json +++ b/swagger.json @@ -1 +1 @@ -{"swagger":"2.0","info":{"description":"With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.","version":"v2","title":"PureCloud Platform API","termsOfService":"https://developer.mypurecloud.com/tos","contact":{"name":"PureCloud Developer Evangelists","url":"https://developer.mypurecloud.com","email":"DeveloperEvangelists@genesys.com"},"license":{"name":"ININ","url":"http://www.inin.com"}},"host":"api.mypurecloud.com","tags":[{"name":"Alerting","description":"Rules and alerts","externalDocs":{"description":"Alerting Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/alerting/index.html"}},{"name":"Analytics","description":"Analytics querying and reporting.","externalDocs":{"description":"Analytics Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/analytics/index.html"}},{"name":"Architect","description":"Flows, Prompts, IVR schedules, Dependency Tracking","externalDocs":{"description":"Architect Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/architect/index.html"}},{"name":"Audit","description":"","externalDocs":{"description":"Audit Documentation","url":""}},{"name":"Authorization","description":"Roles and permissions","externalDocs":{"description":"Authorization Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/authorization/index.html"}},{"name":"Badges","description":"Badges stats"},{"name":"Billing","description":"","externalDocs":{"description":"billing Documentation","url":"https://developer.mypurecloud.com/billing"}},{"name":"Bridge","description":""},{"name":"Callbacks","description":""},{"name":"Calls","description":""},{"name":"Carrier Services","description":""},{"name":"Chats","description":""},{"name":"Cobrowse","description":""},{"name":"Compliance","description":""},{"name":"Configuration","description":"","externalDocs":{"description":"Configuration Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/configuration/index.html"}},{"name":"Content Management","description":"","externalDocs":{"description":"Content Management Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/contentmanagement/index.html"}},{"name":"Conversations","description":"","externalDocs":{"description":"Conversations Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/conversations/index.html"}},{"name":"Data Extensions","description":"Data extensions","externalDocs":{"description":"Data Extensions","url":"https://developer.mypurecloud.com"}},{"name":"Directory Proxy","description":"Search, Suggest, and people"},{"name":"Docs","description":"Swagger documentation definitions","externalDocs":{"description":"docs","url":"https://developer.mypurecloud.com"}},{"name":"Downloads","description":"Download file","externalDocs":{"description":"Downloads Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/downloads/index.html"}},{"name":"Emails","description":""},{"name":"External Contacts","description":"External Organizations, contacts, notes and relationships","externalDocs":{"description":"External Contacts","url":"https://developer.mypurecloud.com/api/rest/v2/externalcontacts/index.html"}},{"name":"Fax","description":"","externalDocs":{"description":"Fax Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/fax/index.html"}},{"name":"Flows","description":"IVR Flows","externalDocs":{"description":"Flow Aggregates Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/analytics/flow_aggregate.html"}},{"name":"General Data Protection Regulation","description":"Working with General Data Protection Regulation (GDPR) requests"},{"name":"Geolocation","description":"","externalDocs":{"description":"Geolocation Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/geolocation/index.html"}},{"name":"Greetings","description":"","externalDocs":{"description":"Greetings Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/greetings/index.html"}},{"name":"Groups","description":"Groups, members","externalDocs":{"description":"Groups Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/groups/index.html"}},{"name":"Identity Provider","description":"Identity providers","externalDocs":{"description":"Identity Providers Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/identityproviders/index.html"}},{"name":"Integrations","description":"","externalDocs":{"description":"Integrations Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/integrations/index.html"}},{"name":"Journey","description":"Journey Analytics","externalDocs":{"description":"Journey documentation","url":"https://developer.mypurecloud.com/api/rest/v1/journey/index.html"}},{"name":"Languages","description":"Available languages","externalDocs":{"description":"Languages Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/languages/index.html"}},{"name":"Licensing","description":""},{"name":"License","description":"Per-user platform license assignments"},{"name":"Locations","description":"Physical locations","externalDocs":{"description":"Locations Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/locations/index.html"}},{"name":"Marketplace","description":"Marketplace listing management"},{"name":"Meeting","description":"","externalDocs":{"description":"Meeting Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/meetings/index.html"}},{"name":"Messaging","description":"Messaging","externalDocs":{"description":"Messaging Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/messaging/index.html"}},{"name":"Mobile Devices","description":"Devices","externalDocs":{"description":"Devices Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/devices/index.html"}},{"name":"Notifications","description":"Channels, subscriptions, topics","externalDocs":{"description":"Notifications Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/notifications/index.html"}},{"name":"OAuth","description":"OAuth clients, providers","externalDocs":{"description":"OAuth Documentation","url":""}},{"name":"Objects","description":"Access-controlled objects in the platform","externalDocs":{"description":"authorization docs","url":"https://developer.mypurecloud.com/authorization"}},{"name":"Organization","description":"Organization"},{"name":"Organization Authorization","description":"Organization Authorization"},{"name":"Outbound","description":"","externalDocs":{"description":"Outbound Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/outbound/index.html"}},{"name":"Presence","description":"User and organization presences","externalDocs":{"description":"Presence Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/presence/index.html"}},{"name":"Process Automation","description":"Work items, flows"},{"name":"Quality","description":"Evaluations, calibrations","externalDocs":{"description":"Quality Management Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/quality/index.html"}},{"name":"Recording","description":"Recordings, policies, annotations, orphans","externalDocs":{"description":"Recording Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/recording/index.html"}},{"name":"Response Management","description":"Responses, library, query","externalDocs":{"description":"Response Management Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/responsemanagement/index.html"}},{"name":"Routing","description":"Queues, wrapup codes, skills, email & sms config","externalDocs":{"description":"Routing Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/routing/index.html"}},{"name":"SCIM","description":"System for Cross-domain Identity Management","externalDocs":{"description":"System for Cross-domain Identity Management: Definitions, Overview, Concepts, and Requirements","url":"https://tools.ietf.org/html/rfc7642"}},{"name":"Scripts","description":"Agent-facing scripts for interactions","externalDocs":{"description":"Scripts Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/scripts/index.html"}},{"name":"Search","description":"Search aggregate, users, groups","externalDocs":{"description":"Search Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/search/index.html"}},{"name":"SignedData","description":"Package data in signed JWTs"},{"name":"Socialize","description":"Gets, sets and updates entity data for the Socialize service"},{"name":"Stations","description":"Stations","externalDocs":{"description":"Stations Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/stations/index.html"}},{"name":"Suggest","description":"Search suggest user, group, locations"},{"name":"Telephony","description":"Telephony providers and configuration","externalDocs":{"description":"Telephony Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/telephonyprovidersedge/index.html"}},{"name":"Telephony Providers Edge","description":"Edge phones, trunks, lines.","externalDocs":{"description":"telephony provider edge","url":"https://developer.mypurecloud.com/api/rest/v2/telephonyprovidersedge/index.html"}},{"name":"Tokens","description":"Authentication Tokens","externalDocs":{"description":"Tokens Documentation","url":""}},{"name":"User Recordings","description":"Summary, media","externalDocs":{"description":"User Recordings Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/userrecordings/index.html"}},{"name":"Users","description":"Me, routing, roles","externalDocs":{"description":"Users Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/users/index.html"}},{"name":"Utilities","description":"","externalDocs":{"description":"Utilities Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/utilities/index.html"}},{"name":"Videos","description":""},{"name":"Virtual Reality","description":"Virtual Reality scenes and assets"},{"name":"Voicemail","description":"Mailbox, messages, policy","externalDocs":{"description":"Voicemail Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/voicemail/index.html"}},{"name":"WebChat","description":"WebChat deployments"},{"name":"Workforce Management","description":"Adherence, Schedules, Forecasts, Intraday Monitoring, Time Off Requests, Configuration","externalDocs":{"description":"Workforce Management Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/workforcemanagement/index.html"}}],"schemes":["https"],"consumes":["application/json"],"produces":["application/json"],"paths":{"/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}":{"get":{"tags":["WebChat"],"summary":"Get a web chat conversation message","description":"","operationId":"getWebchatGuestConversationMessage","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"messageId","in":"path","description":"messageId","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatMessage"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMessage"}},"/api/v2/webchat/guest/conversations/{conversationId}/messages":{"get":{"tags":["WebChat"],"summary":"Get the messages of a chat conversation.","description":"","operationId":"getWebchatGuestConversationMessages","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"after","in":"query","description":"If available, get the messages chronologically after the id of this message","required":false,"type":"string"},{"name":"before","in":"query","description":"If available, get the messages chronologically before the id of this message","required":false,"type":"string"},{"name":"sortOrder","in":"query","description":"Sort order","required":false,"type":"string","default":"ascending","enum":["ascending","descending"]}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatMessageEntityList"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMessages"}},"/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages":{"post":{"tags":["WebChat"],"summary":"Send a message in a chat conversation.","description":"","operationId":"postWebchatGuestConversationMemberMessages","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"memberId","in":"path","description":"memberId","required":true,"type":"string"},{"in":"body","name":"body","description":"Message","required":true,"schema":{"$ref":"#/definitions/CreateWebChatMessageRequest"}}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatMessage"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","chat.error.conversation.state":"The conversation is in a state which does not permit this action.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","chat.error.member.state":"The conversation member is in a state which does not permit this action.","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"postWebchatGuestConversationMemberMessages"}},"/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing":{"post":{"tags":["WebChat"],"summary":"Send a typing-indicator in a chat conversation.","description":"","operationId":"postWebchatGuestConversationMemberTyping","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"memberId","in":"path","description":"memberId","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatTyping"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","chat.error.conversation.state":"The conversation is in a state which does not permit this action.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","chat.error.member.state":"The conversation member is in a state which does not permit this action.","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"postWebchatGuestConversationMemberTyping"}},"/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}":{"get":{"tags":["WebChat"],"summary":"Get a web chat conversation member","description":"","operationId":"getWebchatGuestConversationMember","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"memberId","in":"path","description":"memberId","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatMemberInfo"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMember"},"delete":{"tags":["WebChat"],"summary":"Remove a member from a chat conversation","description":"","operationId":"deleteWebchatGuestConversationMember","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"memberId","in":"path","description":"memberId","required":true,"type":"string"}],"responses":{"204":{"description":"Operation was successful."},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","chat.error.conversation.state":"The conversation is in a state which does not permit this action.","chat.error.member.state":"The conversation member is in a state which does not permit this action."}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"deleteWebchatGuestConversationMember"}},"/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}":{"get":{"tags":["WebChat"],"summary":"Get a media request in the conversation","description":"","operationId":"getWebchatGuestConversationMediarequest","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"mediaRequestId","in":"path","description":"mediaRequestId","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatGuestMediaRequest"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMediarequest"},"patch":{"tags":["WebChat"],"summary":"Update a media request in the conversation, setting the state to ACCEPTED/DECLINED/ERRORED","description":"","operationId":"patchWebchatGuestConversationMediarequest","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"mediaRequestId","in":"path","description":"mediaRequestId","required":true,"type":"string"},{"in":"body","name":"body","description":"Request","required":true,"schema":{"$ref":"#/definitions/WebChatGuestMediaRequest"}}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatGuestMediaRequest"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","chat.error.conversation.state":"The conversation is in a state which does not permit this action.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"patchWebchatGuestConversationMediarequest"}},"/api/v2/webchat/guest/conversations":{"post":{"tags":["WebChat"],"summary":"Create an ACD chat conversation from an external customer.","description":"This endpoint will create a new ACD Chat conversation under the specified Chat Deployment.\n The conversation will begin with a guest member in it (with a role=CUSTOMER) according to the customer information that is supplied. If the guest member is authenticated, the 'memberAuthToken' field should include his JWT as generated by the 'POST /api/v2/signeddata' resource; if the guest member is anonymous (and the Deployment permits it) this field can be omitted.\n The returned data includes the IDs of the conversation created, along with a newly-create JWT token that you can supply to all future endpoints as authentication to perform operations against that conversation. After successfully creating a conversation, you should connect a websocket to the event stream named in the 'eventStreamUri' field of the response; the conversation is not routed until the event stream is attached.","operationId":"postWebchatGuestConversations","produces":["application/json"],"parameters":[{"in":"body","name":"body","description":"CreateConversationRequest","required":true,"schema":{"$ref":"#/definitions/CreateWebChatConversationRequest"}}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/CreateWebChatConversationResponse"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"chat.deployment.disabled":"The web chat deployment is currently disabled.","chat.deployment.bad.auth":"The customer member authentication has failed.","chat.error.invalid.queue":"The specified queue is not valid.","bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","chat.error.createconversationrequest.routingtarget":"The routing target is not valid.","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s","chat.deployment.require.auth":"The deployment requires the customer member to be authenticated."}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"credentials.expired":"The supplied credentials are expired and cannot be used.","authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"x-purecloud-method-name":"postWebchatGuestConversations"}},"/api/v2/webchat/guest/conversations/{conversationId}/members":{"get":{"tags":["WebChat"],"summary":"Get the members of a chat conversation.","description":"","operationId":"getWebchatGuestConversationMembers","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"pageSize","in":"query","description":"The number of entries to return per page, or omitted for the default.","required":false,"type":"integer","default":25,"format":"int32"},{"name":"pageNumber","in":"query","description":"The page number to return, or omitted for the first page.","required":false,"type":"integer","default":1,"format":"int32"},{"name":"excludeDisconnectedMembers","in":"query","description":"If true, the results will not contain members who have a DISCONNECTED state.","required":false,"type":"boolean","default":false}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatMemberInfoEntityList"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMembers"}},"/api/v2/webchat/guest/conversations/{conversationId}/mediarequests":{"get":{"tags":["WebChat"],"summary":"Get all media requests to the guest in the conversation","description":"","operationId":"getWebchatGuestConversationMediarequests","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatGuestMediaRequestEntityList"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMediarequests"}}},"securityDefinitions":{"PureCloud OAuth":{"type":"oauth2","authorizationUrl":"https://login.mypurecloud.com/authorize","flow":"implicit","scopes":{"all":"All the scopes"}},"Guest Chat JWT":{"type":"apiKey","name":"Authorization","in":"header"}},"definitions":{"WebChatMessage":{"type":"object","required":["body","bodyType","conversation","sender","timestamp"],"properties":{"id":{"type":"string","description":"The globally unique identifier for the object.","readOnly":true},"name":{"type":"string"},"conversation":{"description":"The identifier of the conversation","$ref":"#/definitions/WebChatConversation"},"sender":{"description":"The member who sent the message","$ref":"#/definitions/WebChatMemberInfo"},"body":{"type":"string","description":"The message body."},"bodyType":{"type":"string","description":"The purpose of the message within the conversation, such as a standard text entry versus a greeting.","enum":["standard","notice"]},"timestamp":{"type":"string","format":"date-time","description":"The timestamp of the message, in ISO-8601 format"},"selfUri":{"type":"string","format":"uri","description":"The URI for this object","readOnly":true}}},"WebChatConversation":{"type":"object","properties":{"id":{"type":"string","description":"The globally unique identifier for the object.","readOnly":true},"name":{"type":"string"},"member":{"description":"Chat Member","$ref":"#/definitions/WebChatMemberInfo"},"selfUri":{"type":"string","format":"uri","description":"The URI for this object","readOnly":true}}},"WebChatMemberInfo":{"type":"object","required":["role"],"properties":{"id":{"type":"string","description":"The communicationId of this member."},"displayName":{"type":"string","description":"The display name of the member."},"avatarImageUrl":{"type":"string","format":"uri","description":"The url to the avatar image of the member."},"role":{"type":"string","description":"The role of the member, one of [agent, customer, acd, workflow]","enum":["AGENT","CUSTOMER","WORKFLOW","ACD"]},"joinDate":{"type":"string","format":"date-time","description":"The time the member joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ"},"leaveDate":{"type":"string","format":"date-time","description":"The time the member left the conversation, or null if the member is still active in the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ"},"authenticatedGuest":{"type":"boolean","description":"If true, the guest member is an authenticated guest."},"customFields":{"type":"object","description":"Any custom fields of information pertaining to this member.","additionalProperties":{"type":"string"}},"state":{"type":"string","description":"The connection state of this member.","enum":["CONNECTED","DISCONNECTED","ALERTING"]}}},"ErrorBody":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"code":{"type":"string"},"entityId":{"type":"string"},"entityName":{"type":"string"},"message":{"type":"string"},"messageWithParams":{"type":"string"},"messageParams":{"type":"object","additionalProperties":{"type":"string"}},"contextId":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/definitions/Detail"}},"errors":{"type":"array","items":{"$ref":"#/definitions/ErrorBody"}}}},"Detail":{"type":"object","properties":{"errorCode":{"type":"string"},"fieldName":{"type":"string"},"entityId":{"type":"string"},"entityName":{"type":"string"}}},"WebChatMessageEntityList":{"type":"object","properties":{"pageSize":{"type":"integer","format":"int32"},"entities":{"type":"array","items":{"$ref":"#/definitions/WebChatMessage"}},"previousPage":{"type":"string"},"next":{"type":"string"},"selfUri":{"type":"string","format":"uri"}}},"CreateWebChatMessageRequest":{"type":"object","required":["body"],"properties":{"body":{"type":"string","description":"The message body. Note that message bodies are limited to 4,000 characters."},"bodyType":{"type":"string","description":"The purpose of the message within the conversation, such as a standard text entry versus a greeting.","enum":["standard","notice"]}}},"WebChatTyping":{"type":"object","required":["conversation","id","sender","timestamp"],"properties":{"id":{"type":"string","description":"The event identifier of this typing indicator event (useful to guard against event re-delivery"},"conversation":{"description":"The identifier of the conversation","$ref":"#/definitions/WebChatConversation"},"sender":{"description":"The member who sent the message","$ref":"#/definitions/WebChatMemberInfo"},"timestamp":{"type":"string","format":"date-time","description":"The timestamp of the message, in ISO-8601 format"}}},"WebChatGuestMediaRequest":{"type":"object","required":["state","types"],"properties":{"id":{"type":"string","description":"The globally unique identifier for the object.","readOnly":true},"name":{"type":"string"},"types":{"type":"array","description":"The types of media being requested.","items":{"type":"string","enum":["COBROWSE","SCREENSHARE"]}},"state":{"type":"string","description":"The state of the media request, one of PENDING|ACCEPTED|DECLINED|TIMEDOUT|CANCELLED|ERRORED.","enum":["PENDING","ACCEPTED","DECLINED","TIMEDOUT","CANCELLED","ERRORED"]},"communicationId":{"type":"string","description":"The ID of the new media communication, if applicable."},"securityKey":{"type":"string","description":"The security information related to a media request."},"selfUri":{"type":"string","format":"uri","description":"The URI for this object","readOnly":true}},"description":"Object representing the guest model of a media request of a chat conversation."},"CreateWebChatConversationRequest":{"type":"object","required":["deploymentId","memberInfo","organizationId","routingTarget"],"properties":{"organizationId":{"type":"string","description":"The organization identifier."},"deploymentId":{"type":"string","description":"The web chat Deployment ID which contains the appropriate settings for this chat conversation."},"routingTarget":{"description":"The routing information to use for the new chat conversation.","$ref":"#/definitions/WebChatRoutingTarget"},"memberInfo":{"description":"The guest member info to use for the new chat conversation.","$ref":"#/definitions/GuestMemberInfo"},"memberAuthToken":{"type":"string","description":"If the guest member is an authenticated member (ie, not anonymous) his JWT is provided here. The token will have been previously generated with the \"POST /api/v2/signeddata\" resource."},"journeyContext":{"description":"A subset of the Journey System's data relevant to this conversation/session request (for external linkage and internal usage/context).","$ref":"#/definitions/JourneyContext"}}},"WebChatRoutingTarget":{"type":"object","required":["targetAddress","targetType"],"properties":{"targetType":{"type":"string","description":"The target type of the routing target, such as 'QUEUE'.","enum":["QUEUE"]},"targetAddress":{"type":"string","description":"The target of the route, in the format appropriate given the 'targetType'."},"skills":{"type":"array","description":"The list of skill names to use for routing.","items":{"type":"string"}},"language":{"type":"string","description":"The language name to use for routing."},"priority":{"type":"integer","format":"int64","description":"The priority to assign to the conversation for routing."}}},"GuestMemberInfo":{"type":"object","required":["displayName"],"properties":{"displayName":{"type":"string","description":"The display name to use for the guest member in the conversation."},"avatarImageUrl":{"type":"string","format":"uri","description":"The URL to the avatar image to use for the guest member in the conversation, if any."},"customFields":{"type":"object","description":"Any custom fields of information, in key-value format, to attach to the guest member in the conversation.","additionalProperties":{"type":"string"}}}},"JourneyContext":{"type":"object","properties":{"customer":{"description":"A subset of the Journey System's customer data at a point-in-time (for external linkage and internal usage/context)","$ref":"#/definitions/JourneyCustomer"},"customerSession":{"description":"A subset of the Journey System's tracked customer session data at a point-in-time (for external linkage and internal usage/context)","$ref":"#/definitions/JourneyCustomerSession"},"triggeringAction":{"description":"A subset of the Journey System's action data relevant to a part of a conversation (for external linkage and internal usage/context)","$ref":"#/definitions/JourneyAction"}}},"JourneyCustomer":{"type":"object","required":["id","idType"],"properties":{"id":{"type":"string","description":"An ID of a customer within the Journey System at a point-in-time. Note that a customer entity can have multiple customerIds based on the stitching process. Depending on the context within the PureCloud conversation, this may or may not be mutable."},"idType":{"type":"string","description":"The type of the customerId within the Journey System (e.g. cookie)."}}},"JourneyCustomerSession":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","description":"An ID of a Customer/User's session within the Journey System at a point-in-time"},"type":{"type":"string","description":"The type of the Customer/User's session within the Journey System (e.g. web, app)"}}},"JourneyAction":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The ID of an action from the Journey System (an action is spawned from an actionMap)"},"actionMap":{"description":"Details about the action map from the Journey System which triggered this action","$ref":"#/definitions/JourneyActionMap"}}},"JourneyActionMap":{"type":"object","required":["id","version"],"properties":{"id":{"type":"string","description":"The ID of the actionMap in the Journey System which triggered this action"},"version":{"type":"integer","format":"int32","description":"The version number of the actionMap in the Journey System at the time this action was triggered"}}},"CreateWebChatConversationResponse":{"type":"object","properties":{"id":{"type":"string","description":"Chat Conversation identifier"},"jwt":{"type":"string","description":"The JWT that you can use to identify subsequent calls on this conversation"},"eventStreamUri":{"type":"string","format":"uri","description":"The URI which provides the conversation event stream."},"member":{"description":"Chat Member","$ref":"#/definitions/WebChatMemberInfo"}}},"WebChatMemberInfoEntityList":{"type":"object","properties":{"entities":{"type":"array","items":{"$ref":"#/definitions/WebChatMemberInfo"}},"pageSize":{"type":"integer","format":"int32"},"pageNumber":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"},"firstUri":{"type":"string","format":"uri"},"selfUri":{"type":"string","format":"uri"},"nextUri":{"type":"string","format":"uri"},"previousUri":{"type":"string","format":"uri"},"lastUri":{"type":"string","format":"uri"},"pageCount":{"type":"integer","format":"int32"}}},"WebChatGuestMediaRequestEntityList":{"type":"object","properties":{"entities":{"type":"array","items":{"$ref":"#/definitions/WebChatGuestMediaRequest"}}}}},"responses":{"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"}}},"externalDocs":{"description":"PureCloud API Documentation","url":"https://developer.mypurecloud.com"}} \ No newline at end of file +{"swagger":"2.0","info":{"description":"With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.","version":"v2","title":"PureCloud Platform API","termsOfService":"https://help.mypurecloud.com/articles/terms-and-conditions/","contact":{"name":"PureCloud Developer Evangelists","url":"https://developer.mypurecloud.com","email":"DeveloperEvangelists@genesys.com"},"license":{"name":"UNLICENSED","url":"https://help.mypurecloud.com/articles/terms-and-conditions/"}},"host":"api.mypurecloud.com","tags":[{"name":"Alerting","description":"Rules and alerts","externalDocs":{"description":"Alerting Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/alerting/index.html"}},{"name":"Analytics","description":"Analytics querying and reporting.","externalDocs":{"description":"Analytics Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/analytics/index.html"}},{"name":"Architect","description":"Flows, Prompts, IVR schedules, Dependency Tracking","externalDocs":{"description":"Architect Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/architect/index.html"}},{"name":"Audit","description":"","externalDocs":{"description":"Audit Documentation","url":""}},{"name":"Authorization","description":"Roles and permissions","externalDocs":{"description":"Authorization Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/authorization/index.html"}},{"name":"Badges","description":"Badges stats"},{"name":"Billing","description":"","externalDocs":{"description":"billing Documentation","url":"https://developer.mypurecloud.com/billing"}},{"name":"Bridge","description":""},{"name":"Callbacks","description":""},{"name":"Calls","description":""},{"name":"Carrier Services","description":""},{"name":"Chats","description":""},{"name":"Cobrowse","description":""},{"name":"Compliance","description":""},{"name":"Configuration","description":"","externalDocs":{"description":"Configuration Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/configuration/index.html"}},{"name":"Content Management","description":"","externalDocs":{"description":"Content Management Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/contentmanagement/index.html"}},{"name":"Conversations","description":"","externalDocs":{"description":"Conversations Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/conversations/index.html"}},{"name":"Data Extensions","description":"Data extensions","externalDocs":{"description":"Data Extensions","url":"https://developer.mypurecloud.com"}},{"name":"Dialog Engine","description":"Dialog Engine","externalDocs":{"description":"Dialog Engine documentation","url":"https://developer.mypurecloud.com/api/rest/v2/dialog/index.html"}},{"name":"Directory Proxy","description":"Search, Suggest, and people"},{"name":"Docs","description":"Swagger documentation definitions","externalDocs":{"description":"docs","url":"https://developer.mypurecloud.com"}},{"name":"Downloads","description":"Download file","externalDocs":{"description":"Downloads Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/downloads/index.html"}},{"name":"Emails","description":""},{"name":"External Contacts","description":"External Organizations, contacts, notes and relationships","externalDocs":{"description":"External Contacts","url":"https://developer.mypurecloud.com/api/rest/v2/externalcontacts/index.html"}},{"name":"Fax","description":"","externalDocs":{"description":"Fax Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/fax/index.html"}},{"name":"Flows","description":"IVR Flows","externalDocs":{"description":"Flow Aggregates Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/analytics/flow_aggregate.html"}},{"name":"General Data Protection Regulation","description":"Working with General Data Protection Regulation (GDPR) requests"},{"name":"Geolocation","description":"","externalDocs":{"description":"Geolocation Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/geolocation/index.html"}},{"name":"Greetings","description":"","externalDocs":{"description":"Greetings Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/greetings/index.html"}},{"name":"Groups","description":"Groups, members","externalDocs":{"description":"Groups Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/groups/index.html"}},{"name":"Identity Provider","description":"Identity providers","externalDocs":{"description":"Identity Providers Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/identityproviders/index.html"}},{"name":"Integrations","description":"","externalDocs":{"description":"Integrations Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/integrations/index.html"}},{"name":"Journey","description":"Journey Analytics","externalDocs":{"description":"Journey documentation","url":"https://developer.mypurecloud.com/api/rest/v1/journey/index.html"}},{"name":"Languages","description":"Available languages","externalDocs":{"description":"Languages Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/languages/index.html"}},{"name":"Licensing","description":""},{"name":"License","description":"Per-user platform license assignments"},{"name":"Locations","description":"Physical locations","externalDocs":{"description":"Locations Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/locations/index.html"}},{"name":"Marketplace","description":"Marketplace listing management"},{"name":"Meeting","description":"","externalDocs":{"description":"Meeting Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/meetings/index.html"}},{"name":"Messaging","description":"Messaging","externalDocs":{"description":"Messaging Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/messaging/index.html"}},{"name":"Mobile Devices","description":"Devices","externalDocs":{"description":"Devices Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/devices/index.html"}},{"name":"Notifications","description":"Channels, subscriptions, topics","externalDocs":{"description":"Notifications Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/notifications/index.html"}},{"name":"OAuth","description":"OAuth clients, providers","externalDocs":{"description":"OAuth Documentation","url":""}},{"name":"Objects","description":"Access-controlled objects in the platform","externalDocs":{"description":"authorization docs","url":"https://developer.mypurecloud.com/authorization"}},{"name":"Organization","description":"Organization"},{"name":"Organization Authorization","description":"Organization Authorization"},{"name":"Outbound","description":"","externalDocs":{"description":"Outbound Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/outbound/index.html"}},{"name":"Presence","description":"User and organization presences","externalDocs":{"description":"Presence Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/presence/index.html"}},{"name":"Process Automation","description":"Work items, flows"},{"name":"Quality","description":"Evaluations, calibrations","externalDocs":{"description":"Quality Management Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/quality/index.html"}},{"name":"Recording","description":"Recordings, policies, annotations, orphans","externalDocs":{"description":"Recording Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/recording/index.html"}},{"name":"Response Management","description":"Responses, library, query","externalDocs":{"description":"Response Management Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/responsemanagement/index.html"}},{"name":"Routing","description":"Queues, wrapup codes, skills, email & sms config","externalDocs":{"description":"Routing Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/routing/index.html"}},{"name":"SCIM","description":"System for Cross-domain Identity Management","externalDocs":{"description":"System for Cross-domain Identity Management: Definitions, Overview, Concepts, and Requirements","url":"https://tools.ietf.org/html/rfc7642"}},{"name":"Scripts","description":"Agent-facing scripts for interactions","externalDocs":{"description":"Scripts Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/scripts/index.html"}},{"name":"Search","description":"Search aggregate, users, groups","externalDocs":{"description":"Search Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/search/index.html"}},{"name":"SignedData","description":"Package data in signed JWTs"},{"name":"Socialize","description":"Gets, sets and updates entity data for the Socialize service"},{"name":"Stations","description":"Stations","externalDocs":{"description":"Stations Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/stations/index.html"}},{"name":"Suggest","description":"Search suggest user, group, locations"},{"name":"Telephony","description":"Telephony providers and configuration","externalDocs":{"description":"Telephony Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/telephonyprovidersedge/index.html"}},{"name":"Telephony Providers Edge","description":"Edge phones, trunks, lines.","externalDocs":{"description":"telephony provider edge","url":"https://developer.mypurecloud.com/api/rest/v2/telephonyprovidersedge/index.html"}},{"name":"Tokens","description":"Authentication Tokens","externalDocs":{"description":"Tokens Documentation","url":""}},{"name":"User Recordings","description":"Summary, media","externalDocs":{"description":"User Recordings Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/userrecordings/index.html"}},{"name":"Users","description":"Me, routing, roles","externalDocs":{"description":"Users Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/users/index.html"}},{"name":"Utilities","description":"","externalDocs":{"description":"Utilities Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/utilities/index.html"}},{"name":"Videos","description":""},{"name":"Virtual Reality","description":"Virtual Reality scenes and assets"},{"name":"Voicemail","description":"Mailbox, messages, policy","externalDocs":{"description":"Voicemail Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/voicemail/index.html"}},{"name":"WebChat","description":"WebChat deployments"},{"name":"Widgets","description":"Widget deployments"},{"name":"Workforce Management","description":"Adherence, Schedules, Forecasts, Intraday Monitoring, Time Off Requests, Configuration","externalDocs":{"description":"Workforce Management Documentation","url":"https://developer.mypurecloud.com/api/rest/v2/workforcemanagement/index.html"}}],"schemes":["https"],"consumes":["application/json"],"produces":["application/json"],"paths":{"/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}":{"get":{"tags":["WebChat"],"summary":"Get a media request in the conversation","description":"","operationId":"getWebchatGuestConversationMediarequest","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"mediaRequestId","in":"path","description":"mediaRequestId","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatGuestMediaRequest"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMediarequest"},"patch":{"tags":["WebChat"],"summary":"Update a media request in the conversation, setting the state to ACCEPTED/DECLINED/ERRORED","description":"","operationId":"patchWebchatGuestConversationMediarequest","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"mediaRequestId","in":"path","description":"mediaRequestId","required":true,"type":"string"},{"in":"body","name":"body","description":"Request","required":true,"schema":{"$ref":"#/definitions/WebChatGuestMediaRequest"}}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatGuestMediaRequest"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","chat.error.conversation.state":"The conversation is in a state which does not permit this action.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"patchWebchatGuestConversationMediarequest"}},"/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}":{"get":{"tags":["WebChat"],"summary":"Get a web chat conversation message","description":"","operationId":"getWebchatGuestConversationMessage","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"messageId","in":"path","description":"messageId","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatMessage"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMessage"}},"/api/v2/webchat/guest/conversations/{conversationId}/mediarequests":{"get":{"tags":["WebChat"],"summary":"Get all media requests to the guest in the conversation","description":"","operationId":"getWebchatGuestConversationMediarequests","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatGuestMediaRequestEntityList"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMediarequests"}},"/api/v2/webchat/guest/conversations/{conversationId}/messages":{"get":{"tags":["WebChat"],"summary":"Get the messages of a chat conversation.","description":"","operationId":"getWebchatGuestConversationMessages","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"after","in":"query","description":"If available, get the messages chronologically after the id of this message","required":false,"type":"string"},{"name":"before","in":"query","description":"If available, get the messages chronologically before the id of this message","required":false,"type":"string"},{"name":"sortOrder","in":"query","description":"Sort order","required":false,"type":"string","default":"ascending","enum":["ascending","descending"]}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatMessageEntityList"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMessages"}},"/api/v2/webchat/guest/conversations":{"post":{"tags":["WebChat"],"summary":"Create an ACD chat conversation from an external customer.","description":"This endpoint will create a new ACD Chat conversation under the specified Chat Deployment.\n The conversation will begin with a guest member in it (with a role=CUSTOMER) according to the customer information that is supplied. If the guest member is authenticated, the 'memberAuthToken' field should include his JWT as generated by the 'POST /api/v2/signeddata' resource; if the guest member is anonymous (and the Deployment permits it) this field can be omitted.\n The returned data includes the IDs of the conversation created, along with a newly-create JWT token that you can supply to all future endpoints as authentication to perform operations against that conversation. After successfully creating a conversation, you should connect a websocket to the event stream named in the 'eventStreamUri' field of the response; the conversation is not routed until the event stream is attached.","operationId":"postWebchatGuestConversations","produces":["application/json"],"parameters":[{"in":"body","name":"body","description":"CreateConversationRequest","required":true,"schema":{"$ref":"#/definitions/CreateWebChatConversationRequest"}}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/CreateWebChatConversationResponse"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"chat.deployment.disabled":"The web chat deployment is currently disabled.","chat.deployment.bad.auth":"The customer member authentication has failed.","chat.error.invalid.queue":"The specified queue is not valid.","bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","chat.error.createconversationrequest.routingtarget":"The routing target is not valid.","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s","chat.deployment.require.auth":"The deployment requires the customer member to be authenticated."}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"credentials.expired":"The supplied credentials are expired and cannot be used.","authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"x-purecloud-method-name":"postWebchatGuestConversations"}},"/api/v2/webchat/guest/conversations/{conversationId}/members":{"get":{"tags":["WebChat"],"summary":"Get the members of a chat conversation.","description":"","operationId":"getWebchatGuestConversationMembers","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"pageSize","in":"query","description":"The number of entries to return per page, or omitted for the default.","required":false,"type":"integer","default":25,"format":"int32"},{"name":"pageNumber","in":"query","description":"The page number to return, or omitted for the first page.","required":false,"type":"integer","default":1,"format":"int32"},{"name":"excludeDisconnectedMembers","in":"query","description":"If true, the results will not contain members who have a DISCONNECTED state.","required":false,"type":"boolean","default":false}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatMemberInfoEntityList"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMembers"}},"/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages":{"post":{"tags":["WebChat"],"summary":"Send a message in a chat conversation.","description":"","operationId":"postWebchatGuestConversationMemberMessages","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"memberId","in":"path","description":"memberId","required":true,"type":"string"},{"in":"body","name":"body","description":"Message","required":true,"schema":{"$ref":"#/definitions/CreateWebChatMessageRequest"}}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatMessage"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","chat.error.conversation.state":"The conversation is in a state which does not permit this action.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","chat.error.member.state":"The conversation member is in a state which does not permit this action.","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"postWebchatGuestConversationMemberMessages"}},"/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing":{"post":{"tags":["WebChat"],"summary":"Send a typing-indicator in a chat conversation.","description":"","operationId":"postWebchatGuestConversationMemberTyping","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"memberId","in":"path","description":"memberId","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatTyping"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","chat.error.conversation.state":"The conversation is in a state which does not permit this action.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","chat.error.member.state":"The conversation member is in a state which does not permit this action.","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"postWebchatGuestConversationMemberTyping"}},"/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}":{"get":{"tags":["WebChat"],"summary":"Get a web chat conversation member","description":"","operationId":"getWebchatGuestConversationMember","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"memberId","in":"path","description":"memberId","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/WebChatMemberInfo"}},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","invalid.date":"Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ","invalid.value":"Value [%s] is not valid for field type [%s]. Allowable values are: %s"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"getWebchatGuestConversationMember"},"delete":{"tags":["WebChat"],"summary":"Remove a member from a chat conversation","description":"","operationId":"deleteWebchatGuestConversationMember","produces":["application/json"],"parameters":[{"name":"conversationId","in":"path","description":"conversationId","required":true,"type":"string"},{"name":"memberId","in":"path","description":"memberId","required":true,"type":"string"}],"responses":{"204":{"description":"Operation was successful."},"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"bad.request":"The request could not be understood by the server due to malformed syntax.","chat.error.conversation.state":"The conversation is in a state which does not permit this action.","chat.error.member.state":"The conversation member is in a state which does not permit this action."}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.required":"No authentication bearer token specified in authorization header.","bad.credentials":"Invalid login credentials."}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"missing.permissions":"Unable to perform the requested action. You are missing the following permission(s): %s","not.authorized":"You are not authorized to perform the requested action.","missing.any.permissions":"Unable to perform the requested action. You must have at least one of the following permissions assigned: %s"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"not.found":"The requested resource was not found."}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"unsupported.media.type":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header."}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"too.many.requests":"Rate limit exceeded the maximum [%s] requests within [%s] seconds"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"internal.server.error":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"service.unavailable":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance)."}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"},"x-inin-error-codes":{"authentication.request.timeout":"Authentication request timeout.","request.timeout":"The request timed out."}}},"security":[{"Guest Chat JWT":[]}],"x-purecloud-method-name":"deleteWebchatGuestConversationMember"}}},"securityDefinitions":{"PureCloud OAuth":{"type":"oauth2","authorizationUrl":"https://login.mypurecloud.com/authorize","flow":"implicit","scopes":{"all":"All the scopes"}},"Guest Chat JWT":{"type":"apiKey","name":"Authorization","in":"header"}},"definitions":{"WebChatGuestMediaRequest":{"type":"object","required":["state","types"],"properties":{"id":{"type":"string","description":"The globally unique identifier for the object.","readOnly":true},"name":{"type":"string"},"types":{"type":"array","description":"The types of media being requested.","items":{"type":"string","enum":["COBROWSE","SCREENSHARE"]}},"state":{"type":"string","description":"The state of the media request, one of PENDING|ACCEPTED|DECLINED|TIMEDOUT|CANCELLED|ERRORED.","enum":["PENDING","ACCEPTED","DECLINED","TIMEDOUT","CANCELLED","ERRORED"]},"communicationId":{"type":"string","description":"The ID of the new media communication, if applicable."},"securityKey":{"type":"string","description":"The security information related to a media request."},"selfUri":{"type":"string","format":"uri","description":"The URI for this object","readOnly":true}},"description":"Object representing the guest model of a media request of a chat conversation."},"ErrorBody":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"code":{"type":"string"},"entityId":{"type":"string"},"entityName":{"type":"string"},"message":{"type":"string"},"messageWithParams":{"type":"string"},"messageParams":{"type":"object","additionalProperties":{"type":"string"}},"contextId":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/definitions/Detail"}},"errors":{"type":"array","items":{"$ref":"#/definitions/ErrorBody"}}}},"Detail":{"type":"object","properties":{"errorCode":{"type":"string"},"fieldName":{"type":"string"},"entityId":{"type":"string"},"entityName":{"type":"string"}}},"WebChatMessage":{"type":"object","required":["body","bodyType","conversation","sender","timestamp"],"properties":{"id":{"type":"string","description":"The globally unique identifier for the object.","readOnly":true},"name":{"type":"string"},"conversation":{"description":"The identifier of the conversation","$ref":"#/definitions/WebChatConversation"},"sender":{"description":"The member who sent the message","$ref":"#/definitions/WebChatMemberInfo"},"body":{"type":"string","description":"The message body."},"bodyType":{"type":"string","description":"The purpose of the message within the conversation, such as a standard text entry versus a greeting.","enum":["standard","notice","member-join","member-leave","media-request"]},"timestamp":{"type":"string","format":"date-time","description":"The timestamp of the message, in ISO-8601 format"},"selfUri":{"type":"string","format":"uri","description":"The URI for this object","readOnly":true}}},"WebChatConversation":{"type":"object","properties":{"id":{"type":"string","description":"The globally unique identifier for the object.","readOnly":true},"name":{"type":"string"},"member":{"description":"Chat Member","$ref":"#/definitions/WebChatMemberInfo"},"selfUri":{"type":"string","format":"uri","description":"The URI for this object","readOnly":true}}},"WebChatMemberInfo":{"type":"object","required":["role"],"properties":{"id":{"type":"string","description":"The communicationId of this member."},"displayName":{"type":"string","description":"The display name of the member."},"avatarImageUrl":{"type":"string","format":"uri","description":"The url to the avatar image of the member."},"role":{"type":"string","description":"The role of the member, one of [agent, customer, acd, workflow]","enum":["AGENT","CUSTOMER","WORKFLOW","ACD"]},"joinDate":{"type":"string","format":"date-time","description":"The time the member joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ"},"leaveDate":{"type":"string","format":"date-time","description":"The time the member left the conversation, or null if the member is still active in the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ"},"authenticatedGuest":{"type":"boolean","description":"If true, the guest member is an authenticated guest."},"customFields":{"type":"object","description":"Any custom fields of information pertaining to this member.","additionalProperties":{"type":"string"}},"state":{"type":"string","description":"The connection state of this member.","enum":["CONNECTED","DISCONNECTED","ALERTING"]}}},"WebChatGuestMediaRequestEntityList":{"type":"object","properties":{"entities":{"type":"array","items":{"$ref":"#/definitions/WebChatGuestMediaRequest"}}}},"WebChatMessageEntityList":{"type":"object","properties":{"pageSize":{"type":"integer","format":"int32"},"entities":{"type":"array","items":{"$ref":"#/definitions/WebChatMessage"}},"previousPage":{"type":"string"},"next":{"type":"string"},"selfUri":{"type":"string","format":"uri"}}},"CreateWebChatConversationRequest":{"type":"object","required":["deploymentId","memberInfo","organizationId","routingTarget"],"properties":{"organizationId":{"type":"string","description":"The organization identifier."},"deploymentId":{"type":"string","description":"The web chat Deployment ID which contains the appropriate settings for this chat conversation."},"routingTarget":{"description":"The routing information to use for the new chat conversation.","$ref":"#/definitions/WebChatRoutingTarget"},"memberInfo":{"description":"The guest member info to use for the new chat conversation.","$ref":"#/definitions/GuestMemberInfo"},"memberAuthToken":{"type":"string","description":"If the guest member is an authenticated member (ie, not anonymous) his JWT is provided here. The token will have been previously generated with the \"POST /api/v2/signeddata\" resource."},"journeyContext":{"description":"A subset of the Journey System's data relevant to this conversation/session request (for external linkage and internal usage/context).","$ref":"#/definitions/JourneyContext"}}},"WebChatRoutingTarget":{"type":"object","required":["targetAddress","targetType"],"properties":{"targetType":{"type":"string","description":"The target type of the routing target, such as 'QUEUE'.","enum":["QUEUE"]},"targetAddress":{"type":"string","description":"The target of the route, in the format appropriate given the 'targetType'."},"skills":{"type":"array","description":"The list of skill names to use for routing.","items":{"type":"string"}},"language":{"type":"string","description":"The language name to use for routing."},"priority":{"type":"integer","format":"int64","description":"The priority to assign to the conversation for routing."}}},"GuestMemberInfo":{"type":"object","required":["displayName"],"properties":{"displayName":{"type":"string","description":"The display name to use for the guest member in the conversation."},"avatarImageUrl":{"type":"string","format":"uri","description":"The URL to the avatar image to use for the guest member in the conversation, if any."},"customFields":{"type":"object","description":"Any custom fields of information, in key-value format, to attach to the guest member in the conversation.","additionalProperties":{"type":"string"}}}},"JourneyContext":{"type":"object","required":["customer"],"properties":{"customer":{"description":"A subset of the Journey System's customer data at a point-in-time (for external linkage and internal usage/context)","$ref":"#/definitions/JourneyCustomer"},"customerSession":{"description":"A subset of the Journey System's tracked customer session data at a point-in-time (for external linkage and internal usage/context)","$ref":"#/definitions/JourneyCustomerSession"},"triggeringAction":{"description":"A subset of the Journey System's action data relevant to a part of a conversation (for external linkage and internal usage/context)","$ref":"#/definitions/JourneyAction"}}},"JourneyCustomer":{"type":"object","required":["id","idType"],"properties":{"id":{"type":"string","description":"An ID of a customer within the Journey System at a point-in-time. Note that a customer entity can have multiple customerIds based on the stitching process. Depending on the context within the PureCloud conversation, this may or may not be mutable."},"idType":{"type":"string","description":"The type of the customerId within the Journey System (e.g. cookie)."}}},"JourneyCustomerSession":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","description":"An ID of a Customer/User's session within the Journey System at a point-in-time"},"type":{"type":"string","description":"The type of the Customer/User's session within the Journey System (e.g. web, app)"}}},"JourneyAction":{"type":"object","required":["actionMap","id"],"properties":{"id":{"type":"string","description":"The ID of an action from the Journey System (an action is spawned from an actionMap)"},"actionMap":{"description":"Details about the action map from the Journey System which triggered this action","$ref":"#/definitions/JourneyActionMap"}}},"JourneyActionMap":{"type":"object","required":["id","version"],"properties":{"id":{"type":"string","description":"The ID of the actionMap in the Journey System which triggered this action"},"version":{"type":"integer","format":"int32","description":"The version number of the actionMap in the Journey System at the time this action was triggered"}}},"CreateWebChatConversationResponse":{"type":"object","properties":{"id":{"type":"string","description":"Chat Conversation identifier"},"jwt":{"type":"string","description":"The JWT that you can use to identify subsequent calls on this conversation"},"eventStreamUri":{"type":"string","format":"uri","description":"The URI which provides the conversation event stream."},"member":{"description":"Chat Member","$ref":"#/definitions/WebChatMemberInfo"}}},"WebChatMemberInfoEntityList":{"type":"object","properties":{"entities":{"type":"array","items":{"$ref":"#/definitions/WebChatMemberInfo"}},"pageSize":{"type":"integer","format":"int32"},"pageNumber":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"},"firstUri":{"type":"string","format":"uri"},"selfUri":{"type":"string","format":"uri"},"lastUri":{"type":"string","format":"uri"},"previousUri":{"type":"string","format":"uri"},"nextUri":{"type":"string","format":"uri"},"pageCount":{"type":"integer","format":"int32"}}},"CreateWebChatMessageRequest":{"type":"object","required":["body"],"properties":{"body":{"type":"string","description":"The message body. Note that message bodies are limited to 4,000 characters."},"bodyType":{"type":"string","description":"The purpose of the message within the conversation, such as a standard text entry versus a greeting.","enum":["standard","notice","member-join","member-leave","media-request"]}}},"WebChatTyping":{"type":"object","required":["conversation","id","sender","timestamp"],"properties":{"id":{"type":"string","description":"The event identifier of this typing indicator event (useful to guard against event re-delivery"},"conversation":{"description":"The identifier of the conversation","$ref":"#/definitions/WebChatConversation"},"sender":{"description":"The member who sent the message","$ref":"#/definitions/WebChatMemberInfo"},"timestamp":{"type":"string","format":"date-time","description":"The timestamp of the message, in ISO-8601 format"}}}},"responses":{"400":{"description":"The request could not be understood by the server due to malformed syntax.","schema":{"$ref":"#/definitions/ErrorBody"}},"401":{"description":"No authentication bearer token specified in authorization header.","schema":{"$ref":"#/definitions/ErrorBody"}},"403":{"description":"You are not authorized to perform the requested action.","schema":{"$ref":"#/definitions/ErrorBody"}},"404":{"description":"The requested resource was not found.","schema":{"$ref":"#/definitions/ErrorBody"}},"415":{"description":"Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.","schema":{"$ref":"#/definitions/ErrorBody"}},"429":{"description":"Rate limit exceeded the maximum [%s] requests within [%s] seconds","schema":{"$ref":"#/definitions/ErrorBody"}},"500":{"description":"The server encountered an unexpected condition which prevented it from fulfilling the request.","schema":{"$ref":"#/definitions/ErrorBody"}},"503":{"description":"Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).","schema":{"$ref":"#/definitions/ErrorBody"}},"504":{"description":"The request timed out.","schema":{"$ref":"#/definitions/ErrorBody"}}},"externalDocs":{"description":"PureCloud API Documentation","url":"https://developer.mypurecloud.com"}} \ No newline at end of file diff --git a/version.json b/version.json index cac7069d..929b8e12 100644 --- a/version.json +++ b/version.json @@ -1,9 +1,9 @@ { "major": 4, - "minor": 0, + "minor": 1, "point": 0, "prerelease": "", "apiVersion": 0, - "display": "4.0.0", - "displayFull": "4.0.0" + "display": "4.1.0", + "displayFull": "4.1.0" } \ No newline at end of file