From 23dd799754bd75df97f76a39bf93a904876b8c4e Mon Sep 17 00:00:00 2001 From: Damian Matuszczak Date: Wed, 27 Nov 2024 12:21:24 +0100 Subject: [PATCH 1/2] SP-1109 Custom npx command to generate token --- bin/index.js | 4 ++++ package.json | 1 + 2 files changed, 5 insertions(+) create mode 100755 bin/index.js 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.json b/package.json index b827c17..edbbf84 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ }, "main": "dist/index", "typings": "dist/index", + "bin": "./bin/index.js", "files": [ "dist/**/*.js", "dist/**/*.d.ts" From f1974f8928a40d5d5b5879eadb7913ad905d093c Mon Sep 17 00:00:00 2001 From: Damian Matuszczak Date: Thu, 28 Nov 2024 11:56:19 +0100 Subject: [PATCH 2/2] SP-1109 Custom npx command to generate token --- package-lock.json | 7 +++++-- package.json | 2 +- src/Env.ts | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) 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 edbbf84..fb06076 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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" 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';