@ssa-ui-kit/core 3.20.0 → 3.20.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.
- package/dist/components/Charts/common/Plot.d.ts +2 -0
- package/dist/index.js +4846 -524
- package/dist/index.mjs +4852 -567
- package/dist/tsbuildcache +1 -1
- package/dist/utils/environment.d.ts +13 -4
- package/package.json +4 -4
|
@@ -10,9 +10,18 @@
|
|
|
10
10
|
* `if (true) return;` in the published bundle, silently, while still firing in
|
|
11
11
|
* this repo's Jest runs.
|
|
12
12
|
*
|
|
13
|
-
* The
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* The expression must be a *bare* `process.env.NODE_ENV`, with nothing guarding
|
|
14
|
+
* it. Bundlers substitute that literal token sequence and nothing else: a
|
|
15
|
+
* `typeof process === 'undefined'` check in front of it is left untouched, so
|
|
16
|
+
* in a browser — where there is no `process` global — the guard returns `false`
|
|
17
|
+
* before the correctly-substituted value is ever reached, and every diagnostic
|
|
18
|
+
* goes dark for exactly the consumers they exist for. Same bug as the one
|
|
19
|
+
* above, entered from the other side.
|
|
20
|
+
*
|
|
21
|
+
* `try/catch` keeps the guarantee the guard was there for: a runtime that never
|
|
22
|
+
* defines `process` *and* whose bundler substituted nothing (a plain
|
|
23
|
+
* `<script type="module">`, a bare worker) throws a ReferenceError, which is
|
|
24
|
+
* caught here as silence rather than a crash. Erring toward silence is right —
|
|
25
|
+
* no diagnostic is worth crashing a consumer over.
|
|
17
26
|
*/
|
|
18
27
|
export declare const isDevEnvironment: () => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssa-ui-kit/core",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"luxon": "3.5.0",
|
|
41
41
|
"plotly.js": "3.0.0",
|
|
42
42
|
"react-plotly.js": "2.6.0",
|
|
43
|
-
"@ssa-ui-kit/hooks": "^3.20.
|
|
44
|
-
"@ssa-ui-kit/utils": "^3.20.
|
|
43
|
+
"@ssa-ui-kit/hooks": "^3.20.2",
|
|
44
|
+
"@ssa-ui-kit/utils": "^3.20.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@emotion/css": "11.13.5",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"scripts": {
|
|
90
90
|
"clean": "node ../../scripts/clean.mjs",
|
|
91
91
|
"test": "jest -i --no-cache",
|
|
92
|
-
"build": "node ../../scripts/clean.mjs && webpack --mode=production --node-env=production && tsc --build ./tsconfig.build.json && resolve-tspaths -p ./tsconfig.build.json",
|
|
92
|
+
"build": "node ../../scripts/clean.mjs && webpack --mode=production --node-env=production && node ../../scripts/verify-esm-bundle.mjs && tsc --build ./tsconfig.build.json && resolve-tspaths -p ./tsconfig.build.json",
|
|
93
93
|
"build:watch": "webpack --mode=production --node-env=production --watch && tsc --build ./tsconfig.build.json && resolve-tspaths -p ./tsconfig.build.json",
|
|
94
94
|
"sb:dev": "env storybook dev -p 6006",
|
|
95
95
|
"sb:build": "env storybook build",
|