bunshin-clone 1.0.10 → 1.0.11
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/index.cjs +2 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -9
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -168,9 +168,6 @@ function cloneWithDescriptors(node, options, ref) {
|
|
|
168
168
|
ref.set(node, result);
|
|
169
169
|
const descs = Object.getOwnPropertyDescriptors(node);
|
|
170
170
|
forEachOwnKey(descs, (key) => {
|
|
171
|
-
if (!key) {
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
171
|
if (isUnsafeKey(key)) {
|
|
175
172
|
return;
|
|
176
173
|
}
|
|
@@ -194,11 +191,7 @@ function forEachOwnKey(object, callback) {
|
|
|
194
191
|
}
|
|
195
192
|
const symbols = Object.getOwnPropertySymbols(object);
|
|
196
193
|
for (let i = 0, l = symbols.length; i < l; i++) {
|
|
197
|
-
|
|
198
|
-
if (!symbol) {
|
|
199
|
-
continue;
|
|
200
|
-
}
|
|
201
|
-
callback(symbol);
|
|
194
|
+
callback(symbols[i]);
|
|
202
195
|
}
|
|
203
196
|
}
|
|
204
197
|
function isObject(value) {
|
|
@@ -219,7 +212,7 @@ function isUnsafeKey(key) {
|
|
|
219
212
|
* High-performance deep clone utility with descriptor support.
|
|
220
213
|
* Supports circular ref and complex built-in types.
|
|
221
214
|
*
|
|
222
|
-
* @version 1.0.
|
|
215
|
+
* @version 1.0.11
|
|
223
216
|
* @author Yusuke Kamiyamane
|
|
224
217
|
* @license MIT
|
|
225
218
|
* @copyright Copyright (c) 2026 Yusuke Kamiyamane
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -166,9 +166,6 @@ function cloneWithDescriptors(node, options, ref) {
|
|
|
166
166
|
ref.set(node, result);
|
|
167
167
|
const descs = Object.getOwnPropertyDescriptors(node);
|
|
168
168
|
forEachOwnKey(descs, (key) => {
|
|
169
|
-
if (!key) {
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
169
|
if (isUnsafeKey(key)) {
|
|
173
170
|
return;
|
|
174
171
|
}
|
|
@@ -192,11 +189,7 @@ function forEachOwnKey(object, callback) {
|
|
|
192
189
|
}
|
|
193
190
|
const symbols = Object.getOwnPropertySymbols(object);
|
|
194
191
|
for (let i = 0, l = symbols.length; i < l; i++) {
|
|
195
|
-
|
|
196
|
-
if (!symbol) {
|
|
197
|
-
continue;
|
|
198
|
-
}
|
|
199
|
-
callback(symbol);
|
|
192
|
+
callback(symbols[i]);
|
|
200
193
|
}
|
|
201
194
|
}
|
|
202
195
|
function isObject(value) {
|
|
@@ -217,7 +210,7 @@ function isUnsafeKey(key) {
|
|
|
217
210
|
* High-performance deep clone utility with descriptor support.
|
|
218
211
|
* Supports circular ref and complex built-in types.
|
|
219
212
|
*
|
|
220
|
-
* @version 1.0.
|
|
213
|
+
* @version 1.0.11
|
|
221
214
|
* @author Yusuke Kamiyamane
|
|
222
215
|
* @license MIT
|
|
223
216
|
* @copyright Copyright (c) 2026 Yusuke Kamiyamane
|