diff --git a/docs/demos/js/basic.js b/docs/demos/js/basic.js index 458b082..b62aa72 100644 --- a/docs/demos/js/basic.js +++ b/docs/demos/js/basic.js @@ -54,6 +54,7 @@ const app = new Vue({ } catch(e) { // This might happen when there is something wrong or the user cancelled it + console.warn(e) this.$buefy.toast.open({ message: e, type: 'is-danger' @@ -88,6 +89,7 @@ const app = new Vue({ } catch(e) { // This might happen when there is something wrong or the user cancelled it + console.warn(e) this.$buefy.toast.open({ message: e, type: 'is-danger' diff --git a/docs/demos/js/conditional-ui.js b/docs/demos/js/conditional-ui.js index 3bd6fb4..2078063 100644 --- a/docs/demos/js/conditional-ui.js +++ b/docs/demos/js/conditional-ui.js @@ -56,6 +56,7 @@ const app = new Vue({ } catch(e) { // This might happen when there is something wrong or the user cancelled it + console.warn(e) this.$buefy.toast.open({ message: e, type: 'is-danger' @@ -95,6 +96,7 @@ const app = new Vue({ } catch(e) { // This might happen when there is something wrong or the user cancelled it + console.warn(e) this.$buefy.toast.open({ message: e, type: 'is-danger' diff --git a/package.json b/package.json index 47d986a..339f613 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@passwordless-id/webauthn", - "version": "2.0.4", + "version": "2.0.5", "description": "A small wrapper around the webauthn protocol to make one's life easier.", "type": "module", @@ -14,8 +14,8 @@ "scripts": { "build": "npm run build-module && npm run build-nodejs && npm run build-browser && npm run build-demos", "build-module": "tsc", - "build-nodejs": "esbuild src/index.ts --platform=node --bundle --outfile=dist/cjs/webauthn.cjs", - "build-browser": "esbuild src/index.ts --platform=browser --bundle --format=esm --minify --sourcemap --outfile=dist/browser/webauthn.min.js", + "build-nodejs": "esbuild src/index.ts --platform=node --bundle --banner:js=/*passwordless-id/webauthn@2.0.5*/ --outfile=dist/cjs/webauthn.cjs", + "build-browser": "esbuild src/index.ts --platform=browser --bundle --banner:js=/*passwordless-id/webauthn@2.0.5*/ --format=esm --minify --sourcemap --outfile=dist/browser/webauthn.min.js", "build-demos": "cp dist/browser/*.js docs/demos/js; cp dist/browser/*.js.map docs/demos/js", "test": "jest", "dev": "mkdocs serve"