diff --git a/bin/index.js b/bin/index.js new file mode 100755 index 0000000..bf5613e --- /dev/null +++ b/bin/index.js @@ -0,0 +1,4 @@ +#!/usr/bin/env node + +// eslint-disable-next-line @typescript-eslint/no-require-imports +require('../dist/setup/BitPaySetup'); diff --git a/package-lock.json b/package-lock.json index a0100ba..dd21d96 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bitpay-sdk", - "version": "6.2.2", + "version": "6.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bitpay-sdk", - "version": "6.2.2", + "version": "6.3.0", "license": "MIT", "dependencies": { "bs58": "6.0.0", @@ -14,6 +14,9 @@ "lodash": "4.17.21", "zod": "3.23.8" }, + "bin": { + "bitpay-sdk": "bin/index.js" + }, "devDependencies": { "@types/bs58": "4.0.4", "@types/elliptic": "6.4.18", diff --git a/package.json b/package.json index b827c17..fb06076 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "bitpay-sdk", - "version": "6.2.2", + "version": "6.3.0", "description": "Complete version of the NodeJS library for the new cryptographically secure BitPay API", "engines": { "node": ">=18.0.0 <23.0.0" }, "main": "dist/index", "typings": "dist/index", + "bin": "./bin/index.js", "files": [ "dist/**/*.js", "dist/**/*.d.ts" diff --git a/src/Env.ts b/src/Env.ts index 5cc1023..5477dad 100644 --- a/src/Env.ts +++ b/src/Env.ts @@ -3,7 +3,7 @@ export const Prod = 'PROD'; export const TestUrl = 'https://test.bitpay.com/'; export const ProdUrl = 'https://bitpay.com/'; export const BitpayApiVersion = '2.0.0'; -export const BitpayPluginInfo = 'BitPay_NodeJs_Client_v6.2.2'; +export const BitpayPluginInfo = 'BitPay_NodeJs_Client_v6.3.0'; export const BitpayApiFrame = 'std'; export const BitpayApiFrameVersion = '1.0.0';