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

scryptlib

Package Overview
Dependencies
Maintainers
4
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scryptlib - npm Package Compare versions

Comparing version 2.1.17 to 2.1.18-test

3

package.json
{
"name": "scryptlib",
"version": "2.1.17",
"version": "2.1.18-test",
"description": "Javascript SDK for integration of Bitcoin SV Smart Contracts written in sCrypt language.",

@@ -70,2 +70,3 @@ "engines": {

"compare-versions": "^3.6.0",
"find-node-modules": "^2.1.3",
"json-bigint": "^1.0.0",

@@ -72,0 +73,0 @@ "node-fetch": "^3.0.0",

@@ -7,3 +7,4 @@

const chalk = require("chalk");
var glob = require('glob');
const glob = require('glob');
const findNodeModules = require('find-node-modules');

@@ -21,6 +22,16 @@ function isDev() {

function apply(patches) {
function apply(patches) {
const paths = findNodeModules({ cwd: '.', relative: false })
if (paths.length < 1) {
throw new Error('No node_modules found.');
}
patches.map(patch => {
const dest = _isDev ? join(__dirname, '..', 'node_modules', patch) : join(__dirname, '..', '..', patch);
const dest = join(paths[0], patch)
console.log('dest', dest)
if (!existsSync(dest)) {

@@ -27,0 +38,0 @@ new Error(`apply patch ${patch} fail, dest file ${dest} not exist`);

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