@cloudchipr/cloudchipr-engine
Advanced tools
Comparing version 0.2.33 to 0.2.34
@@ -28,9 +28,9 @@ "use strict"; | ||
var _a, _b; | ||
var _this = _super.call(this, (_a = data.message) !== null && _a !== void 0 ? _a : '') || this; | ||
var _this = _super.call(this, (_a = data === null || data === void 0 ? void 0 : data.message) !== null && _a !== void 0 ? _a : '') || this; | ||
Object.setPrototypeOf(_this, AwsApiError.prototype); | ||
_this.resource = resource; | ||
if (data.Code === 'UnauthorizedOperation' || ((_b = data.$metadata) === null || _b === void 0 ? void 0 : _b.httpStatusCode) === 403) { | ||
if ((data === null || data === void 0 ? void 0 : data.Code) === 'UnauthorizedOperation' || (data === null || data === void 0 ? void 0 : data.code) === 'UnauthorizedOperation' || ((_b = data === null || data === void 0 ? void 0 : data.$metadata) === null || _b === void 0 ? void 0 : _b.httpStatusCode) === 403) { | ||
_this.type = code_1.Code.PERMISSION; | ||
} | ||
else if (data.code === 'Throttling' || data.message === 'Rate exceeded') { | ||
else if ((data === null || data === void 0 ? void 0 : data.code) === 'Throttling' || (data === null || data === void 0 ? void 0 : data.message) === 'Rate exceeded') { | ||
_this.type = code_1.Code.THROTTLING; | ||
@@ -37,0 +37,0 @@ } |
{ | ||
"name": "@cloudchipr/cloudchipr-engine", | ||
"version": "0.2.33", | ||
"version": "0.2.34", | ||
"description": "Cloudchipr engine", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
641971