@thi.ng/resolve-map 7.1.17 → 7.1.19
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/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/index.d.ts +3 -2
- package/index.js +7 -5
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ This project is part of the
|
|
|
25
25
|
|
|
26
26
|
## About
|
|
27
27
|
|
|
28
|
-
DAG resolution of vanilla objects & arrays with internally linked values
|
|
28
|
+
DAG resolution of vanilla objects & arrays with internally linked values.
|
|
29
29
|
|
|
30
30
|
This is useful for expressing complex configurations with
|
|
31
31
|
derived values or computing interrelated values without having to
|
package/index.d.ts
CHANGED
|
@@ -141,8 +141,9 @@ export declare class Resolved<T> implements IDeref<T> {
|
|
|
141
141
|
/**
|
|
142
142
|
* Factory function for {@link Resolved} to wrap & protect values from further
|
|
143
143
|
* resolution attempts. The wrapped value can be later obtained via the standard
|
|
144
|
-
*
|
|
145
|
-
*
|
|
144
|
+
* [`IDeref`](https://docs.thi.ng/umbrella/api/interfaces/IDeref.html)
|
|
145
|
+
* interface/mechanism. In lookup functions, the unwrapped value will be
|
|
146
|
+
* supplied, no `.deref()` necessary there.
|
|
146
147
|
*
|
|
147
148
|
* @param val
|
|
148
149
|
*/
|
package/index.js
CHANGED
|
@@ -224,16 +224,18 @@ export class Resolved {
|
|
|
224
224
|
/**
|
|
225
225
|
* Factory function for {@link Resolved} to wrap & protect values from further
|
|
226
226
|
* resolution attempts. The wrapped value can be later obtained via the standard
|
|
227
|
-
*
|
|
228
|
-
*
|
|
227
|
+
* [`IDeref`](https://docs.thi.ng/umbrella/api/interfaces/IDeref.html)
|
|
228
|
+
* interface/mechanism. In lookup functions, the unwrapped value will be
|
|
229
|
+
* supplied, no `.deref()` necessary there.
|
|
229
230
|
*
|
|
230
231
|
* @param val
|
|
231
232
|
*/
|
|
232
233
|
export const resolved = (val) => new Resolved(val);
|
|
233
234
|
/**
|
|
234
|
-
* Special version of
|
|
235
|
-
*
|
|
236
|
-
*
|
|
235
|
+
* Special version of
|
|
236
|
+
* [`getInUnsafe()`](https://docs.thi.ng/umbrella/paths/functions/getInUnsafe.html)
|
|
237
|
+
* with extra support for intermediate wrapped {@link Resolved} values and
|
|
238
|
+
* returning tuple of: `[val,isResolved]`.
|
|
237
239
|
*
|
|
238
240
|
* @param obj
|
|
239
241
|
* @param path
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/resolve-map",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.19",
|
|
4
4
|
"description": "DAG resolution of vanilla objects & arrays with internally linked values",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.6.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/errors": "^2.2.
|
|
40
|
-
"@thi.ng/paths": "^5.1.
|
|
37
|
+
"@thi.ng/api": "^8.6.2",
|
|
38
|
+
"@thi.ng/checks": "^3.3.6",
|
|
39
|
+
"@thi.ng/errors": "^2.2.7",
|
|
40
|
+
"@thi.ng/paths": "^5.1.27"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@microsoft/api-extractor": "^7.33.7",
|
|
44
|
-
"@thi.ng/testament": "^0.3.
|
|
44
|
+
"@thi.ng/testament": "^0.3.8",
|
|
45
45
|
"rimraf": "^3.0.2",
|
|
46
46
|
"tools": "^0.0.1",
|
|
47
47
|
"typedoc": "^0.23.22",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
],
|
|
77
77
|
"year": 2018
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "bc6f7f5e2765bb96fe64db804eaf4b2443b47fc6\n"
|
|
80
80
|
}
|