Skip to content

Commit

Permalink
Merge branch 'master' of github.com:avil13/vue-sweetalert2
Browse files Browse the repository at this point in the history
  • Loading branch information
avil13 committed May 6, 2020
2 parents 82126a5 + a2f1728 commit 455fdb7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions nuxt/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ import Vue from 'vue';
import VueSweetalert2 from 'vue-sweetalert2';

Vue.use(VueSweetalert2, <%= JSON.stringify(options, null, 2) %>);
export default ({}, inject) => {
inject('swal', Vue.swal)
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-sweetalert2",
"version": "3.0.3",
"version": "3.0.4",
"description": "Simple Vue sweetalert2 package",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue from 'vue';

import Swal, {SweetAlertOptions} from 'sweetalert2';
import Swal, {SweetAlertOptions} from 'sweetalert2/dist/sweetalert2.js';
import swalLocalInstance from 'sweetalert2/dist/sweetalert2.js';

type VueSwalInstance = typeof Swal.fire;
Expand Down

0 comments on commit 455fdb7

Please sign in to comment.