scryptlib
Advanced tools
Comparing version 2.1.17 to 2.1.18-beta.1
# CHANGELOG | ||
## 2.1.18 | ||
- Fix patching issue. | ||
## 2.1.17 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "scryptlib", | ||
"version": "2.1.17", | ||
"version": "2.1.18-beta.1", | ||
"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", | ||
@@ -78,2 +79,2 @@ "node-fetch": "^3.0.0", | ||
} | ||
} | ||
} |
const { execSync } = require("child_process"); | ||
const { exit } = require("process"); | ||
const { join } = require("path"); | ||
const { copyFileSync, existsSync } = require("fs"); | ||
const { copyFileSync } = require("fs"); | ||
const chalk = require("chalk"); | ||
var glob = require('glob'); | ||
const glob = require('glob'); | ||
const findNodeModules = require('find-node-modules'); | ||
function isDev() { | ||
const cwd = process.cwd(); | ||
if (cwd.indexOf("node_modules") > -1) { | ||
return false; | ||
function apply(patches) { | ||
const targets = findNodeModules({ relative: false }) | ||
if (targets.length < 1) { | ||
throw new Error('No node modules found.'); | ||
} | ||
return true; | ||
} | ||
const _isDev = isDev(); | ||
function apply(patches) { | ||
patches.map(patch => { | ||
const dest = _isDev ? join(__dirname, '..', 'node_modules', patch) : join(__dirname, '..', '..', patch); | ||
if (!existsSync(dest)) { | ||
new Error(`apply patch ${patch} fail, dest file ${dest} not exist`); | ||
} | ||
const src = join(__dirname, patch); | ||
if (!existsSync(src)) { | ||
new Error(`apply patch ${patch} fail, src file ${src} not exist`); | ||
} | ||
copyFileSync(src, dest); | ||
targets.forEach(target => { | ||
try { | ||
const dest = join(target, patch); | ||
const src = join(__dirname, patch); | ||
copyFileSync(src, dest); | ||
} catch (error) { | ||
} | ||
}) | ||
}) | ||
@@ -33,0 +25,0 @@ } |
@@ -664,3 +664,5 @@ /* eslint-disable @typescript-eslint/ban-types */ | ||
One: BN; | ||
static Zero: BN; | ||
static One: BN; | ||
static Minus1: BN; | ||
@@ -680,2 +682,3 @@ clone(): BN; | ||
isZero(): boolean; | ||
isBN(): boolean; | ||
cmp(b: any): number; | ||
@@ -724,3 +727,2 @@ lt(b: any): boolean; | ||
static fromNumber(n: number): BN; | ||
//toBuffer(opts?: IOpts): Buffer; | ||
static fromHex(hex: string, opts?: IOpts): BN; | ||
@@ -727,0 +729,0 @@ static fromString(hex: string, base?: number): BN; |
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
5
980704
10
23766
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)