@netlify/git-utils 5.0.2 → 5.1.0
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/refs.js +2 -2
- package/package.json +2 -2
package/lib/refs.js
CHANGED
|
@@ -47,8 +47,8 @@ const checkRef = function (ref, cwd) {
|
|
|
47
47
|
const refExists = function ({ error }) {
|
|
48
48
|
return error === undefined;
|
|
49
49
|
};
|
|
50
|
-
const throwError = function (name, { ref, error
|
|
51
|
-
const messages = [message, stderr].filter(Boolean).join('\n');
|
|
50
|
+
const throwError = function (name, { ref, error, }) {
|
|
51
|
+
const messages = [error === null || error === void 0 ? void 0 : error.message, error === null || error === void 0 ? void 0 : error.stderr].filter(Boolean).join('\n');
|
|
52
52
|
const messageA = `Invalid ${name} commit ${ref}\n${messages}`;
|
|
53
53
|
throw new Error(messageA);
|
|
54
54
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/git-utils",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Utility for dealing with modified, created, deleted files since a git commit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/main.js",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": "^14.16.0 || >=16.0.0"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "e22d6106d734d2b4b7b49d2a2350be21913c0cbf"
|
|
68
68
|
}
|