From 5c380e5a33d760bb66a4285b032ae5f50af27199 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 30 Sep 2019 10:44:07 -0700 Subject: [PATCH] stringify-package@1.0.1 --- node_modules/stringify-package/CHANGELOG.md | 10 +++++ node_modules/stringify-package/index.js | 3 +- node_modules/stringify-package/package.json | 42 ++++++++++----------- package-lock.json | 6 +-- package.json | 2 +- 5 files changed, 36 insertions(+), 27 deletions(-) diff --git a/node_modules/stringify-package/CHANGELOG.md b/node_modules/stringify-package/CHANGELOG.md index 974d393ac0e08..2de91768d2790 100644 --- a/node_modules/stringify-package/CHANGELOG.md +++ b/node_modules/stringify-package/CHANGELOG.md @@ -2,5 +2,15 @@ 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. + +## [1.0.1](https://github.com/npm/stringify-package/compare/v1.0.0...v1.0.1) (2019-09-30) + + +### Bug Fixes + +* strict comparison ([0c5675f](https://github.com/npm/stringify-package/commit/0c5675f)), closes [#2](https://github.com/npm/stringify-package/issues/2) + + + # 1.0.0 (2018-07-18) diff --git a/node_modules/stringify-package/index.js b/node_modules/stringify-package/index.js index 0cc9de0a36365..cd291f295a59c 100644 --- a/node_modules/stringify-package/index.js +++ b/node_modules/stringify-package/index.js @@ -7,7 +7,8 @@ const CRLF = '\r\n' const LF = '\n' function stringifyPackage (data, indent, newline) { - const json = JSON.stringify(data, null, indent || DEFAULT_INDENT) + indent = indent || (indent === 0 ? 0 : DEFAULT_INDENT) + const json = JSON.stringify(data, null, indent) if (newline === CRLF) { return json.replace(/\n/g, CRLF) + CRLF diff --git a/node_modules/stringify-package/package.json b/node_modules/stringify-package/package.json index 9d2a9d5f161e0..a3f011da5d8f0 100644 --- a/node_modules/stringify-package/package.json +++ b/node_modules/stringify-package/package.json @@ -1,28 +1,29 @@ { - "_from": "stringify-package@^1.0.0", - "_id": "stringify-package@1.0.0", + "_from": "stringify-package@1.0.1", + "_id": "stringify-package@1.0.1", "_inBundle": false, - "_integrity": "sha512-JIQqiWmLiEozOC0b0BtxZ/AOUtdUZHCBPgqIZ2kSJJqGwgb9neo44XdTHUC4HZSGqi03hOeB7W/E8rAlKnGe9g==", + "_integrity": "sha512-sa4DUQsYciMP1xhKWGuFM04fB0LG/9DlluZoSVywUMRNvzid6XucHK0/90xGxRoHrAaROrcHK1aPKaijCtSrhg==", "_location": "/stringify-package", "_phantomChildren": {}, "_requested": { - "type": "range", + "type": "version", "registry": true, - "raw": "stringify-package@^1.0.0", + "raw": "stringify-package@1.0.1", "name": "stringify-package", "escapedName": "stringify-package", - "rawSpec": "^1.0.0", + "rawSpec": "1.0.1", "saveSpec": null, - "fetchSpec": "^1.0.0" + "fetchSpec": "1.0.1" }, "_requiredBy": [ "#USER", - "/" + "/", + "/libnpm" ], - "_resolved": "https://registry.npmjs.org/stringify-package/-/stringify-package-1.0.0.tgz", - "_shasum": "e02828089333d7d45cd8c287c30aa9a13375081b", - "_spec": "stringify-package@^1.0.0", - "_where": "/Users/dpogue/Coding/npm_cli", + "_resolved": "https://registry.npmjs.org/stringify-package/-/stringify-package-1.0.1.tgz", + "_shasum": "e5aa3643e7f74d0f28628b72f3dad5cecfc3ba85", + "_spec": "stringify-package@1.0.1", + "_where": "/Users/isaacs/dev/npm/cli", "author": { "name": "Kat Marchán", "email": "kzm@zkat.tech" @@ -34,11 +35,9 @@ "deprecated": false, "description": "stringifies npm-written json files", "devDependencies": { - "standard": "*", - "standard-version": "*", - "tap": "*", - "weallbehave": "*", - "weallcontribute": "*" + "standard": "11", + "standard-version": "4", + "tap": "12" }, "files": [ "index.js" @@ -58,13 +57,12 @@ "url": "git+https://github.com/npm/stringify-package.git" }, "scripts": { - "postrelease": "npm publish && git push --follow-tags", + "postpublish": "git push --follow-tags", + "postrelease": "npm publish", "prerelease": "npm t", "pretest": "standard", "release": "standard-version -s", - "test": "tap -J --coverage --100 test/*.js", - "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'" + "test": "tap -J --coverage --100 test/*.js" }, - "version": "1.0.0" + "version": "1.0.1" } diff --git a/package-lock.json b/package-lock.json index b7a88137872ce..a1846d83d1853 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5532,9 +5532,9 @@ } }, "stringify-package": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stringify-package/-/stringify-package-1.0.0.tgz", - "integrity": "sha512-JIQqiWmLiEozOC0b0BtxZ/AOUtdUZHCBPgqIZ2kSJJqGwgb9neo44XdTHUC4HZSGqi03hOeB7W/E8rAlKnGe9g==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/stringify-package/-/stringify-package-1.0.1.tgz", + "integrity": "sha512-sa4DUQsYciMP1xhKWGuFM04fB0LG/9DlluZoSVywUMRNvzid6XucHK0/90xGxRoHrAaROrcHK1aPKaijCtSrhg==" }, "strip-ansi": { "version": "3.0.1", diff --git a/package.json b/package.json index 0fc2d7a101cbb..c474276ed45d6 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "sorted-object": "~2.0.1", "sorted-union-stream": "~2.1.3", "ssri": "^6.0.1", - "stringify-package": "^1.0.0", + "stringify-package": "^1.0.1", "tar": "^4.4.12", "text-table": "~0.2.0", "tiny-relative-date": "^1.3.0",