@ledgerhq/device-transport-kit-react-native-hid 0.0.0-rn-hid-20250221112139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.MD +202 -0
- package/README.md +84 -0
- package/lib/cjs/api/RNHidTransportFactory.js +2 -0
- package/lib/cjs/api/RNHidTransportFactory.js.map +7 -0
- package/lib/cjs/api/bridge/DefaultNativeModuleWrapper.js +2 -0
- package/lib/cjs/api/bridge/DefaultNativeModuleWrapper.js.map +7 -0
- package/lib/cjs/api/bridge/NativeTransportModule.js +2 -0
- package/lib/cjs/api/bridge/NativeTransportModule.js.map +7 -0
- package/lib/cjs/api/bridge/StubNativeModuleWrapper.js +2 -0
- package/lib/cjs/api/bridge/StubNativeModuleWrapper.js.map +7 -0
- package/lib/cjs/api/bridge/mapper.js +2 -0
- package/lib/cjs/api/bridge/mapper.js.map +7 -0
- package/lib/cjs/api/bridge/mapper.test.js +2 -0
- package/lib/cjs/api/bridge/mapper.test.js.map +7 -0
- package/lib/cjs/api/bridge/types.js +2 -0
- package/lib/cjs/api/bridge/types.js.map +7 -0
- package/lib/cjs/api/helpers/base64Utils.js +2 -0
- package/lib/cjs/api/helpers/base64Utils.js.map +7 -0
- package/lib/cjs/api/helpers/base64Utils.test.js +2 -0
- package/lib/cjs/api/helpers/base64Utils.test.js.map +7 -0
- package/lib/cjs/api/helpers/getObservableOfArraysNewItems.js +2 -0
- package/lib/cjs/api/helpers/getObservableOfArraysNewItems.js.map +7 -0
- package/lib/cjs/api/helpers/getObservableOfArraysNewItems.test.js +2 -0
- package/lib/cjs/api/helpers/getObservableOfArraysNewItems.test.js.map +7 -0
- package/lib/cjs/api/transport/Errors.js +2 -0
- package/lib/cjs/api/transport/Errors.js.map +7 -0
- package/lib/cjs/api/transport/NativeModuleWrapper.js +2 -0
- package/lib/cjs/api/transport/NativeModuleWrapper.js.map +7 -0
- package/lib/cjs/api/transport/RNHidTransport.js +2 -0
- package/lib/cjs/api/transport/RNHidTransport.js.map +7 -0
- package/lib/cjs/api/transport/RNHidTransport.test.js +2 -0
- package/lib/cjs/api/transport/RNHidTransport.test.js.map +7 -0
- package/lib/cjs/api/transport/rnHidTransportIdentifier.js +2 -0
- package/lib/cjs/api/transport/rnHidTransportIdentifier.js.map +7 -0
- package/lib/cjs/api/transport/types.js +2 -0
- package/lib/cjs/api/transport/types.js.map +7 -0
- package/lib/cjs/index.js +2 -0
- package/lib/cjs/index.js.map +7 -0
- package/lib/cjs/package.json +60 -0
- package/lib/esm/api/RNHidTransportFactory.js +2 -0
- package/lib/esm/api/RNHidTransportFactory.js.map +7 -0
- package/lib/esm/api/bridge/DefaultNativeModuleWrapper.js +2 -0
- package/lib/esm/api/bridge/DefaultNativeModuleWrapper.js.map +7 -0
- package/lib/esm/api/bridge/NativeTransportModule.js +2 -0
- package/lib/esm/api/bridge/NativeTransportModule.js.map +7 -0
- package/lib/esm/api/bridge/StubNativeModuleWrapper.js +2 -0
- package/lib/esm/api/bridge/StubNativeModuleWrapper.js.map +7 -0
- package/lib/esm/api/bridge/mapper.js +2 -0
- package/lib/esm/api/bridge/mapper.js.map +7 -0
- package/lib/esm/api/bridge/mapper.test.js +2 -0
- package/lib/esm/api/bridge/mapper.test.js.map +7 -0
- package/lib/esm/api/bridge/types.js +2 -0
- package/lib/esm/api/bridge/types.js.map +7 -0
- package/lib/esm/api/helpers/base64Utils.js +2 -0
- package/lib/esm/api/helpers/base64Utils.js.map +7 -0
- package/lib/esm/api/helpers/base64Utils.test.js +2 -0
- package/lib/esm/api/helpers/base64Utils.test.js.map +7 -0
- package/lib/esm/api/helpers/getObservableOfArraysNewItems.js +2 -0
- package/lib/esm/api/helpers/getObservableOfArraysNewItems.js.map +7 -0
- package/lib/esm/api/helpers/getObservableOfArraysNewItems.test.js +2 -0
- package/lib/esm/api/helpers/getObservableOfArraysNewItems.test.js.map +7 -0
- package/lib/esm/api/transport/Errors.js +2 -0
- package/lib/esm/api/transport/Errors.js.map +7 -0
- package/lib/esm/api/transport/NativeModuleWrapper.js +1 -0
- package/lib/esm/api/transport/NativeModuleWrapper.js.map +7 -0
- package/lib/esm/api/transport/RNHidTransport.js +2 -0
- package/lib/esm/api/transport/RNHidTransport.js.map +7 -0
- package/lib/esm/api/transport/RNHidTransport.test.js +2 -0
- package/lib/esm/api/transport/RNHidTransport.test.js.map +7 -0
- package/lib/esm/api/transport/rnHidTransportIdentifier.js +2 -0
- package/lib/esm/api/transport/rnHidTransportIdentifier.js.map +7 -0
- package/lib/esm/api/transport/types.js +1 -0
- package/lib/esm/api/transport/types.js.map +7 -0
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +7 -0
- package/lib/esm/package.json +60 -0
- package/lib/types/api/RNHidTransportFactory.d.ts +3 -0
- package/lib/types/api/RNHidTransportFactory.d.ts.map +1 -0
- package/lib/types/api/bridge/DefaultNativeModuleWrapper.d.ts +22 -0
- package/lib/types/api/bridge/DefaultNativeModuleWrapper.d.ts.map +1 -0
- package/lib/types/api/bridge/NativeTransportModule.d.ts +3 -0
- package/lib/types/api/bridge/NativeTransportModule.d.ts.map +1 -0
- package/lib/types/api/bridge/StubNativeModuleWrapper.d.ts +15 -0
- package/lib/types/api/bridge/StubNativeModuleWrapper.d.ts.map +1 -0
- package/lib/types/api/bridge/mapper.d.ts +10 -0
- package/lib/types/api/bridge/mapper.d.ts.map +1 -0
- package/lib/types/api/bridge/mapper.test.d.ts +2 -0
- package/lib/types/api/bridge/mapper.test.d.ts.map +1 -0
- package/lib/types/api/bridge/types.d.ts +61 -0
- package/lib/types/api/bridge/types.d.ts.map +1 -0
- package/lib/types/api/helpers/base64Utils.d.ts +13 -0
- package/lib/types/api/helpers/base64Utils.d.ts.map +1 -0
- package/lib/types/api/helpers/base64Utils.test.d.ts +2 -0
- package/lib/types/api/helpers/base64Utils.test.d.ts.map +1 -0
- package/lib/types/api/helpers/getObservableOfArraysNewItems.d.ts +15 -0
- package/lib/types/api/helpers/getObservableOfArraysNewItems.d.ts.map +1 -0
- package/lib/types/api/helpers/getObservableOfArraysNewItems.test.d.ts +2 -0
- package/lib/types/api/helpers/getObservableOfArraysNewItems.test.d.ts.map +1 -0
- package/lib/types/api/transport/Errors.d.ts +7 -0
- package/lib/types/api/transport/Errors.d.ts.map +1 -0
- package/lib/types/api/transport/NativeModuleWrapper.d.ts +23 -0
- package/lib/types/api/transport/NativeModuleWrapper.d.ts.map +1 -0
- package/lib/types/api/transport/RNHidTransport.d.ts +23 -0
- package/lib/types/api/transport/RNHidTransport.d.ts.map +1 -0
- package/lib/types/api/transport/RNHidTransport.test.d.ts +2 -0
- package/lib/types/api/transport/RNHidTransport.test.d.ts.map +1 -0
- package/lib/types/api/transport/rnHidTransportIdentifier.d.ts +2 -0
- package/lib/types/api/transport/rnHidTransportIdentifier.d.ts.map +1 -0
- package/lib/types/api/transport/types.d.ts +12 -0
- package/lib/types/api/transport/types.d.ts.map +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/tsconfig.prod.tsbuildinfo +1 -0
- package/package.json +59 -0
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ledgerhq/device-transport-kit-react-native-hid",
|
|
3
|
+
"version": "0.0.0-rn-hid-20250221112139",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"private": false,
|
|
6
|
+
"react-native": "src/index.ts",
|
|
7
|
+
"nativePackage": true,
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/types/index.d.ts",
|
|
11
|
+
"import": "./lib/esm/index.js",
|
|
12
|
+
"require": "./lib/cjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./*": {
|
|
15
|
+
"types": "./lib/types/*",
|
|
16
|
+
"import": "./lib/esm/*",
|
|
17
|
+
"require": "./lib/cjs/*"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"./lib"
|
|
22
|
+
],
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@sentry/minimal": "^6.19.7",
|
|
25
|
+
"purify-ts": "^2.1.0",
|
|
26
|
+
"uuid": "^10.0.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/uuid": "^10.0.0",
|
|
30
|
+
"react-native": "^0.76.3",
|
|
31
|
+
"rxjs": "^7.8.1",
|
|
32
|
+
"@ledgerhq/device-management-kit": "0.0.0-rn-hid-20250221112139",
|
|
33
|
+
"@ledgerhq/esbuild-tools": "0.0.2",
|
|
34
|
+
"@ledgerhq/vitest-config-dmk": "0.0.0",
|
|
35
|
+
"@ledgerhq/eslint-config-dsdk": "0.0.2",
|
|
36
|
+
"@ledgerhq/prettier-config-dsdk": "0.0.2",
|
|
37
|
+
"@ledgerhq/tsconfig-dsdk": "1.0.1"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react-native": ">0.72",
|
|
41
|
+
"rxjs": "^7.8.1",
|
|
42
|
+
"@ledgerhq/device-management-kit": "0.0.0-rn-hid-20250221112139"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"prebuild": "rimraf lib",
|
|
46
|
+
"build": "pnpm lmdk-build --entryPoints src/index.ts,src/**/*.ts --tsconfig tsconfig.prod.json",
|
|
47
|
+
"dev": "concurrently \"pnpm watch:builds\" \"pnpm watch:types\"",
|
|
48
|
+
"watch:builds": "pnpm lmdk-watch --entryPoints src/index.ts,src/**/*.ts --tsconfig tsconfig.prod.json",
|
|
49
|
+
"watch:types": "concurrently \"tsc --watch -p tsconfig.prod.json\" \"tsc-alias --watch -p tsconfig.prod.json\"",
|
|
50
|
+
"lint": "eslint",
|
|
51
|
+
"lint:fix": "pnpm lint --fix",
|
|
52
|
+
"prettier": "prettier . --check",
|
|
53
|
+
"prettier:fix": "prettier . --write",
|
|
54
|
+
"typecheck": "tsc --noEmit",
|
|
55
|
+
"test": "vitest run --passWithNoTests",
|
|
56
|
+
"test:watch": "vitest --passWithNoTests",
|
|
57
|
+
"test:coverage": "vitest run --coverage --passWithNoTests"
|
|
58
|
+
}
|
|
59
|
+
}
|