@webex/webex-core 2.31.1 → 2.31.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.js +1 -3
- package/dist/config.js.map +1 -1
- package/dist/lib/batcher.js +1 -1
- package/dist/lib/credentials/credentials.js +1 -1
- package/dist/lib/credentials/token.js +1 -1
- package/dist/lib/services/services.js +1 -1
- package/dist/plugins/logger.js +1 -1
- package/dist/webex-core.js +2 -2
- package/package.json +14 -14
- package/src/config.js +0 -6
package/dist/config.js
CHANGED
|
@@ -76,9 +76,7 @@ var _default = {
|
|
|
76
76
|
hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',
|
|
77
77
|
hydraServiceUrl: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1'
|
|
78
78
|
},
|
|
79
|
-
validateDomains: true
|
|
80
|
-
// It is okay to pass the auth token to the following domains:
|
|
81
|
-
whitelistedServiceDomains: ['wbx2.com', 'ciscospark.com', 'webex.com']
|
|
79
|
+
validateDomains: true
|
|
82
80
|
},
|
|
83
81
|
metrics: {
|
|
84
82
|
type: ['behavioral', 'operational']
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["maxAppLevelRedirects","maxLocusRedirects","maxAuthenticationReplays","maxReconnectAttempts","onBeforeLogout","trackingIdPrefix","trackingIdSuffix","AlternateLogger","undefined","credentials","CredentialsConfig","fedramp","process","env","ENABLE_FEDRAMP","services","discovery","hydra","HYDRA_SERVICE_URL","u2c","U2C_SERVICE_URL","validateDomains","servicesNotNeedValidation","allowedDomains","device","preDiscoveryServices","hydraServiceUrl","
|
|
1
|
+
{"version":3,"names":["maxAppLevelRedirects","maxLocusRedirects","maxAuthenticationReplays","maxReconnectAttempts","onBeforeLogout","trackingIdPrefix","trackingIdSuffix","AlternateLogger","undefined","credentials","CredentialsConfig","fedramp","process","env","ENABLE_FEDRAMP","services","discovery","hydra","HYDRA_SERVICE_URL","u2c","U2C_SERVICE_URL","validateDomains","servicesNotNeedValidation","allowedDomains","device","preDiscoveryServices","hydraServiceUrl","metrics","type","payloadTransformer","predicates","transforms","storage","boundedAdapter","MemoryStoreAdapter","unboundedAdapter"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint camelcase: [0] */\n\nimport {MemoryStoreAdapter} from './lib/storage';\nimport CredentialsConfig from './credentials-config';\n\nexport default {\n maxAppLevelRedirects: 10,\n maxLocusRedirects: 5,\n maxAuthenticationReplays: 1,\n maxReconnectAttempts: 1,\n onBeforeLogout: [],\n trackingIdPrefix: 'webex-js-sdk',\n trackingIdSuffix: '',\n AlternateLogger: undefined,\n credentials: new CredentialsConfig(),\n fedramp: process.env.ENABLE_FEDRAMP || false,\n services: {\n /**\n * A list of services that are available prior to catalog collection.\n *\n * @type {Object}\n */\n discovery: {\n /**\n * The hydra discovery url.\n *\n * @type {string}\n */\n hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n\n /**\n * The u2c discovery url\n *\n * @type {string}\n */\n u2c: process.env.U2C_SERVICE_URL || 'https://u2c.wbx2.com/u2c/api/v1'\n },\n\n /**\n * When true, considers all urls in `allowedDomains` as safe for auth tokens\n *\n * @type {boolean}\n */\n validateDomains: true,\n\n /**\n * services that don't need auth validation\n */\n\n servicesNotNeedValidation: [\n 'webex-appapi-service'\n ],\n\n /**\n * Contains a list of allowed domain host addresses.\n *\n * @type {Array<string>}\n */\n allowedDomains: [\n 'wbx2.com',\n 'ciscospark.com',\n 'webex.com',\n 'webexapis.com',\n 'broadcloudpbx.com',\n 'broadcloud.eu',\n 'broadcloud.com.au',\n 'broadcloudpbx.net'\n ]\n },\n device: {\n preDiscoveryServices: {\n hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n hydraServiceUrl: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1'\n },\n validateDomains: true,\n },\n metrics: {\n type: ['behavioral', 'operational']\n },\n payloadTransformer: {\n predicates: [],\n transforms: []\n },\n storage: {\n boundedAdapter: MemoryStoreAdapter,\n unboundedAdapter: MemoryStoreAdapter\n }\n};\n"],"mappings":";;;;;;;;;;;;AAMA;;AACA;;AAPA;AACA;AACA;;AAEA;eAKe;EACbA,oBAAoB,EAAE,EADT;EAEbC,iBAAiB,EAAE,CAFN;EAGbC,wBAAwB,EAAE,CAHb;EAIbC,oBAAoB,EAAE,CAJT;EAKbC,cAAc,EAAE,EALH;EAMbC,gBAAgB,EAAE,cANL;EAObC,gBAAgB,EAAE,EAPL;EAQbC,eAAe,EAAEC,SARJ;EASbC,WAAW,EAAE,IAAIC,0BAAJ,EATA;EAUbC,OAAO,EAAEC,OAAO,CAACC,GAAR,CAAYC,cAAZ,IAA8B,KAV1B;EAWbC,QAAQ,EAAE;IACR;AACJ;AACA;AACA;AACA;IACIC,SAAS,EAAE;MACT;AACN;AACA;AACA;AACA;MACMC,KAAK,EAAEL,OAAO,CAACC,GAAR,CAAYK,iBAAZ,IAAiC,+BAN/B;;MAQT;AACN;AACA;AACA;AACA;MACMC,GAAG,EAAEP,OAAO,CAACC,GAAR,CAAYO,eAAZ,IAA+B;IAb3B,CANH;;IAsBR;AACJ;AACA;AACA;AACA;IACIC,eAAe,EAAE,IA3BT;;IA6BR;AACJ;AACA;IAEIC,yBAAyB,EAAE,CACzB,sBADyB,CAjCnB;;IAqCR;AACJ;AACA;AACA;AACA;IACIC,cAAc,EAAE,CACd,UADc,EAEd,gBAFc,EAGd,WAHc,EAId,eAJc,EAKd,mBALc,EAMd,eANc,EAOd,mBAPc,EAQd,mBARc;EA1CR,CAXG;EAgEbC,MAAM,EAAE;IACNC,oBAAoB,EAAE;MACpBR,KAAK,EAAEL,OAAO,CAACC,GAAR,CAAYK,iBAAZ,IAAiC,+BADpB;MAEpBQ,eAAe,EAAEd,OAAO,CAACC,GAAR,CAAYK,iBAAZ,IAAiC;IAF9B,CADhB;IAKNG,eAAe,EAAE;EALX,CAhEK;EAuEbM,OAAO,EAAE;IACPC,IAAI,EAAE,CAAC,YAAD,EAAe,aAAf;EADC,CAvEI;EA0EbC,kBAAkB,EAAE;IAClBC,UAAU,EAAE,EADM;IAElBC,UAAU,EAAE;EAFM,CA1EP;EA8EbC,OAAO,EAAE;IACPC,cAAc,EAAEC,2BADT;IAEPC,gBAAgB,EAAED;EAFX;AA9EI,C"}
|
package/dist/lib/batcher.js
CHANGED
|
@@ -329,7 +329,7 @@ var Batcher = _webexPlugin.default.extend({
|
|
|
329
329
|
fingerprintResponse: function fingerprintResponse(item) {
|
|
330
330
|
throw new Error('fingerprintResponse() must be implemented');
|
|
331
331
|
},
|
|
332
|
-
version: "2.31.
|
|
332
|
+
version: "2.31.2"
|
|
333
333
|
});
|
|
334
334
|
|
|
335
335
|
var _default2 = Batcher;
|
|
@@ -598,7 +598,7 @@ var Credentials = _webexPlugin.default.extend((_dec = (0, _common.oneFlight)({
|
|
|
598
598
|
this.refresh();
|
|
599
599
|
}
|
|
600
600
|
},
|
|
601
|
-
version: "2.31.
|
|
601
|
+
version: "2.31.2"
|
|
602
602
|
}, ((0, _applyDecoratedDescriptor2.default)(_obj, "getUserToken", [_dec, _dec2], (0, _getOwnPropertyDescriptor.default)(_obj, "getUserToken"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "initialize", [_dec3], (0, _getOwnPropertyDescriptor.default)(_obj, "initialize"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "invalidate", [_common.oneFlight, _dec4], (0, _getOwnPropertyDescriptor.default)(_obj, "invalidate"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "refresh", [_common.oneFlight, _dec5, _dec6], (0, _getOwnPropertyDescriptor.default)(_obj, "refresh"), _obj)), _obj)));
|
|
603
603
|
|
|
604
604
|
var _default = Credentials;
|
|
@@ -605,7 +605,7 @@ var Token = _webexPlugin.default.extend((_dec = (0, _common.oneFlight)({
|
|
|
605
605
|
return res.body;
|
|
606
606
|
});
|
|
607
607
|
},
|
|
608
|
-
version: "2.31.
|
|
608
|
+
version: "2.31.2"
|
|
609
609
|
}, ((0, _applyDecoratedDescriptor2.default)(_obj, "downscope", [_dec], (0, _getOwnPropertyDescriptor.default)(_obj, "downscope"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "refresh", [_common.oneFlight], (0, _getOwnPropertyDescriptor.default)(_obj, "refresh"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "revoke", [_common.oneFlight], (0, _getOwnPropertyDescriptor.default)(_obj, "revoke"), _obj)), _obj)));
|
|
610
610
|
|
|
611
611
|
var _default = Token;
|
package/dist/plugins/logger.js
CHANGED
package/dist/webex-core.js
CHANGED
|
@@ -159,7 +159,7 @@ var MAX_FILE_SIZE_IN_MB = 2048;
|
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
161
|
var WebexCore = _ampersandState.default.extend((_obj = {
|
|
162
|
-
version: "2.31.
|
|
162
|
+
version: "2.31.2",
|
|
163
163
|
children: {
|
|
164
164
|
internal: _webexInternalCore.default
|
|
165
165
|
},
|
|
@@ -757,7 +757,7 @@ var WebexCore = _ampersandState.default.extend((_obj = {
|
|
|
757
757
|
}
|
|
758
758
|
}, ((0, _applyDecoratedDescriptor2.default)(_obj, "_uploadPhaseUpload", [_common.retry], (0, _getOwnPropertyDescriptor.default)(_obj, "_uploadPhaseUpload"), _obj)), _obj));
|
|
759
759
|
|
|
760
|
-
WebexCore.version = "2.31.
|
|
760
|
+
WebexCore.version = "2.31.2";
|
|
761
761
|
(0, _webexInternalCorePluginMixin.default)(_webexInternalCore.default, _config.default, interceptors);
|
|
762
762
|
(0, _webexCorePluginMixin.default)(WebexCore, _config.default, interceptors);
|
|
763
763
|
var _default = WebexCore;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/webex-core",
|
|
3
|
-
"version": "2.31.
|
|
3
|
+
"version": "2.31.2",
|
|
4
4
|
"description": "Plugin handling for Cisco Webex",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -27,24 +27,24 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@sinonjs/fake-timers": "^6.0.1",
|
|
30
|
-
"@webex/test-helper-chai": "2.31.
|
|
31
|
-
"@webex/test-helper-make-local-url": "2.31.
|
|
32
|
-
"@webex/test-helper-mocha": "2.31.
|
|
33
|
-
"@webex/test-helper-mock-webex": "2.31.
|
|
34
|
-
"@webex/test-helper-refresh-callback": "2.31.
|
|
35
|
-
"@webex/test-helper-test-users": "2.31.
|
|
30
|
+
"@webex/test-helper-chai": "2.31.2",
|
|
31
|
+
"@webex/test-helper-make-local-url": "2.31.2",
|
|
32
|
+
"@webex/test-helper-mocha": "2.31.2",
|
|
33
|
+
"@webex/test-helper-mock-webex": "2.31.2",
|
|
34
|
+
"@webex/test-helper-refresh-callback": "2.31.2",
|
|
35
|
+
"@webex/test-helper-test-users": "2.31.2",
|
|
36
36
|
"chai": "^4.3.4",
|
|
37
37
|
"chai-as-promised": "^7.1.1",
|
|
38
38
|
"sinon": "^9.2.4"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@webex/common": "2.31.
|
|
42
|
-
"@webex/common-timers": "2.31.
|
|
43
|
-
"@webex/http-core": "2.31.
|
|
44
|
-
"@webex/internal-plugin-device": "2.31.
|
|
45
|
-
"@webex/plugin-logger": "2.31.
|
|
46
|
-
"@webex/storage-adapter-spec": "2.31.
|
|
47
|
-
"@webex/webex-core": "2.31.
|
|
41
|
+
"@webex/common": "2.31.2",
|
|
42
|
+
"@webex/common-timers": "2.31.2",
|
|
43
|
+
"@webex/http-core": "2.31.2",
|
|
44
|
+
"@webex/internal-plugin-device": "2.31.2",
|
|
45
|
+
"@webex/plugin-logger": "2.31.2",
|
|
46
|
+
"@webex/storage-adapter-spec": "2.31.2",
|
|
47
|
+
"@webex/webex-core": "2.31.2",
|
|
48
48
|
"ampersand-collection": "^2.0.2",
|
|
49
49
|
"ampersand-events": "^2.0.2",
|
|
50
50
|
"ampersand-state": "^5.0.3",
|
package/src/config.js
CHANGED
|
@@ -77,12 +77,6 @@ export default {
|
|
|
77
77
|
hydraServiceUrl: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1'
|
|
78
78
|
},
|
|
79
79
|
validateDomains: true,
|
|
80
|
-
// It is okay to pass the auth token to the following domains:
|
|
81
|
-
whitelistedServiceDomains: [
|
|
82
|
-
'wbx2.com',
|
|
83
|
-
'ciscospark.com',
|
|
84
|
-
'webex.com'
|
|
85
|
-
]
|
|
86
80
|
},
|
|
87
81
|
metrics: {
|
|
88
82
|
type: ['behavioral', 'operational']
|