narrat 3.10.0 → 3.10.2
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/constants.d.ts +7 -0
- package/dist/narrat.es.js +3795 -3702
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +42 -39
- package/dist/narrat.umd.js.map +1 -1
- package/dist/types/logging-types.d.ts +7 -0
- package/dist/utils/logging.d.ts +8 -0
- package/dist/vm/commands/js-commands.d.ts +9 -0
- package/dist/vm/commands/string-commands.d.ts +12 -0
- package/package.json +3 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LogLevel } from '../types/logging-types';
|
|
2
|
+
export declare function generateLoggingFunction(moduleName: string, logLevel: LogLevel, currentLogLevel: LogLevel): (...args: any[]) => void;
|
|
3
|
+
export declare function createLogger(moduleName: string, logLevel: LogLevel): {
|
|
4
|
+
error: (...args: any[]) => void;
|
|
5
|
+
warn: (...args: any[]) => void;
|
|
6
|
+
info: (...args: any[]) => void;
|
|
7
|
+
debug: (...args: any[]) => void;
|
|
8
|
+
};
|
|
@@ -7,3 +7,15 @@ export declare const stringJoinPlugin: CommandPlugin<{
|
|
|
7
7
|
a: number;
|
|
8
8
|
b: number;
|
|
9
9
|
}, {}>;
|
|
10
|
+
export declare const stringSplitPlugin: CommandPlugin<{
|
|
11
|
+
a: number;
|
|
12
|
+
b: number;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export declare const stringSearchPlugin: CommandPlugin<{
|
|
15
|
+
str: string;
|
|
16
|
+
matcher: string;
|
|
17
|
+
}, {}>;
|
|
18
|
+
export declare const regexSearchPlugin: CommandPlugin<{
|
|
19
|
+
str: string;
|
|
20
|
+
regex: string;
|
|
21
|
+
}, {}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "narrat",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"description": "narrat narrative engine",
|
|
5
5
|
"main": "dist/narrat.umd.js",
|
|
6
6
|
"module": "dist/narrat.es.js",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist/"
|
|
19
19
|
],
|
|
20
|
+
"type": "module",
|
|
20
21
|
"pnpm": {
|
|
21
22
|
"patchedDependencies": {
|
|
22
23
|
"@types/testing-library__jest-dom@5.14.5": "patches-@types__testing-library__jest-dom@5.14.5.patch"
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"eslint-plugin-node": "^11.1.0",
|
|
96
97
|
"eslint-plugin-promise": "^6.0.0",
|
|
97
98
|
"eslint-plugin-vue": "^9.15.1",
|
|
99
|
+
"execa": "^8.0.1",
|
|
98
100
|
"jsdom": "^20.0.0",
|
|
99
101
|
"kolorist": "^1.5.1",
|
|
100
102
|
"pinia": "^2.1.7",
|