wooks 0.5.13 → 0.5.14
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/dist/index.cjs +8 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -103,6 +103,14 @@ class WooksAdapterBase {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
Object.defineProperty(exports, "useEventId", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function () { return eventCore.useEventId; }
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(exports, "useEventLogger", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function () { return eventCore.useEventLogger; }
|
|
113
|
+
});
|
|
106
114
|
Object.defineProperty(exports, "useRouteParams", {
|
|
107
115
|
enumerable: true,
|
|
108
116
|
get: function () { return eventCore.useRouteParams; }
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _prostojs_router from '@prostojs/router';
|
|
|
2
2
|
import { ProstoRouter } from '@prostojs/router';
|
|
3
3
|
import { TConsoleBase, TProstoLoggerOptions } from '@prostojs/logger';
|
|
4
4
|
import { TEventOptions } from '@wooksjs/event-core';
|
|
5
|
-
export { useRouteParams } from '@wooksjs/event-core';
|
|
5
|
+
export { useEventId, useEventLogger, useRouteParams } from '@wooksjs/event-core';
|
|
6
6
|
|
|
7
7
|
type TWooksHandler<ResType = unknown> = () => Promise<ResType> | ResType;
|
|
8
8
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProstoLogger, createConsoleTransort, coloredConsole } from '@prostojs/logger';
|
|
2
2
|
import { ProstoRouter } from '@prostojs/router';
|
|
3
3
|
import { useAsyncEventContext, getContextInjector } from '@wooksjs/event-core';
|
|
4
|
-
export { useRouteParams } from '@wooksjs/event-core';
|
|
4
|
+
export { useEventId, useEventLogger, useRouteParams } from '@wooksjs/event-core';
|
|
5
5
|
|
|
6
6
|
function getDefaultLogger(topic) {
|
|
7
7
|
return new ProstoLogger({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wooks",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.14",
|
|
4
4
|
"description": "wooks",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@prostojs/router": "^0.2.1",
|
|
43
43
|
"@prostojs/logger": "^0.4.0",
|
|
44
|
-
"@wooksjs/event-core": "0.5.
|
|
44
|
+
"@wooksjs/event-core": "0.5.14"
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/wooksjs/wooksjs/tree/main/packages/wooks#readme"
|
|
47
47
|
}
|