scryptlib
Advanced tools
Comparing version 2.1.17 to 2.1.18-test
{ | ||
"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`); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
981038
23776
10
1
+ Addedfind-node-modules@^2.1.3
+ Addeddetect-file@1.0.0(transitive)
+ Addedexpand-tilde@2.0.2(transitive)
+ Addedfind-node-modules@2.1.3(transitive)
+ Addedfindup-sync@4.0.0(transitive)
+ Addedglobal-modules@1.0.0(transitive)
+ Addedglobal-prefix@1.0.2(transitive)
+ Addedhomedir-polyfill@1.0.3(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-windows@1.0.2(transitive)
+ Addedmerge@2.1.1(transitive)
+ Addedparse-passwd@1.0.0(transitive)
+ Addedresolve-dir@1.0.1(transitive)