@pnpm/lockfile-file
Advanced tools
Comparing version 3.0.12 to 3.0.13
# @pnpm/lockfile-file | ||
## 3.0.13 | ||
### Patch Changes | ||
- 9550b0505: Remove the `packages` field before saving, if it equals `undefined`. | ||
## 3.0.12 | ||
@@ -4,0 +10,0 @@ |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -55,3 +55,3 @@ "use strict"; | ||
} | ||
if (R.isEmpty(lockfileToSave.packages)) { | ||
if (R.isEmpty(lockfileToSave.packages) || !lockfileToSave.packages) { | ||
delete lockfileToSave.packages; | ||
@@ -78,3 +78,3 @@ } | ||
}; | ||
if (R.isEmpty(lockfileToSave.packages)) { | ||
if (R.isEmpty(lockfileToSave.packages) || !lockfileToSave.packages) { | ||
delete lockfileToSave.packages; | ||
@@ -81,0 +81,0 @@ } |
{ | ||
"name": "@pnpm/lockfile-file", | ||
"version": "3.0.12", | ||
"version": "3.0.13", | ||
"description": "Read/write pnpm-lock.yaml files", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
19556