@rimbu/deep 0.10.1 → 0.11.2
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/main/protected.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protected.js","sourceRoot":"","sources":["../../src/protected.ts"],"names":[],"mappings":";;;AA2BA
|
|
1
|
+
{"version":3,"file":"protected.js","sourceRoot":"","sources":["../../src/protected.ts"],"names":[],"mappings":";;;AA2BA;;;;;;;;;;;;;GAaG;AACH,SAAgB,SAAS,CAAI,KAAQ;IACnC,OAAO,KAAY,CAAC;AACtB,CAAC;AAFD,8BAEC"}
|
package/dist/module/protected.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protected.js","sourceRoot":"","sources":["../../src/protected.ts"],"names":[],"mappings":"AA2BA
|
|
1
|
+
{"version":3,"file":"protected.js","sourceRoot":"","sources":["../../src/protected.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,SAAS,CAAI,KAAQ;IACnC,OAAO,KAAY,CAAC;AACtB,CAAC"}
|
|
@@ -28,7 +28,5 @@ export declare type Protected<T> = IsAny<T> extends true ? T : T extends readonl
|
|
|
28
28
|
* obj.b.d.push(2) // compiler error: d is a readonly array
|
|
29
29
|
* (obj as any).b.d.push(2) // will actually mutate the object
|
|
30
30
|
* ```
|
|
31
|
-
|
|
32
|
-
* '
|
|
33
31
|
*/
|
|
34
32
|
export declare function Protected<T>(value: T): Protected<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rimbu/deep",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Tools to use handle plain JS objects as immutable objects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"immutable",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"sideEffects": false,
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@rimbu/base": "^0.9.
|
|
61
|
-
"@rimbu/common": "^0.
|
|
60
|
+
"@rimbu/base": "^0.9.4",
|
|
61
|
+
"@rimbu/common": "^0.10.2",
|
|
62
62
|
"tslib": "^2.4.0"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"index": "src/index.ts",
|
|
69
69
|
"replacer": "../../config/denoify-rimbu-replacer.js"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "0d1677b4df9c1b0f1dc337eb38eea7a99ea7fc43"
|
|
72
72
|
}
|
package/src/protected.ts
CHANGED
|
@@ -38,8 +38,6 @@ export type Protected<T> = IsAny<T> extends true
|
|
|
38
38
|
* obj.b.d.push(2) // compiler error: d is a readonly array
|
|
39
39
|
* (obj as any).b.d.push(2) // will actually mutate the object
|
|
40
40
|
* ```
|
|
41
|
-
|
|
42
|
-
* '
|
|
43
41
|
*/
|
|
44
42
|
export function Protected<T>(value: T): Protected<T> {
|
|
45
43
|
return value as any;
|