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

stayte

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stayte - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"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]

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