@staff0rd/assist 0.528.1 → 0.528.3

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.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.528.1",
9
+ version: "0.528.3",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -10471,6 +10471,21 @@ function getNestedValue(obj, path71) {
10471
10471
  return current;
10472
10472
  }
10473
10473
 
10474
+ // src/commands/config/configEntryLayers.ts
10475
+ var LAYERS = [
10476
+ ["project", "project"],
10477
+ ["repo", "repoOverride"],
10478
+ ["global", "global"]
10479
+ ];
10480
+ function configEntryLayers(key, layers, node) {
10481
+ const entryLayers = {};
10482
+ for (const [scope, layer] of LAYERS) {
10483
+ const raw = getNestedValue(layers[layer], key);
10484
+ if (raw !== void 0) entryLayers[scope] = redactConfigSecrets(raw, node);
10485
+ }
10486
+ return entryLayers;
10487
+ }
10488
+
10474
10489
  // src/commands/config/isGlobalOnlyConfigKey.ts
10475
10490
  var GLOBAL_ONLY_KEYS = ["sync.autoConfirm"];
10476
10491
  function isGlobalOnlyConfigKey(key) {
@@ -10604,6 +10619,7 @@ function readConfigEntries(cwd) {
10604
10619
  value: redactConfigSecrets(getNestedValue(config, leaf.key), node),
10605
10620
  source,
10606
10621
  sources,
10622
+ layers: configEntryLayers(leaf.key, layers, node),
10607
10623
  ...layers.repoKey ? { repoKey: layers.repoKey } : {},
10608
10624
  globalOnly: isGlobalOnlyConfigKey(leaf.key),
10609
10625
  node
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.528.1",
3
+ "version": "0.528.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {