Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2019-09-30 20:44:07 +0300
committerisaacs <i@izs.me>2019-09-30 20:44:08 +0300
commit5c380e5a33d760bb66a4285b032ae5f50af27199 (patch)
treebc93b62a852c8ac75a6af7d2c8bf2f1ab76b2c64 /node_modules/stringify-package
parent5aba50ad0889d468ecfa9d6d0446a89f70db73d5 (diff)
stringify-package@1.0.1
Diffstat (limited to 'node_modules/stringify-package')
-rw-r--r--node_modules/stringify-package/CHANGELOG.md10
-rw-r--r--node_modules/stringify-package/index.js3
-rw-r--r--node_modules/stringify-package/package.json42
3 files changed, 32 insertions, 23 deletions
diff --git a/node_modules/stringify-package/CHANGELOG.md b/node_modules/stringify-package/CHANGELOG.md
index 974d393ac..2de91768d 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.
+<a name="1.0.1"></a>
+## [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)
+
+
+
<a name="1.0.0"></a>
# 1.0.0 (2018-07-18)
diff --git a/node_modules/stringify-package/index.js b/node_modules/stringify-package/index.js
index 0cc9de0a3..cd291f295 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 9d2a9d5f1..a3f011da5 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"
}