@granite-js/image 0.1.30 → 0.1.32
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 +17 -0
- package/dist/index.js +8 -8
- package/dist/index.mjs +1 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @granite-js/image
|
|
2
2
|
|
|
3
|
+
## 0.1.32
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7572713: bump version up babel
|
|
8
|
+
- Updated dependencies [74b2223]
|
|
9
|
+
- Updated dependencies [7572713]
|
|
10
|
+
- @granite-js/native@0.1.32
|
|
11
|
+
|
|
12
|
+
## 0.1.31
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [0ff9b13]
|
|
17
|
+
- Updated dependencies [37ae3f3]
|
|
18
|
+
- @granite-js/native@0.1.31
|
|
19
|
+
|
|
3
20
|
## 0.1.30
|
|
4
21
|
|
|
5
22
|
### 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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.1.32",
|
|
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.
|
|
35
|
+
"@granite-js/native": "0.1.32",
|
|
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.
|
|
40
|
+
"tsdown": "^0.16.5",
|
|
41
41
|
"typescript": "5.8.3"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|