From e33aa0f94f87ae4f9d2a73781e84832ef61d1855 Mon Sep 17 00:00:00 2001 From: Gar Date: Mon, 11 Apr 2022 17:26:21 -0700 Subject: [PATCH] deps: remove stringify-package (#4714) It was not being used --- node_modules/stringify-package/LICENSE | 13 ------- node_modules/stringify-package/index.js | 18 ---------- node_modules/stringify-package/package.json | 38 --------------------- package-lock.json | 11 +----- workspaces/libnpmversion/package.json | 3 +- 5 files changed, 2 insertions(+), 81 deletions(-) delete mode 100644 node_modules/stringify-package/LICENSE delete mode 100644 node_modules/stringify-package/index.js delete mode 100644 node_modules/stringify-package/package.json diff --git a/node_modules/stringify-package/LICENSE b/node_modules/stringify-package/LICENSE deleted file mode 100644 index 209e4477f39c1..0000000000000 --- a/node_modules/stringify-package/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright npm, Inc - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/stringify-package/index.js b/node_modules/stringify-package/index.js deleted file mode 100644 index cd291f295a59c..0000000000000 --- a/node_modules/stringify-package/index.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict' - -module.exports = stringifyPackage - -const DEFAULT_INDENT = 2 -const CRLF = '\r\n' -const LF = '\n' - -function stringifyPackage (data, indent, newline) { - indent = indent || (indent === 0 ? 0 : DEFAULT_INDENT) - const json = JSON.stringify(data, null, indent) - - if (newline === CRLF) { - return json.replace(/\n/g, CRLF) + CRLF - } - - return json + LF -} diff --git a/node_modules/stringify-package/package.json b/node_modules/stringify-package/package.json deleted file mode 100644 index c0e5622b47562..0000000000000 --- a/node_modules/stringify-package/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "stringify-package", - "version": "1.0.1", - "description": "stringifies npm-written json files", - "main": "index.js", - "files": [ - "index.js" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/npm/stringify-package.git" - }, - "keywords": [ - "npm", - "json", - "stringify", - "package.json" - ], - "author": "Kat Marchán ", - "license": "ISC", - "bugs": { - "url": "https://github.com/npm/stringify-package/issues" - }, - "homepage": "https://github.com/npm/stringify-package", - "scripts": { - "prerelease": "npm t", - "release": "standard-version -s", - "postrelease": "npm publish", - "postpublish": "git push --follow-tags", - "pretest": "standard", - "test": "tap -J --coverage --100 test/*.js" - }, - "devDependencies": { - "standard": "11", - "standard-version": "4", - "tap": "12" - } -} diff --git a/package-lock.json b/package-lock.json index 341037cc39065..9222c5f4ebd5c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6712,10 +6712,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/stringify-package": { - "version": "1.0.1", - "license": "ISC" - }, "node_modules/strip-ansi": { "version": "6.0.1", "inBundle": true, @@ -9997,8 +9993,7 @@ "@npmcli/run-script": "^3.0.0", "json-parse-even-better-errors": "^2.3.1", "proc-log": "^2.0.0", - "semver": "^7.3.5", - "stringify-package": "^1.0.1" + "semver": "^7.3.5" }, "devDependencies": { "@npmcli/eslint-config": "^3.0.1", @@ -12928,7 +12923,6 @@ "proc-log": "^2.0.0", "require-inject": "^1.4.4", "semver": "^7.3.5", - "stringify-package": "^1.0.1", "tap": "^16.0.1" } }, @@ -14379,9 +14373,6 @@ "define-properties": "^1.1.3" } }, - "stringify-package": { - "version": "1.0.1" - }, "strip-ansi": { "version": "6.0.1", "requires": { diff --git a/workspaces/libnpmversion/package.json b/workspaces/libnpmversion/package.json index f39a84cbf1a17..f75d73c3ee6f3 100644 --- a/workspaces/libnpmversion/package.json +++ b/workspaces/libnpmversion/package.json @@ -40,8 +40,7 @@ "@npmcli/run-script": "^3.0.0", "json-parse-even-better-errors": "^2.3.1", "proc-log": "^2.0.0", - "semver": "^7.3.5", - "stringify-package": "^1.0.1" + "semver": "^7.3.5" }, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16.0.0"