inline-source
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -391,3 +391,2 @@ // src/css.js | ||
// src/load.js | ||
import fetch from "node-fetch"; | ||
async function load(source, context) { | ||
@@ -404,2 +403,3 @@ if (!source.fileContent && source.filepath) { | ||
if (source.isRemote) { | ||
const fetch = (await import("node-fetch")).default; | ||
const res = await fetch(source.sourcepath); | ||
@@ -406,0 +406,0 @@ if (!res.ok) { |
{ | ||
"name": "inline-source", | ||
"description": "Inline all flagged js, css, image source files", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"license": "MIT", | ||
@@ -32,3 +32,3 @@ "author": "Alexander Pope <alex@pope.industries>", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^18.7.18", | ||
"@types/node": "^18.7.21", | ||
"@types/svgo": "^2.6.4", | ||
@@ -38,4 +38,4 @@ "@typescript-eslint/eslint-plugin": "^5.38.0", | ||
"chai": "^4.3.6", | ||
"esbuild": "^0.15.8", | ||
"eslint": "^8.23.1", | ||
"esbuild": "^0.15.9", | ||
"eslint": "^8.24.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
@@ -82,4 +82,4 @@ "eslint-plugin-prettier": "^4.2.1", | ||
"lint:typescript": "tsc --noEmit --skipLibCheck", | ||
"test": "NODE_ENV=test mocha --reporter spec --bail 'test/*-test.js'" | ||
"test": "NODE_ENV=test mocha --reporter spec --bail 'test/*-test.*js'" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44926
2