@athoscommerce/snap-preact 1.13.1 → 1.13.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.
@@ -535,7 +535,8 @@ function expandCommaSelectors(selectors) {
535
535
  }
536
536
  return expandedSelectors;
537
537
  }
538
- const DEV_MODE = typeof process !== 'undefined' && process.env && process.env.NODE_ENV !== 'production';
538
+ // bundlers substitute `process.env.NODE_ENV` as a literal - `typeof process` guards would defeat that
539
+ const DEV_MODE = process.env.NODE_ENV !== 'production';
539
540
  // dev-mode legacy-match warnings are emitted once per selector/treePath pair
540
541
  const warnedLegacySelectors = new Set();
541
542
  /**
@@ -283,8 +283,8 @@ class Snap {
283
283
  2. config
284
284
  3. override via query param / cookie
285
285
  */
286
- // node env
287
- if (typeof process !== 'undefined' && process.env.NODE_ENV && Object.values(snap_toolbox_1.AppMode).includes(process.env.NODE_ENV)) {
286
+ // node env (bundlers substitute `process.env.NODE_ENV` as a literal - `typeof process` guards would defeat that)
287
+ if (process.env.NODE_ENV && Object.values(snap_toolbox_1.AppMode).includes(process.env.NODE_ENV)) {
288
288
  this.mode = process.env.NODE_ENV;
289
289
  }
290
290
  // config
@@ -1 +1 @@
1
- {"version":3,"file":"mergeProps.d.ts","sourceRoot":"","sources":["../../../../../components/src/utilities/mergeProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,KAAK,EAAiB,eAAe,EAAE,MAAM,cAAc,CAAC;AA4D1E,wBAAgB,UAAU,CAAC,qBAAqB,SAAS,cAAc,EACtE,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,KAAK,EAClB,YAAY,EAAE,OAAO,CAAC,qBAAqB,CAAC,EAC5C,KAAK,EAAE,qBAAqB,GAC1B,qBAAqB,CA4BvB;AA2gBD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE1D;AAoPD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAW5F"}
1
+ {"version":3,"file":"mergeProps.d.ts","sourceRoot":"","sources":["../../../../../components/src/utilities/mergeProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,KAAK,EAAiB,eAAe,EAAE,MAAM,cAAc,CAAC;AA4D1E,wBAAgB,UAAU,CAAC,qBAAqB,SAAS,cAAc,EACtE,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,KAAK,EAClB,YAAY,EAAE,OAAO,CAAC,qBAAqB,CAAC,EAC5C,KAAK,EAAE,qBAAqB,GAC1B,qBAAqB,CA4BvB;AA2gBD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE1D;AAqPD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAW5F"}
@@ -530,7 +530,8 @@ function expandCommaSelectors(selectors) {
530
530
  }
531
531
  return expandedSelectors;
532
532
  }
533
- const DEV_MODE = typeof process !== 'undefined' && process.env && process.env.NODE_ENV !== 'production';
533
+ // bundlers substitute `process.env.NODE_ENV` as a literal - `typeof process` guards would defeat that
534
+ const DEV_MODE = process.env.NODE_ENV !== 'production';
534
535
  // dev-mode legacy-match warnings are emitted once per selector/treePath pair
535
536
  const warnedLegacySelectors = new Set();
536
537
  /**
@@ -277,8 +277,8 @@ export class Snap {
277
277
  2. config
278
278
  3. override via query param / cookie
279
279
  */
280
- // node env
281
- if (typeof process !== 'undefined' && process.env.NODE_ENV && Object.values(AppMode).includes(process.env.NODE_ENV)) {
280
+ // node env (bundlers substitute `process.env.NODE_ENV` as a literal - `typeof process` guards would defeat that)
281
+ if (process.env.NODE_ENV && Object.values(AppMode).includes(process.env.NODE_ENV)) {
282
282
  this.mode = process.env.NODE_ENV;
283
283
  }
284
284
  // config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athoscommerce/snap-preact",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "Snap Preact",
5
5
  "main": "dist/cjs/src/index.js",
6
6
  "module": "dist/esm/src/index.js",
@@ -28,16 +28,16 @@
28
28
  "storybook": "storybook dev -c ./components/.storybook -p 6006"
29
29
  },
30
30
  "dependencies": {
31
- "@athoscommerce/snap-client": "1.13.1",
32
- "@athoscommerce/snap-controller": "1.13.1",
33
- "@athoscommerce/snap-event-manager": "1.13.1",
34
- "@athoscommerce/snap-logger": "1.13.1",
35
- "@athoscommerce/snap-platforms": "1.13.1",
36
- "@athoscommerce/snap-profiler": "1.13.1",
37
- "@athoscommerce/snap-store-mobx": "1.13.1",
38
- "@athoscommerce/snap-toolbox": "1.13.1",
39
- "@athoscommerce/snap-tracker": "1.13.1",
40
- "@athoscommerce/snap-url-manager": "1.13.1",
31
+ "@athoscommerce/snap-client": "1.13.2",
32
+ "@athoscommerce/snap-controller": "1.13.2",
33
+ "@athoscommerce/snap-event-manager": "1.13.2",
34
+ "@athoscommerce/snap-logger": "1.13.2",
35
+ "@athoscommerce/snap-platforms": "1.13.2",
36
+ "@athoscommerce/snap-profiler": "1.13.2",
37
+ "@athoscommerce/snap-store-mobx": "1.13.2",
38
+ "@athoscommerce/snap-toolbox": "1.13.2",
39
+ "@athoscommerce/snap-tracker": "1.13.2",
40
+ "@athoscommerce/snap-url-manager": "1.13.2",
41
41
  "@emotion/react": "11.13.0",
42
42
  "acorn": "8.16.0",
43
43
  "classnames": "^2.3.2",
@@ -106,5 +106,5 @@
106
106
  "./webpack": "./webpack/index.js",
107
107
  "./eslintplugin": "./eslint/src/index.cjs"
108
108
  },
109
- "gitHead": "8808ef454ae5e882a32c71dd68ef602fc782af6e"
109
+ "gitHead": "5447205ebda63a99c3b59d8f16e13e0f449093ce"
110
110
  }