@ledgerhq/hw-transport-node-speculos-http
Advanced tools
Comparing version 6.26.0 to 6.26.1-monorepo.0
{ | ||
"name": "@ledgerhq/hw-transport-node-speculos-http", | ||
"version": "6.26.0", | ||
"version": "6.26.1-monorepo.0", | ||
"description": "Ledger Hardware Wallet communication layer with speculos Nano simulator using the http api", | ||
@@ -31,7 +31,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/errors": "^6.10.0", | ||
"@ledgerhq/hw-transport": "^6.24.1", | ||
"@ledgerhq/logs": "^6.10.0", | ||
"@ledgerhq/errors": "^6.10.1-monorepo.0", | ||
"@ledgerhq/hw-transport": "^6.24.2-monorepo.0", | ||
"@ledgerhq/logs": "^6.10.1-monorepo.0", | ||
"axios": "^0.26.0" | ||
}, | ||
"gitHead": "dd0dea64b58e5a9125c8a422dcffd29e5ef6abec", | ||
"scripts": { | ||
@@ -41,5 +42,7 @@ "clean": "bash ../../script/clean.sh", | ||
"watch": "bash ../../script/watch.sh", | ||
"doc": "bash ../../script/doc.sh" | ||
"doc": "bash ../../script/doc.sh", | ||
"lint": "eslint ./src --no-error-on-unmatched-pattern --ext .ts,.tsx", | ||
"test": "jest" | ||
}, | ||
"gitHead": "5231dbe6373e3786e4d286ae17b7f88ebfd236d1" | ||
} | ||
"readme": "<img src=\"https://user-images.githubusercontent.com/211411/34776833-6f1ef4da-f618-11e7-8b13-f0697901d6a8.png\" height=\"100\" />\n\n## @ledgerhq/hw-transport-node-speculos-http\n\nA transport for <https://github.com/LedgerHQ/speculos> Nano simulator using it's http api.\n\n[Github](https://github.com/LedgerHQ/ledgerjs/),\n[Ledger Devs Slack](https://ledger-dev.slack.com/)\n\n### Getting started\n\n* Install <https://github.com/LedgerHQ/speculos>\n* Make sure to have a speculos running with an api port (default port is 5000).\n\n```js\nimport SpeculosTransport from \"@ledgerhq/hw-transport-node-speculos-http\";\n\nasync function exampleSimple() {\n const transport = await SpeculosTransport.open();\n const res = await transport.send(0xE0, 0x01, 0x00, 0x00);\n}\n\nasync function exampleAdvanced() {\n const transport = await SpeculosTransport.open({ baseURL: \"http://localhost:5000\" });\n transport.eventStream.once(\"data\", {\n // we will click right when the display changes\n transport.button(\"right\");\n });\n // we can also use eventStream.on and match the data buffer with the expected display before taking action\n // derivate btc address and ask for device verification\n const res = await transport.send(0xE0, 0x40, 0x01, 0x00, Buffer.from(\"058000002c8000000080000000000000000000000f\"));\n}\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n* [SpeculosHttpTransport](#speculoshttptransport)\n * [Parameters](#parameters)\n * [Examples](#examples)\n * [button](#button)\n * [Parameters](#parameters-1)\n\n### SpeculosHttpTransport\n\n**Extends Transport**\n\nSpeculos TCP transport implementation\n\n#### Parameters\n\n* `instance` **AxiosInstance** \n* `opts` **SpeculosHttpTransportOpts** \n\n#### Examples\n\n```javascript\nimport SpeculosHttpTransport from \"@ledgerhq/hw-transport-node-speculos-http\";\nconst transport = await SpeculosHttpTransport.open();\nconst res = await transport.send(0xE0, 0x01, 0, 0);\n```\n\n#### button\n\nPress and release button\nbuttons available: left, right, both\n\n##### Parameters\n\n* `but` **any** \n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\\<void>** \n" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9494
6
110
1
2