@dfinity/principal
Advanced tools
Comparing version 0.19.3 to 0.20.0-beta.0
@@ -36,2 +36,5 @@ "use strict"; | ||
} | ||
else if (Object.getPrototypeOf(other) === Uint8Array.prototype) { | ||
return new Principal(other); | ||
} | ||
else if (typeof other === 'object' && | ||
@@ -38,0 +41,0 @@ other !== null && |
@@ -33,2 +33,5 @@ import { decode, encode } from './utils/base32'; | ||
} | ||
else if (Object.getPrototypeOf(other) === Uint8Array.prototype) { | ||
return new Principal(other); | ||
} | ||
else if (typeof other === 'object' && | ||
@@ -35,0 +38,0 @@ other !== null && |
{ | ||
"name": "@dfinity/principal", | ||
"version": "0.19.3", | ||
"version": "0.20.0-beta.0", | ||
"author": "DFINITY Stiftung <sdk@dfinity.org>", | ||
@@ -44,3 +44,2 @@ "license": "Apache-2.0", | ||
"make:docs/reference": "typedoc src/index.ts --out ../../docs/generated/principal --excludeInternal", | ||
"release": "npm publish", | ||
"test": "jest", | ||
@@ -47,0 +46,0 @@ "test:coverage": "jest --verbose --collectCoverage" |
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
147825
719