@dfinity/principal
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -43,3 +43,3 @@ "use strict"; | ||
if (principal.toText() !== text) { | ||
throw new Error(`Principal "${principal.toText()}" does not have a valid checksum.`); | ||
throw new Error(`Principal "${principal.toText()}" does not have a valid checksum (original value "${text}" may not be a valid Principal ID).`); | ||
} | ||
@@ -46,0 +46,0 @@ return principal; |
@@ -40,3 +40,3 @@ import { decode, encode } from './utils/base32'; | ||
if (principal.toText() !== text) { | ||
throw new Error(`Principal "${principal.toText()}" does not have a valid checksum.`); | ||
throw new Error(`Principal "${principal.toText()}" does not have a valid checksum (original value "${text}" may not be a valid Principal ID).`); | ||
} | ||
@@ -43,0 +43,0 @@ return principal; |
{ | ||
"name": "@dfinity/principal", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"author": "DFINITY Stiftung <sdk@dfinity.org>", | ||
@@ -39,3 +39,3 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@types/jest": "^24.9.1", | ||
"@types/jest": "^27.0.2", | ||
"@typescript-eslint/eslint-plugin": "^4.14.2", | ||
@@ -45,7 +45,7 @@ "@typescript-eslint/parser": "^4.14.2", | ||
"eslint-plugin-jsdoc": "^31.6.0", | ||
"jest": "^26.6.3", | ||
"jest": "^27.3.1", | ||
"jest-expect-message": "^1.0.2", | ||
"node-fetch": "2.6.1", | ||
"text-encoding": "^0.7.0", | ||
"ts-jest": "^26.5.4", | ||
"ts-jest": "^27.0.7", | ||
"tslint": "^5.20.0", | ||
@@ -52,0 +52,0 @@ "typedoc": "^0.20.32", |
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
192896