@apotech-os/support-kit 4.0.0 → 4.1.0
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -62,11 +62,11 @@ var PRODUCTION_LABEL = "production";
|
|
|
62
62
|
var DEFAULT_TTL_MS = 6e4;
|
|
63
63
|
var MAX_COMPOSITION_DEPTH = 5;
|
|
64
64
|
function cacheKey(name, label) {
|
|
65
|
-
return label === PRODUCTION_LABEL ? name : `${name}
|
|
65
|
+
return label === PRODUCTION_LABEL ? name : `${name}\0${label}`;
|
|
66
66
|
}
|
|
67
67
|
function memoryKey(name, opts) {
|
|
68
|
-
if (opts.version !== void 0) return
|
|
69
|
-
return
|
|
68
|
+
if (opts.version !== void 0) return JSON.stringify(["v", name, opts.version]);
|
|
69
|
+
return JSON.stringify(["l", name, opts.label ?? PRODUCTION_LABEL]);
|
|
70
70
|
}
|
|
71
71
|
function substituteVars(text, vars) {
|
|
72
72
|
if (!vars) return text;
|