@netlify/config 17.0.6 → 17.0.7
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/package.json +10 -10
- package/src/env/git.js +1 -1
- package/src/files.js +1 -1
- package/src/mutations/update.js +1 -1
- package/src/options/base.js +1 -1
- package/src/options/branch.js +2 -2
- package/src/parse.js +1 -1
- package/src/path.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/config",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.7",
|
|
4
4
|
"description": "Netlify config module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./src/main.js",
|
|
@@ -51,25 +51,25 @@
|
|
|
51
51
|
},
|
|
52
52
|
"license": "MIT",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"chalk": "^
|
|
54
|
+
"chalk": "^5.0.0",
|
|
55
55
|
"cron-parser": "^4.1.0",
|
|
56
56
|
"deepmerge": "^4.2.2",
|
|
57
57
|
"dot-prop": "^6.0.0",
|
|
58
|
-
"execa": "^
|
|
58
|
+
"execa": "^6.0.0",
|
|
59
59
|
"fast-safe-stringify": "^2.0.7",
|
|
60
60
|
"figures": "^3.2.0",
|
|
61
|
-
"filter-obj": "^
|
|
61
|
+
"filter-obj": "^3.0.0",
|
|
62
62
|
"find-up": "^5.0.0",
|
|
63
63
|
"indent-string": "^4.0.0",
|
|
64
|
-
"is-plain-obj": "^
|
|
64
|
+
"is-plain-obj": "^4.0.0",
|
|
65
65
|
"js-yaml": "^4.0.0",
|
|
66
|
-
"map-obj": "^
|
|
67
|
-
"netlify": "^
|
|
66
|
+
"map-obj": "^5.0.0",
|
|
67
|
+
"netlify": "^11.0.0",
|
|
68
68
|
"netlify-headers-parser": "^6.0.1",
|
|
69
|
-
"netlify-redirect-parser": "^13.0.
|
|
69
|
+
"netlify-redirect-parser": "^13.0.2",
|
|
70
70
|
"omit.js": "^2.0.2",
|
|
71
|
-
"p-locate": "^
|
|
72
|
-
"path-exists": "^
|
|
71
|
+
"p-locate": "^6.0.0",
|
|
72
|
+
"path-exists": "^5.0.0",
|
|
73
73
|
"path-type": "^4.0.0",
|
|
74
74
|
"toml": "^3.0.0",
|
|
75
75
|
"tomlify-j0.4": "^3.0.0",
|
package/src/env/git.js
CHANGED
package/src/files.js
CHANGED
package/src/mutations/update.js
CHANGED
package/src/options/base.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { promises as fs } from 'fs'
|
|
2
2
|
import { dirname, relative, sep } from 'path'
|
|
3
3
|
|
|
4
|
-
import pathExists from 'path-exists'
|
|
4
|
+
import { pathExists } from 'path-exists'
|
|
5
5
|
|
|
6
6
|
// Retrieve `base` override.
|
|
7
7
|
// This uses any directory below `repositoryRoot` and above (or equal to)
|
package/src/options/branch.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { execaCommand } from 'execa'
|
|
2
2
|
|
|
3
3
|
// Find out git branch among (in priority order):
|
|
4
4
|
// - `branch` option
|
|
@@ -26,7 +26,7 @@ export const getBranch = async function ({ branch, repositoryRoot }) {
|
|
|
26
26
|
|
|
27
27
|
const getGitBranch = async function (repositoryRoot, gitRef) {
|
|
28
28
|
try {
|
|
29
|
-
const { stdout } = await
|
|
29
|
+
const { stdout } = await execaCommand(`git rev-parse --abbrev-ref ${gitRef}`, { cwd: repositoryRoot })
|
|
30
30
|
return stdout
|
|
31
31
|
} catch {}
|
|
32
32
|
}
|
package/src/parse.js
CHANGED
package/src/path.js
CHANGED