{"_id":"@1tokenfe/hd-transport-http","name":"@1tokenfe/hd-transport-http","dist-tags":{"latest":"1.1.15"},"versions":{"1.1.15":{"name":"@1tokenfe/hd-transport-http","version":"1.1.15","description":"hardware http transport","author":{"name":"OneToken"},"homepage":"https://github.com/OneTokenHQ/hardware-js-sdk#readme","license":"ISC","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/OneTokenHQ/hardware-js-sdk.git"},"publishConfig":{"access":"public"},"scripts":{"dev":"rimraf dist && rollup -c ../../build/rollup.config.js -w","build":"rimraf dist && rollup -c ../../build/rollup.config.js","lint":"eslint .","lint:fix":"eslint . --fix"},"bugs":{"url":"https://github.com/OneTokenHQ/hardware-js-sdk/issues"},"dependencies":{"@1tokenfe/hd-shared":"1.1.15","@1tokenfe/hd-transport":"1.1.15","axios":"1.12.2","secure-json-parse":"^4.0.0"},"gitHead":"0bb0c034bc0624d12a704a11b8825fb5038b7246","_id":"@1tokenfe/hd-transport-http@1.1.15","_nodeVersion":"22.17.0","_npmVersion":"lerna/4.0.0/node@v22.17.0+arm64 (darwin)","dist":{"integrity":"sha512-fWMRO0v4e8cCOES44bnf6Wm4e8xqmaCFI1LYoBPhz+jR/uHwdH+6Av1Bz08MeHrnhmQZWmIDRr1uKE+jk1Eezw==","shasum":"12bde3d1dc5578417fa4935215634d33dd3ac4fd","tarball":"https://registry.npmjs.org/@1tokenfe/hd-transport-http/-/hd-transport-http-1.1.15.tgz","fileCount":13,"unpackedSize":24036,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG3DPLklGUxUzvaXvaU2R07jEb3uWp0tgEjwk0l0fkFBAiEAoBFGbjAbNXJzkVWlptZ5IdELkgy9b0uQHabUKmTAX1Y="}]},"_npmUser":{"name":"vici1573","email":"vici1573@outlook.com"},"directories":{},"maintainers":[{"name":"vici1573","email":"vici1573@outlook.com"},{"name":"onetokenwallet","email":"yf860412@gmail.com"},{"name":"dihuase0411","email":"dihuase0411@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hd-transport-http_1.1.15_1763359453441_0.6044922147444127"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-17T06:04:13.370Z","1.1.15":"2025-11-17T06:04:13.636Z","modified":"2025-11-17T06:04:13.917Z"},"maintainers":[{"name":"vici1573","email":"vici1573@outlook.com"},{"name":"onetokenwallet","email":"yf860412@gmail.com"},{"name":"dihuase0411","email":"dihuase0411@gmail.com"}],"description":"hardware http transport","homepage":"https://github.com/OneTokenHQ/hardware-js-sdk#readme","repository":{"type":"git","url":"git+https://github.com/OneTokenHQ/hardware-js-sdk.git"},"author":{"name":"OneToken"},"bugs":{"url":"https://github.com/OneTokenHQ/hardware-js-sdk/issues"},"license":"ISC","readme":"# `@1tokenfe/hd-transport-http`\n\n`@1tokenfe/hd-transport-http` is a library that implements transport communication using http.\n\n## What is the purpose\n\n- translate JSON payloads to binary messages using protobuf definitions comprehensible to OneToken devices\n- chunking and reading chunked messages according to the [OneToken protocol](./protocol.md)\n- exposing single API for various transport methods:\n  - Http Transport\n  - React Native Transport\n  - WebUSB\n- Create and expose typescript definitions based on protobuf definitions.\n\n### The short version\n\nIn order to be able to use new features of onetoken-firmware you need to update protobuf definitions.\n\n1. `git submodule update --init --recursive` to initialize git submodules.\n1. `yarn update-submodules` to update firmware submodule\n1. `yarn update:protobuf` to generate new `./messages.json` and `./src/types/messages.ts`\n\ngit submodule update --init --recursive to initialize firmware submodule\nyarn update-submodules to update firmware submodule\nyar update:protobuf to generate new ./messages.json and ./src/types/messages.ts\n\n## Docs\n\nDocumentation is available [hardware-js-sdk](https://developer.onetoken.so/connect-to-hardware/hardware-sdk/start)\n","readmeFilename":"README.md","_rev":"1-57914aaaadf8f42c702dc9761c5c4dd8"}