fetch-css 4.1.1 → 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.
Files changed (3) hide show
  1. package/crx-to-zip.js +3 -3
  2. package/index.js +1 -1
  3. package/package.json +16 -14
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 (let i = 0; i < publicKeys.length; ++i) {
159
- const sha256sum = sha256(encLatin1.parse(publicKeys[i])).toString();
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(publicKeys[i]);
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) { // eslint-disable-line import/no-unused-modules
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.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.10.0",
26
- "crypto-js": "4.1.1",
27
- "fetch-enhanced": "11.1.2",
28
- "parse5": "7.1.2",
29
- "postcss": "8.4.25",
30
- "rfdc": "1.3.0",
31
- "undici": "5.22.1",
32
- "unzipper": "0.10.14",
25
+ "acorn": "8.15.0",
26
+ "crypto-js": "4.2.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": "8.44.0",
37
- "eslint-config-silverwind": "73.1.2",
38
- "updates": "14.3.2",
39
- "versions": "11.0.1"
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
+ }