Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

patch-package

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

patch-package - npm Package Compare versions

Comparing version 6.5.1 to 7.0.0

dist/coerceSemVer.js

24

CHANGELOG.md
# Changelog
## 7.0.0
### Breaking changes
- Bump `yaml` to fix security issue. Required bumping minimum node version from
8 to 14. (contribution from @mayank99 in #463)
### Other changes
- Bump `cross-spawn` (contribution from @stianjensen in #457)
- Replace `is-ci` with `ci-info` (contribution from @paescuj in #446)
- Make version number parsing more robust (contribution from @MHekert in #361)
## 6.5.1
- Improve error message for missing lockfile entry (contribution from @Andarist in #439)
- Fix creating patches for github dependencies (contribution from @dijonkitchen in #444)
- Improve yarn 2 support by copying .yarn dir when creating patch (contribution from @bdwain in #438)
Special thanks to @orta again for putting this release together.
- Improve error message for missing lockfile entry (contribution from @Andarist
and @farskid in #439)
- Fix creating patches for github dependencies (contribution from @dijonkitchen
in #444)
- Improve yarn 2 support by copying .yarn dir when creating patch (contribution
from @bdwain in #438)
- Upgrade `fs-extra` (contribution from @stianjensen in #441)

@@ -9,0 +27,0 @@ - Add support for nmp lockfile v2 (contribution from @anas10 in #434)

5

dist/getPackageResolution.js

@@ -15,2 +15,3 @@ "use strict";

const getPackageVersion_1 = require("./getPackageVersion");
const coerceSemVer_1 = require("./coerceSemVer");
function getPackageResolution({ packageDetails, packageManager, appPath, }) {

@@ -52,3 +53,3 @@ if (packageManager === "yarn") {

// @ts-ignore
v.version === installedVersion);
coerceSemVer_1.coerceSemVer(v.version) === coerceSemVer_1.coerceSemVer(installedVersion));
const resolutions = entries.map(([_, v]) => {

@@ -118,2 +119,2 @@ // @ts-ignore

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0UGFja2FnZVJlc29sdXRpb24uanMiLCJzb3VyY2VSb290Ijo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lcnJvcihgQ2FuJ3QgZmluZCBwYWNrYWdlICR7cHJvY2Vzcy5hcmd2WzJdfWApXG4gICAgcHJvY2Vzcy5leGl0KDEpXG4gIH1cbiAgY29uc29sZS5sb2coXG4gICAgZ2V0UGFja2FnZVJlc29sdXRpb24oe1xuICAgICAgYXBwUGF0aDogcHJvY2Vzcy5jd2QoKSxcbiAgICAgIHBhY2thZ2VEZXRhaWxzLFxuICAgICAgcGFja2FnZU1hbmFnZXI6IGRldGVjdFBhY2thZ2VNYW5hZ2VyKHByb2Nlc3MuY3dkKCksIG51bGwpLFxuICAgIH0pLFxuICApXG59XG4iXX0=

@@ -17,3 +17,3 @@ "use strict";

const slash = require("slash");
const is_ci_1 = __importDefault(require("is-ci"));
const ci_info_1 = require("ci-info");
const appPath = getAppRootPath_1.getAppRootPath();

@@ -68,5 +68,8 @@ const argv = minimist_1.default(process_1.default.argv.slice(2), {

const reverse = !!argv["reverse"];
// don't want to exit(1) on postinsall locally.
// don't want to exit(1) on postinstall locally.
// see https://github.com/ds300/patch-package/issues/86
const shouldExitWithError = !!argv["error-on-fail"] || is_ci_1.default || process_1.default.env.NODE_ENV === "test";
const shouldExitWithError = !!argv["error-on-fail"] ||
(process_1.default.env.NODE_ENV === "production" && ci_info_1.isCI) ||
(ci_info_1.isCI && !process_1.default.env.PATCH_PACKAGE_INTEGRATION_TEST) ||
process_1.default.env.NODE_ENV === "test";
const shouldExitWithWarning = !!argv["error-on-warn"];

@@ -177,2 +180,2 @@ applyPatches_1.applyPatchesForApp({

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxrREFBeUI7QUFDekIsc0RBQTZCO0FBQzdCLHdEQUErQjtBQUUvQixpREFBbUQ7QUFDbkQscURBQWlEO0FBQ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iKX1cblxuICAgICAgICBPbmx5IGNvbnNpZGVyIHBhdGhzIG1hdGNoaW5nIHRoZSByZWdleHAgd2hlbiBjcmVhdGluZyBwYXRjaCBmaWxlcy5cbiAgICAgICAgUGF0aHMgYXJlIHJlbGF0aXZlIHRvIHRoZSByb290IGRpciBvZiB0aGUgcGFja2FnZSB0byBiZSBwYXRjaGVkLlxuXG4gICAgICAgIERlZmF1bHQgJy4qJ1xuXG4gICAgJHtjaGFsay5ib2xkKFwiLS1jYXNlLXNlbnNpdGl2ZS1wYXRoLWZpbHRlcmluZ1wiKX1cblxuICAgICAgICBNYWtlIHJlZ2V4cHMgdXNlZCBpbiAtLWluY2x1ZGUgb3IgLS1leGNsdWRlIGZpbHRlcnMgY2FzZS1zZW5zaXRpdmUuXG4gICAgXG4gICAgJHtjaGFsay5ib2xkKFwiLS1wYXRjaC1kaXJcIil9XG5cbiAgICAgICAgU3BlY2lmeSB0aGUgbmFtZSBmb3IgdGhlIGRpcmVjdG9yeSBpbiB3aGljaCB0byBwdXQgdGhlIHBhdGNoIGZpbGVzLlxuYClcbn1cbiJdfQ==
{
"name": "patch-package",
"version": "6.5.1",
"version": "7.0.0",
"description": "Fix broken node modules with no fuss",

@@ -10,8 +10,6 @@ "main": "dist/index.js",

"engines": {
"node": ">=10",
"node": ">=14",
"npm": ">5"
},
"bin": {
"patch-package": "./index.js"
},
"bin": "./index.js",
"scripts": {

@@ -57,3 +55,2 @@ "prepublishOnly": "yarn run clean && yarn run build",

"@types/fs-extra": "^9.0.0",
"@types/is-ci": "^1.1.0",
"@types/jest": "^24.0.11",

@@ -79,6 +76,6 @@ "@types/minimist": "^1.2.2",

"chalk": "^4.1.2",
"cross-spawn": "^6.0.5",
"ci-info": "^3.7.0",
"cross-spawn": "^7.0.3",
"find-yarn-workspace-root": "^2.0.0",
"fs-extra": "^9.0.0",
"is-ci": "^2.0.0",
"klaw-sync": "^6.0.0",

@@ -91,3 +88,3 @@ "minimist": "^1.2.6",

"tmp": "^0.0.33",
"yaml": "^1.10.2"
"yaml": "^2.2.2"
},

@@ -101,3 +98,4 @@ "files": [

"README.md"
]
],
"packageManager": "yarn@1.22.19"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc