fetch-css 4.0.6 → 4.0.8

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 CHANGED
@@ -4,8 +4,6 @@
4
4
  import encLatin1 from "crypto-js/enc-latin1.js";
5
5
  import sha256 from "crypto-js/sha256.js";
6
6
 
7
- const btoa = require("base-64").encode;
8
-
9
7
  function calcLength(a, b, c, d) {
10
8
  let length = 0;
11
9
  length += a << 0; // eslint-disable-line unicorn/prefer-math-trunc
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import acorn from "acorn";
1
+ import {parse} from "acorn";
2
2
  import cloner from "rfdc";
3
3
  import postcss from "postcss";
4
4
  import {parseFragment} from "parse5";
@@ -66,7 +66,7 @@ function isValidCSS(string) {
66
66
  function extractCssFromJs(js) {
67
67
  let css = "";
68
68
 
69
- acorn.parse(js, {
69
+ parse(js, {
70
70
  ecmaVersion: "latest",
71
71
  onToken: token => {
72
72
  if (token.type.label === "string") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fetch-css",
3
- "version": "4.0.6",
3
+ "version": "4.0.8",
4
4
  "description": "Extract CSS from websites and browser extensions",
5
5
  "author": "silverwind",
6
6
  "repository": "silverwind/fetch-css",
@@ -23,7 +23,6 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "acorn": "8.8.1",
26
- "base-64": "1.0.0",
27
26
  "crypto-js": "4.1.1",
28
27
  "fetch-enhanced": "11.1.0",
29
28
  "node-fetch": "3.3.0",