{"_id":"@1tokenfe/hd-transport-react-native","name":"@1tokenfe/hd-transport-react-native","dist-tags":{"latest":"1.1.15"},"versions":{"1.1.15":{"name":"@1tokenfe/hd-transport-react-native","version":"1.1.15","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","@1tokenfe/react-native-ble-utils":"^0.1.5","react-native-ble-plx":"3.5.0"},"gitHead":"0bb0c034bc0624d12a704a11b8825fb5038b7246","description":"`@1tokenfe/hd-transport-react-native` is a library that implements transport communication by [react-native-ble-plx](https://github.com/dotintent/react-native-ble-plx).","bugs":{"url":"https://github.com/OneTokenHQ/hardware-js-sdk/issues"},"_id":"@1tokenfe/hd-transport-react-native@1.1.15","_nodeVersion":"22.17.0","_npmVersion":"lerna/4.0.0/node@v22.17.0+arm64 (darwin)","dist":{"integrity":"sha512-O1xjS4RGLYwMlHB4hS4UwLyqaZuPkUyDxLWljhKNRBvxNc+a6PeXrHwEmJApWio6AL1uiKnB77xibRzVtfHhDQ==","shasum":"4356a23e54db60c8a5b2ff236a550963e12e1280","tarball":"https://registry.npmjs.org/@1tokenfe/hd-transport-react-native/-/hd-transport-react-native-1.1.15.tgz","fileCount":28,"unpackedSize":73195,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC/+Y9BI27jvpfcvdB1gCjVeVexl6mVuGtWa24VKRGbuAIgVqk4AB6J0H03wrLSQu/xqma5og6zJisgcfYAlrLDHpI="}]},"_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-react-native_1.1.15_1763359453532_0.917407364984913"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-17T06:04:13.074Z","1.1.15":"2025-11-17T06:04:13.742Z","modified":"2025-11-17T06:04:14.053Z"},"maintainers":[{"name":"vici1573","email":"vici1573@outlook.com"},{"name":"onetokenwallet","email":"yf860412@gmail.com"},{"name":"dihuase0411","email":"dihuase0411@gmail.com"}],"description":"`@1tokenfe/hd-transport-react-native` is a library that implements transport communication by [react-native-ble-plx](https://github.com/dotintent/react-native-ble-plx).","homepage":"https://github.com/OneTokenHQ/hardware-js-sdk#readme","repository":{"type":"git","url":"git+https://github.com/OneTokenHQ/hardware-js-sdk.git"},"bugs":{"url":"https://github.com/OneTokenHQ/hardware-js-sdk/issues"},"license":"MIT","readme":"# `@1tokenfe/hd-transport-react-native`\n\n`@1tokenfe/hd-transport-react-native` is a library that implements transport communication by [react-native-ble-plx](https://github.com/dotintent/react-native-ble-plx).\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-ce083a5832a76fbbeb8c619447c525fb"}