@thepassle/app-tools 0.8.2 → 0.8.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/api/index.js CHANGED
@@ -39,11 +39,6 @@ export class Api {
39
39
  };
40
40
  }
41
41
 
42
- /** @param {Plugin} plugin */
43
- addPlugin(plugin) {
44
- this.config.plugins.push(plugin);
45
- }
46
-
47
42
  /**
48
43
  * @param {string} url
49
44
  * @param {Method} method
@@ -4,7 +4,9 @@
4
4
  */
5
5
  export const delayPlugin = (ms) => ({
6
6
  name: 'delay',
7
- afterFetch: () => {new Promise(r => setTimeout(r,ms))}
7
+ afterFetch: async () => {
8
+ await new Promise(r => setTimeout(r,ms))
9
+ }
8
10
  });
9
11
 
10
12
  export const delay = delayPlugin(1000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thepassle/app-tools",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",