@arcgis/components-utils 4.32.0-next.79 → 4.32.0-next.80
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/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -359,7 +359,7 @@ async function fetchBundle(locale, path) {
|
|
|
359
359
|
return await response.json();
|
|
360
360
|
}
|
|
361
361
|
} catch (error) {
|
|
362
|
-
if (
|
|
362
|
+
if (process.env.NODE_ENV !== "production") {
|
|
363
363
|
const is404ViteFallback = String(error).includes(`Unexpected token '<', "<!doctype "... is not valid JSON`);
|
|
364
364
|
if (is404ViteFallback) {
|
|
365
365
|
console.error(`[404] Localization strings not found at ${filePath}`);
|
package/dist/index.d.cts
CHANGED
|
@@ -154,9 +154,9 @@ declare function setFocusOnElement(ref: (Element & {
|
|
|
154
154
|
* The call to isEsriInternalEnv() MUST always appear behind one of the
|
|
155
155
|
* following guards to ensure it is correctly eliminated in production bundles:
|
|
156
156
|
*
|
|
157
|
-
* - `
|
|
158
|
-
* - `
|
|
159
|
-
* - `
|
|
157
|
+
* - `process.env.NODE_ENV !== "production"`
|
|
158
|
+
* - `process.env.NODE_ENV === "development"`
|
|
159
|
+
* - `process.env.NODE_ENV === "test"`
|
|
160
160
|
*
|
|
161
161
|
* @remarks
|
|
162
162
|
* This function is primary for usage in support packages. In Lumina component
|
package/dist/index.d.ts
CHANGED
|
@@ -154,9 +154,9 @@ declare function setFocusOnElement(ref: (Element & {
|
|
|
154
154
|
* The call to isEsriInternalEnv() MUST always appear behind one of the
|
|
155
155
|
* following guards to ensure it is correctly eliminated in production bundles:
|
|
156
156
|
*
|
|
157
|
-
* - `
|
|
158
|
-
* - `
|
|
159
|
-
* - `
|
|
157
|
+
* - `process.env.NODE_ENV !== "production"`
|
|
158
|
+
* - `process.env.NODE_ENV === "development"`
|
|
159
|
+
* - `process.env.NODE_ENV === "test"`
|
|
160
160
|
*
|
|
161
161
|
* @remarks
|
|
162
162
|
* This function is primary for usage in support packages. In Lumina component
|
package/dist/index.js
CHANGED
|
@@ -296,7 +296,7 @@ async function fetchBundle(locale, path) {
|
|
|
296
296
|
return await response.json();
|
|
297
297
|
}
|
|
298
298
|
} catch (error) {
|
|
299
|
-
if (
|
|
299
|
+
if (process.env.NODE_ENV !== "production") {
|
|
300
300
|
const is404ViteFallback = String(error).includes(`Unexpected token '<', "<!doctype "... is not valid JSON`);
|
|
301
301
|
if (is404ViteFallback) {
|
|
302
302
|
console.error(`[404] Localization strings not found at ${filePath}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/components-utils",
|
|
3
|
-
"version": "4.32.0-next.
|
|
3
|
+
"version": "4.32.0-next.80",
|
|
4
4
|
"description": "Collection of common internal patterns and utilities for ArcGIS Maps SDK for JavaScript components.",
|
|
5
5
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
6
6
|
"sideEffects": false,
|