Skip to content

Commit

Permalink
added version in bundled js
Browse files Browse the repository at this point in the history
  • Loading branch information
dagnelies committed Aug 9, 2024
1 parent b9c6883 commit c4cf07f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/demos/js/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions docs/demos/js/conditional-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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/[email protected]*/ --outfile=dist/cjs/webauthn.cjs",
"build-browser": "esbuild src/index.ts --platform=browser --bundle --banner:js=/*passwordless-id/[email protected]*/ --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"
Expand Down

0 comments on commit c4cf07f

Please sign in to comment.