@ledgerhq/devices
Advanced tools
Comparing version
# @ledgerhq/devices | ||
## 8.4.5-next.0 | ||
### Patch Changes | ||
- Updated dependencies [[`107f35a`](https://github.com/LedgerHQ/ledger-live/commit/107f35a0650412716b088a3503b86435e6d9cf47), [`9081c26`](https://github.com/LedgerHQ/ledger-live/commit/9081c2648490f977469a33762a3c67bb2c2a0be5)]: | ||
- @ledgerhq/errors@6.21.0-next.0 | ||
## 8.4.4 | ||
@@ -4,0 +11,0 @@ |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { Observable } from "rxjs"; | ||
@@ -3,0 +4,0 @@ import { TraceContext } from "@ledgerhq/logs"; |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { Observable } from "rxjs"; | ||
@@ -3,0 +4,0 @@ import { TraceContext } from "@ledgerhq/logs"; |
@@ -1,10 +0,1 @@ | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
import { Observable } from "rxjs"; | ||
@@ -60,10 +51,8 @@ import { trace } from "@ledgerhq/logs"; | ||
let terminated = false; | ||
function main() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
for (const chunk of chunks) { | ||
if (terminated) | ||
return; | ||
yield write(chunk); | ||
} | ||
}); | ||
async function main() { | ||
for (const chunk of chunks) { | ||
if (terminated) | ||
return; | ||
await write(chunk); | ||
} | ||
} | ||
@@ -70,0 +59,0 @@ main().then(() => { |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
export type ResponseAcc = { | ||
@@ -3,0 +4,0 @@ data: Buffer; |
@@ -56,3 +56,3 @@ import semver from "semver"; | ||
masks: [0x31100000], | ||
getBlockSize: (firmwareVersion) => { var _a; return semver.lt((_a = semver.coerce(firmwareVersion)) !== null && _a !== void 0 ? _a : "", "2.0.0") ? 4 * 1024 : 2 * 1024; }, | ||
getBlockSize: (firmwareVersion) => semver.lt(semver.coerce(firmwareVersion) ?? "", "2.0.0") ? 4 * 1024 : 2 * 1024, | ||
}, | ||
@@ -181,3 +181,6 @@ [DeviceModelId.nanoX]: { | ||
bluetoothServices.push(spec.serviceUuid); | ||
serviceUuidToInfos[spec.serviceUuid] = serviceUuidToInfos[spec.serviceUuid.replace(/-/g, "")] = Object.assign({ deviceModel }, spec); | ||
serviceUuidToInfos[spec.serviceUuid] = serviceUuidToInfos[spec.serviceUuid.replace(/-/g, "")] = { | ||
deviceModel, | ||
...spec, | ||
}; | ||
} | ||
@@ -184,0 +187,0 @@ } |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { Observable } from "rxjs"; | ||
@@ -3,0 +4,0 @@ import { TraceContext } from "@ledgerhq/logs"; |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { Observable } from "rxjs"; | ||
@@ -3,0 +4,0 @@ import { TraceContext } from "@ledgerhq/logs"; |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -63,10 +54,8 @@ exports.sendAPDU = void 0; | ||
let terminated = false; | ||
function main() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
for (const chunk of chunks) { | ||
if (terminated) | ||
return; | ||
yield write(chunk); | ||
} | ||
}); | ||
async function main() { | ||
for (const chunk of chunks) { | ||
if (terminated) | ||
return; | ||
await write(chunk); | ||
} | ||
} | ||
@@ -73,0 +62,0 @@ main().then(() => { |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
export type ResponseAcc = { | ||
@@ -3,0 +4,0 @@ data: Buffer; |
@@ -62,3 +62,3 @@ "use strict"; | ||
masks: [0x31100000], | ||
getBlockSize: (firmwareVersion) => { var _a; return semver_1.default.lt((_a = semver_1.default.coerce(firmwareVersion)) !== null && _a !== void 0 ? _a : "", "2.0.0") ? 4 * 1024 : 2 * 1024; }, | ||
getBlockSize: (firmwareVersion) => semver_1.default.lt(semver_1.default.coerce(firmwareVersion) ?? "", "2.0.0") ? 4 * 1024 : 2 * 1024, | ||
}, | ||
@@ -191,3 +191,6 @@ [DeviceModelId.nanoX]: { | ||
bluetoothServices.push(spec.serviceUuid); | ||
serviceUuidToInfos[spec.serviceUuid] = serviceUuidToInfos[spec.serviceUuid.replace(/-/g, "")] = Object.assign({ deviceModel }, spec); | ||
serviceUuidToInfos[spec.serviceUuid] = serviceUuidToInfos[spec.serviceUuid.replace(/-/g, "")] = { | ||
deviceModel, | ||
...spec, | ||
}; | ||
} | ||
@@ -194,0 +197,0 @@ } |
{ | ||
"name": "@ledgerhq/devices", | ||
"version": "8.4.4", | ||
"version": "8.4.5-next.0", | ||
"description": "Ledger devices", | ||
@@ -58,3 +58,3 @@ "keywords": [ | ||
"semver": "^7.3.5", | ||
"@ledgerhq/errors": "^6.19.1", | ||
"@ledgerhq/errors": "^6.21.0-next.0", | ||
"@ledgerhq/logs": "^6.12.0" | ||
@@ -64,3 +64,3 @@ }, | ||
"@types/jest": "^29.5.10", | ||
"@types/node": "^20.8.10", | ||
"@types/node": "^22.10.10", | ||
"@types/semver": "^7.3.9", | ||
@@ -77,5 +77,6 @@ "documentation": "14.0.2", | ||
"clean": "rimraf lib lib-es", | ||
"build": "tsc && tsc -m ES6 --outDir lib-es", | ||
"build": "tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es", | ||
"prewatch": "pnpm build", | ||
"watch": "tsc --watch", | ||
"watch:es": "tsc --watch -m esnext --moduleResolution bundler --outDir lib-es", | ||
"doc": "documentation readme src/** --section=API --pe ts --re ts --re d.ts", | ||
@@ -82,0 +83,0 @@ "lint": "eslint ./src --no-error-on-unmatched-pattern --ext .ts,.tsx --cache", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
221700
-0.45%2963
-0.34%1
Infinity%