@pnpm/lockfile-file
Advanced tools
Comparing version 3.2.0 to 3.2.1
# @pnpm/lockfile-file | ||
## 3.2.1 | ||
### Patch Changes | ||
- 51e1456dd: Throw a standard pnpm error object on broken lockfile error. The error code is `ERR_PNPM_BROKEN_LOCKFILE`. | ||
## 3.2.0 | ||
@@ -4,0 +10,0 @@ |
@@ -8,2 +8,3 @@ "use strict"; | ||
const constants_1 = require("@pnpm/constants"); | ||
const error_1 = __importDefault(require("@pnpm/error")); | ||
const types_1 = require("@pnpm/types"); | ||
@@ -54,3 +55,3 @@ const errors_1 = require("./errors"); | ||
if (!opts.autofixMergeConflicts || !gitMergeFile_1.isDiff(lockfileRawContent)) { | ||
throw err; | ||
throw new error_1.default('BROKEN_LOCKFILE', `The lockfile at "${lockfilePath}" is broken: ${err.message}`); | ||
} | ||
@@ -57,0 +58,0 @@ hadConflicts = true; |
{ | ||
"name": "@pnpm/lockfile-file", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Read/write pnpm-lock.yaml files", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
27475
458