Commit a4e6fc1 1 parent 6da2d43 commit a4e6fc1 Copy full SHA for a4e6fc1
File tree 6 files changed +28
-25
lines changed
6 files changed +28
-25
lines changed Original file line number Diff line number Diff line change 1
- name : release
1
+ name : Create Release
2
+
2
3
on :
3
4
push :
4
5
tags :
5
6
- ' v*'
7
+
6
8
jobs :
7
9
build :
8
- name : Create Release
9
10
runs-on : ubuntu-latest
10
11
steps :
11
- - uses : actions/checkout@v3
12
- - uses : actions/create-release@v1
12
+ - uses : actions/checkout@v4 # see: https://github.com/actions/checkout/releases
13
+ - uses : actions/create-release@v1 # see: https://github.com/actions/create-release/releases
13
14
env :
14
15
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
15
16
with :
Original file line number Diff line number Diff line change 1
- name : build
1
+ name : Build and Run Specifications
2
+
2
3
on : [push]
4
+
3
5
jobs :
4
6
build :
5
- name : Run Specifications
6
7
runs-on : ubuntu-latest
7
8
steps :
8
- - uses : actions/checkout@v3
9
- - uses : actions/setup-node@v3
9
+ - uses : actions/checkout@v4 # see: https://github.com/actions/checkout/releases
10
+ - uses : actions/setup-node@v4 # see: https://github.com/actions/setup-node/releases
10
11
- run : npm install
11
12
- run : npm test
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ _Revision web asset filenames with cache busting content hash fingerprints_
5
5
6
6
[ ![ License: MIT ] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( https://github.com/center-key/rev-web-assets/blob/main/LICENSE.txt )
7
7
[ ![ npm] ( https://img.shields.io/npm/v/rev-web-assets.svg )] ( https://www.npmjs.com/package/rev-web-assets )
8
- [ ![ Build] ( https://github.com/center-key/rev-web-assets/workflows/build /badge.svg )] ( https://github.com/center-key/rev-web-assets/actions/workflows/run-spec-on-push.yaml )
8
+ [ ![ Build] ( https://github.com/center-key/rev-web-assets/actions/ workflows/run-spec-on-push.yaml /badge.svg )] ( https://github.com/center-key/rev-web-assets/actions/workflows/run-spec-on-push.yaml )
9
9
10
10
** rev-web-assets** updates the asset filenames of a website to contain a eight-digit hex hash.  ;
11
11
The command's console output includes a timestamp and formatting helpful in build systems.
Original file line number Diff line number Diff line change 1
- //! rev-web-assets v1.3.4 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License
1
+ //! rev-web-assets v1.3.5 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License
2
2
3
3
export type Settings = {
4
4
cd : string | null ;
Original file line number Diff line number Diff line change 1
- //! rev-web-assets v1.3.4 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License
1
+ //! rev-web-assets v1.3.5 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License
2
2
3
3
import chalk from 'chalk' ;
4
4
import crypto from 'crypto' ;
@@ -68,11 +68,12 @@ const revWebAssets = {
68
68
assetDetail . references ++ ;
69
69
if ( assetDetail && ! assetDetail . usedIn . includes ( detail . canonical ) )
70
70
assetDetail . usedIn . push ( detail . canonical ) ;
71
+ const trailingSlashes = / \/ * $ / ;
72
+ const absoluteUrl = ( ) => settings . metaContentBase . replace ( trailingSlashes , '/' ) +
73
+ assetDetail ?. canonicalFolder + '/' + assetDetail ?. hashedFilename ;
71
74
const hashedUri = ( ) => {
72
- const hashed = revWebAssets . hashFilename ( uri , assetDetail . hash ) ;
73
75
const noBase = ! settings . metaContentBase || ! pre . startsWith ( '<meta' ) ;
74
- const trailingSlashes = / \/ * $ / ;
75
- return noBase ? hashed : settings . metaContentBase . replace ( trailingSlashes , '/' ) + hashed ;
76
+ return noBase ? revWebAssets . hashFilename ( uri , assetDetail . hash ) : absoluteUrl ( ) ;
76
77
} ;
77
78
return assetDetail ?. hash ? pre + hashedUri ( ) + post : matched ;
78
79
} ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rev-web-assets" ,
3
- "version" : " 1.3.4 " ,
3
+ "version" : " 1.3.5 " ,
4
4
"description" : " Revision web asset filenames with cache busting content hash fingerprints" ,
5
5
"license" : " MIT" ,
6
6
"type" : " module" ,
80
80
},
81
81
"devDependencies" : {
82
82
"@types/fancy-log" : " ~2.0" ,
83
- "@types/node" : " ~20.11 " ,
84
- "@typescript-eslint/eslint-plugin" : " ~6.19 " ,
85
- "@typescript-eslint/parser" : " ~6.19 " ,
86
- "add-dist-header" : " ~1.3 " ,
87
- "assert-deep-strict-equal" : " ~1.1 " ,
88
- "copy-file-util" : " ~1.1 " ,
89
- "eslint" : " ~8.56 " ,
83
+ "@types/node" : " ~20.12 " ,
84
+ "@typescript-eslint/eslint-plugin" : " ~7.7 " ,
85
+ "@typescript-eslint/parser" : " ~7.7 " ,
86
+ "add-dist-header" : " ~1.4 " ,
87
+ "assert-deep-strict-equal" : " ~1.2 " ,
88
+ "copy-file-util" : " ~1.2 " ,
89
+ "eslint" : " 8.57.0 " ,
90
90
"jshint" : " ~2.13" ,
91
- "mocha" : " ~10.2 " ,
91
+ "mocha" : " ~10.4 " ,
92
92
"rimraf" : " ~5.0" ,
93
93
"run-scripts-util" : " ~1.2" ,
94
- "typescript" : " ~5.3 " ,
95
- "w3c-html-validator" : " ~1.6 "
94
+ "typescript" : " ~5.4 " ,
95
+ "w3c-html-validator" : " ~1.8 "
96
96
}
97
97
}
You can’t perform that action at this time.
0 commit comments