react-native-qrcode-svg 6.3.35 → 6.3.37
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/Example/package.json +5 -1
- package/Example/scripts/patchMetroImageSize.js +14 -0
- package/Example/yarn.lock +18 -14
- package/package.json +2 -1
package/Example/package.json
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"prettier": "prettier --write ./src/**/*.{tsx,ts}",
|
|
12
12
|
"start": "react-native start",
|
|
13
13
|
"test": "jest",
|
|
14
|
-
"tsc": "tsc"
|
|
14
|
+
"tsc": "tsc",
|
|
15
|
+
"postinstall": "node scripts/patchMetroImageSize.js"
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
17
18
|
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
@@ -50,6 +51,9 @@
|
|
|
50
51
|
"resolutions": {
|
|
51
52
|
"selfsigned": "^5.5.0"
|
|
52
53
|
},
|
|
54
|
+
"resolutions": {
|
|
55
|
+
"image-size": "2.0.4"
|
|
56
|
+
},
|
|
53
57
|
"engines": {
|
|
54
58
|
"node": ">=18"
|
|
55
59
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// image-size is pinned to 2.x via "resolutions" to fix Dependabot alerts. Metro 0.80 still
|
|
2
|
+
// calls the 1.x API (a callable default export that also accepts file paths), so adapt it.
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
|
|
5
|
+
const assetsPath = require.resolve('metro/src/Assets.js');
|
|
6
|
+
const source = fs.readFileSync(assetsPath, 'utf8');
|
|
7
|
+
const original = 'const getImageSize = require("image-size");';
|
|
8
|
+
const patched =
|
|
9
|
+
'const { imageSize } = require("image-size");\n' +
|
|
10
|
+
'const getImageSize = input => imageSize(typeof input === "string" ? fs.readFileSync(input) : input);';
|
|
11
|
+
|
|
12
|
+
if (source.includes(original)) {
|
|
13
|
+
fs.writeFileSync(assetsPath, source.replace(original, patched));
|
|
14
|
+
}
|
package/Example/yarn.lock
CHANGED
|
@@ -2122,11 +2122,6 @@
|
|
|
2122
2122
|
"@svgr/plugin-jsx" "8.1.0"
|
|
2123
2123
|
"@svgr/plugin-svgo" "8.1.0"
|
|
2124
2124
|
|
|
2125
|
-
"@trysound/sax@0.2.0":
|
|
2126
|
-
version "0.2.0"
|
|
2127
|
-
resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad"
|
|
2128
|
-
integrity sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==
|
|
2129
|
-
|
|
2130
2125
|
"@types/babel__core@^7.1.14":
|
|
2131
2126
|
version "7.20.5"
|
|
2132
2127
|
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.5.tgz#3df15f27ba85319caa07ba08d0721889bb39c017"
|
|
@@ -5012,11 +5007,9 @@ ignore@^5.0.5, ignore@^5.2.0, ignore@^5.3.1:
|
|
|
5012
5007
|
integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==
|
|
5013
5008
|
|
|
5014
5009
|
image-size@^1.0.2:
|
|
5015
|
-
version "
|
|
5016
|
-
resolved "https://registry.yarnpkg.com/image-size/-/image-size-
|
|
5017
|
-
integrity sha512-
|
|
5018
|
-
dependencies:
|
|
5019
|
-
queue "6.0.2"
|
|
5010
|
+
version "2.0.4"
|
|
5011
|
+
resolved "https://registry.yarnpkg.com/image-size/-/image-size-2.0.4.tgz#bbc1933173e4ee1adbbdf9d4958ded15fdb710e3"
|
|
5012
|
+
integrity sha512-QRUkFFsRV/6fuESxb9Vkq+a0LkSrgKXuc2NEqfikiXxxN/G3tjWt5EVUlMaImRBZRZK/jRBEbYvpPYZL8t08Zw==
|
|
5020
5013
|
|
|
5021
5014
|
import-fresh@^2.0.0:
|
|
5022
5015
|
version "2.0.0"
|
|
@@ -7091,6 +7084,12 @@ queue-microtask@^1.2.2:
|
|
|
7091
7084
|
resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
|
|
7092
7085
|
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
|
|
7093
7086
|
|
|
7087
|
+
randombytes@^2.1.0:
|
|
7088
|
+
version "2.1.0"
|
|
7089
|
+
resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a"
|
|
7090
|
+
integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==
|
|
7091
|
+
dependencies:
|
|
7092
|
+
safe-buffer "^5.1.0"
|
|
7094
7093
|
queue@6.0.2:
|
|
7095
7094
|
version "6.0.2"
|
|
7096
7095
|
resolved "https://registry.yarnpkg.com/queue/-/queue-6.0.2.tgz#b91525283e2315c7553d2efa18d83e76432fed65"
|
|
@@ -7578,6 +7577,11 @@ safe-regex-test@^1.1.0:
|
|
|
7578
7577
|
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
|
|
7579
7578
|
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
|
|
7580
7579
|
|
|
7580
|
+
sax@^1.5.0:
|
|
7581
|
+
version "1.6.1"
|
|
7582
|
+
resolved "https://registry.yarnpkg.com/sax/-/sax-1.6.1.tgz#4c23cf608c0b693ab54b4b5888e92cfe977b9843"
|
|
7583
|
+
integrity sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==
|
|
7584
|
+
|
|
7581
7585
|
scheduler@0.24.0-canary-efb381bbf-20230505:
|
|
7582
7586
|
version "0.24.0-canary-efb381bbf-20230505"
|
|
7583
7587
|
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.24.0-canary-efb381bbf-20230505.tgz#5dddc60e29f91cd7f8b983d7ce4a99c2202d178f"
|
|
@@ -8152,17 +8156,17 @@ svg-parser@^2.0.4:
|
|
|
8152
8156
|
integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==
|
|
8153
8157
|
|
|
8154
8158
|
svgo@^3.0.2:
|
|
8155
|
-
version "3.3.
|
|
8156
|
-
resolved "https://registry.yarnpkg.com/svgo/-/svgo-3.3.
|
|
8157
|
-
integrity sha512-
|
|
8159
|
+
version "3.3.5"
|
|
8160
|
+
resolved "https://registry.yarnpkg.com/svgo/-/svgo-3.3.5.tgz#8a3d9557ab2f386eca7e24760385849554985a1c"
|
|
8161
|
+
integrity sha512-8SQMzdrvWaD8deUmrnYB+ASyxBVgWUOilg+A75nE/76WdLpj6LopCwiAVvkzkcqy/9b7t2Mg7faFLjg0ZRcZ3w==
|
|
8158
8162
|
dependencies:
|
|
8159
|
-
"@trysound/sax" "0.2.0"
|
|
8160
8163
|
commander "^7.2.0"
|
|
8161
8164
|
css-select "^5.1.0"
|
|
8162
8165
|
css-tree "^2.3.1"
|
|
8163
8166
|
css-what "^6.1.0"
|
|
8164
8167
|
csso "^5.0.5"
|
|
8165
8168
|
picocolors "^1.0.0"
|
|
8169
|
+
sax "^1.5.0"
|
|
8166
8170
|
|
|
8167
8171
|
synckit@^0.9.1:
|
|
8168
8172
|
version "0.9.2"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-qrcode-svg",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.37",
|
|
4
4
|
"description": "A QR Code generator for React Native based on react-native-svg and javascript-qrcode.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"standard": "^16.0.4"
|
|
86
86
|
},
|
|
87
87
|
"overrides": {
|
|
88
|
+
"image-size": "2.0.4",
|
|
88
89
|
"selfsigned": "^5.5.0"
|
|
89
90
|
}
|
|
90
91
|
}
|