@webex/webex-core 3.7.0-next.1 → 3.7.0-next.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.
@@ -286,7 +286,7 @@ var Batcher = _webexPlugin.default.extend({
286
286
  fingerprintResponse: function fingerprintResponse(item) {
287
287
  throw new Error('fingerprintResponse() must be implemented');
288
288
  },
289
- version: "3.7.0-next.1"
289
+ version: "3.7.0-next.2"
290
290
  });
291
291
  var _default2 = exports.default = Batcher;
292
292
  //# sourceMappingURL=batcher.js.map
@@ -558,7 +558,7 @@ var Credentials = _webexPlugin.default.extend((_dec = (0, _common.oneFlight)({
558
558
  this.refresh();
559
559
  }
560
560
  },
561
- version: "3.7.0-next.1"
561
+ version: "3.7.0-next.2"
562
562
  }, ((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)));
563
563
  var _default = exports.default = Credentials;
564
564
  //# 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.7.0-next.1"
535
+ version: "3.7.0-next.2"
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
@@ -1055,7 +1055,7 @@ var Services = _webexPlugin.default.extend({
1055
1055
  }
1056
1056
  });
1057
1057
  },
1058
- version: "3.7.0-next.1"
1058
+ version: "3.7.0-next.2"
1059
1059
  });
1060
1060
  /* eslint-enable no-underscore-dangle */
1061
1061
  var _default = exports.default = Services;
@@ -44,6 +44,13 @@ var WebexHttpError = exports.default = /*#__PURE__*/function (_HttpError) {
44
44
  enumerable: false,
45
45
  value: res.options
46
46
  });
