hologit 0.40.6 → 0.41.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.
- package/lib/Source.js +3 -2
- package/package.json +4 -4
package/lib/Source.js
CHANGED
|
@@ -12,6 +12,7 @@ const Projection = require('./Projection.js');
|
|
|
12
12
|
|
|
13
13
|
const specCache = new WeakMap();
|
|
14
14
|
const headCache = new WeakMap();
|
|
15
|
+
const hashRegex = new RegExp('^[0-9a-f]{7,40}$')
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
class Source extends Configurable {
|
|
@@ -392,8 +393,8 @@ class Source extends Configurable {
|
|
|
392
393
|
}
|
|
393
394
|
|
|
394
395
|
for (const ref of refs) {
|
|
395
|
-
if (!ref.startsWith('refs/')) {
|
|
396
|
-
throw new Error(`ref ${ref} must start with refs
|
|
396
|
+
if (!ref.startsWith('refs/') && !hashRegex.test(ref)) {
|
|
397
|
+
throw new Error(`ref ${ref} must start with refs/ or be a hash`);
|
|
397
398
|
}
|
|
398
399
|
}
|
|
399
400
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hologit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.2",
|
|
4
4
|
"description": "Hologit automates the projection of layered composite file trees based on flat, declarative plans",
|
|
5
5
|
"repository": "https://github.com/EmergencePlatform/hologit",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@iarna/toml": "^2.2.5",
|
|
12
12
|
"async-exit-hook": "^2.0.1",
|
|
13
|
-
"axios": "^0.
|
|
13
|
+
"axios": "^0.27.2",
|
|
14
14
|
"chokidar": "^3.5.3",
|
|
15
15
|
"debounce": "^1.2.1",
|
|
16
16
|
"dockerode": "^3.3.1",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"git-client": "^1.8.3",
|
|
19
19
|
"hab-client": "^1.1.1",
|
|
20
20
|
"handlebars": "^4.7.6",
|
|
21
|
-
"minimatch": "^
|
|
21
|
+
"minimatch": "^5.1.0",
|
|
22
22
|
"mz": "^2.4.0",
|
|
23
23
|
"mz-modules": "^2.1.0",
|
|
24
24
|
"object-squish": "^1.1.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
],
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/jest": "^27.4.0",
|
|
52
|
-
"jest": "^
|
|
52
|
+
"jest": "^28.1.0"
|
|
53
53
|
},
|
|
54
54
|
"jest": {
|
|
55
55
|
"testEnvironment": "node"
|