@iankibetsh/shframework 1.9.5 → 1.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/library.js CHANGED
@@ -202,12 +202,13 @@ function showToast (message, toastType, config) {
202
202
  }
203
203
  if(config){
204
204
  // alert(config.position)
205
- Object.keys(config).map(key=>mixinConfig[key] = config.key);
205
+ Object.keys(config).map(key=>mixinConfig[key] = config[key]);
206
206
  }
207
+ console.log(mixinConfig);
207
208
  const Toast = Swal__default["default"].mixin(mixinConfig);
208
- Toast.mixin({
209
- position: 'top'
210
- });
209
+ // Toast.mixin({
210
+ // position: 'top'
211
+ // })
211
212
  Toast.fire({
212
213
  icon: toastType,
213
214
  title: message,
package/dist/library.mjs CHANGED
@@ -172,12 +172,13 @@ function showToast (message, toastType, config) {
172
172
  }
173
173
  if(config){
174
174
  // alert(config.position)
175
- Object.keys(config).map(key=>mixinConfig[key] = config.key);
175
+ Object.keys(config).map(key=>mixinConfig[key] = config[key]);
176
176
  }
177
+ console.log(mixinConfig);
177
178
  const Toast = Swal.mixin(mixinConfig);
178
- Toast.mixin({
179
- position: 'top'
180
- });
179
+ // Toast.mixin({
180
+ // position: 'top'
181
+ // })
181
182
  Toast.fire({
182
183
  icon: toastType,
183
184
  title: message,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",