rev-web-assets
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -41,3 +41,3 @@ #!/usr/bin/env node | ||
if (error) | ||
throw Error('[rev-web-assets] ' + error); | ||
throw new Error('[rev-web-assets] ' + error); | ||
const options = { | ||
@@ -44,0 +44,0 @@ cd: cli.flagMap.cd ?? null, |
@@ -1,2 +0,2 @@ | ||
//! rev-web-assets v1.4.0 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License | ||
//! rev-web-assets v1.4.1 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License | ||
@@ -3,0 +3,0 @@ export type Settings = { |
@@ -1,2 +0,2 @@ | ||
//! rev-web-assets v1.4.0 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License | ||
//! rev-web-assets v1.4.1 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License | ||
@@ -75,4 +75,4 @@ import chalk from 'chalk'; | ||
const trailingSlashes = /\/*$/; | ||
const absoluteUrl = () => settings.metaContentBase.replace(trailingSlashes, '/') + | ||
assetDetail?.canonicalFolder + '/' + assetDetail?.hashedFilename; | ||
const metaContentBase = settings.metaContentBase?.replace(trailingSlashes, '/'); | ||
const absoluteUrl = () => `${metaContentBase}${assetDetail?.canonicalFolder}/${assetDetail?.hashedFilename}`; | ||
const hashedUri = () => { | ||
@@ -146,3 +146,3 @@ const noBase = !settings.metaContentBase || !pre.startsWith('<meta'); | ||
if (errorMessage) | ||
throw Error('[rev-web-assets] ' + errorMessage); | ||
throw new Error('[rev-web-assets] ' + errorMessage); | ||
const manifest = revWebAssets.manifest(source, target, settings.skip); | ||
@@ -149,0 +149,0 @@ revWebAssets.processHtml(manifest, settings); |
{ | ||
"name": "rev-web-assets", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Revision web asset filenames with cache busting content hash fingerprints", | ||
@@ -38,21 +38,2 @@ "license": "MIT", | ||
}, | ||
"eslintConfig": { | ||
"ignorePatterns": [ | ||
"build", | ||
"dist", | ||
"node_modules" | ||
], | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-non-null-assertion": "off" | ||
} | ||
}, | ||
"runScriptsConfig": { | ||
@@ -64,3 +45,3 @@ "clean": [ | ||
"jshint . --exclude-path .gitignore", | ||
"eslint --max-warnings 0 . --ext .ts" | ||
"eslint --max-warnings 0" | ||
], | ||
@@ -84,17 +65,17 @@ "build": [ | ||
"devDependencies": { | ||
"@eslint/js": "~9.7", | ||
"@eslint/js": "~9.9", | ||
"@types/fancy-log": "~2.0", | ||
"@types/node": "~20.14", | ||
"@types/node": "~22.3", | ||
"add-dist-header": "~1.4", | ||
"assert-deep-strict-equal": "~1.2", | ||
"copy-file-util": "~1.2", | ||
"eslint": "8.57.0", | ||
"eslint": "~9.9", | ||
"jshint": "~2.13", | ||
"mocha": "~10.6", | ||
"mocha": "~10.7", | ||
"rimraf": "~6.0", | ||
"run-scripts-util": "~1.2", | ||
"run-scripts-util": "~1.3", | ||
"typescript": "~5.5", | ||
"typescript-eslint": "~7.16", | ||
"typescript-eslint": "~8.1", | ||
"w3c-html-validator": "~1.8" | ||
} | ||
} |
@@ -156,3 +156,3 @@ # rev-web-assets | ||
- 🔢 [rev-web-assets](https://github.com/center-key/rev-web-assets): _Revision web asset filenames with cache busting content hash fingerprints_ | ||
- 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util): _Organize npm package.json scripts into named groups of easy to manage commands_ | ||
- 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util): _Organize npm package.json scripts into groups of easy to manage commands_ | ||
- 🚦 [w3c-html-validator](https://github.com/center-key/w3c-html-validator): _Check the markup validity of HTML files using the W3C validator_ | ||
@@ -159,0 +159,0 @@ |
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
23651