@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 CHANGED
@@ -1150,11 +1150,11 @@ var PRODUCTION_LABEL = "production";
1150
1150
  var DEFAULT_TTL_MS = 6e4;
1151
1151
  var MAX_COMPOSITION_DEPTH = 5;
1152
1152
  function cacheKey(name, label) {
1153
- return label === PRODUCTION_LABEL ? name : `${name}::${label}`;
1153
+ return label === PRODUCTION_LABEL ? name : `${name}\0${label}`;
1154
1154
  }
1155
1155
  function memoryKey(name, opts) {
1156
- if (opts.version !== void 0) return `${name}::v${opts.version}`;
1157
- return cacheKey(name, opts.label ?? PRODUCTION_LABEL);
1156
+ if (opts.version !== void 0) return JSON.stringify(["v", name, opts.version]);
1157
+ return JSON.stringify(["l", name, opts.label ?? PRODUCTION_LABEL]);
1158
1158
  }
1159
1159
  function substituteVars(text, vars) {
1160
1160
  if (!vars) return text;