react-pixcraft 1.0.0 → 1.0.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/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "react-pixcraft",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Lightweight React image editor with crop, rotate, flip, and scale. Uses only React + native Canvas API.",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
7
+ "publishConfig": { "access": "public" },
7
8
  "exports": {
8
9
  ".": {
9
10
  "import": "./src/index.js",
@@ -16,6 +16,7 @@ import React, {
16
16
  // ---------- Helpers ----------
17
17
  function loadImage(url) {
18
18
  return new Promise((resolve, reject) => {
19
+ console.log("url", url);
19
20
  const img = new window.Image();
20
21
  img.crossOrigin = "anonymous";
21
22
  img.onload = () => resolve(img);