configcat-js-ssr
Advanced tools
Comparing version 7.1.1 to 7.1.2
@@ -12,5 +12,5 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var headers, axiosConfig, response, err_1, statusCode_1, reasonPhrase_1, _a, code, message, statusCode, reasonPhrase, eTag; | ||
return tslib_1.__generator(this, function (_b) { | ||
switch (_b.label) { | ||
var headers, axiosConfig, response, err_1, statusCode_1, reasonPhrase_1, _a, code, message, _b, statusCode, reasonPhrase, eTag; | ||
return tslib_1.__generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
@@ -30,11 +30,11 @@ headers = typeof window !== "undefined" || !lastEtag | ||
}; | ||
_b.label = 1; | ||
_c.label = 1; | ||
case 1: | ||
_b.trys.push([1, 3, , 4]); | ||
return [4 /*yield*/, axios_1.default(axiosConfig)]; | ||
_c.trys.push([1, 3, , 4]); | ||
return [4 /*yield*/, (0, axios_1.default)(axiosConfig)]; | ||
case 2: | ||
response = _b.sent(); | ||
response = _c.sent(); | ||
return [3 /*break*/, 4]; | ||
case 3: | ||
err_1 = _b.sent(); | ||
err_1 = _c.sent(); | ||
(response = err_1.response); | ||
@@ -64,4 +64,4 @@ if (response) { | ||
case 4: | ||
statusCode = response.status, reasonPhrase = response.statusText; | ||
if (response.status === 200) { | ||
_b = response, statusCode = _b.status, reasonPhrase = _b.statusText; | ||
if (statusCode === 200) { | ||
eTag = response.headers.etag; | ||
@@ -68,0 +68,0 @@ return [2 /*return*/, { statusCode: statusCode, reasonPhrase: reasonPhrase, eTag: eTag, body: response.data }]; |
@@ -9,5 +9,5 @@ import { __awaiter, __generator } from "tslib"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var headers, axiosConfig, response, err_1, statusCode_1, reasonPhrase_1, _a, code, message, statusCode, reasonPhrase, eTag; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
var headers, axiosConfig, response, err_1, statusCode_1, reasonPhrase_1, _a, code, message, _b, statusCode, reasonPhrase, eTag; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
@@ -27,11 +27,11 @@ headers = typeof window !== "undefined" || !lastEtag | ||
}; | ||
_b.label = 1; | ||
_c.label = 1; | ||
case 1: | ||
_b.trys.push([1, 3, , 4]); | ||
_c.trys.push([1, 3, , 4]); | ||
return [4 /*yield*/, axios(axiosConfig)]; | ||
case 2: | ||
response = _b.sent(); | ||
response = _c.sent(); | ||
return [3 /*break*/, 4]; | ||
case 3: | ||
err_1 = _b.sent(); | ||
err_1 = _c.sent(); | ||
(response = err_1.response); | ||
@@ -61,4 +61,4 @@ if (response) { | ||
case 4: | ||
statusCode = response.status, reasonPhrase = response.statusText; | ||
if (response.status === 200) { | ||
_b = response, statusCode = _b.status, reasonPhrase = _b.statusText; | ||
if (statusCode === 200) { | ||
eTag = response.headers.etag; | ||
@@ -65,0 +65,0 @@ return [2 /*return*/, { statusCode: statusCode, reasonPhrase: reasonPhrase, eTag: eTag, body: response.data }]; |
@@ -1,1 +0,1 @@ | ||
export default "7.1.1"; | ||
export default "7.1.2"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = "7.1.1"; | ||
exports.default = "7.1.2"; |
{ | ||
"name": "configcat-js-ssr", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"description": "ConfigCat Feature Flags for Server Side Rendered apps like NuxtJS. Official ConfigCat SDK for Server Side Rendered to easily access feature flags.", | ||
@@ -48,3 +48,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"axios": "^0.27.2", | ||
"axios": "^1.6.2", | ||
"configcat-common": "^8.1.1", | ||
@@ -79,3 +79,3 @@ "tslib": "^2.4.1" | ||
"ts-loader": "^9.3.1", | ||
"typescript": "^4.0.2", | ||
"typescript": "^4.8.4", | ||
"webpack": "^5.77.0", | ||
@@ -82,0 +82,0 @@ "webpack-auto-inject-version": "^1.2.2", |
Sorry, the diff of this file is too big to display
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
166627
+ Addedaxios@1.7.7(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removedaxios@0.27.2(transitive)
Updatedaxios@^1.6.2