fetch-css 4.1.2 → 4.1.3
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/crx-to-zip.js +3 -3
- package/index.js +1 -1
- package/package.json +15 -13
package/crx-to-zip.js
CHANGED
|
@@ -155,10 +155,10 @@ function getPublicKeyFromProtoBuf(bytesView, startOffset, endOffset) {
|
|
|
155
155
|
throw new Error("proto: Did not find crx_id");
|
|
156
156
|
}
|
|
157
157
|
const crxIdHex = encLatin1.parse(getBinaryString(crxIdBin, 0, 16)).toString();
|
|
158
|
-
for (
|
|
159
|
-
const sha256sum = sha256(encLatin1.parse(
|
|
158
|
+
for (const publicKey of publicKeys) {
|
|
159
|
+
const sha256sum = sha256(encLatin1.parse(publicKey)).toString();
|
|
160
160
|
if (sha256sum.slice(0, 32) === crxIdHex) {
|
|
161
|
-
return btoa(
|
|
161
|
+
return btoa(publicKey);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
throw new Error("proto: None of the public keys matched with crx_id");
|
package/index.js
CHANGED
|
@@ -167,7 +167,7 @@ async function extensionCss({crx, contentScriptsOnly, strict}) {
|
|
|
167
167
|
return css;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
export default async function fetchCss(sources) {
|
|
170
|
+
export default async function fetchCss(sources) {
|
|
171
171
|
sources = clone(sources);
|
|
172
172
|
|
|
173
173
|
const expandedSources = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fetch-css",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Extract CSS from websites and browser extensions",
|
|
5
5
|
"author": "silverwind",
|
|
6
6
|
"repository": "silverwind/fetch-css",
|
|
@@ -22,20 +22,22 @@
|
|
|
22
22
|
"crx-to-zip.js"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"acorn": "8.
|
|
25
|
+
"acorn": "8.15.0",
|
|
26
26
|
"crypto-js": "4.2.0",
|
|
27
|
-
"fetch-enhanced": "12.
|
|
28
|
-
"parse5": "
|
|
29
|
-
"postcss": "8.
|
|
30
|
-
"rfdc": "1.
|
|
31
|
-
"undici": "
|
|
32
|
-
"unzipper": "0.
|
|
27
|
+
"fetch-enhanced": "12.3.1",
|
|
28
|
+
"parse5": "8.0.0",
|
|
29
|
+
"postcss": "8.5.6",
|
|
30
|
+
"rfdc": "1.4.1",
|
|
31
|
+
"undici": "7.22.0",
|
|
32
|
+
"unzipper": "0.12.3",
|
|
33
33
|
"url-toolkit": "2.2.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"eslint": "
|
|
37
|
-
"eslint-config-silverwind": "
|
|
38
|
-
"
|
|
39
|
-
"
|
|
36
|
+
"eslint": "9.39.2",
|
|
37
|
+
"eslint-config-silverwind": "121.0.5",
|
|
38
|
+
"typescript-config-silverwind": "15.0.0",
|
|
39
|
+
"updates": "17.5.2",
|
|
40
|
+
"updates-config-silverwind": "1.0.3",
|
|
41
|
+
"versions": "14.1.2"
|
|
40
42
|
}
|
|
41
|
-
}
|
|
43
|
+
}
|