@thi.ng/api 8.4.5 → 8.5.0

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-11-01T12:32:51Z
3
+ - **Last updated**: 2022-11-28T13:36:49Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ## [8.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@8.5.0) (2022-11-28)
13
+
14
+ #### 🚀 Features
15
+
16
+ - add boolean result for INotifiy.notify(), update mixin ([f4cb33a](https://github.com/thi-ng/umbrella/commit/f4cb33a))
17
+
12
18
  ### [8.4.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@8.4.5) (2022-11-01)
13
19
 
14
20
  #### 🩹 Bug fixes
@@ -66,33 +72,21 @@ and/or version bumps of transitive dependencies.
66
72
 
67
73
  #### 🚀 Features
68
74
 
69
- - add asInt() coercion helper ([49cd772](https://github.com/thi-ng/umbrella/commit/49cd772))
70
75
  - add IGrid2D/3D interfaces ([e57ad7e](https://github.com/thi-ng/umbrella/commit/e57ad7e))
76
+ - add asInt() coercion helper ([49cd772](https://github.com/thi-ng/umbrella/commit/49cd772))
71
77
 
72
78
  ### [8.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@8.0.1) (2021-10-13)
73
79
 
74
80
  #### ♻️ Refactoring
75
81
 
76
- - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
77
82
  - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
78
83
  - add .js suffix for all relative imports
84
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
79
85
 
80
86
  # [8.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@8.0.0) (2021-10-12)
81
87
 
82
88
  #### 🛑 Breaking changes
83
89
 
84
- - major pkg restructure ([98e286d](https://github.com/thi-ng/umbrella/commit/98e286d))
85
- - BREAKING CHANGE: major pkg restructure, migrations
86
- - migrate logging related types/classes to new [@thi.ng/logger](https://github.com/thi-ng/umbrella/tree/main/packages/logger) pkg
87
- - see [e0399a8f6](https://github.com/thi-ng/umbrella/commit/e0399a8f6) for details
88
- - migrate `exposeGlobal()` to new [@thi.ng/expose](https://github.com/thi-ng/umbrella/tree/main/packages/expose) pkg
89
- - see [323995fd7](https://github.com/thi-ng/umbrella/commit/323995fd7) for details
90
- - lift /api source files to main /src folder for easier import
91
- - this pkg now only contains type defs, constants, decorators and mixins
92
- all other functionality migrated to other packages...
93
- - remove obsolete assert() ([5f6ec5c](https://github.com/thi-ng/umbrella/commit/5f6ec5c))
94
- - BREAKING CHANGE: assert() moved to [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/main/packages/errors) pkg
95
- - see [7030a6aec](https://github.com/thi-ng/umbrella/commit/7030a6aec) for details
96
90
  - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
97
91
  - BREAKING CHANGE: discontinue CommonJS & UMD versions
98
92
  - only ESM modules will be published from now on
@@ -105,18 +99,30 @@ and/or version bumps of transitive dependencies.
105
99
  - normalize/restructure/reorg all package.json files
106
100
  - cleanup all build scripts, remove obsolete
107
101
  - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
102
+ - remove obsolete assert() ([5f6ec5c](https://github.com/thi-ng/umbrella/commit/5f6ec5c))
103
+ - BREAKING CHANGE: assert() moved to [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/main/packages/errors) pkg
104
+ - see [7030a6aec](https://github.com/thi-ng/umbrella/commit/7030a6aec) for details
105
+ - major pkg restructure ([98e286d](https://github.com/thi-ng/umbrella/commit/98e286d))
106
+ - BREAKING CHANGE: major pkg restructure, migrations
107
+ - migrate logging related types/classes to new [@thi.ng/logger](https://github.com/thi-ng/umbrella/tree/main/packages/logger) pkg
108
+ - see [e0399a8f6](https://github.com/thi-ng/umbrella/commit/e0399a8f6) for details
109
+ - migrate `exposeGlobal()` to new [@thi.ng/expose](https://github.com/thi-ng/umbrella/tree/main/packages/expose) pkg
110
+ - see [323995fd7](https://github.com/thi-ng/umbrella/commit/323995fd7) for details
111
+ - lift /api source files to main /src folder for easier import
112
+ - this pkg now only contains type defs, constants, decorators and mixins
113
+ all other functionality migrated to other packages...
108
114
 
109
115
  #### ♻️ Refactoring
110
116
 
111
- - minor pkg restructure (various) ([47f88d2](https://github.com/thi-ng/umbrella/commit/47f88d2))
117
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
118
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
112
119
  - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
113
120
  - largely related to recent updates/restructuring of these packages:
114
121
  - api
115
122
  - defmulti
116
123
  - errors
117
124
  - logger
118
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
119
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
125
+ - minor pkg restructure (various) ([47f88d2](https://github.com/thi-ng/umbrella/commit/47f88d2))
120
126
 
121
127
  ## [7.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@7.2.0) (2021-09-03)
122
128
 
@@ -159,9 +165,9 @@ and/or version bumps of transitive dependencies.
159
165
 
160
166
  #### 🚀 Features
161
167
 
162
- - more finely grained typedarray types ([8316d05](https://github.com/thi-ng/umbrella/commit/8316d05))
163
- - add typedArrayType() classifier ([5c81fd8](https://github.com/thi-ng/umbrella/commit/5c81fd8))
164
168
  - add Range type ([5d94974](https://github.com/thi-ng/umbrella/commit/5d94974))
169
+ - add typedArrayType() classifier ([5c81fd8](https://github.com/thi-ng/umbrella/commit/5c81fd8))
170
+ - more finely grained typedarray types ([8316d05](https://github.com/thi-ng/umbrella/commit/8316d05))
165
171
 
166
172
  ### [6.13.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@6.13.4) (2020-12-07)
167
173
 
@@ -173,8 +179,8 @@ and/or version bumps of transitive dependencies.
173
179
 
174
180
  #### 🚀 Features
175
181
 
176
- - add DeepPartial type ([0d9a0de](https://github.com/thi-ng/umbrella/commit/0d9a0de))
177
182
  - add FnU and FnN function types ([4ba48d0](https://github.com/thi-ng/umbrella/commit/4ba48d0))
183
+ - add DeepPartial type ([0d9a0de](https://github.com/thi-ng/umbrella/commit/0d9a0de))
178
184
 
179
185
  #### 🩹 Bug fixes
180
186
 
@@ -210,13 +216,13 @@ and/or version bumps of transitive dependencies.
210
216
 
211
217
  #### 🚀 Features
212
218
 
219
+ - add Path0-8, PathVal1-8, DeepPath types ([0c76108](https://github.com/thi-ng/umbrella/commit/0c76108))
220
+ - update Path alias, add doc strings ([e2b35bc](https://github.com/thi-ng/umbrella/commit/e2b35bc))
221
+ - add Derefed & DerefedKeys types ([95f1576](https://github.com/thi-ng/umbrella/commit/95f1576))
213
222
  - add optional props in Keys/Val types ([08b88f0](https://github.com/thi-ng/umbrella/commit/08b88f0))
214
223
  - force intermediate props using `Required<T>`
215
224
  - update Keys1-8, Val1-8
216
225
  - update KeysN / ValN
217
- - add Derefed & DerefedKeys types ([95f1576](https://github.com/thi-ng/umbrella/commit/95f1576))
218
- - update Path alias, add doc strings ([e2b35bc](https://github.com/thi-ng/umbrella/commit/e2b35bc))
219
- - add Path0-8, PathVal1-8, DeepPath types ([0c76108](https://github.com/thi-ng/umbrella/commit/0c76108))
220
226
 
221
227
  #### ♻️ Refactoring
222
228
 
@@ -247,28 +253,28 @@ and/or version bumps of transitive dependencies.
247
253
 
248
254
  #### ♻️ Refactoring
249
255
 
250
- - remove obsolete Drop/DropReducer ([5e80c4d](https://github.com/thi-ng/umbrella/commit/5e80c4d))
251
256
  - update IToHiccup, add opt args ([ac35685](https://github.com/thi-ng/umbrella/commit/ac35685))
257
+ - remove obsolete Drop/DropReducer ([5e80c4d](https://github.com/thi-ng/umbrella/commit/5e80c4d))
252
258
 
253
259
  ## [6.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@6.7.0) (2020-01-24)
254
260
 
255
261
  #### 🚀 Features
256
262
 
257
- - add IReset interface ([d491bd0](https://github.com/thi-ng/umbrella/commit/d491bd0))
258
- - add Drop, TupleLength, update Tuple ([dc79324](https://github.com/thi-ng/umbrella/commit/dc79324))
259
- - added the ReplaceN type ([4da54ae](https://github.com/thi-ng/umbrella/commit/4da54ae))
260
- - added the WithoutN type ([0d13af5](https://github.com/thi-ng/umbrella/commit/0d13af5))
261
- - added the Init type ([f6c333a](https://github.com/thi-ng/umbrella/commit/f6c333a))
262
- - added the Last type ([44ae2f7](https://github.com/thi-ng/umbrella/commit/44ae2f7))
263
- - added the ValN type ([b48623f](https://github.com/thi-ng/umbrella/commit/b48623f))
264
- - added the KeysN type ([e0f0e90](https://github.com/thi-ng/umbrella/commit/e0f0e90))
265
- - added the Reverse type ([88cfaa4](https://github.com/thi-ng/umbrella/commit/88cfaa4))
266
- - added the Prepend type ([7bfe7a8](https://github.com/thi-ng/umbrella/commit/7bfe7a8))
267
- - added the Tail type ([fa59ff3](https://github.com/thi-ng/umbrella/commit/fa59ff3))
268
- - added the Head type ([f000a3d](https://github.com/thi-ng/umbrella/commit/f000a3d))
269
- - add IClear interface ([38f03ff](https://github.com/thi-ng/umbrella/commit/38f03ff))
270
- - add more RangeXX types & RangeValueMap ([654ea53](https://github.com/thi-ng/umbrella/commit/654ea53))
271
263
  - add exposeGlobal(), update assert(), update readme ([7981cc9](https://github.com/thi-ng/umbrella/commit/7981cc9))
264
+ - add more RangeXX types & RangeValueMap ([654ea53](https://github.com/thi-ng/umbrella/commit/654ea53))
265
+ - add IClear interface ([38f03ff](https://github.com/thi-ng/umbrella/commit/38f03ff))
266
+ - added the Head type ([f000a3d](https://github.com/thi-ng/umbrella/commit/f000a3d))
267
+ - added the Tail type ([fa59ff3](https://github.com/thi-ng/umbrella/commit/fa59ff3))
268
+ - added the Prepend type ([7bfe7a8](https://github.com/thi-ng/umbrella/commit/7bfe7a8))
269
+ - added the Reverse type ([88cfaa4](https://github.com/thi-ng/umbrella/commit/88cfaa4))
270
+ - added the KeysN type ([e0f0e90](https://github.com/thi-ng/umbrella/commit/e0f0e90))
271
+ - added the ValN type ([b48623f](https://github.com/thi-ng/umbrella/commit/b48623f))
272
+ - added the Last type ([44ae2f7](https://github.com/thi-ng/umbrella/commit/44ae2f7))
273
+ - added the Init type ([f6c333a](https://github.com/thi-ng/umbrella/commit/f6c333a))
274
+ - added the WithoutN type ([0d13af5](https://github.com/thi-ng/umbrella/commit/0d13af5))
275
+ - added the ReplaceN type ([4da54ae](https://github.com/thi-ng/umbrella/commit/4da54ae))
276
+ - add Drop, TupleLength, update Tuple ([dc79324](https://github.com/thi-ng/umbrella/commit/dc79324))
277
+ - add IReset interface ([d491bd0](https://github.com/thi-ng/umbrella/commit/d491bd0))
272
278
 
273
279
  #### 🩹 Bug fixes
274
280
 
@@ -278,12 +284,12 @@ and/or version bumps of transitive dependencies.
278
284
 
279
285
  #### 🚀 Features
280
286
 
281
- - add WithoutX & ReplaceX types, update KeysX/ValX ([7707370](https://github.com/thi-ng/umbrella/commit/7707370))
282
- - add versions up to arity 8
283
- - add ISeq, ISeqable ([541e9c8](https://github.com/thi-ng/umbrella/commit/541e9c8))
284
287
  - add Uint/Int/FloatType & helpers ([1d3c824](https://github.com/thi-ng/umbrella/commit/1d3c824))
285
288
  - add grouped Type aliases
286
289
  - add uintType() / intType() helpers
290
+ - add ISeq, ISeqable ([541e9c8](https://github.com/thi-ng/umbrella/commit/541e9c8))
291
+ - add WithoutX & ReplaceX types, update KeysX/ValX ([7707370](https://github.com/thi-ng/umbrella/commit/7707370))
292
+ - add versions up to arity 8
287
293
 
288
294
  #### ♻️ Refactoring
289
295
 
@@ -293,16 +299,16 @@ and/or version bumps of transitive dependencies.
293
299
 
294
300
  #### 🚀 Features
295
301
 
296
- - add typedArray() factory, update type mappers, docs ([ac7fa13](https://github.com/thi-ng/umbrella/commit/ac7fa13))
297
- - add RangeXX types ([fc9cf21](https://github.com/thi-ng/umbrella/commit/fc9cf21))
298
302
  - add types, split api.ts into separate files ([b72e664](https://github.com/thi-ng/umbrella/commit/b72e664))
299
303
  - add GLType enum & GL2TYPE / TYPE2GL conversions
300
304
  - add TypedArrayContstructor, TYPEDARRAY_CTORS LUT
305
+ - add RangeXX types ([fc9cf21](https://github.com/thi-ng/umbrella/commit/fc9cf21))
306
+ - add typedArray() factory, update type mappers, docs ([ac7fa13](https://github.com/thi-ng/umbrella/commit/ac7fa13))
301
307
 
302
308
  #### ♻️ Refactoring
303
309
 
304
- - fix [#168](https://github.com/thi-ng/umbrella/issues/168), refactor Range types ([39bf8f1](https://github.com/thi-ng/umbrella/commit/39bf8f1))
305
310
  - update INotifyMixin to clean up listeners ([ed2be64](https://github.com/thi-ng/umbrella/commit/ed2be64))
311
+ - fix [#168](https://github.com/thi-ng/umbrella/issues/168), refactor Range types ([39bf8f1](https://github.com/thi-ng/umbrella/commit/39bf8f1))
306
312
 
307
313
  ## [6.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@6.4.0) (2019-09-21)
308
314
 
@@ -320,18 +326,18 @@ and/or version bumps of transitive dependencies.
320
326
 
321
327
  #### 🚀 Features
322
328
 
323
- - add Select2/3/4 conditional types ([a4bfb88](https://github.com/thi-ng/umbrella/commit/a4bfb88))
324
- - update assert() message arg types ([6137b48](https://github.com/thi-ng/umbrella/commit/6137b48))
325
- - add support for supplying message as no-arg fn to delay
326
- execution of template string literals
327
329
  - enable TS strict compiler flags (refactor) ([0430d01](https://github.com/thi-ng/umbrella/commit/0430d01))
328
330
  - add missing return types for IEnable, IGet, IGetIn
329
331
  - update mixins, add private interfaces
332
+ - update assert() message arg types ([6137b48](https://github.com/thi-ng/umbrella/commit/6137b48))
333
+ - add support for supplying message as no-arg fn to delay
334
+ execution of template string literals
335
+ - add Select2/3/4 conditional types ([a4bfb88](https://github.com/thi-ng/umbrella/commit/a4bfb88))
330
336
 
331
337
  #### ♻️ Refactoring
332
338
 
333
- - update IStack return types (TS strictNullChecks flag) ([daf1f4c](https://github.com/thi-ng/umbrella/commit/daf1f4c))
334
339
  - update IEnable mixin (strictNullChecks) ([525ad0d](https://github.com/thi-ng/umbrella/commit/525ad0d))
340
+ - update IStack return types (TS strictNullChecks flag) ([daf1f4c](https://github.com/thi-ng/umbrella/commit/daf1f4c))
335
341
 
336
342
  ## [6.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@6.2.0) (2019-05-22)
337
343
 
@@ -349,10 +355,10 @@ and/or version bumps of transitive dependencies.
349
355
 
350
356
  #### 🚀 Features
351
357
 
352
- - update ILogger, freeze NULL_LOGGER ([27ff8de](https://github.com/thi-ng/umbrella/commit/27ff8de))
353
358
  - add common logging types & default impls ([4578604](https://github.com/thi-ng/umbrella/commit/4578604))
354
359
  - add ILogger interface, LogLevel enum
355
360
  - add NULL_LOGGER & ConsoleLogger
361
+ - update ILogger, freeze NULL_LOGGER ([27ff8de](https://github.com/thi-ng/umbrella/commit/27ff8de))
356
362
 
357
363
  # [6.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@6.0.0) (2019-03-28)
358
364
 
@@ -375,8 +381,8 @@ and/or version bumps of transitive dependencies.
375
381
 
376
382
  #### 🚀 Features
377
383
 
378
- - add more Fn type aliases, update existing ([3707e61](https://github.com/thi-ng/umbrella/commit/3707e61))
379
384
  - add additional Fn arities ([33c7dfe](https://github.com/thi-ng/umbrella/commit/33c7dfe))
385
+ - add more Fn type aliases, update existing ([3707e61](https://github.com/thi-ng/umbrella/commit/3707e61))
380
386
 
381
387
  #### ♻️ Refactoring
382
388
 
@@ -405,9 +411,9 @@ and/or version bumps of transitive dependencies.
405
411
 
406
412
  #### 🚀 Features
407
413
 
408
- - add NumericArray and TypedArray types ([519394b](https://github.com/thi-ng/umbrella/commit/519394b))
409
414
  - add new/move type aliases into api.ts ([cf30ba2](https://github.com/thi-ng/umbrella/commit/cf30ba2))
410
415
  - Fn, FnAny, Pair, SEMAPHORE
416
+ - add NumericArray and TypedArray types ([519394b](https://github.com/thi-ng/umbrella/commit/519394b))
411
417
 
412
418
  ### [4.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@4.0.6) (2018-08-01)
413
419
 
package/README.md CHANGED
@@ -13,7 +13,6 @@ This project is part of the
13
13
  - [Status](#status)
14
14
  - [Installation](#installation)
15
15
  - [Dependencies](#dependencies)
16
- - [Usage examples](#usage-examples)
17
16
  - [API](#api)
18
17
  - [Authors](#authors)
19
18
  - [Maintainer](#maintainer)
@@ -61,24 +60,12 @@ node --experimental-repl-await
61
60
  > const api = await import("@thi.ng/api");
62
61
  ```
63
62
 
64
- Package sizes (gzipped, pre-treeshake): ESM: 2.33 KB
63
+ Package sizes (gzipped, pre-treeshake): ESM: 2.34 KB
65
64
 
66
65
  ## Dependencies
67
66
 
68
67
  None
69
68
 
70
- ## Usage examples
71
-
72
- Several demos in this repo's
73
- [/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
74
- directory are using this package.
75
-
76
- A selection:
77
-
78
- | Screenshot | Description | Live demo | Source |
79
- |:------------------------------------------------------------------------------------------------------------------|:--------------------------------------------|:-------------------------------------------------|:------------------------------------------------------------------------------|
80
- | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/zig-canvas.png" width="240"/> | Zig-based DOM creation & canvas drawing app | [Demo](https://demo.thi.ng/umbrella/zig-canvas/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/zig-canvas) |
81
-
82
69
  ## API
83
70
 
84
71
  [Generated API docs](https://docs.thi.ng/umbrella/api/)
package/event.d.ts CHANGED
@@ -16,6 +16,19 @@ export interface Event extends IID<PropertyKey> {
16
16
  export interface INotify {
17
17
  addListener(id: string, fn: Listener, scope?: any): boolean;
18
18
  removeListener(id: string, fn: Listener, scope?: any): boolean;
19
- notify(event: Event): void;
19
+ /**
20
+ * Broadcasts all registered listeners for given event type (in order
21
+ * registration) and returns true if any of them have been successfully
22
+ * notified.
23
+ *
24
+ * @remarks
25
+ * If a listener canceled the event (by setting {@link Event.canceled}), the
26
+ * function will stop notifying other listeners and return false. If no
27
+ * listeners are registered for the event, the function will also return
28
+ * false.
29
+ *
30
+ * @param event
31
+ */
32
+ notify(event: Event): boolean;
20
33
  }
21
34
  //# sourceMappingURL=event.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { Event } from "../event.js";
2
- export declare const inotify_dispatch: (listeners: any[][], e: Event) => void;
2
+ export declare const inotify_dispatch: (listeners: any[][], e: Event) => boolean;
3
3
  /**
4
4
  * Mixin class decorator, injects INotify default implementation, incl.
5
5
  * a lazily instantiated `_listeners` property object, storing
package/mixins/inotify.js CHANGED
@@ -2,14 +2,15 @@ import { EVENT_ALL } from "../api.js";
2
2
  import { mixin } from "../mixin.js";
3
3
  export const inotify_dispatch = (listeners, e) => {
4
4
  if (!listeners)
5
- return;
5
+ return false;
6
6
  for (let i = 0, n = listeners.length, l; i < n; i++) {
7
7
  l = listeners[i];
8
8
  l[0].call(l[1], e);
9
9
  if (e.canceled) {
10
- return;
10
+ return false;
11
11
  }
12
12
  }
13
+ return true;
13
14
  };
14
15
  /**
15
16
  * Mixin class decorator, injects INotify default implementation, incl.
@@ -46,8 +47,8 @@ export const INotifyMixin = mixin({
46
47
  if (!(listeners = this._listeners))
47
48
  return false;
48
49
  e.target === undefined && (e.target = this);
49
- inotify_dispatch(listeners[e.id], e);
50
- inotify_dispatch(listeners[EVENT_ALL], e);
50
+ const res = inotify_dispatch(listeners[e.id], e);
51
+ return inotify_dispatch(listeners[EVENT_ALL], e) || res;
51
52
  },
52
53
  __listener(listeners, f, scope) {
53
54
  let i = listeners.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/api",
3
- "version": "8.4.5",
3
+ "version": "8.5.0",
4
4
  "description": "Common, generic types, interfaces & mixins",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,10 +35,10 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@microsoft/api-extractor": "^7.33.5",
38
- "@thi.ng/testament": "^0.3.4",
38
+ "@thi.ng/testament": "^0.3.5",
39
39
  "rimraf": "^3.0.2",
40
40
  "tools": "^0.0.1",
41
- "typedoc": "^0.23.18",
41
+ "typedoc": "^0.23.20",
42
42
  "typescript": "^4.8.4"
43
43
  },
44
44
  "keywords": [
@@ -62,8 +62,8 @@
62
62
  "node": ">=12.7"
63
63
  },
64
64
  "files": [
65
- "*.js",
66
- "*.d.ts",
65
+ "./*.js",
66
+ "./*.d.ts",
67
67
  "decorators",
68
68
  "mixins"
69
69
  ],
@@ -222,5 +222,5 @@
222
222
  "default": "./watch.js"
223
223
  }
224
224
  },
225
- "gitHead": "a4b60163a8caddceed5ec1b6b3584d164f61e7b6\n"
225
+ "gitHead": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
226
226
  }