From 7086a1809bbfda9be81344b3949c7d3ac687ffc4 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 12 Aug 2019 16:37:42 -0700 Subject: [PATCH] libcipm@4.0.3 Fix bug in node v10 and before, where it'd crash when attempting to stringify the `npmlog` object. --- node_modules/libcipm/CHANGELOG.md | 10 ++++++++++ node_modules/libcipm/index.js | 2 +- node_modules/libcipm/package.json | 20 ++++++++++---------- package-lock.json | 6 +++--- package.json | 2 +- 5 files changed, 25 insertions(+), 15 deletions(-) diff --git a/node_modules/libcipm/CHANGELOG.md b/node_modules/libcipm/CHANGELOG.md index 2956e8551d179..26cf2d224cfb0 100644 --- a/node_modules/libcipm/CHANGELOG.md +++ b/node_modules/libcipm/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [4.0.3](https://github.com/npm/libcipm/compare/v4.0.2...v4.0.3) (2019-08-12) + + +### Bug Fixes + +* do not pass opts.log to lifecycle ([46b2101](https://github.com/npm/libcipm/commit/46b2101)) + + + ## [4.0.2](https://github.com/npm/libcipm/compare/v4.0.1...v4.0.2) (2019-08-12) diff --git a/node_modules/libcipm/index.js b/node_modules/libcipm/index.js index c73c035e9b929..7c9b59f62d44d 100644 --- a/node_modules/libcipm/index.js +++ b/node_modules/libcipm/index.js @@ -370,7 +370,7 @@ class Installer { pkg, stage, pkgPath, LifecycleOpts(this.opts).concat({ // TODO: can be removed once npm-lifecycle is updated to modern // config practices. - config: this.opts, + config: Object.assign({}, this.opts, { log: null }), dir: this.prefix })) ).tap(() => { this.timings.scripts += Date.now() - start }) diff --git a/node_modules/libcipm/package.json b/node_modules/libcipm/package.json index c110f4165f83b..f520bd6fbc3db 100644 --- a/node_modules/libcipm/package.json +++ b/node_modules/libcipm/package.json @@ -1,27 +1,27 @@ { - "_from": "libcipm@4.0.2", - "_id": "libcipm@4.0.2", + "_from": "libcipm@4.0.3", + "_id": "libcipm@4.0.3", "_inBundle": false, - "_integrity": "sha512-8tTctuuT8TGvlN3l5GcE0M32kNlUcKka0RQD/qpbGHO7WGlN6D+76pyjP70+BnVsqfMozk1GOPZ40+NZQatWeg==", + "_integrity": "sha512-nuIxNtqA+kIkwUiNM/nZ0yPyR7NkSUov6g6mCfFPkYylO1dEovZBL+NZ3axdouS2UOTa8GdnJ7/meSc1/0AIGw==", "_location": "/libcipm", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "libcipm@4.0.2", + "raw": "libcipm@4.0.3", "name": "libcipm", "escapedName": "libcipm", - "rawSpec": "4.0.2", + "rawSpec": "4.0.3", "saveSpec": null, - "fetchSpec": "4.0.2" + "fetchSpec": "4.0.3" }, "_requiredBy": [ "#USER", "/" ], - "_resolved": "https://registry.npmjs.org/libcipm/-/libcipm-4.0.2.tgz", - "_shasum": "f951b62c7666f42fa03e00b99e5cbd6f2585fd74", - "_spec": "libcipm@4.0.2", + "_resolved": "https://registry.npmjs.org/libcipm/-/libcipm-4.0.3.tgz", + "_shasum": "6a6db4a6e040e56f4af18bb1d664e05e8eb23a39", + "_spec": "libcipm@4.0.3", "_where": "/Users/isaacs/dev/npm/cli", "author": { "name": "Kat Marchán", @@ -96,5 +96,5 @@ "update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'", "update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'" }, - "version": "4.0.2" + "version": "4.0.3" } diff --git a/package-lock.json b/package-lock.json index 306e4337a8c8c..3f5229a87f617 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3058,9 +3058,9 @@ } }, "libcipm": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/libcipm/-/libcipm-4.0.2.tgz", - "integrity": "sha512-8tTctuuT8TGvlN3l5GcE0M32kNlUcKka0RQD/qpbGHO7WGlN6D+76pyjP70+BnVsqfMozk1GOPZ40+NZQatWeg==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/libcipm/-/libcipm-4.0.3.tgz", + "integrity": "sha512-nuIxNtqA+kIkwUiNM/nZ0yPyR7NkSUov6g6mCfFPkYylO1dEovZBL+NZ3axdouS2UOTa8GdnJ7/meSc1/0AIGw==", "requires": { "bin-links": "^1.1.2", "bluebird": "^3.5.1", diff --git a/package.json b/package.json index a1e4d96eff86a..0d4673a5a0377 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "is-cidr": "^3.0.0", "json-parse-better-errors": "^1.0.2", "lazy-property": "~1.0.0", - "libcipm": "^4.0.2", + "libcipm": "^4.0.3", "libnpm": "^3.0.1", "libnpmaccess": "^3.0.2", "libnpmhook": "^5.0.3",