Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "stayte", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "The persistent state library for the modern web", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -74,2 +74,3 @@ const fs = require('fs') | ||
// No need to patch | ||
// or the package is already patched | ||
if (!currentPackageJson) { | ||
@@ -82,6 +83,18 @@ continue | ||
if (currentPackageJson?.dependencies?.[packageName] !== patchVersion) { | ||
missingPatches[packageName] = currentPackageJson.dependencies[packageName] | ||
const currentVersion = currentPackageJson.dependencies[packageName] | ||
const patchedKey = packageName + '@' + currentVersion | ||
// If the package is already patched, we don't need to patch it again | ||
// even if there an other patch for an other version | ||
// so skip missing patches phase | ||
if (patchedDependencies[patchedKey]) { | ||
continue | ||
} | ||
missingPatches[packageName] = currentVersion | ||
continue | ||
} | ||
// If there is a patch for this package, reset the missing patch object | ||
@@ -88,0 +101,0 @@ delete missingPatches[packageName] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36589
408