Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vc/support nodejs 10 #56

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/esbuild/main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/esbuild/main.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/tsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ssv-keys": "./dist/tsc/src/cli.js"
},
"engines": {
"node": ">=12"
"node": ">=10"
},
"scripts": {
"dev:cli": "ts-node src/cli.ts",
Expand Down Expand Up @@ -78,6 +78,7 @@
"btoa": "^1.2.1",
"class-validator": "^0.13.2",
"colors": "^1.4.0",
"core-js": "^3.32.2",
"crypto": "^1.0.1",
"eth2-keystore-js": "^1.0.8",
"ethereumjs-util": "^7.1.5",
Expand All @@ -91,12 +92,13 @@
"moment": "^2.29.3",
"node-jsencrypt": "^1.0.0",
"prompts": "https://github.com/meshin-blox/prompts.git",
"regenerator-runtime": "^0.14.0",
"scrypt-js": "^3.0.1",
"semver": "^7.5.1",
"stream": "^0.0.2",
"underscore": "^1.13.4",
"web3": "1.7.3",
"yargs": "^17.5.1"
"web3": "1.5.2",
"yargs": "^16.2.0"
},
"licenses": [
{
Expand Down
3 changes: 2 additions & 1 deletion dist/tsc/src/cli.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env node
export {};
import 'core-js/stable';
import 'regenerator-runtime/runtime';
2 changes: 2 additions & 0 deletions dist/tsc/src/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tsc/src/cli.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tsc/src/lib/JSEncrypt/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tsc/src/lib/JSEncrypt/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ssv-keys": "./dist/tsc/src/cli.js"
},
"engines": {
"node": ">=12"
"node": ">=10"
},
"scripts": {
"dev:cli": "ts-node src/cli.ts",
Expand Down Expand Up @@ -78,6 +78,7 @@
"btoa": "^1.2.1",
"class-validator": "^0.13.2",
"colors": "^1.4.0",
"core-js": "^3.32.2",
"crypto": "^1.0.1",
"eth2-keystore-js": "^1.0.8",
"ethereumjs-util": "^7.1.5",
Expand All @@ -91,12 +92,13 @@
"moment": "^2.29.3",
"node-jsencrypt": "^1.0.0",
"prompts": "https://github.com/meshin-blox/prompts.git",
"regenerator-runtime": "^0.14.0",
"scrypt-js": "^3.0.1",
"semver": "^7.5.1",
"stream": "^0.0.2",
"underscore": "^1.13.4",
"web3": "1.7.3",
"yargs": "^17.5.1"
"web3": "1.5.2",
"yargs": "^16.2.0"
},
"licenses": [
{
Expand Down
3 changes: 3 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env node
'use strict';
import 'core-js/stable';
import 'regenerator-runtime/runtime';

import main from './cli-shared';

void main(false);
2 changes: 1 addition & 1 deletion src/lib/JSEncrypt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let index: any;

try {
window.crypto;
index = require('jsencrypt').JSEncrypt;
index = require('jsencrypt').JSEncrypt || require('jsencrypt');
} catch {
index = require('./jsencrypt.bundle');
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.paths.json",
"compilerOptions": {
"target": "es6",
"target": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
Expand Down
Loading
Loading