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-beta.1

4

CHANGELOG.md
# CHANGELOG
## 2.1.18
- Fix patching issue.
## 2.1.17

@@ -4,0 +8,0 @@

5

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

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