47
+ (0, _defineProperty.default)(this, 'body', {
48
+ enumerable: false,
49
+ value: res.body
50
+ });
51
+ if (this.body && this.body.errorCode) {
52
+ message += "\nerrorCode : ".concat(this.body.errorCode);
53
+ }
47
54
  if (this.options.url) {
48
55
  message += "\n".concat(this.options.method, " ").concat(this.options.url);
49
56
  } else if (this.options.uri) {
@@ -1 +1 @@
1
- {"version":3,"names":["_httpCore","require","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","default","result","NewTarget","constructor","_Reflect$construct","arguments","apply","_possibleConstructorReturn2","Reflect","sham","Proxy","Boolean","prototype","valueOf","call","e","WebexHttpError","exports","_HttpError","_inherits2","_super","_classCallCheck2","_createClass2","key","value","parse","res","message","_apply","HttpError","_defineProperty","enumerable","options","url","concat","method","uri","service","toUpperCase","resource","headers","trackingid","writeable","retryAfter","makeSubTypes","TooManyRequests","_HttpError$BadRequest","_super2","BadRequest"],"sources":["webex-http-error.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {HttpError} from '@webex/http-core';\n\n/**\n * Webex-specific http error class\n */\nexport default class WebexHttpError extends HttpError {\n /**\n * Very similar to {@link HttpError#parse()}, but additionally adds some\n * useful headers to the message string\n * @param {HttpResponse} res\n * @returns {string}\n */\n parse(res) {\n let message = Reflect.apply(HttpError.prototype.parse, this, [res]);\n\n Reflect.defineProperty(this, 'options', {\n enumerable: false,\n value: res.options,\n });\n\n if (this.options.url) {\n message += `\\n${this.options.method} ${this.options.url}`;\n } else if (this.options.uri) {\n message += `\\n${this.options.method} ${this.options.uri}`;\n } else {\n message += `\\n${this.options.method} ${this.options.service.toUpperCase()}/${\n this.options.resource\n }`;\n }\n message += `\\nWEBEX_TRACKING_ID: ${this.options.headers.trackingid}`;\n if (this.options.headers && this.options.headers['x-trans-id']) {\n message += `\\nX-Trans-Id: ${this.options.headers['x-trans-id']}`;\n }\n if (this.headers['retry-after']) {\n Reflect.defineProperty(this, 'retryAfter', {\n enumerable: true,\n value: this.headers['retry-after'],\n writeable: false,\n });\n\n message += `\\nRETRY-AFTER: ${this.retryAfter}`;\n }\n message += '\\n';\n\n return message;\n }\n}\n\nHttpError.makeSubTypes(WebexHttpError);\n\n/**\n * TooManyRequests\n */\nclass TooManyRequests extends HttpError.BadRequest {}\n\nHttpError[429] = TooManyRequests;\nHttpError.TooManyRequests = TooManyRequests;\n"],"mappings":";;;;;;;;;;;;;;;;AAIA,IAAAA,SAAA,GAAAC,OAAA;AAA2C,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,CAAAC,OAAA,EAAAN,OAAA,GAAAO,MAAA,MAAAN,yBAAA,QAAAO,SAAA,OAAAH,gBAAA,CAAAC,OAAA,QAAAG,WAAA,EAAAF,MAAA,GAAAG,kBAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAH,SAAA,YAAAD,MAAA,GAAAH,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,CAAAP,OAAA,QAAAC,MAAA;AAAA,SAAAL,0BAAA,eAAAY,OAAA,qBAAAJ,kBAAA,oBAAAA,kBAAA,C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AiB,aAAA,CAAAtB,OAAA,EAAA6C,eAAA;AAAA,EAAShB,mBAAS,CAACmB,UAAU;AAElDnB,mBAAS,CAAC,GAAG,CAAC,GAAGgB,eAAe;AAChChB,mBAAS,CAACgB,eAAe,GAAGA,eAAe"}
1
+ {"version":3,"names":["_httpCore","require","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","default","result","NewTarget","constructor","_Reflect$construct","arguments","apply","_possibleConstructorReturn2","Reflect","sham","Proxy","Boolean","prototype","valueOf","call","e","WebexHttpError","exports","_HttpError","_inherits2","_super","_classCallCheck2","_createClass2","key","value","parse","res","message","_apply","HttpError","_defineProperty","enumerable","options","body","errorCode","concat","url","method","uri","service","toUpperCase","resource","headers","trackingid","writeable","retryAfter","makeSubTypes","TooManyRequests","_HttpError$BadRequest","_super2","BadRequest"],"sources":["webex-http-error.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {HttpError} from '@webex/http-core';\n\n/**\n * Webex-specific http error class\n */\nexport default class WebexHttpError extends HttpError {\n /**\n * Very similar to {@link HttpError#parse()}, but additionally adds some\n * useful headers to the message string\n * @param {HttpResponse} res\n * @returns {string}\n */\n parse(res) {\n let message = Reflect.apply(HttpError.prototype.parse, this, [res]);\n\n Reflect.defineProperty(this, 'options', {\n enumerable: false,\n value: res.options,\n });\n\n Reflect.defineProperty(this, 'body', {\n enumerable: false,\n value: res.body,\n });\n\n if (this.body && this.body.errorCode) {\n message += `\\nerrorCode : ${this.body.errorCode}`;\n }\n\n if (this.options.url) {\n message += `\\n${this.options.method} ${this.options.url}`;\n } else if (this.options.uri) {\n message += `\\n${this.options.method} ${this.options.uri}`;\n } else {\n message += `\\n${this.options.method} ${this.options.service.toUpperCase()}/${\n this.options.resource\n }`;\n }\n message += `\\nWEBEX_TRACKING_ID: ${this.options.headers.trackingid}`;\n if (this.options.headers && this.options.headers['x-trans-id']) {\n message += `\\nX-Trans-Id: ${this.options.headers['x-trans-id']}`;\n }\n if (this.headers['retry-after']) {\n Reflect.defineProperty(this, 'retryAfter', {\n enumerable: true,\n value: this.headers['retry-after'],\n writeable: false,\n });\n\n message += `\\nRETRY-AFTER: ${this.retryAfter}`;\n }\n message += '\\n';\n\n return message;\n }\n}\n\nHttpError.makeSubTypes(WebexHttpError);\n\n/**\n * TooManyRequests\n */\nclass TooManyRequests extends HttpError.BadRequest {}\n\nHttpError[429] = TooManyRequests;\nHttpError.TooManyRequests = TooManyRequests;\n"],"mappings":";;;;;;;;;;;;;;;;AAIA,IAAAA,SAAA,GAAAC,OAAA;AAA2C,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,CAAAC,OAAA,EAAAN,OAAA,GAAAO,MAAA,MAAAN,yBAAA,QAAAO,SAAA,OAAAH,gBAAA,CAAAC,OAAA,QAAAG,WAAA,EAAAF,MAAA,GAAAG,kBAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAH,SAAA,YAAAD,MAAA,GAAAH,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,CAAAP,OAAA,QAAAC,MAAA;AAAA,SAAAL,0BAAA,eAAAY,OAAA,qBAAAJ,kBAAA,oBAAAA,kBAAA,CAAAK,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,kBAAA,CAAAO,OAAA,8CAAAI,CAAA,sBAJ3C;AACA;AACA;AAIA;AACA;AACA;AAFA,IAGqBC,cAAc,GAAAC,OAAA,CAAAjB,OAAA,0BAAAkB,UAAA;EAAA,IAAAC,UAAA,CAAAnB,OAAA,EAAAgB,cAAA,EAAAE,UAAA;EAAA,IAAAE,MAAA,GAAA3B,YAAA,CAAAuB,cAAA;EAAA,SAAAA,eAAA;IAAA,IAAAK,gBAAA,CAAArB,OAAA,QAAAgB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GAAG,CAAC,GAAGkB,eAAe;AAChClB,mBAAS,CAACkB,eAAe,GAAGA,eAAe"}
@@ -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.7.0-next.1"
60
+ version: "3.7.0-next.2"
61
61
  });
