@atlaspack/utils 2.14.5-canary.97 → 2.14.5-canary.99

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/lib/index.js CHANGED
@@ -3453,6 +3453,7 @@ $parcel$export(module.exports, "resolveConfig", () => $cc7044c885d3b7c6$export$7
3453
3453
  $parcel$export(module.exports, "resolveConfigSync", () => $cc7044c885d3b7c6$export$d175e66e9fcd7b75);
3454
3454
  $parcel$export(module.exports, "loadConfig", () => $cc7044c885d3b7c6$export$c1a4367d4847eb06);
3455
3455
  $parcel$export(module.exports, "readConfig", () => $cc7044c885d3b7c6$export$f5327b421858c8cd);
3456
+ $parcel$export(module.exports, "debugTools", () => $ffdf10a29a6c5be4$export$1e74ad2a9c1ed72a);
3456
3457
  $parcel$export(module.exports, "DefaultMap", () => $55fec6b523c8f068$export$674cd7dcb504ac5c);
3457
3458
  $parcel$export(module.exports, "DefaultWeakMap", () => $55fec6b523c8f068$export$4924f7ffab2ae440);
3458
3459
  $parcel$export(module.exports, "makeDeferredWithPromise", () => $355246d1b0980665$export$93f345b3f0dd27e7);
@@ -36738,6 +36739,31 @@ function $2ee306eb47a905ca$export$dd7d5a65a6b6780f(a, b) {
36738
36739
 
36739
36740
 
36740
36741
 
36742
+ /*
36743
+ * These tools are intended for Atlaspack developers, to provide extra utilities
36744
+ * to make debugging Atlaspack issues more straightforward.
36745
+ *
36746
+ * To enable a tool, set the `ATLASPACK_DEBUG_TOOLS` environment variable to a
36747
+ * comma-separated list of tool names. For example:
36748
+ * `ATLASPACK_DEBUG_TOOLS="asset-file-names-in-output,simple-cli-reporter"`
36749
+ *
36750
+ * You can enable all tools by setting `ATLASPACK_DEBUG_TOOLS=all`.
36751
+ */ let $ffdf10a29a6c5be4$export$1e74ad2a9c1ed72a = {
36752
+ 'asset-file-names-in-output': false,
36753
+ 'simple-cli-reporter': false
36754
+ };
36755
+ const $ffdf10a29a6c5be4$var$envVarValue = process.env.ATLASPACK_DEBUG_TOOLS ?? '';
36756
+ for (let tool of $ffdf10a29a6c5be4$var$envVarValue.split(',')){
36757
+ tool = tool.trim();
36758
+ if (tool === 'all') {
36759
+ for(let key in $ffdf10a29a6c5be4$export$1e74ad2a9c1ed72a)$ffdf10a29a6c5be4$export$1e74ad2a9c1ed72a[key] = true;
36760
+ break;
36761
+ } else if ($ffdf10a29a6c5be4$export$1e74ad2a9c1ed72a.hasOwnProperty(tool)) $ffdf10a29a6c5be4$export$1e74ad2a9c1ed72a[tool] = true;
36762
+ else if (tool === '') continue;
36763
+ else throw new Error(`Invalid debug tool option: ${tool}. Valid options are: ${Object.keys($ffdf10a29a6c5be4$export$1e74ad2a9c1ed72a).join(', ')}`);
36764
+ }
36765
+
36766
+
36741
36767
  class $55fec6b523c8f068$export$674cd7dcb504ac5c extends Map {
36742
36768
  constructor(getDefault, entries){
36743
36769
  super(entries);