@iankibetsh/shframework 4.2.1 → 4.2.3

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
@@ -186,7 +186,16 @@ function showToast(message, toastType, config){
186
186
  toastType = 'success';
187
187
  }
188
188
  if (config) {
189
- Object.keys(config).map(key => mixinConfig[key] = config[key]);
189
+ Object.keys(config).map(key =>{
190
+ let newKey = key;
191
+ if(key === 'duration'){
192
+ newKey = 'timer';
193
+ }
194
+ if(key === 'timeout'){
195
+ newKey = 'timer';
196
+ }
197
+ mixinConfig[newKey] = config[key];
198
+ });
190
199
  }
191
200
  console.log(mixinConfig);
192
201
  const Toast = Swal__default["default"].mixin(mixinConfig);
package/dist/library.mjs CHANGED
@@ -174,7 +174,16 @@ function showToast(message, toastType, config){
174
174
  toastType = 'success';
175
175
  }
176
176
  if (config) {
177
- Object.keys(config).map(key => mixinConfig[key] = config[key]);
177
+ Object.keys(config).map(key =>{
178
+ let newKey = key;
179
+ if(key === 'duration'){
180
+ newKey = 'timer';
181
+ }
182
+ if(key === 'timeout'){
183
+ newKey = 'timer';
184
+ }
185
+ mixinConfig[newKey] = config[key];
186
+ });
178
187
  }
179
188
  console.log(mixinConfig);
180
189
  const Toast = Swal.mixin(mixinConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "4.2.1",
3
+ "version": "4.2.3",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",