From 2104334bd76dc878fff78c1a3fa89804eece8975 Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Mon, 20 Jun 2022 21:42:02 -0400 Subject: [PATCH 1/6] demos: update lnc-web depdency to v0.0.1-alpha.rc2 --- demos/connect-demo/package-lock.json | 133 +++------------------------ demos/connect-demo/package.json | 2 +- demos/kitchen-sink/package-lock.json | 133 +++------------------------ demos/kitchen-sink/package.json | 2 +- 4 files changed, 24 insertions(+), 246 deletions(-) diff --git a/demos/connect-demo/package-lock.json b/demos/connect-demo/package-lock.json index 6eabb37..222cffd 100644 --- a/demos/connect-demo/package-lock.json +++ b/demos/connect-demo/package-lock.json @@ -8,7 +8,7 @@ "name": "connect-demo", "version": "0.1.0", "dependencies": { - "@lightninglabs/lnc-web": "^0.0.1-alpha.rc1", + "@lightninglabs/lnc-web": "^0.0.1-alpha.rc2", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.3.0", "@testing-library/user-event": "^13.5.0", @@ -2180,17 +2180,6 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" }, - "node_modules/@improbable-eng/grpc-web": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@improbable-eng/grpc-web/-/grpc-web-0.15.0.tgz", - "integrity": "sha512-ERft9/0/8CmYalqOVnJnpdDry28q+j+nAlFFARdjyxXDJ+Mhgv9+F600QC8BR9ygOfrXRlAk6CvST2j+JCpQPg==", - "dependencies": { - "browser-headers": "^0.4.1" - }, - "peerDependencies": { - "google-protobuf": "^3.14.0" - } - }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -2924,31 +2913,12 @@ "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" }, "node_modules/@lightninglabs/lnc-web": { - "version": "0.0.1-alpha.rc1", - "resolved": "https://registry.npmjs.org/@lightninglabs/lnc-web/-/lnc-web-0.0.1-alpha.rc1.tgz", - "integrity": "sha512-QWQRYp+DideNpbOsi3fbMdjKqXa11Jl7EW9oCJSrJ87x6Ghptec9hCspc/xtJOTdtvoyh7I3CVvkx+pxa4KjyQ==", - "dependencies": { - "@improbable-eng/grpc-web": "0.15.0", - "@types/big.js": "6.1.2", - "@types/google-protobuf": "3.15.5", - "big.js": "6.1.1", + "version": "0.0.1-alpha.rc2", + "resolved": "https://registry.npmjs.org/@lightninglabs/lnc-web/-/lnc-web-0.0.1-alpha.rc2.tgz", + "integrity": "sha512-S6+ivjvOo62UcTB/82yTWCvwmufKVez8KHKJUaawCMhDDT5P9dNWkQmSzbTJ3kF9EMqxO7ZsH01iEEgTj0MfIQ==", + "dependencies": { "crypto-js": "4.1.1", - "google-protobuf": "3.19.4", - "lodash": "4.17.21", - "node-polyfill-webpack-plugin": "1.1.4", - "ts-protoc-gen": "0.15.0" - } - }, - "node_modules/@lightninglabs/lnc-web/node_modules/big.js": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-6.1.1.tgz", - "integrity": "sha512-1vObw81a8ylZO5ePrtMay0n018TcftpTA5HFKDaSuiUDBo8biRBtjIobw60OpwuvrGk+FsxKamqN4cnmj/eXdg==", - "engines": { - "node": "*" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/bigjs" + "node-polyfill-webpack-plugin": "1.1.4" } }, "node_modules/@nodelib/fs.scandir": { @@ -3671,11 +3641,6 @@ "@babel/types": "^7.3.0" } }, - "node_modules/@types/big.js": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@types/big.js/-/big.js-6.1.2.tgz", - "integrity": "sha512-h24JIZ52rvSvi2jkpYDk2yLH99VzZoCJiSfDWwjst7TwJVuXN61XVCUlPCzRl7mxKEMsGf8z42Q+J4TZwU3z2w==" - }, "node_modules/@types/body-parser": { "version": "1.19.2", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", @@ -3754,11 +3719,6 @@ "@types/range-parser": "*" } }, - "node_modules/@types/google-protobuf": { - "version": "3.15.5", - "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.5.tgz", - "integrity": "sha512-6bgv24B+A2bo9AfzReeg5StdiijKzwwnRflA8RLd1V4Yv995LeTmo0z69/MPbBDFSiZWdZHQygLo/ccXhMEDgw==" - }, "node_modules/@types/graceful-fs": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", @@ -5263,11 +5223,6 @@ "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" }, - "node_modules/browser-headers": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/browser-headers/-/browser-headers-0.4.1.tgz", - "integrity": "sha512-CA9hsySZVo9371qEHjHZtYxV2cFtVj5Wj/ZHi8ooEsrtm4vOnl9Y9HmyYWk9q+05d7K3rdoAE0j3MVEFVvtQtg==" - }, "node_modules/browser-process-hrtime": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", @@ -8593,11 +8548,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/google-protobuf": { - "version": "3.19.4", - "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.19.4.tgz", - "integrity": "sha512-OIPNCxsG2lkIvf+P5FNfJ/Km95CsXOBecS9ZcAU6m2Rq3svc0Apl9nB3GMDNKfQ9asNv4KjyAqGwPQFrVle3Yg==" - }, "node_modules/graceful-fs": { "version": "4.2.10", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", @@ -16206,17 +16156,6 @@ "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==" }, - "node_modules/ts-protoc-gen": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.15.0.tgz", - "integrity": "sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g==", - "dependencies": { - "google-protobuf": "^3.15.5" - }, - "bin": { - "protoc-gen-ts": "bin/protoc-gen-ts" - } - }, "node_modules/tsconfig-paths": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", @@ -18904,14 +18843,6 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" }, - "@improbable-eng/grpc-web": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@improbable-eng/grpc-web/-/grpc-web-0.15.0.tgz", - "integrity": "sha512-ERft9/0/8CmYalqOVnJnpdDry28q+j+nAlFFARdjyxXDJ+Mhgv9+F600QC8BR9ygOfrXRlAk6CvST2j+JCpQPg==", - "requires": { - "browser-headers": "^0.4.1" - } - }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -19459,26 +19390,12 @@ "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" }, "@lightninglabs/lnc-web": { - "version": "0.0.1-alpha.rc1", - "resolved": "https://registry.npmjs.org/@lightninglabs/lnc-web/-/lnc-web-0.0.1-alpha.rc1.tgz", - "integrity": "sha512-QWQRYp+DideNpbOsi3fbMdjKqXa11Jl7EW9oCJSrJ87x6Ghptec9hCspc/xtJOTdtvoyh7I3CVvkx+pxa4KjyQ==", - "requires": { - "@improbable-eng/grpc-web": "0.15.0", - "@types/big.js": "6.1.2", - "@types/google-protobuf": "3.15.5", - "big.js": "6.1.1", + "version": "0.0.1-alpha.rc2", + "resolved": "https://registry.npmjs.org/@lightninglabs/lnc-web/-/lnc-web-0.0.1-alpha.rc2.tgz", + "integrity": "sha512-S6+ivjvOo62UcTB/82yTWCvwmufKVez8KHKJUaawCMhDDT5P9dNWkQmSzbTJ3kF9EMqxO7ZsH01iEEgTj0MfIQ==", + "requires": { "crypto-js": "4.1.1", - "google-protobuf": "3.19.4", - "lodash": "4.17.21", - "node-polyfill-webpack-plugin": "1.1.4", - "ts-protoc-gen": "0.15.0" - }, - "dependencies": { - "big.js": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-6.1.1.tgz", - "integrity": "sha512-1vObw81a8ylZO5ePrtMay0n018TcftpTA5HFKDaSuiUDBo8biRBtjIobw60OpwuvrGk+FsxKamqN4cnmj/eXdg==" - } + "node-polyfill-webpack-plugin": "1.1.4" } }, "@nodelib/fs.scandir": { @@ -19952,11 +19869,6 @@ "@babel/types": "^7.3.0" } }, - "@types/big.js": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@types/big.js/-/big.js-6.1.2.tgz", - "integrity": "sha512-h24JIZ52rvSvi2jkpYDk2yLH99VzZoCJiSfDWwjst7TwJVuXN61XVCUlPCzRl7mxKEMsGf8z42Q+J4TZwU3z2w==" - }, "@types/body-parser": { "version": "1.19.2", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", @@ -20035,11 +19947,6 @@ "@types/range-parser": "*" } }, - "@types/google-protobuf": { - "version": "3.15.5", - "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.5.tgz", - "integrity": "sha512-6bgv24B+A2bo9AfzReeg5StdiijKzwwnRflA8RLd1V4Yv995LeTmo0z69/MPbBDFSiZWdZHQygLo/ccXhMEDgw==" - }, "@types/graceful-fs": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", @@ -21197,11 +21104,6 @@ "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" }, - "browser-headers": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/browser-headers/-/browser-headers-0.4.1.tgz", - "integrity": "sha512-CA9hsySZVo9371qEHjHZtYxV2cFtVj5Wj/ZHi8ooEsrtm4vOnl9Y9HmyYWk9q+05d7K3rdoAE0j3MVEFVvtQtg==" - }, "browser-process-hrtime": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", @@ -23647,11 +23549,6 @@ "slash": "^3.0.0" } }, - "google-protobuf": { - "version": "3.19.4", - "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.19.4.tgz", - "integrity": "sha512-OIPNCxsG2lkIvf+P5FNfJ/Km95CsXOBecS9ZcAU6m2Rq3svc0Apl9nB3GMDNKfQ9asNv4KjyAqGwPQFrVle3Yg==" - }, "graceful-fs": { "version": "4.2.10", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", @@ -29040,14 +28937,6 @@ "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==" }, - "ts-protoc-gen": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.15.0.tgz", - "integrity": "sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g==", - "requires": { - "google-protobuf": "^3.15.5" - } - }, "tsconfig-paths": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", diff --git a/demos/connect-demo/package.json b/demos/connect-demo/package.json index 44c82c4..8bafe3d 100644 --- a/demos/connect-demo/package.json +++ b/demos/connect-demo/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@lightninglabs/lnc-web": "^0.0.1-alpha.rc1", + "@lightninglabs/lnc-web": "^0.0.1-alpha.rc2", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.3.0", "@testing-library/user-event": "^13.5.0", diff --git a/demos/kitchen-sink/package-lock.json b/demos/kitchen-sink/package-lock.json index 2f15993..e25fccd 100644 --- a/demos/kitchen-sink/package-lock.json +++ b/demos/kitchen-sink/package-lock.json @@ -8,7 +8,7 @@ "name": "kitchen-sink", "version": "0.0.1", "dependencies": { - "@lightninglabs/lnc-web": "^0.0.1-alpha.rc1", + "@lightninglabs/lnc-web": "^0.0.1-alpha.rc2", "@testing-library/jest-dom": "5.16.2", "@testing-library/react": "12.1.3", "@testing-library/user-event": "13.5.0", @@ -2057,17 +2057,6 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" }, - "node_modules/@improbable-eng/grpc-web": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@improbable-eng/grpc-web/-/grpc-web-0.15.0.tgz", - "integrity": "sha512-ERft9/0/8CmYalqOVnJnpdDry28q+j+nAlFFARdjyxXDJ+Mhgv9+F600QC8BR9ygOfrXRlAk6CvST2j+JCpQPg==", - "dependencies": { - "browser-headers": "^0.4.1" - }, - "peerDependencies": { - "google-protobuf": "^3.14.0" - } - }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -2743,31 +2732,12 @@ } }, "node_modules/@lightninglabs/lnc-web": { - "version": "0.0.1-alpha.rc1", - "resolved": "https://registry.npmjs.org/@lightninglabs/lnc-web/-/lnc-web-0.0.1-alpha.rc1.tgz", - "integrity": "sha512-QWQRYp+DideNpbOsi3fbMdjKqXa11Jl7EW9oCJSrJ87x6Ghptec9hCspc/xtJOTdtvoyh7I3CVvkx+pxa4KjyQ==", - "dependencies": { - "@improbable-eng/grpc-web": "0.15.0", - "@types/big.js": "6.1.2", - "@types/google-protobuf": "3.15.5", - "big.js": "6.1.1", + "version": "0.0.1-alpha.rc2", + "resolved": "https://registry.npmjs.org/@lightninglabs/lnc-web/-/lnc-web-0.0.1-alpha.rc2.tgz", + "integrity": "sha512-S6+ivjvOo62UcTB/82yTWCvwmufKVez8KHKJUaawCMhDDT5P9dNWkQmSzbTJ3kF9EMqxO7ZsH01iEEgTj0MfIQ==", + "dependencies": { "crypto-js": "4.1.1", - "google-protobuf": "3.19.4", - "lodash": "4.17.21", - "node-polyfill-webpack-plugin": "1.1.4", - "ts-protoc-gen": "0.15.0" - } - }, - "node_modules/@lightninglabs/lnc-web/node_modules/big.js": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-6.1.1.tgz", - "integrity": "sha512-1vObw81a8ylZO5ePrtMay0n018TcftpTA5HFKDaSuiUDBo8biRBtjIobw60OpwuvrGk+FsxKamqN4cnmj/eXdg==", - "engines": { - "node": "*" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/bigjs" + "node-polyfill-webpack-plugin": "1.1.4" } }, "node_modules/@nodelib/fs.scandir": { @@ -3442,11 +3412,6 @@ "@babel/types": "^7.3.0" } }, - "node_modules/@types/big.js": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@types/big.js/-/big.js-6.1.2.tgz", - "integrity": "sha512-h24JIZ52rvSvi2jkpYDk2yLH99VzZoCJiSfDWwjst7TwJVuXN61XVCUlPCzRl7mxKEMsGf8z42Q+J4TZwU3z2w==" - }, "node_modules/@types/body-parser": { "version": "1.19.2", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", @@ -3525,11 +3490,6 @@ "@types/range-parser": "*" } }, - "node_modules/@types/google-protobuf": { - "version": "3.15.5", - "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.5.tgz", - "integrity": "sha512-6bgv24B+A2bo9AfzReeg5StdiijKzwwnRflA8RLd1V4Yv995LeTmo0z69/MPbBDFSiZWdZHQygLo/ccXhMEDgw==" - }, "node_modules/@types/graceful-fs": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", @@ -5020,11 +4980,6 @@ "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" }, - "node_modules/browser-headers": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/browser-headers/-/browser-headers-0.4.1.tgz", - "integrity": "sha512-CA9hsySZVo9371qEHjHZtYxV2cFtVj5Wj/ZHi8ooEsrtm4vOnl9Y9HmyYWk9q+05d7K3rdoAE0j3MVEFVvtQtg==" - }, "node_modules/browser-process-hrtime": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", @@ -8334,11 +8289,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/google-protobuf": { - "version": "3.19.4", - "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.19.4.tgz", - "integrity": "sha512-OIPNCxsG2lkIvf+P5FNfJ/Km95CsXOBecS9ZcAU6m2Rq3svc0Apl9nB3GMDNKfQ9asNv4KjyAqGwPQFrVle3Yg==" - }, "node_modules/graceful-fs": { "version": "4.2.9", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", @@ -15628,17 +15578,6 @@ "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==" }, - "node_modules/ts-protoc-gen": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.15.0.tgz", - "integrity": "sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g==", - "dependencies": { - "google-protobuf": "^3.15.5" - }, - "bin": { - "protoc-gen-ts": "bin/protoc-gen-ts" - } - }, "node_modules/tsconfig-paths": { "version": "3.12.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.12.0.tgz", @@ -18295,14 +18234,6 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" }, - "@improbable-eng/grpc-web": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@improbable-eng/grpc-web/-/grpc-web-0.15.0.tgz", - "integrity": "sha512-ERft9/0/8CmYalqOVnJnpdDry28q+j+nAlFFARdjyxXDJ+Mhgv9+F600QC8BR9ygOfrXRlAk6CvST2j+JCpQPg==", - "requires": { - "browser-headers": "^0.4.1" - } - }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -18802,26 +18733,12 @@ } }, "@lightninglabs/lnc-web": { - "version": "0.0.1-alpha.rc1", - "resolved": "https://registry.npmjs.org/@lightninglabs/lnc-web/-/lnc-web-0.0.1-alpha.rc1.tgz", - "integrity": "sha512-QWQRYp+DideNpbOsi3fbMdjKqXa11Jl7EW9oCJSrJ87x6Ghptec9hCspc/xtJOTdtvoyh7I3CVvkx+pxa4KjyQ==", - "requires": { - "@improbable-eng/grpc-web": "0.15.0", - "@types/big.js": "6.1.2", - "@types/google-protobuf": "3.15.5", - "big.js": "6.1.1", + "version": "0.0.1-alpha.rc2", + "resolved": "https://registry.npmjs.org/@lightninglabs/lnc-web/-/lnc-web-0.0.1-alpha.rc2.tgz", + "integrity": "sha512-S6+ivjvOo62UcTB/82yTWCvwmufKVez8KHKJUaawCMhDDT5P9dNWkQmSzbTJ3kF9EMqxO7ZsH01iEEgTj0MfIQ==", + "requires": { "crypto-js": "4.1.1", - "google-protobuf": "3.19.4", - "lodash": "4.17.21", - "node-polyfill-webpack-plugin": "1.1.4", - "ts-protoc-gen": "0.15.0" - }, - "dependencies": { - "big.js": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-6.1.1.tgz", - "integrity": "sha512-1vObw81a8ylZO5ePrtMay0n018TcftpTA5HFKDaSuiUDBo8biRBtjIobw60OpwuvrGk+FsxKamqN4cnmj/eXdg==" - } + "node-polyfill-webpack-plugin": "1.1.4" } }, "@nodelib/fs.scandir": { @@ -19260,11 +19177,6 @@ "@babel/types": "^7.3.0" } }, - "@types/big.js": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@types/big.js/-/big.js-6.1.2.tgz", - "integrity": "sha512-h24JIZ52rvSvi2jkpYDk2yLH99VzZoCJiSfDWwjst7TwJVuXN61XVCUlPCzRl7mxKEMsGf8z42Q+J4TZwU3z2w==" - }, "@types/body-parser": { "version": "1.19.2", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", @@ -19343,11 +19255,6 @@ "@types/range-parser": "*" } }, - "@types/google-protobuf": { - "version": "3.15.5", - "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.5.tgz", - "integrity": "sha512-6bgv24B+A2bo9AfzReeg5StdiijKzwwnRflA8RLd1V4Yv995LeTmo0z69/MPbBDFSiZWdZHQygLo/ccXhMEDgw==" - }, "@types/graceful-fs": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", @@ -20502,11 +20409,6 @@ "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" }, - "browser-headers": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/browser-headers/-/browser-headers-0.4.1.tgz", - "integrity": "sha512-CA9hsySZVo9371qEHjHZtYxV2cFtVj5Wj/ZHi8ooEsrtm4vOnl9Y9HmyYWk9q+05d7K3rdoAE0j3MVEFVvtQtg==" - }, "browser-process-hrtime": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", @@ -22950,11 +22852,6 @@ "slash": "^3.0.0" } }, - "google-protobuf": { - "version": "3.19.4", - "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.19.4.tgz", - "integrity": "sha512-OIPNCxsG2lkIvf+P5FNfJ/Km95CsXOBecS9ZcAU6m2Rq3svc0Apl9nB3GMDNKfQ9asNv4KjyAqGwPQFrVle3Yg==" - }, "graceful-fs": { "version": "4.2.9", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", @@ -28140,14 +28037,6 @@ "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==" }, - "ts-protoc-gen": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.15.0.tgz", - "integrity": "sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g==", - "requires": { - "google-protobuf": "^3.15.5" - } - }, "tsconfig-paths": { "version": "3.12.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.12.0.tgz", diff --git a/demos/kitchen-sink/package.json b/demos/kitchen-sink/package.json index aa75c70..764fc3a 100644 --- a/demos/kitchen-sink/package.json +++ b/demos/kitchen-sink/package.json @@ -3,7 +3,7 @@ "version": "0.0.1", "private": true, "dependencies": { - "@lightninglabs/lnc-web": "^0.0.1-alpha.rc1", + "@lightninglabs/lnc-web": "^0.0.1-alpha.rc2", "@testing-library/jest-dom": "5.16.2", "@testing-library/react": "12.1.3", "@testing-library/user-event": "13.5.0", From a29bd5e873682eac2c010caaf8fd0cc2e7e37d01 Mon Sep 17 00:00:00 2001 From: jamaljsr <1356600+jamaljsr@users.noreply.github.com> Date: Wed, 22 Jun 2022 17:29:43 -0400 Subject: [PATCH 2/6] lnc: fix error when calling connect after run --- lib/lnc.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/lnc.ts b/lib/lnc.ts index 87c78a4..5d6928e 100644 --- a/lib/lnc.ts +++ b/lib/lnc.ts @@ -138,10 +138,11 @@ export default class LNC { // do not attempt to connect multiple times if (this.isConnected) return; - await this.run(); - // ensure the WASM binary is loaded - if (!this.isReady) await this.waitTilReady(); + if (!this.isReady) { + await this.run(); + await this.waitTilReady(); + } const { pairingPhrase, localKey, remoteKey, serverHost } = this.credentials; From 05c71cfdff205f44b38a5e534c1b323e1e8c8767 Mon Sep 17 00:00:00 2001 From: jamaljsr <1356600+jamaljsr@users.noreply.github.com> Date: Wed, 22 Jun 2022 17:33:06 -0400 Subject: [PATCH 3/6] demo: add Run button ot the kitchen-sink demo --- demos/kitchen-sink/src/App.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demos/kitchen-sink/src/App.js b/demos/kitchen-sink/src/App.js index d934f43..59c9924 100644 --- a/demos/kitchen-sink/src/App.js +++ b/demos/kitchen-sink/src/App.js @@ -12,6 +12,7 @@ function App() { const isConnected = () => console.log(lnc.isConnected); const isReady = () => console.log(lnc.isReady); const load = () => lnc.preload(); + const run = () => lnc.run(); const connect = () => lnc.connect(); const disconnect = () => lnc.disconnect(); @@ -85,6 +86,7 @@ function App() { +

