fetch-css 4.0.0 → 4.0.2

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/README.md +1 -1
  2. package/index.js +1 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  npm i fetch-css
9
9
  ```
10
10
  ```js
11
- const fetchCss = require("fetch-css");
11
+ import fetchCss from "fetch-css";
12
12
 
13
13
  // retrieve CSS of a website
14
14
  const [{css}] = await fetchCss([{url: "https://example.com"}]);
package/index.js CHANGED
@@ -4,7 +4,6 @@ import postcss from "postcss";
4
4
  import {parseFragment} from "parse5";
5
5
  import unzipper from "unzipper";
6
6
  import urlToolkit from "url-toolkit";
7
- import {name} from "./package.json";
8
7
  import crxToZip from "./crx-to-zip.js";
9
8
  import nodeFetch from "node-fetch";
10
9
  import fetchEnhanced from "fetch-enhanced";
@@ -33,7 +32,7 @@ function validateStatus(res, url, strict) {
33
32
  if (strict) {
34
33
  throw new Error(msg);
35
34
  } else {
36
- console.warn(`(${name}) Warning: ${msg}`);
35
+ console.warn(`(fetch-css) Warning: ${msg}`);
37
36
  }
38
37
  }
39
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fetch-css",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Extract CSS from websites and browser extensions",
5
5
  "author": "silverwind",
6
6
  "repository": "silverwind/fetch-css",