{"_id":"@1tokenfe/hd-transport-web-device","name":"@1tokenfe/hd-transport-web-device","dist-tags":{"latest":"1.1.15"},"versions":{"1.1.15":{"name":"@1tokenfe/hd-transport-web-device","version":"1.1.15","author":{"name":"OneToken"},"homepage":"https://github.com/OneTokenHQ/hardware-js-sdk#readme","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/OneTokenHQ/hardware-js-sdk.git"},"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"},"dependencies":{"@1tokenfe/hd-shared":"1.1.15","@1tokenfe/hd-transport":"1.1.15"},"devDependencies":{"@1tokenfe/hd-transport-electron":"1.1.15","@types/w3c-web-usb":"^1.0.6","@types/web-bluetooth":"^0.0.17"},"gitHead":"0bb0c034bc0624d12a704a11b8825fb5038b7246","description":"`@1tokenfe/hd-transport-webusb` is a library that implements transport communication by WebUSB.","bugs":{"url":"https://github.com/OneTokenHQ/hardware-js-sdk/issues"},"_id":"@1tokenfe/hd-transport-web-device@1.1.15","_nodeVersion":"22.17.0","_npmVersion":"lerna/4.0.0/node@v22.17.0+arm64 (darwin)","dist":{"integrity":"sha512-xK4ZcErkM1ZXrnnBifK+SyqlbMbanAjj1FtUlzW7nFbdHjMsbM/Q2OqRMg2RTCSY0vV4oGjhGpjjOnQTSO37ww==","shasum":"c328a5fae397d33523220ecf9b990c61a2ac4fae","tarball":"https://registry.npmjs.org/@1tokenfe/hd-transport-web-device/-/hd-transport-web-device-1.1.15.tgz","fileCount":13,"unpackedSize":56349,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAYMe4fQ53U2HHjfbtw19WbVmFYS12A7LviMXKfa/xotAiAnnnG4sEnNYjkCZhrFISOf0dCR26gdu+R6hjt1tJp+2A=="}]},"_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-web-device_1.1.15_1763359453309_0.18345189092992342"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-17T06:04:13.222Z","1.1.15":"2025-11-17T06:04:13.501Z","modified":"2025-11-17T06:04:13.810Z"},"maintainers":[{"name":"vici1573","email":"vici1573@outlook.com"},{"name":"onetokenwallet","email":"yf860412@gmail.com"},{"name":"dihuase0411","email":"dihuase0411@gmail.com"}],"description":"`@1tokenfe/hd-transport-webusb` is a library that implements transport communication by WebUSB.","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":"MIT","readme":"# `@1tokenfe/hd-transport-webusb`\n\n`@1tokenfe/hd-transport-webusb` is a library that implements transport communication by WebUSB.\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-66e9cefb218009cd98f906361dee59d8"}