@ikas/storefront 0.0.99 → 0.0.100

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/build/index.es.js CHANGED
@@ -28364,7 +28364,7 @@ var SettingsHelper = /** @class */ (function () {
28364
28364
  SettingsHelper.getSettings = function (locale) {
28365
28365
  var _this = this;
28366
28366
  return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
28367
- var settings, storefront, salesChannel, localizationMap, themeJSONPath, routing;
28367
+ var settings, storefront, salesChannel, localizationMap, themeLocalizationPath, routing;
28368
28368
  return __generator(this, function (_a) {
28369
28369
  switch (_a.label) {
28370
28370
  case 0: return [4 /*yield*/, SettingsHelper.readSettingsFile()];
@@ -28375,17 +28375,17 @@ var SettingsHelper = /** @class */ (function () {
28375
28375
  storefront = new IkasStorefront(settings.storefront);
28376
28376
  salesChannel = new IkasSalesChannel(settings.salesChannel);
28377
28377
  localizationMap = settings.localizationMap;
28378
- themeJSONPath = localizationMap[locale];
28378
+ themeLocalizationPath = localizationMap[locale];
28379
28379
  routing = storefront.routings.find(function (r) { return r.id === locale || r.path === locale; });
28380
- if (!themeJSONPath || !routing) {
28381
- console.error("THEMEJSONPATH OR ROUTING MISSING!!!");
28380
+ if (!themeLocalizationPath || !routing) {
28381
+ console.error("THEME LOCALIZATION PATH OR ROUTING MISSING!!!");
28382
28382
  return [2 /*return*/, resolve(null)];
28383
28383
  }
28384
- fs.readFile(themeJSONPath, {
28384
+ fs.readFile(themeLocalizationPath, {
28385
28385
  flag: "a+",
28386
28386
  }, function (err, file) {
28387
28387
  if (err) {
28388
- console.error("THEMEJSON FILE RED ERROR!!!");
28388
+ console.error("THEME LOCALZIATION FILE READ ERROR!!!");
28389
28389
  console.error(err);
28390
28390
  return resolve(null);
28391
28391
  }
package/build/index.js CHANGED
@@ -28344,7 +28344,7 @@ var SettingsHelper = /** @class */ (function () {
28344
28344
  SettingsHelper.getSettings = function (locale) {
28345
28345
  var _this = this;
28346
28346
  return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
28347
- var settings, storefront, salesChannel, localizationMap, themeJSONPath, routing;
28347
+ var settings, storefront, salesChannel, localizationMap, themeLocalizationPath, routing;
28348
28348
  return __generator(this, function (_a) {
28349
28349
  switch (_a.label) {
28350
28350
  case 0: return [4 /*yield*/, SettingsHelper.readSettingsFile()];
@@ -28355,17 +28355,17 @@ var SettingsHelper = /** @class */ (function () {
28355
28355
  storefront = new IkasStorefront(settings.storefront);
28356
28356
  salesChannel = new IkasSalesChannel(settings.salesChannel);
28357
28357
  localizationMap = settings.localizationMap;
28358
- themeJSONPath = localizationMap[locale];
28358
+ themeLocalizationPath = localizationMap[locale];
28359
28359
  routing = storefront.routings.find(function (r) { return r.id === locale || r.path === locale; });
28360
- if (!themeJSONPath || !routing) {
28361
- console.error("THEMEJSONPATH OR ROUTING MISSING!!!");
28360
+ if (!themeLocalizationPath || !routing) {
28361
+ console.error("THEME LOCALIZATION PATH OR ROUTING MISSING!!!");
28362
28362
  return [2 /*return*/, resolve(null)];
28363
28363
  }
28364
- fs__default['default'].readFile(themeJSONPath, {
28364
+ fs__default['default'].readFile(themeLocalizationPath, {
28365
28365
  flag: "a+",
28366
28366
  }, function (err, file) {
28367
28367
  if (err) {
28368
- console.error("THEMEJSON FILE RED ERROR!!!");
28368
+ console.error("THEME LOCALZIATION FILE READ ERROR!!!");
28369
28369
  console.error(err);
28370
28370
  return resolve(null);
28371
28371
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.99",
3
+ "version": "0.0.100",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",