@matter/protocol
Advanced tools
Comparing version 0.12.0-alpha.0-20241213-fcd71a96d to 0.12.0-alpha.0-20241216-01bff7bc4
@@ -54,5 +54,9 @@ "use strict"; | ||
reservationEnd = await this.#storage.get(BaseEventStore.LAST_RESERVED_NUMBER_KEY); | ||
if (reservationEnd !== void 0 && !Number.isInteger(reservationEnd)) { | ||
logger.warn("Ignoring invalid value for last persisted event number"); | ||
reservationEnd = void 0; | ||
if (reservationEnd !== void 0) { | ||
try { | ||
reservationEnd = BigInt(reservationEnd); | ||
} catch (e) { | ||
logger.warn(`Ignoring invalid value for last persisted event number: ${e}`); | ||
reservationEnd = void 0; | ||
} | ||
} | ||
@@ -59,0 +63,0 @@ } |
@@ -31,5 +31,9 @@ /** | ||
reservationEnd = await this.#storage.get(BaseEventStore.LAST_RESERVED_NUMBER_KEY); | ||
if (reservationEnd !== void 0 && !Number.isInteger(reservationEnd)) { | ||
logger.warn("Ignoring invalid value for last persisted event number"); | ||
reservationEnd = void 0; | ||
if (reservationEnd !== void 0) { | ||
try { | ||
reservationEnd = BigInt(reservationEnd); | ||
} catch (e) { | ||
logger.warn(`Ignoring invalid value for last persisted event number: ${e}`); | ||
reservationEnd = void 0; | ||
} | ||
} | ||
@@ -36,0 +40,0 @@ } |
{ | ||
"name": "@matter/protocol", | ||
"version": "0.12.0-alpha.0-20241213-fcd71a96d", | ||
"version": "0.12.0-alpha.0-20241216-01bff7bc4", | ||
"description": "Low-level APIs for Matter interaction", | ||
@@ -43,10 +43,10 @@ "keywords": [ | ||
"dependencies": { | ||
"@matter/general": "0.12.0-alpha.0-20241213-fcd71a96d", | ||
"@matter/model": "0.12.0-alpha.0-20241213-fcd71a96d", | ||
"@matter/types": "0.12.0-alpha.0-20241213-fcd71a96d", | ||
"@matter/general": "0.12.0-alpha.0-20241216-01bff7bc4", | ||
"@matter/model": "0.12.0-alpha.0-20241216-01bff7bc4", | ||
"@matter/types": "0.12.0-alpha.0-20241216-01bff7bc4", | ||
"@noble/curves": "^1.7.0" | ||
}, | ||
"devDependencies": { | ||
"@matter/tools": "0.12.0-alpha.0-20241213-fcd71a96d", | ||
"@matter/testing": "0.12.0-alpha.0-20241213-fcd71a96d" | ||
"@matter/tools": "0.12.0-alpha.0-20241216-01bff7bc4", | ||
"@matter/testing": "0.12.0-alpha.0-20241216-01bff7bc4" | ||
}, | ||
@@ -53,0 +53,0 @@ "files": [ |
@@ -54,5 +54,9 @@ /** | ||
reservationEnd = await this.#storage.get<bigint>(BaseEventStore.LAST_RESERVED_NUMBER_KEY); | ||
if (reservationEnd !== undefined && !Number.isInteger(reservationEnd)) { | ||
logger.warn("Ignoring invalid value for last persisted event number"); | ||
reservationEnd = undefined; | ||
if (reservationEnd !== undefined) { | ||
try { | ||
reservationEnd = BigInt(reservationEnd); | ||
} catch (e) { | ||
logger.warn(`Ignoring invalid value for last persisted event number: ${e}`); | ||
reservationEnd = undefined; | ||
} | ||
} | ||
@@ -59,0 +63,0 @@ } |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3987680
69335
+ Added@matter/general@0.12.0-alpha.0-20241216-01bff7bc4(transitive)
+ Added@matter/model@0.12.0-alpha.0-20241216-01bff7bc4(transitive)
+ Added@matter/types@0.12.0-alpha.0-20241216-01bff7bc4(transitive)
- Removed@matter/general@0.12.0-alpha.0-20241213-fcd71a96d(transitive)
- Removed@matter/model@0.12.0-alpha.0-20241213-fcd71a96d(transitive)
- Removed@matter/types@0.12.0-alpha.0-20241213-fcd71a96d(transitive)