@thi.ng/dynvar 0.3.2 → 0.3.5
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 +4 -4
- package/index.js +4 -4
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export declare class DynVar<T> implements IDeref<T>, IBind<T>, ICopy<DynVar<T>>
|
|
|
37
37
|
* eventually followed by calls to {@link DynVar.unbind} to restore
|
|
38
38
|
* this var's previously scoped value.
|
|
39
39
|
*
|
|
40
|
-
* @param val
|
|
40
|
+
* @param val -
|
|
41
41
|
*/
|
|
42
42
|
bind(val: T): boolean;
|
|
43
43
|
/**
|
|
@@ -49,7 +49,7 @@ export declare class DynVar<T> implements IDeref<T>, IBind<T>, ICopy<DynVar<T>>
|
|
|
49
49
|
/**
|
|
50
50
|
* Replaces current scope's value with new `val`.
|
|
51
51
|
*
|
|
52
|
-
* @param val
|
|
52
|
+
* @param val -
|
|
53
53
|
*/
|
|
54
54
|
set(val: T): void;
|
|
55
55
|
/**
|
|
@@ -57,8 +57,8 @@ export declare class DynVar<T> implements IDeref<T>, IBind<T>, ICopy<DynVar<T>>
|
|
|
57
57
|
* `val` bound to this variable. The new scope is automatically
|
|
58
58
|
* removed when the function returns or an error occurred.
|
|
59
59
|
*
|
|
60
|
-
* @param val
|
|
61
|
-
* @param body
|
|
60
|
+
* @param val -
|
|
61
|
+
* @param body -
|
|
62
62
|
*/
|
|
63
63
|
withBinding<R>(val: T, body: Fn0<R>): R;
|
|
64
64
|
}
|
package/index.js
CHANGED
|
@@ -50,7 +50,7 @@ export class DynVar {
|
|
|
50
50
|
* eventually followed by calls to {@link DynVar.unbind} to restore
|
|
51
51
|
* this var's previously scoped value.
|
|
52
52
|
*
|
|
53
|
-
* @param val
|
|
53
|
+
* @param val -
|
|
54
54
|
*/
|
|
55
55
|
bind(val) {
|
|
56
56
|
__private.get(this).push(val);
|
|
@@ -70,7 +70,7 @@ export class DynVar {
|
|
|
70
70
|
/**
|
|
71
71
|
* Replaces current scope's value with new `val`.
|
|
72
72
|
*
|
|
73
|
-
* @param val
|
|
73
|
+
* @param val -
|
|
74
74
|
*/
|
|
75
75
|
set(val) {
|
|
76
76
|
const v = __private.get(this);
|
|
@@ -81,8 +81,8 @@ export class DynVar {
|
|
|
81
81
|
* `val` bound to this variable. The new scope is automatically
|
|
82
82
|
* removed when the function returns or an error occurred.
|
|
83
83
|
*
|
|
84
|
-
* @param val
|
|
85
|
-
* @param body
|
|
84
|
+
* @param val -
|
|
85
|
+
* @param body -
|
|
86
86
|
*/
|
|
87
87
|
withBinding(val, body) {
|
|
88
88
|
this.bind(val);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/dynvar",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Dynamically scoped variable bindings",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.3.
|
|
38
|
-
"@thi.ng/errors": "^2.1.
|
|
37
|
+
"@thi.ng/api": "^8.3.5",
|
|
38
|
+
"@thi.ng/errors": "^2.1.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@microsoft/api-extractor": "^7.
|
|
42
|
-
"@thi.ng/testament": "^0.2.
|
|
41
|
+
"@microsoft/api-extractor": "^7.19.4",
|
|
42
|
+
"@thi.ng/testament": "^0.2.5",
|
|
43
43
|
"rimraf": "^3.0.2",
|
|
44
44
|
"tools": "^0.0.1",
|
|
45
|
-
"typedoc": "^0.22.
|
|
46
|
-
"typescript": "^4.
|
|
45
|
+
"typedoc": "^0.22.13",
|
|
46
|
+
"typescript": "^4.6.2"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"clojure",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
],
|
|
71
71
|
"exports": {
|
|
72
72
|
".": {
|
|
73
|
-
"
|
|
73
|
+
"default": "./index.js"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"thi.ng": {
|
|
77
77
|
"year": 2016,
|
|
78
78
|
"status": "alpha"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
|
|
81
81
|
}
|