@lwrjs/shared-utils 0.5.1 → 0.5.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/build/cjs/env.cjs +17 -0
- package/build/cjs/index.cjs +1 -0
- package/build/es/env.d.ts +3 -0
- package/build/es/env.js +9 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
|
|
3
|
+
var __export = (target, all) => {
|
|
4
|
+
for (var name in all)
|
|
5
|
+
__defProp(target, name, {get: all[name], enumerable: true});
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
// packages/@lwrjs/shared-utils/src/env.ts
|
|
9
|
+
__markAsModule(exports);
|
|
10
|
+
__export(exports, {
|
|
11
|
+
getExperimentalFeatures: () => getExperimentalFeatures
|
|
12
|
+
});
|
|
13
|
+
function getExperimentalFeatures() {
|
|
14
|
+
return {
|
|
15
|
+
ENABLE_FINGERPRINTS: process.env.ENABLE_FINGERPRINTS !== void 0 && process.env.ENABLE_FINGERPRINTS === "true" ? true : false
|
|
16
|
+
};
|
|
17
|
+
}
|
package/build/cjs/index.cjs
CHANGED
|
@@ -30,3 +30,4 @@ __exportStar(exports, __toModule(require("./import-metadata.cjs")));
|
|
|
30
30
|
__exportStar(exports, __toModule(require("./graph.cjs")));
|
|
31
31
|
__exportStar(exports, __toModule(require("./mappings.cjs")));
|
|
32
32
|
__exportStar(exports, __toModule(require("./metrics.cjs")));
|
|
33
|
+
__exportStar(exports, __toModule(require("./env.cjs")));
|
package/build/es/env.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function getExperimentalFeatures() {
|
|
2
|
+
return {
|
|
3
|
+
// DEFAULT ENABLE_FINGERPRINTS = false;
|
|
4
|
+
ENABLE_FINGERPRINTS: process.env.ENABLE_FINGERPRINTS !== undefined && process.env.ENABLE_FINGERPRINTS === 'true'
|
|
5
|
+
? true
|
|
6
|
+
: false,
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=env.js.map
|
package/build/es/index.d.ts
CHANGED
package/build/es/index.js
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.5.
|
|
7
|
+
"version": "0.5.2",
|
|
8
8
|
"homepage": "https://lwr.dev/",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"slugify": "^1.4.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@lwrjs/diagnostics": "0.5.
|
|
45
|
-
"@lwrjs/types": "0.5.
|
|
44
|
+
"@lwrjs/diagnostics": "0.5.2",
|
|
45
|
+
"@lwrjs/types": "0.5.2"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=14.15.4 <15"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "3186b126bf8bf95f88a31b2ea00768e8f42e362e"
|
|
51
51
|
}
|