@dfinity/identity
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -89,5 +89,12 @@ "use strict"; | ||
} | ||
return Object.assign(Object.assign({}, creds), { | ||
return { | ||
// do _not_ use ...creds here, as creds is not enumerable in all cases | ||
id: creds.id, | ||
response: creds.response, | ||
type: creds.type, | ||
authenticatorAttachment: creds.authenticatorAttachment, | ||
getClientExtensionResults: creds.getClientExtensionResults, | ||
// Some password managers will return a Uint8Array, so we ensure we return an ArrayBuffer. | ||
rawId: (0, candid_1.bufFromBufLike)(creds.rawId) }); | ||
rawId: (0, candid_1.bufFromBufLike)(creds.rawId), | ||
}; | ||
} | ||
@@ -94,0 +101,0 @@ // See https://www.iana.org/assignments/cose/cose.xhtml#algorithms for a complete |
@@ -82,5 +82,12 @@ import { SignIdentity, wrapDER, DER_COSE_OID, fromHex, toHex, } from '@dfinity/agent'; | ||
} | ||
return Object.assign(Object.assign({}, creds), { | ||
return { | ||
// do _not_ use ...creds here, as creds is not enumerable in all cases | ||
id: creds.id, | ||
response: creds.response, | ||
type: creds.type, | ||
authenticatorAttachment: creds.authenticatorAttachment, | ||
getClientExtensionResults: creds.getClientExtensionResults, | ||
// Some password managers will return a Uint8Array, so we ensure we return an ArrayBuffer. | ||
rawId: bufFromBufLike(creds.rawId) }); | ||
rawId: bufFromBufLike(creds.rawId), | ||
}; | ||
} | ||
@@ -87,0 +94,0 @@ // See https://www.iana.org/assignments/cose/cose.xhtml#algorithms for a complete |
{ | ||
"name": "@dfinity/identity", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "DFINITY Stiftung <sdk@dfinity.org>", | ||
@@ -48,4 +48,4 @@ "license": "Apache-2.0", | ||
"peerDependencies": { | ||
"@dfinity/agent": "^1.1.0", | ||
"@dfinity/principal": "^1.1.0", | ||
"@dfinity/agent": "^1.1.1", | ||
"@dfinity/principal": "^1.1.1", | ||
"@peculiar/webcrypto": "^1.4.0" | ||
@@ -52,0 +52,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
332415
2602