@thi.ng/resolve-map 7.1.120 → 7.1.122

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +3 -3
  3. package/package.json +6 -6
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 210 standalone projects, maintained as part
10
+ > This is one of 211 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/index.js CHANGED
@@ -13,7 +13,7 @@ function resolve(root, opts) {
13
13
  }
14
14
  const __resolveMap = (obj, opts, root, path = [], resolved2 = {}, stack = []) => {
15
15
  root = root || obj;
16
- for (let k in obj) {
16
+ for (const k in obj) {
17
17
  __resolve(root, [...path, k], resolved2, stack, opts);
18
18
  }
19
19
  return !opts.unwrap || path.length ? obj : __unwrapResolved(obj, resolved2);
@@ -114,7 +114,7 @@ const __markResolved = (v, path, resolved2) => {
114
114
  };
115
115
  const __markObjResolved = (obj, path, resolved2) => {
116
116
  let v, p;
117
- for (let k in obj) {
117
+ for (const k in obj) {
118
118
  v = obj[k];
119
119
  p = path + "/" + k;
120
120
  __markResolved(v, p, resolved2);
@@ -168,7 +168,7 @@ const __getInUnsafe = (obj, path) => {
168
168
  return [res, isResolved];
169
169
  };
170
170
  const __unwrapResolved = (root, resolved2) => {
171
- for (let path in resolved2) {
171
+ for (const path in resolved2) {
172
172
  const $path = path.split("/");
173
173
  const val = __getInUnsafe(root, $path);
174
174
  val[1] && mutInUnsafe(root, $path, val[0]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/resolve-map",
3
- "version": "7.1.120",
3
+ "version": "7.1.122",
4
4
  "description": "DAG resolution of vanilla objects & arrays with internally linked values",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,10 +39,10 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.12.8",
43
- "@thi.ng/checks": "^3.7.24",
44
- "@thi.ng/errors": "^2.5.48",
45
- "@thi.ng/paths": "^5.2.27"
42
+ "@thi.ng/api": "^8.12.10",
43
+ "@thi.ng/checks": "^3.8.0",
44
+ "@thi.ng/errors": "^2.5.50",
45
+ "@thi.ng/paths": "^5.2.29"
46
46
  },
47
47
  "devDependencies": {
48
48
  "esbuild": "^0.27.0",
@@ -78,5 +78,5 @@
78
78
  ],
79
79
  "year": 2018
80
80
  },
81
- "gitHead": "be6e7657b1e5c54d7d648d1b52888a7297e95a17\n"
81
+ "gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
82
82
  }