cbst 3.0.0 → 3.0.1
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/README.md +1 -1
- package/dist/CacheBuster.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -91,7 +91,7 @@ The configuration file (JSON) supports the following properties:
|
|
|
91
91
|
- Defaults to `10`.
|
|
92
92
|
|
|
93
93
|
File patterns support `*` (slash-free wildcards) and `/**/` (directory
|
|
94
|
-
wildcards).
|
|
94
|
+
wildcards). Absolute patterns are relative to the input directory.
|
|
95
95
|
|
|
96
96
|
## Versioning and References
|
|
97
97
|
|
package/dist/CacheBuster.js
CHANGED
|
@@ -46,7 +46,7 @@ export class CacheBuster extends EventEmitter {
|
|
|
46
46
|
this.hashLength = o.hashLength;
|
|
47
47
|
}
|
|
48
48
|
async run() {
|
|
49
|
-
await this.handleDir('
|
|
49
|
+
await this.handleDir('/');
|
|
50
50
|
if (this.metadata) {
|
|
51
51
|
await this.writeMetadata(this.metadata);
|
|
52
52
|
}
|
|
@@ -59,7 +59,7 @@ export class CacheBuster extends EventEmitter {
|
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
const entries = await this.readDir(dir);
|
|
62
|
-
entries.sort((a, b) => (a.name < b.name ? -1 :
|
|
62
|
+
entries.sort((a, b) => (a.name < b.name ? -1 : 1));
|
|
63
63
|
for (const entry of entries) {
|
|
64
64
|
if (entry.isFile()) {
|
|
65
65
|
await this.handleFile(path.join(dir, entry.name));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cbst",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "A cache buster that versions a website's files for immutable cache control",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"versioning",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"lint": "eslint .",
|
|
35
35
|
"format": "prettier --write .",
|
|
36
36
|
"format-check": "prettier --check .",
|
|
37
|
-
"test": "node --import tsx --test test/*.test.ts test/*/*.test.ts"
|
|
37
|
+
"test": "node --import tsx --test --test-concurrency=1 test/*.test.ts test/*/*.test.ts"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@eslint/js": "^10.0.1",
|