{"_id":"@chargerwallet/hd-transport","_rev":"1-d3ab9a6c697a2f27e67d736fc0f34881","name":"@chargerwallet/hd-transport","dist-tags":{"latest":"4.0.0"},"versions":{"2.0.0":{"name":"@chargerwallet/hd-transport","version":"2.0.0","author":{"name":"ChargerWallet"},"license":"MIT","_id":"@chargerwallet/hd-transport@2.0.0","maintainers":[{"name":"lyfeloopinc","email":"dev@chargerwallet.com"}],"homepage":"https://github.com/chargerwallet/hd-transport","dist":{"shasum":"f709ce312eee60f7cf760d48aeea8975c4d5f616","tarball":"https://registry.npmjs.org/@chargerwallet/hd-transport/-/hd-transport-2.0.0.tgz","fileCount":71,"integrity":"sha512-cGiAccpH2xDbBWSs+0wh1qe7yH/GAt23rxQOrpcXiPOQCTAqpTASayvHrx6CjyDXPz27d3dXlJHG6No1p7LLMw==","signatures":[{"sig":"MEYCIQDefrxeGQ3cdC8GuObQvZfR3oxtxcNnpr7v3E3hdxoRIgIhANagjwI4sRJw6mth3uYltwYoJOS9KVqc0YdcmjwI91Wq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":600497},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"194244e24ccafaf4e4ee31d066384f29779bd996","scripts":{"dev":"rimraf dist && rollup -c ../../build/rollup.config.js -w","lint":"eslint .","test":"jest","build":"rimraf dist && rollup -c ../../build/rollup.config.js","lint:fix":"eslint . --fix","update:protobuf":"./scripts/protobuf-build.sh"},"_npmUser":{"name":"lyfeloopinc","email":"dev@chargerwallet.com"},"_npmVersion":"10.7.0","description":"> HD Transport","directories":{},"_nodeVersion":"18.20.4","dependencies":{"long":"^4.0.0","bytebuffer":"^5.0.1","protobufjs":"^6.11.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bytebuffer":"^5.0.42"},"_npmOperationalInternal":{"tmp":"tmp/hd-transport_2.0.0_1731771151130_0.9642305671273774","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"@chargerwallet/hd-transport","version":"4.0.0","description":"> HD Transport","author":{"name":"ChargerWallet"},"homepage":"https://github.com/chargerwallet/hd-transport","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","publishConfig":{"access":"public"},"scripts":{"dev":"rimraf dist && rollup -c ../../build/rollup.config.js -w","build":"rimraf dist && rollup -c ../../build/rollup.config.js","test":"jest","lint":"eslint .","lint:fix":"eslint . --fix","update:protobuf":"./scripts/protobuf-build.sh"},"devDependencies":{"@types/bytebuffer":"^5.0.42"},"dependencies":{"bytebuffer":"^5.0.1","long":"^4.0.0","protobufjs":"^6.11.2"},"_id":"@chargerwallet/hd-transport@4.0.0","gitHead":"6a47852f8c796d304ecd1cf148a88e00b4af0809","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-wUjmkWjAuk2jrQ5KNCkPbsHpNzF3K4c8Nir6SD8VHCM7S8m4xMoKtvss9FC4jYTLV8YV/nzFxejs4QK3+y5GdQ==","shasum":"b4dc71f6f1d6aea6779581f323d0f6b857f5c0ac","tarball":"https://registry.npmjs.org/@chargerwallet/hd-transport/-/hd-transport-4.0.0.tgz","fileCount":71,"unpackedSize":617100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBdddm7p596Q+8WQg719IAFZVLK08qYmNYfd1eMI1OQDAiEA6Jy2uFaEIQ3xaBLWnu0THrTVzym5kKb5k8BIYDpKI/g="}]},"_npmUser":{"name":"lyfeloopinc","email":"dev@chargerwallet.com"},"directories":{},"maintainers":[{"name":"lyfeloopinc","email":"dev@chargerwallet.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hd-transport_4.0.0_1732059444643_0.5551674444908365"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-16T15:32:31.038Z","modified":"2024-11-19T23:37:25.018Z","2.0.0":"2024-11-16T15:32:31.349Z","4.0.0":"2024-11-19T23:37:24.846Z"},"author":{"name":"ChargerWallet"},"license":"MIT","homepage":"https://github.com/chargerwallet/hd-transport","description":"> HD Transport","maintainers":[{"name":"lyfeloopinc","email":"dev@chargerwallet.com"}],"readme":"# `hd-transport`\r\n\r\n`hd-transport` is a library for low-level communication with ChargerWallet Hardware.\r\n\r\n## What is the purpose\r\n\r\n- translate JSON payloads to binary messages using protobuf definitions comprehensible to ChargerWallet devices\r\n- chunking and reading chunked messages according to the [ChargerWallet protocol](./protocol.md)\r\n- exposing single API for various transport methods:\r\n  - Http Transport\r\n  - React Native Transport\r\n  - WebUSB\r\n- Create and expose typescript definitions based on protobuf definitions.\r\n\r\n### The short version\r\n\r\nIn order to be able to use new features of chargerwallet-firmware you need to update protobuf definitions.\r\n\r\n1. `git submodule update --init --recursive` to initialize git submodules.\r\n1. `yarn update-submodules` to update firmware submodule\r\n1. `yarn update:protobuf` to generate new `./messages.json` and `./src/types/messages.ts`\r\n\r\ngit submodule update --init --recursive to initialize firmware submodule\r\nyarn update-submodules to update firmware submodule\r\nyarn update:protobuf to generate new ./messages.json and ./src/types/messages.ts\r\n\r\n## Docs\r\n\r\nDocumentation is available [hardware-js-sdk](https://developer.chargerwallet.com/connect-to-hardware/hardware-sdk/start)\r\n","readmeFilename":"README.md"}