@flowio/browser-bundle
Advanced tools
Comparing version 2.0.25 to 2.0.26
/// <reference types="@flowio/api-types" /> | ||
/// <reference types="@flowio/api-types" /> | ||
interface BrowserBundleFetchOptions { | ||
@@ -3,0 +4,0 @@ force?: boolean; |
@@ -26,11 +26,11 @@ "use strict"; | ||
BrowserBundleService.prototype.applySession = function (session) { | ||
this.experienceKey = get_1.default(session, 'experience.key'); | ||
this.organization = get_1.default(session, 'organization'); | ||
this.experienceKey = (0, get_1.default)(session, 'experience.key'); | ||
this.organization = (0, get_1.default)(session, 'organization'); | ||
this.geo = { | ||
country: get_1.default(session, 'geo.country.iso_3166_3'), | ||
currency: get_1.default(session, 'geo.currency.iso_4217_3'), | ||
language: get_1.default(session, 'geo.language.iso_639_2'), | ||
locale: get_1.default(session, 'geo.locale.id'), | ||
country: (0, get_1.default)(session, 'geo.country.iso_3166_3'), | ||
currency: (0, get_1.default)(session, 'geo.currency.iso_4217_3'), | ||
language: (0, get_1.default)(session, 'geo.language.iso_639_2'), | ||
locale: (0, get_1.default)(session, 'geo.locale.id'), | ||
}; | ||
this.contextId = get_1.default(session, 'context.id'); | ||
this.contextId = (0, get_1.default)(session, 'context.id'); | ||
this.sessionApplied = true; | ||
@@ -49,3 +49,3 @@ }; | ||
var organizationId = _this.organization; | ||
var url = baseUrl + "/" + organizationId + "/bundles/browser" + (_this.contextId ? '?context=' + ("" + encodeURIComponent(_this.contextId)) : ''); | ||
var url = "".concat(baseUrl, "/").concat(organizationId, "/bundles/browser").concat(_this.contextId ? '?context=' + "".concat(encodeURIComponent(_this.contextId)) : ''); | ||
var country = _this.geo.country; | ||
@@ -59,3 +59,3 @@ var method = args && args.method || 'GET'; | ||
}, | ||
keys: values_1.default(constants_1.default.features), | ||
keys: (0, values_1.default)(constants_1.default.features), | ||
}, | ||
@@ -73,3 +73,3 @@ optin: { | ||
}; | ||
var force = get_1.default(args, 'options.force'); | ||
var force = (0, get_1.default)(args, 'options.force'); | ||
if (!force) { | ||
@@ -76,0 +76,0 @@ var cachedEntry = _this.cache.get(data, _this.organization, _this.experienceKey || 'undefined'); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.general = exports.features = void 0; | ||
exports.features = { | ||
@@ -4,0 +5,0 @@ BLAZE: 'global_checkout_blaze', |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.browserBundleService = void 0; | ||
var browser_bundle_service_1 = __importDefault(require("./browser-bundle-service")); | ||
@@ -8,0 +9,0 @@ exports.browserBundleService = new browser_bundle_service_1.default(); |
{ | ||
"name": "@flowio/browser-bundle", | ||
"version": "2.0.25", | ||
"version": "2.0.26", | ||
"description": "Browser Bundle service", | ||
@@ -46,41 +46,10 @@ "keywords": [ | ||
"@flowio/request": ">=0.4.0", | ||
"@flowio/web-sdk": ">=2.1.1" | ||
"@flowio/web-sdk": "file:../web-sdk" | ||
}, | ||
"dependencies": { | ||
"@flowio/cache": "^1.0.19", | ||
"@flowio/cache": "^1.0.20", | ||
"@flowio/storage": "^0.1.20", | ||
"lodash": "^4.17.15" | ||
}, | ||
"devDependencies": { | ||
"@babel/runtime": "^7.12.5", | ||
"@flowio/api-mock-generator": "^0.2.4", | ||
"@flowio/api-types": "0.0.5", | ||
"@flowio/request": "^0.4.0", | ||
"@flowio/tslint-config-flowio": "^1.0.0", | ||
"@flowio/web-sdk": "^2.1.11", | ||
"@types/chai": "^4.1.7", | ||
"@types/chai-spies": "^1.0.1", | ||
"@types/lodash": "^4.14.138", | ||
"@types/mocha": "^5.2.7", | ||
"@types/xhr-mock": "^2.0.0", | ||
"chai": "^4.2.0", | ||
"chai-spies": "^1.0.0", | ||
"cross-env": "^5.2.0", | ||
"karma": "^4.1.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-cli": "^2.0.0", | ||
"karma-coverage": "^1.1.2", | ||
"karma-html2js-preprocessor": "^1.1.0", | ||
"karma-mocha": "^1.3.0", | ||
"karma-webpack": "^4.0.2", | ||
"mocha": "^6.1.4", | ||
"puppeteer": "^1.18.0", | ||
"ts-loader": "^6.0.4", | ||
"ts-node": "^8.3.0", | ||
"tslint": "^5.16.0", | ||
"typescript": "^3.4.5", | ||
"webpack": "^4.46.0", | ||
"xhr-mock": "^2.5.0" | ||
}, | ||
"gitHead": "8ba03a8dcb1eab94c1574b436ac18b7c08db9108" | ||
"gitHead": "bc6911fc77a438d555da810d57094bd427c31002" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
0
12
201
14029
Updated@flowio/cache@^1.0.20