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 1.1.0 to 1.1.1

4

dist/applyPatches.js

@@ -42,5 +42,5 @@ "use strict";

console.error("\n" + chalk_1.red.bold("**ERROR**") + " " + chalk_1.red("Failed to apply patch for package " + chalk_1.bold(packageName)) + "\n\n Patch was made for version " + chalk_1.green.bold(version) + "\n Meanwhile node_modules/" + chalk_1.bold(packageName) + " is version " + chalk_1.red.bold(packageJson.version) + "\n\n Run:\n\n " + chalk_1.bold("patch --forward -p1 -i patches/" + filename) + "\n\n To generate rejection files and see just what the heck happened.\n");
process.exit(1);
}
});
process.exit(1);
}

@@ -60,2 +60,2 @@ exports.default = findPatchFiles;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbHlQYXRjaGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2FwcGx5UGF0Y2hlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtCQUFvRDtBQUNwRCwrQ0FBZ0Q7QUFDaEQsdUJBQXdCO0FBQ3hCLDJCQUE0QjtBQUc1Qix3QkFBdUMsT0FBZTtJQUNwRCxJQUFNLGdCQUFnQixHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLFNBQVMsQ0FBQyxDQUFBO0lBQ3RELEVBQUUsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLFVBQVUsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUNyQyxNQUFNLENBQUMsRUFBRSxDQUFBO0lBQ1gsQ0FBQztJQUNELElBQU0sS0FBSyxHQUFHLEVBQUU7U0FDYixXQUFXLENBQUMs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IGdyYWNlZnVsbHkgaWYgcGF0Y2ggd2FzIGFscmVhZHkgYXBwbGllZCxcbiAgICAvLyBzbyB0byBjaGVjaywgd2UgbmVlZCB0byB0cnkgYSBkcnktcnVuIG9mIGFwcGx5aW5nIHRoZSBwYXRjaCBpbiByZXZlcnNlLCBhbmRcbiAgICAvLyBpZiB0aGF0IHdvcmtzIGl0IG1lYW5zIHRoZSBwYXRjaCB3YXMgYWxyZWFkeSBhcHBsaWVkIHN1Y2Vzc2Z1bGx5LiBPdGhlcndpc2VcbiAgICAvLyB0aGUgcGF0Y2gganVzdCBmYWlsZWQgZm9yIHNvbWUgcmVhc29uLlxuICAgIGV4ZWMoXCJwYXRjaCAtLXJldmVyc2UgLS1kcnktcnVuIC1wMSAtaSBcIiArIHBhdGNoRmlsZVBhdGgpXG4gIH1cbn1cbiJdfQ==
{
"name": "patch-package",
"version": "1.1.0",
"version": "1.1.1",
"description": "When forking just won't work, patch it.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

# patch-package 📦👌
### When forking is too much, patch it.
### When forking is too hard, patch it.

@@ -25,3 +25,3 @@ patch-package lets you easily and persistently fix bugs in (or add functionality to) packages in your

Make changes to the files of a particular module in your node_modules folder,
Make changes to the files of a particular package in your node_modules folder,
e.g. react-native. Then run:

@@ -28,0 +28,0 @@

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