bunshin-clone 1.7.0 → 1.7.1

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 CHANGED
@@ -18,7 +18,7 @@ function clone(value, settings, refs) {
18
18
  return cloneWithDescriptors(value, settings, refs);
19
19
  }
20
20
  if (Array.isArray(value)) {
21
- if (canShallowCloneArray(value)) {
21
+ if (isShallowClonableArray(value)) {
22
22
  const result2 = value.slice();
23
23
  refs.set(value, result2);
24
24
  return result2;
@@ -209,7 +209,7 @@ function createErrorInstance(error, settings, refs) {
209
209
  result.name = name;
210
210
  return result;
211
211
  }
212
- function canShallowCloneArray(array) {
212
+ function isShallowClonableArray(array) {
213
213
  for (let i = 0, l = array.length; i < l; i++) {
214
214
  if (isObject(array[i])) {
215
215
  return false;
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ function clone(value, settings, refs) {
16
16
  return cloneWithDescriptors(value, settings, refs);
17
17
  }
18
18
  if (Array.isArray(value)) {
19
- if (canShallowCloneArray(value)) {
19
+ if (isShallowClonableArray(value)) {
20
20
  const result2 = value.slice();
21
21
  refs.set(value, result2);
22
22
  return result2;
@@ -207,7 +207,7 @@ function createErrorInstance(error, settings, refs) {
207
207
  result.name = name;
208
208
  return result;
209
209
  }
210
- function canShallowCloneArray(array) {
210
+ function isShallowClonableArray(array) {
211
211
  for (let i = 0, l = array.length; i < l; i++) {
212
212
  if (isObject(array[i])) {
213
213
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunshin-clone",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "High-performance deep clone utility with descriptor support",
5
5
  "keywords": [
6
6
  "array",