bunshin-clone 2.0.9 → 2.0.10

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.
@@ -128,12 +128,12 @@ function createErrorInstance(error, settings, refs) {
128
128
  }
129
129
 
130
130
  // src/clone/image-data.ts
131
- function cloneImageData(data, refs) {
132
- const { data: d, width, height, colorSpace } = data;
133
- const result = new ImageData(new Uint8ClampedArray(d), width, height, {
131
+ function cloneImageData(image, refs) {
132
+ const { data, width, height, colorSpace } = image;
133
+ const result = new ImageData(new Uint8ClampedArray(data), width, height, {
134
134
  colorSpace
135
135
  });
136
- refs.set(data, result);
136
+ refs.set(image, result);
137
137
  return result;
138
138
  }
139
139
 
@@ -126,12 +126,12 @@ function createErrorInstance(error, settings, refs) {
126
126
  }
127
127
 
128
128
  // src/clone/image-data.ts
129
- function cloneImageData(data, refs) {
130
- const { data: d, width, height, colorSpace } = data;
131
- const result = new ImageData(new Uint8ClampedArray(d), width, height, {
129
+ function cloneImageData(image, refs) {
130
+ const { data, width, height, colorSpace } = image;
131
+ const result = new ImageData(new Uint8ClampedArray(data), width, height, {
132
132
  colorSpace
133
133
  });
134
- refs.set(data, result);
134
+ refs.set(image, result);
135
135
  return result;
136
136
  }
137
137
 
package/dist/index.cjs CHANGED
@@ -130,12 +130,12 @@ function createErrorInstance(error, settings, refs) {
130
130
  }
131
131
 
132
132
  // src/clone/image-data.ts
133
- function cloneImageData(data, refs) {
134
- const { data: d, width, height, colorSpace } = data;
135
- const result = new ImageData(new Uint8ClampedArray(d), width, height, {
133
+ function cloneImageData(image, refs) {
134
+ const { data, width, height, colorSpace } = image;
135
+ const result = new ImageData(new Uint8ClampedArray(data), width, height, {
136
136
  colorSpace
137
137
  });
138
- refs.set(data, result);
138
+ refs.set(image, result);
139
139
  return result;
140
140
  }
141
141
 
package/dist/index.js CHANGED
@@ -128,12 +128,12 @@ function createErrorInstance(error, settings, refs) {
128
128
  }
129
129
 
130
130
  // src/clone/image-data.ts
131
- function cloneImageData(data, refs) {
132
- const { data: d, width, height, colorSpace } = data;
133
- const result = new ImageData(new Uint8ClampedArray(d), width, height, {
131
+ function cloneImageData(image, refs) {
132
+ const { data, width, height, colorSpace } = image;
133
+ const result = new ImageData(new Uint8ClampedArray(data), width, height, {
134
134
  colorSpace
135
135
  });
136
- refs.set(data, result);
136
+ refs.set(image, result);
137
137
  return result;
138
138
  }
139
139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunshin-clone",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "High-performance deep clone utility with descriptor support",
5
5
  "keywords": [
6
6
  "array",