62
62
  (0, _webexCore.registerPlugin)('logger', Logger);
63
63
  var _default = exports.default = Logger;
@@ -96,7 +96,7 @@ var MAX_FILE_SIZE_IN_MB = 2048;
96
96
  * @class
97
97
  */
98
98
  var WebexCore = _ampersandState.default.extend((_obj = {
99
- version: "3.7.0-next.1",
99
+ version: "3.7.0-next.2",
100
100
  children: {
101
101
  internal: _webexInternalCore.default
102
102
  },
@@ -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.7.0-next.1";
645
+ WebexCore.version = "3.7.0-next.2";
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
@@ -35,12 +35,12 @@
35
35
  "@webex/eslint-config-legacy": "0.0.0",
36
36
  "@webex/jest-config-legacy": "0.0.0",
37
37
  "@webex/legacy-tools": "0.0.0",
38
- "@webex/test-helper-chai": "3.7.0-next.1",
39
- "@webex/test-helper-make-local-url": "3.7.0-next.1",
40
- "@webex/test-helper-mocha": "3.7.0-next.1",
41
- "@webex/test-helper-mock-webex": "3.7.0-next.1",
42
- "@webex/test-helper-refresh-callback": "3.7.0-next.1",
43
- "@webex/test-helper-test-users": "3.7.0-next.1",
38
+ "@webex/test-helper-chai": "3.7.0-next.2",
39
+ "@webex/test-helper-make-local-url": "3.7.0-next.2",
40
+ "@webex/test-helper-mocha": "3.7.0-next.2",
41
+ "@webex/test-helper-mock-webex": "3.7.0-next.2",
42
+ "@webex/test-helper-refresh-callback": "3.7.0-next.2",
43
+ "@webex/test-helper-test-users": "3.7.0-next.2",
44
44
  "chai": "^4.3.4",
45
45
  "chai-as-promised": "^7.1.1",
46
46
  "eslint": "^8.24.0",
@@ -48,12 +48,12 @@
48
48
  "sinon": "^9.2.4"
49
49
  },
50
50
  "dependencies": {
51
- "@webex/common": "3.7.0-next.1",
52
- "@webex/common-timers": "3.7.0-next.1",
53
- "@webex/http-core": "3.7.0-next.1",
54
- "@webex/internal-plugin-device": "3.7.0-next.1",
55
- "@webex/plugin-logger": "3.7.0-next.1",
56
- "@webex/storage-adapter-spec": "3.7.0-next.1",
51
+ "@webex/common": "3.7.0-next.2",
52
+ "@webex/common-timers": "3.7.0-next.2",
53
+ "@webex/http-core": "3.7.0-next.2",
54
+ "@webex/internal-plugin-device": "3.7.0-next.2",
55
+ "@webex/plugin-logger": "3.7.0-next.2",
56
+ "@webex/storage-adapter-spec": "3.7.0-next.2",
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.7.0-next.1"
76
+ "version": "3.7.0-next.2"
77
77
  }
@@ -22,6 +22,15 @@ export default class WebexHttpError extends HttpError {
22
22
  value: res.options,
23
23
  });
24
24
 
25
+ Reflect.defineProperty(this, 'body', {
26
+ enumerable: false,
27
+ value: res.body,
28
+ });
29
+
30
+ if (this.body && this.body.errorCode) {
31
+ message += `\nerrorCode : ${this.body.errorCode}`;
32
+ }
33
+
25
34
  if (this.options.url) {
26
35
  message += `\n${this.options.method} ${this.options.url}`;
27
36
  } else if (this.options.uri) {