@symbo.ls/atoms 2.11.309 → 2.11.310

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 (2) hide show
  1. package/Collection.js +9 -6
  2. package/package.json +2 -2
package/Collection.js CHANGED
@@ -16,6 +16,7 @@ export const Collection = {
16
16
  if (isNot(param)('array', 'object')) return
17
17
 
18
18
  const { __ref: ref } = el
19
+ param = deepClone(param)
19
20
 
20
21
  if (ref.__collectionCache) {
21
22
  const equals = JSON.stringify(param) === JSON.stringify(ref.__collectionCache)
@@ -23,11 +24,11 @@ export const Collection = {
23
24
  ref.__noCollectionDifference = true
24
25
  return
25
26
  } else {
26
- ref.__collectionCache = deepClone(param)
27
+ ref.__collectionCache = param
27
28
  delete ref.__noCollectionDifference
28
29
  }
29
30
  } else {
30
- ref.__collectionCache = deepClone(param)
31
+ ref.__collectionCache = param
31
32
  }
32
33
 
33
34
  const obj = {
@@ -82,6 +83,7 @@ export const Collection = {
82
83
  if (isNot(param)('array', 'object')) return
83
84
 
84
85
  const { __ref: ref } = el
86
+ param = deepClone(param)
85
87
 
86
88
  if (ref.__stateCollectionCache) {
87
89
  const equals = JSON.stringify(param) === JSON.stringify(ref.__stateCollectionCache)
@@ -89,11 +91,11 @@ export const Collection = {
89
91
  ref.__noCollectionDifference = true
90
92
  return
91
93
  } else {
92
- ref.__stateCollectionCache = deepClone(param)
94
+ ref.__stateCollectionCache = param
93
95
  delete ref.__noCollectionDifference
94
96
  }
95
97
  } else {
96
- ref.__stateCollectionCache = deepClone(param)
98
+ ref.__stateCollectionCache = param
97
99
  }
98
100
 
99
101
  const obj = {
@@ -125,6 +127,7 @@ export const Collection = {
125
127
  if (isNot(param)('array', 'object')) return
126
128
 
127
129
  const { __ref: ref } = el
130
+ param = deepClone(param)
128
131
 
129
132
  if (ref.__propsCollectionCache) {
130
133
  const equals = JSON.stringify(param) === JSON.stringify(ref.__propsCollectionCache) // eslint-disable-line
@@ -132,11 +135,11 @@ export const Collection = {
132
135
  ref.__noCollectionDifference = true
133
136
  return
134
137
  } else {
135
- ref.__propsCollectionCache = deepClone(param)
138
+ ref.__propsCollectionCache = param
136
139
  delete ref.__noCollectionDifference
137
140
  }
138
141
  } else {
139
- ref.__propsCollectionCache = deepClone(param)
142
+ ref.__propsCollectionCache = param
140
143
  }
141
144
 
142
145
  const obj = {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.309",
3
+ "version": "2.11.310",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "22c3a3069fd57b6d539d661564f1ea9719a7f7cf",
6
+ "gitHead": "3e774509842b471eda7cd8d34ea79bd8c70c79a9",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",