@thi.ng/interceptors 3.2.27 → 3.2.29

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**: 2023-12-03T12:13:31Z
3
+ - **Last updated**: 2023-12-11T10:07:09Z
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.
package/README.md CHANGED
@@ -151,7 +151,7 @@ For Node.js REPL:
151
151
  const interceptors = await import("@thi.ng/interceptors");
152
152
  ```
153
153
 
154
- Package sizes (brotli'd, pre-treeshake): ESM: 2.15 KB
154
+ Package sizes (brotli'd, pre-treeshake): ESM: 2.16 KB
155
155
 
156
156
  ## Dependencies
157
157
 
package/api.js CHANGED
@@ -1,27 +1,31 @@
1
1
  import { NULL_LOGGER } from "@thi.ng/logger/null";
2
- // Built-in event ID constants
3
- export const EV_SET_VALUE = "--set-value";
4
- export const EV_UPDATE_VALUE = "--update-value";
5
- export const EV_TOGGLE_VALUE = "--toggle-value";
6
- // Built-in side effect ID constants
7
- export const FX_CANCEL = "--cancel";
8
- export const FX_DISPATCH = "--dispatch";
9
- export const FX_DISPATCH_ASYNC = "--dispatch-async";
10
- export const FX_DISPATCH_NOW = "--dispatch-now";
11
- export const FX_DELAY = "--delay";
12
- export const FX_FETCH = "--fetch";
13
- export const FX_STATE = "--state";
14
- /**
15
- * Event ID to trigger redo action.
16
- * See `EventBus.addBuiltIns()` for further details.
17
- * Also see {@link snapshot} interceptor docs.
18
- */
19
- export const EV_REDO = "--redo";
20
- /**
21
- * Event ID to trigger undo action.
22
- * See `EventBus.addBuiltIns()` for further details.
23
- * Also see {@link snapshot} interceptor docs.
24
- */
25
- export const EV_UNDO = "--undo";
26
- export let LOGGER = NULL_LOGGER;
27
- export const setLogger = (logger) => (LOGGER = logger);
2
+ const EV_SET_VALUE = "--set-value";
3
+ const EV_UPDATE_VALUE = "--update-value";
4
+ const EV_TOGGLE_VALUE = "--toggle-value";
5
+ const FX_CANCEL = "--cancel";
6
+ const FX_DISPATCH = "--dispatch";
7
+ const FX_DISPATCH_ASYNC = "--dispatch-async";
8
+ const FX_DISPATCH_NOW = "--dispatch-now";
9
+ const FX_DELAY = "--delay";
10
+ const FX_FETCH = "--fetch";
11
+ const FX_STATE = "--state";
12
+ const EV_REDO = "--redo";
13
+ const EV_UNDO = "--undo";
14
+ let LOGGER = NULL_LOGGER;
15
+ const setLogger = (logger) => LOGGER = logger;
16
+ export {
17
+ EV_REDO,
18
+ EV_SET_VALUE,
19
+ EV_TOGGLE_VALUE,
20
+ EV_UNDO,
21
+ EV_UPDATE_VALUE,
22
+ FX_CANCEL,
23
+ FX_DELAY,
24
+ FX_DISPATCH,
25
+ FX_DISPATCH_ASYNC,
26
+ FX_DISPATCH_NOW,
27
+ FX_FETCH,
28
+ FX_STATE,
29
+ LOGGER,
30
+ setLogger
31
+ };