feathers-utils 1.6.0 → 1.6.1

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.
@@ -1,29 +1,28 @@
1
1
  {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "type": "node",
6
- "request": "launch",
7
- "name": "Mocha Tests",
8
- "program": "${workspaceFolder}/node_modules/mocha/bin/mocha",
9
- "args": [
10
- "--require",
11
- "ts-node/register",
12
- "--timeout",
13
- "999999",
14
- "--colors",
15
- "--recursive",
16
- ],
17
- "internalConsoleOptions": "openOnSessionStart",
18
- "env": {
19
- "NODE_ENV": "test",
20
- "TS_NODE_PROJECT": "tsconfig.test.json"
21
- },
22
- "outputCapture": "std",
23
- "skipFiles": [
24
- "<node_internals>/**"
25
- ]
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "type": "node",
6
+ "request": "launch",
7
+ "name": "Mocha Tests",
8
+ "program": "${workspaceFolder}/node_modules/mocha/bin/mocha",
9
+ "args": [
10
+ "--require",
11
+ "ts-node/register",
12
+ "--timeout",
13
+ "999999",
14
+ "--colors",
15
+ "--recursive",
16
+ ],
17
+ "internalConsoleOptions": "openOnSessionStart",
18
+ "env": {
19
+ "NODE_ENV": "test",
20
+ "TS_NODE_PROJECT": "tsconfig.test.json"
26
21
  },
27
- ]
28
- }
29
-
22
+ "outputCapture": "std",
23
+ "skipFiles": [
24
+ "<node_internals>/**"
25
+ ]
26
+ }
27
+ ]
28
+ }
@@ -8,7 +8,7 @@ export declare class DebouncedStore {
8
8
  private _isRunningById;
9
9
  _queueById: Record<string, DebouncedFunc<((id: Id, action: DebouncedFunctionApp) => void | Promise<void>)>>;
10
10
  add: (id: Id, action: (app?: Application<{}> | undefined) => void | Promise<void>) => void | Promise<void> | undefined;
11
- constructor(app: Application, options: Partial<DebouncedStoreOptions>);
11
+ constructor(app: Application, options?: Partial<DebouncedStoreOptions>);
12
12
  private unbounced;
13
13
  private debounceById;
14
14
  cancel(id: Id): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feathers-utils",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Some utils for projects using '@feathersjs/feathers'",
5
5
  "author": "fratzinger",
6
6
  "repository": {
@@ -24,7 +24,7 @@ export class DebouncedStore {
24
24
  _queueById: Record<string, DebouncedFunc<((id: Id, action: DebouncedFunctionApp) => void | Promise<void>)>>;
25
25
  //_waitingById: Record<string, WaitingObject>;
26
26
  add;
27
- constructor(app: Application, options: Partial<DebouncedStoreOptions>) {
27
+ constructor(app: Application, options?: Partial<DebouncedStoreOptions>) {
28
28
  this._app = app;
29
29
  this._options = Object.assign(makeDefaultOptions(), options);
30
30
  this._queueById = {};