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.0.0-4 to 6.0.0-5

24

CHANGELOG.md
# Changelog
## 6.0.0-5
- Fix preventing scripts from running when making patch file
## 6.0.0-4
- Don't delete package.json during patch creation
## 6.0.0-3
- Bugfixes for patch application
- Prevent scripts from running when making patch file
## 6.0.0-2
- Bugfixes for patch application
## 6.0.0-1
- Bugfixes for patch application
## 6.0.0-0
- Reimplement most of patch application in TypeScript
## 5.1.1

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

4

dist/makePatch.js

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

// also delete scripts
fs.writeFileSync(tmpRepoPackageJsonPath, JSON.stringify(deleteScripts(resolveRelativeFileDependencies_1.resolveRelativeFileDependenciesInPackageJson(appPath, require(tmpRepoPackageJsonPath)))));
fs.writeFileSync(tmpRepoPackageJsonPath, JSON.stringify(deleteScripts(resolveRelativeFileDependencies_1.resolveRelativeFileDependenciesInPackageJson(appPath, require(path.join(tmpRepo.name, "package.json"))))));
if (packageManager === "yarn") {

@@ -127,2 +127,2 @@ fsExtra.copySync(path.join(appPath, "yarn.lock"), path.join(tmpRepo.name, "yarn.lock"));

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

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

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