LND

From e9508aaeb8b45a7c9b7f2fe429831a86b42814dd Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Fri, 24 Jun 2022 11:56:31 -0400 Subject: [PATCH 4/6] Bump CDN instance of LNC wasm client to v0.1.11-alpha --- lib/lnc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lnc.ts b/lib/lnc.ts index 87c78a4..2d7d9b5 100644 --- a/lib/lnc.ts +++ b/lib/lnc.ts @@ -6,7 +6,7 @@ import { snakeKeysToCamel } from './util/objects'; /** The default values for the LncConfig options */ const DEFAULT_CONFIG = { - wasmClientCode: 'https://lightning.engineering/lnc-v0.1.10-alpha.wasm', + wasmClientCode: 'https://lightning.engineering/lnc-v0.1.11-alpha.wasm', namespace: 'default', serverHost: 'mailbox.terminal.lightning.today:443' } as Required; From ffbe584a810c684de1c93d13a9d013c6a35a8d32 Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Fri, 24 Jun 2022 11:59:51 -0400 Subject: [PATCH 5/6] Version bump: v0.1.11-alpha (sync with lightning-node-connect) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 52fbf73..683196a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lightninglabs/lnc-web", - "version": "0.0.1-alpha.rc2", + "version": "0.1.11-alpha", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lightninglabs/lnc-web", - "version": "0.0.1-alpha.rc2", + "version": "0.1.11-alpha", "license": "MIT", "dependencies": { "crypto-js": "4.1.1", diff --git a/package.json b/package.json index 2b9603e..eb2638d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lightninglabs/lnc-web", - "version": "0.0.1-alpha.rc2", + "version": "0.1.11-alpha", "description": "Lightning Node Connect npm module for web", "main": "./dist/index.js", "types": "./dist/index.d.ts", From a8e46f5478f4a21124023a576456d87964b1370a Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Fri, 24 Jun 2022 15:34:58 -0400 Subject: [PATCH 6/6] lnc-web: expose wasmClientGetExpiry(), wasmClientHasPerms(), wasmClientIsReadOnly(), and wasmClientStatus() --- lib/lnc.ts | 32 ++++++++++++++++++++++++++++++++ lib/types/lnc.ts | 17 +++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/lib/lnc.ts b/lib/lnc.ts index 2d7d9b5..f153b70 100644 --- a/lib/lnc.ts +++ b/lib/lnc.ts @@ -78,6 +78,38 @@ export default class LNC { ); } + get status() { + return ( + this.wasm && + this.wasm.wasmClientStatus && + this.wasm.wasmClientStatus() + ); + } + + get expiry(): Date { + return ( + this.wasm && + this.wasm.wasmClientGetExpiry && + new Date(this.wasm.wasmClientGetExpiry() * 1000) + ); + } + + get isReadOnly() { + return ( + this.wasm && + this.wasm.wasmClientIsReadOnly && + this.wasm.wasmClientIsReadOnly() + ); + } + + hasPerms(permission: string) { + return ( + this.wasm && + this.wasm.wasmClientHasPerms && + this.wasm.wasmClientHasPerms(permission) + ); + } + /** * Downloads the WASM client binary */ diff --git a/lib/types/lnc.ts b/lib/types/lnc.ts index bd6df10..bd7ea90 100644 --- a/lib/types/lnc.ts +++ b/lib/types/lnc.ts @@ -31,6 +31,23 @@ export interface WasmGlobal { request: any, callback: (response: string) => any ) => void; + /** + * Returns true if client has specific permissions + * e.g. 'lnrpc.Lightning.GetInfo' + */ + wasmClientHasPerms: (permission: string) => boolean; + /** + * Returns true if the WASM client is read only + */ + wasmClientIsReadOnly: () => boolean; + /** + * Returns the WASM client status + */ + wasmClientStatus: () => string; + /** + * Returns the WASM client expiry time + */ + wasmClientGetExpiry: () => number; } export interface LncConfig {