@simplewebauthn/browser
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -1,3 +0,3 @@ | ||
// [@webauthentine/browser] Version: 0.6.0 - Sunday, June 7th, 2020, 3:12:14 PM | ||
// [@webauthentine/browser] Version: 0.7.0 - Sunday, July 12th, 2020, 7:37:13 PM | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SimpleWebAuthnBrowser=t():e.SimpleWebAuthnBrowser=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return void 0!==(null===window||void 0===window?void 0:window.PublicKeyCredential)&&"function"==typeof window.PublicKeyCredential}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Uint8Array.from(e,e=>e.charCodeAt(0))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=new Uint8Array(e);let n="";for(const e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(6));t.default=function(e){const{id:t}=e;return{...e,id:o.default(t)}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.supportsWebauthn=t.startAssertion=t.startAttestation=void 0;const o=r(n(5));t.startAttestation=o.default;const u=r(n(7));t.startAssertion=u.default;const a=r(n(0));t.supportsWebauthn=a.default},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(1)),u=r(n(2)),a=r(n(0)),i=r(n(3));t.default=async function(e){if(!a.default())throw new Error("WebAuthn is not supported in this browser");const t={...e,challenge:o.default(e.challenge),user:{...e.user,id:o.default(e.user.id)},excludeCredentials:e.excludeCredentials.map(i.default)},n=await navigator.credentials.create({publicKey:t});if(!n)throw new Error("Attestation was not completed");const{id:r,rawId:l,response:s,type:d}=n;return{id:r,rawId:u.default(l),response:{attestationObject:u.default(s.attestationObject),clientDataJSON:u.default(s.clientDataJSON)},type:d}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n=(4-t.length%4)%4,r=t.padEnd(t.length+n,"="),o=atob(r),u=new ArrayBuffer(o.length),a=new Uint8Array(u);for(let e=0;e<o.length;e++)a[e]=o.charCodeAt(e);return u}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(1)),u=r(n(2)),a=r(n(0)),i=r(n(3));t.default=async function(e){if(!a.default())throw new Error("WebAuthn is not supported in this browser");const t={...e,challenge:o.default(e.challenge),allowCredentials:e.allowCredentials.map(i.default)},n=await navigator.credentials.get({publicKey:t});if(!n)throw new Error("Assertion was not completed");const{id:r,rawId:l,response:s,type:d}=n;let c=void 0;return s.userHandle&&(c=u.default(s.userHandle)),{id:r,rawId:u.default(l),response:{authenticatorData:u.default(s.authenticatorData),clientDataJSON:u.default(s.clientDataJSON),signature:u.default(s.signature),userHandle:c},type:d}}}])})); | ||
//# sourceMappingURL=simplewebauthn-browser.min.js.map |
{ | ||
"name": "@simplewebauthn/browser", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "SimpleWebAuthn for Browsers", | ||
@@ -26,3 +26,3 @@ "main": "dist/simplewebauthn-browser.min.js", | ||
"devDependencies": { | ||
"@simplewebauthn/typescript-types": "^0.6.0", | ||
"@simplewebauthn/typescript-types": "^0.7.0", | ||
"ts-loader": "^7.0.4", | ||
@@ -33,3 +33,3 @@ "webpack": "^4.43.0", | ||
}, | ||
"gitHead": "2180c772f4aa6de6d977710bf965edfaa1cf6737" | ||
"gitHead": "629ca7955282b76f8dd4acbfaa912db037ff8928" | ||
} |
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
24366