UNPKG

@trezor/transport

Version:

Low level library facilitating protocol buffers based communication with Trezor devices

77 lines 2.51 kB
{ "name": "@trezor/transport", "version": "1.6.2", "description": "Low level library facilitating protocol buffers based communication with Trezor devices", "npmPublishAccess": "public", "license": "SEE LICENSE IN LICENSE.md", "repository": { "type": "git", "url": "git://github.com/trezor/trezor-suite.git" }, "bugs": { "url": "https://github.com/trezor/trezor-suite/issues" }, "keywords": [ "Trezor", "transport" ], "main": "./lib/index.js", "browser": { "./lib/pinger/ping": "./lib/pinger/ping.browser.ts", "./lib/transports/nodeusb": "./lib/transports/nodeusb.browser.ts", "./lib/transports/udp": "./lib/transports/udp.browser.ts", "./lib/transports/webusb": "./lib/transports/webusb.browser.ts" }, "react-native": { "./src/transports/nodeusb": "./src/transports/nodeusb.browser.ts", "./src/transports/webusb": "./src/transports/webusb.ts" }, "publishConfig": { "main": "./lib/index.js", "browser": { "./lib/pinger/ping": "./lib/pinger/ping.browser.ts", "./lib/transports/nodeusb": "./lib/transports/nodeusb.browser.ts", "./lib/transports/udp": "./lib/transports/udp.browser.ts", "./lib/transports/webusb": "./lib/transports/webusb.browser.ts" }, "react-native": { "./lib/transports/nodeusb": "./lib/transports/nodeusb.browser.js", "./lib/transports/webusb": "./lib/transports/webusb.js" } }, "files": [ "lib/", "!**/*.map" ], "scripts": { "depcheck": "yarn g:depcheck", "type-check": "yarn g:tsc --build tsconfig.json", "build:lib": "yarn g:rimraf -rf lib && yarn g:tsc --build tsconfig.lib.json && ../../scripts/publish/replace-imports.sh ./lib cjs", "publish:lib": "./scripts/publish-lib.sh", "test:unit": "jest", "prepublishOnly": "yarn tsx ../../scripts/publish/prepublishNPM.js", "prepublish": "yarn tsx ../../scripts/publish/prepublish.js" }, "devDependencies": { "@babel/preset-env": "7.28.5", "@babel/preset-typescript": "^7.28.5", "@trezor/eslint": "1.0.0", "@types/bytebuffer": "^5.0.49", "@types/node": "22.13.10", "@types/sharedworker": "^0.0.143", "@types/w3c-web-usb": "^1.0.10", "jest": "29.7.0", "tsx": "^4.20.3" }, "dependencies": { "@trezor/protobuf": "1.5.2", "@trezor/protocol": "1.3.0", "@trezor/type-utils": "1.2.0", "@trezor/utils": "9.5.0", "cross-fetch": "^4.0.0", "usb": "^2.15.0" }, "peerDependencies": { "tslib": "^2.6.2" } }