@webex/webex-core 3.13.0-next.2 → 3.13.0-next.3
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/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/lib/services-v2/services-v2.js +1 -1
- package/dist/plugins/logger.js +1 -1
- package/dist/webex-core.js +2 -2
- package/package.json +13 -13
- package/test/fixtures/activation-email.ts +1 -1
- package/test/integration/spec/credentials/credentials.js +3 -1
package/dist/lib/batcher.js
CHANGED
|
@@ -302,7 +302,7 @@ var Batcher = _webexPlugin.default.extend({
|
|
|
302
302
|
fingerprintResponse: function fingerprintResponse(item) {
|
|
303
303
|
throw new Error('fingerprintResponse() must be implemented');
|
|
304
304
|
},
|
|
305
|
-
version: "3.13.0-next.
|
|
305
|
+
version: "3.13.0-next.3"
|
|
306
306
|
});
|
|
307
307
|
var _default2 = exports.default = Batcher;
|
|
308
308
|
//# sourceMappingURL=batcher.js.map
|
|
@@ -655,7 +655,7 @@ var Credentials = _webexPlugin.default.extend((_dec = (0, _common.oneFlight)({
|
|
|
655
655
|
this.refresh();
|
|
656
656
|
}
|
|
657
657
|
},
|
|
658
|
-
version: "3.13.0-next.
|
|
658
|
+
version: "3.13.0-next.3"
|
|
659
659
|
}, (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));
|
|
660
660
|
var _default = exports.default = Credentials;
|
|
661
661
|
//# sourceMappingURL=credentials.js.map
|
|
@@ -532,7 +532,7 @@ var Token = _webexPlugin.default.extend((_dec = (0, _common.oneFlight)({
|
|
|
532
532
|
return res.body;
|
|
533
533
|
});
|
|
534
534
|
},
|
|
535
|
-
version: "3.13.0-next.
|
|
535
|
+
version: "3.13.0-next.3"
|
|
536
536
|
}, (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));
|
|
537
537
|
var _default = exports.default = Token;
|
|
538
538
|
//# sourceMappingURL=token.js.map
|
|
@@ -1647,7 +1647,7 @@ var Services = _webexPlugin.default.extend({
|
|
|
1647
1647
|
}, _callee6);
|
|
1648
1648
|
})));
|
|
1649
1649
|
},
|
|
1650
|
-
version: "3.13.0-next.
|
|
1650
|
+
version: "3.13.0-next.3"
|
|
1651
1651
|
});
|
|
1652
1652
|
/* eslint-enable no-underscore-dangle */
|
|
1653
1653
|
var _default = exports.default = Services;
|
|
@@ -1586,7 +1586,7 @@ var Services = _webexPlugin.default.extend({
|
|
|
1586
1586
|
}, _callee5);
|
|
1587
1587
|
})));
|
|
1588
1588
|
},
|
|
1589
|
-
version: "3.13.0-next.
|
|
1589
|
+
version: "3.13.0-next.3"
|
|
1590
1590
|
});
|
|
1591
1591
|
/* eslint-enable no-underscore-dangle */
|
|
1592
1592
|
var _default = exports.default = Services;
|
package/dist/plugins/logger.js
CHANGED
|
@@ -57,7 +57,7 @@ var Logger = _webexPlugin.default.extend({
|
|
|
57
57
|
info: wrapConsoleMethod('info'),
|
|
58
58
|
debug: wrapConsoleMethod('debug'),
|
|
59
59
|
trace: wrapConsoleMethod('trace'),
|
|
60
|
-
version: "3.13.0-next.
|
|
60
|
+
version: "3.13.0-next.3"
|
|
61
61
|
});
|
|
62
62
|
(0, _webexCore.registerPlugin)('logger', Logger);
|
|
63
63
|
var _default = exports.default = Logger;
|
package/dist/webex-core.js
CHANGED
|
@@ -98,7 +98,7 @@ var MAX_FILE_SIZE_IN_MB = 2048;
|
|
|
98
98
|
* @class
|
|
99
99
|
*/
|
|
100
100
|
var WebexCore = _ampersandState.default.extend((_obj = {
|
|
101
|
-
version: "3.13.0-next.
|
|
101
|
+
version: "3.13.0-next.3",
|
|
102
102
|
children: {
|
|
103
103
|
internal: _webexInternalCore.default
|
|
104
104
|
},
|
|
@@ -642,7 +642,7 @@ var WebexCore = _ampersandState.default.extend((_obj = {
|
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
644
|
}, (0, _applyDecoratedDescriptor2.default)(_obj, "_uploadPhaseUpload", [_common.retry], (0, _getOwnPropertyDescriptor.default)(_obj, "_uploadPhaseUpload"), _obj), _obj));
|
|
645
|
-
WebexCore.version = "3.13.0-next.
|
|
645
|
+
WebexCore.version = "3.13.0-next.3";
|
|
646
646
|
(0, _webexInternalCorePluginMixin.default)(_webexInternalCore.default, _config.default, interceptors);
|
|
647
647
|
(0, _webexCorePluginMixin.default)(WebexCore, _config.default, interceptors);
|
|
648
648
|
var _default = exports.default = WebexCore;
|
package/package.json
CHANGED
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"@sinonjs/fake-timers": "^6.0.1",
|
|
34
34
|
"@webex/babel-config-legacy": "0.0.0",
|
|
35
35
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
36
|
-
"@webex/internal-plugin-device": "3.13.0-next.
|
|
36
|
+
"@webex/internal-plugin-device": "3.13.0-next.3",
|
|
37
37
|
"@webex/jest-config-legacy": "0.0.0",
|
|
38
38
|
"@webex/legacy-tools": "0.0.0",
|
|
39
|
-
"@webex/plugin-logger": "3.13.0-next.
|
|
40
|
-
"@webex/test-helper-chai": "3.
|
|
41
|
-
"@webex/test-helper-make-local-url": "3.
|
|
42
|
-
"@webex/test-helper-mocha": "3.
|
|
43
|
-
"@webex/test-helper-mock-webex": "3.
|
|
44
|
-
"@webex/test-helper-refresh-callback": "3.
|
|
45
|
-
"@webex/test-helper-test-users": "3.
|
|
39
|
+
"@webex/plugin-logger": "3.13.0-next.3",
|
|
40
|
+
"@webex/test-helper-chai": "3.13.0-next.1",
|
|
41
|
+
"@webex/test-helper-make-local-url": "3.13.0-next.1",
|
|
42
|
+
"@webex/test-helper-mocha": "3.13.0-next.1",
|
|
43
|
+
"@webex/test-helper-mock-webex": "3.13.0-next.1",
|
|
44
|
+
"@webex/test-helper-refresh-callback": "3.13.0-next.1",
|
|
45
|
+
"@webex/test-helper-test-users": "3.13.0-next.1",
|
|
46
46
|
"chai": "^4.3.4",
|
|
47
47
|
"chai-as-promised": "^7.1.1",
|
|
48
48
|
"eslint": "^8.24.0",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"sinon": "^9.2.4"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@webex/common": "3.
|
|
54
|
-
"@webex/common-timers": "3.
|
|
55
|
-
"@webex/http-core": "3.
|
|
56
|
-
"@webex/storage-adapter-spec": "3.
|
|
53
|
+
"@webex/common": "3.13.0-next.1",
|
|
54
|
+
"@webex/common-timers": "3.13.0-next.1",
|
|
55
|
+
"@webex/http-core": "3.13.0-next.1",
|
|
56
|
+
"@webex/storage-adapter-spec": "3.13.0-next.1",
|
|
57
57
|
"ampersand-collection": "^2.0.2",
|
|
58
58
|
"ampersand-events": "^2.0.2",
|
|
59
59
|
"ampersand-state": "^5.0.3",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"test:style": "eslint ./src/**/*.*",
|
|
74
74
|
"test:unit": "webex-legacy-tools test --unit --runner jest"
|
|
75
75
|
},
|
|
76
|
-
"version": "3.13.0-next.
|
|
76
|
+
"version": "3.13.0-next.3"
|
|
77
77
|
}
|
|
@@ -16,7 +16,7 @@ import uuid from 'uuid';
|
|
|
16
16
|
* @returns {string} e.g. `Collabctg+webex-js-sdk-1a2b3c4d5e6f7a8b9c0d@gmail.com`
|
|
17
17
|
*/
|
|
18
18
|
export function createActivationEmail(): string {
|
|
19
|
-
return `
|
|
19
|
+
return `collabctg+webex-js-sdk-${uuid.v4().replace(/-/g, '').slice(0, 20)}@gmail.com`;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export default createActivationEmail;
|
|
@@ -110,7 +110,9 @@ describe('webex-core', () => {
|
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
// FIXME: this test can never pass (both branches assert(false)) and, in browsers,
|
|
114
|
+
// refresh() now resolves without a refreshCallback, so the expectation needs revisiting.
|
|
115
|
+
browserOnly(it.skip)('throws without a refresh callback', async () => {
|
|
114
116
|
const webex = new WebexCore({
|
|
115
117
|
credentials: user.token,
|
|
116
118
|
});
|