@streamscloud/kit 0.1.4 → 0.1.5

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.
@@ -2,25 +2,22 @@ import { ToasterHost } from './toaster-host.svelte';
2
2
  export class Toastr {
3
3
  static async error(message, options) {
4
4
  const toast = await ToasterHost.ensure();
5
- toast.error(message, patchOptions(options));
5
+ toast.error(message, options);
6
6
  }
7
7
  static async success(message, options) {
8
8
  const toast = await ToasterHost.ensure();
9
- toast.success(message, patchOptions(options));
9
+ toast.success(message, options);
10
10
  }
11
11
  static async warning(message, options) {
12
12
  const toast = await ToasterHost.ensure();
13
- toast.warning(message, patchOptions(options));
13
+ toast.warning(message, options);
14
14
  }
15
15
  static async info(message, options) {
16
16
  const toast = await ToasterHost.ensure();
17
- toast.info(message, patchOptions(options));
17
+ toast.info(message, options);
18
18
  }
19
19
  static async promise(promise, messages) {
20
20
  const toast = await ToasterHost.ensure();
21
21
  toast.promise(promise, messages);
22
22
  }
23
23
  }
24
- const patchOptions = (options) => {
25
- return { ...options, duration: 100000 };
26
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",