@granite-js/image 0.1.31 → 0.1.33

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @granite-js/image
2
2
 
3
+ ## 0.1.33
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [fdf55a6]
8
+ - @granite-js/native@0.1.33
9
+
10
+ ## 0.1.32
11
+
12
+ ### Patch Changes
13
+
14
+ - 7572713: bump version up babel
15
+ - Updated dependencies [74b2223]
16
+ - Updated dependencies [7572713]
17
+ - @granite-js/native@0.1.32
18
+
3
19
  ## 0.1.31
4
20
 
5
21
  ### Patch Changes
package/dist/index.js CHANGED
@@ -21,12 +21,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  }) : target, mod));
22
22
 
23
23
  //#endregion
24
- const __granite_js_native_react_native_fast_image = __toESM(require("@granite-js/native/react-native-fast-image"));
25
- const react_native = __toESM(require("react-native"));
26
- const __granite_js_native_react_native_svg = __toESM(require("@granite-js/native/react-native-svg"));
27
- const react = __toESM(require("react"));
28
- const react_simplikit = __toESM(require("react-simplikit"));
29
- const react_jsx_runtime = __toESM(require("react/jsx-runtime"));
24
+ let __granite_js_native_react_native_fast_image = require("@granite-js/native/react-native-fast-image");
25
+ __granite_js_native_react_native_fast_image = __toESM(__granite_js_native_react_native_fast_image);
26
+ let react_native = require("react-native");
27
+ let __granite_js_native_react_native_svg = require("@granite-js/native/react-native-svg");
28
+ let react = require("react");
29
+ let react_simplikit = require("react-simplikit");
30
+ let react_jsx_runtime = require("react/jsx-runtime");
30
31
 
31
32
  //#region src/SvgImage.tsx
32
33
  /**
@@ -85,8 +86,7 @@ function SvgImage({ url, width = "100%", height = "100%", style, testID, onLoadS
85
86
  async function fetchSvg() {
86
87
  onLoadStart();
87
88
  try {
88
- const response = await fetch(url);
89
- const svg = await response.text();
89
+ const svg = await (await fetch(url)).text();
90
90
  if (isMounted) {
91
91
  onLoadEnd();
92
92
  setData(svg);
package/dist/index.mjs CHANGED
@@ -62,8 +62,7 @@ function SvgImage({ url, width = "100%", height = "100%", style, testID, onLoadS
62
62
  async function fetchSvg() {
63
63
  onLoadStart();
64
64
  try {
65
- const response = await fetch(url);
66
- const svg = await response.text();
65
+ const svg = await (await fetch(url)).text();
67
66
  if (isMounted) {
68
67
  onLoadEnd();
69
68
  setData(svg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@granite-js/image",
3
- "version": "0.1.31",
3
+ "version": "0.1.33",
4
4
  "scripts": {
5
5
  "prepack": "yarn build",
6
6
  "typecheck": "tsc --noEmit",
@@ -32,12 +32,12 @@
32
32
  "dist"
33
33
  ],
34
34
  "devDependencies": {
35
- "@granite-js/native": "0.1.31",
35
+ "@granite-js/native": "0.1.33",
36
36
  "@types/react": "18.3.3",
37
37
  "eslint": "^9.7.0",
38
38
  "react": "18.2.0",
39
39
  "react-native": "0.72.6",
40
- "tsdown": "^0.14.1",
40
+ "tsdown": "^0.16.5",
41
41
  "typescript": "5.8.3"
42
42
  },
43
43
  "peerDependencies": {