ts-patch-mongoose 2.6.3 → 2.6.5
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/cjs/types/plugin.d.ts +3 -3
- package/dist/esm/types/plugin.d.ts +3 -3
- package/jest.config.ts +1 -1
- package/package.json +12 -16
|
@@ -10,13 +10,13 @@ export declare const patchEventEmitter: {
|
|
|
10
10
|
removeAllListeners(eventName?: string | symbol | undefined): any;
|
|
11
11
|
setMaxListeners(n: number): any;
|
|
12
12
|
getMaxListeners(): number;
|
|
13
|
-
listeners<K>(eventName: string | symbol):
|
|
14
|
-
rawListeners<K>(eventName: string | symbol):
|
|
13
|
+
listeners<K>(eventName: string | symbol): Function[];
|
|
14
|
+
rawListeners<K>(eventName: string | symbol): Function[];
|
|
15
15
|
emit<K>(eventName: string | symbol, ...args: any[]): boolean;
|
|
16
16
|
listenerCount<K>(eventName: string | symbol, listener?: Function | undefined): number;
|
|
17
17
|
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
18
18
|
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
19
|
-
eventNames():
|
|
19
|
+
eventNames(): (string | symbol)[];
|
|
20
20
|
};
|
|
21
21
|
export declare const patchHistoryPlugin: <T>(schema: Schema<T>, opts: IPluginOptions<T>) => void;
|
|
22
22
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -10,13 +10,13 @@ export declare const patchEventEmitter: {
|
|
|
10
10
|
removeAllListeners(eventName?: string | symbol | undefined): any;
|
|
11
11
|
setMaxListeners(n: number): any;
|
|
12
12
|
getMaxListeners(): number;
|
|
13
|
-
listeners<K>(eventName: string | symbol):
|
|
14
|
-
rawListeners<K>(eventName: string | symbol):
|
|
13
|
+
listeners<K>(eventName: string | symbol): Function[];
|
|
14
|
+
rawListeners<K>(eventName: string | symbol): Function[];
|
|
15
15
|
emit<K>(eventName: string | symbol, ...args: any[]): boolean;
|
|
16
16
|
listenerCount<K>(eventName: string | symbol, listener?: Function | undefined): number;
|
|
17
17
|
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
18
18
|
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
19
|
-
eventNames():
|
|
19
|
+
eventNames(): (string | symbol)[];
|
|
20
20
|
};
|
|
21
21
|
export declare const patchHistoryPlugin: <T>(schema: Schema<T>, opts: IPluginOptions<T>) => void;
|
|
22
22
|
//# sourceMappingURL=plugin.d.ts.map
|
package/jest.config.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-patch-mongoose",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.5",
|
|
4
4
|
"description": "Patch history & events for mongoose models",
|
|
5
5
|
"author": "Alex Eagle",
|
|
6
6
|
"license": "MIT",
|
|
@@ -81,31 +81,27 @@
|
|
|
81
81
|
"lodash": "4.17.21",
|
|
82
82
|
"omit-deep": "0.3.0",
|
|
83
83
|
"power-assign": "0.2.10",
|
|
84
|
-
"semver": "7.6.
|
|
84
|
+
"semver": "7.6.3"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@shelf/jest-mongodb": "4.3.2",
|
|
88
|
-
"@stylistic/eslint-plugin": "2.
|
|
89
|
-
"@swc/
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"@swc/register": "0.1.10",
|
|
94
|
-
"@types/jest": "29.5.12",
|
|
95
|
-
"@types/lodash": "4.17.6",
|
|
96
|
-
"@types/node": "20",
|
|
88
|
+
"@stylistic/eslint-plugin": "2.8.0",
|
|
89
|
+
"@swc-node/jest": "1.8.12",
|
|
90
|
+
"@types/jest": "29.5.13",
|
|
91
|
+
"@types/lodash": "4.17.7",
|
|
92
|
+
"@types/node": "22",
|
|
97
93
|
"@types/semver": "7.5.8",
|
|
98
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
99
|
-
"@typescript-eslint/parser": "7.
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
95
|
+
"@typescript-eslint/parser": "7.18.0",
|
|
100
96
|
"eslint": "8.57.0",
|
|
101
|
-
"eslint-plugin-jest": "28.
|
|
97
|
+
"eslint-plugin-jest": "28.8.3",
|
|
102
98
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
103
99
|
"eslint-plugin-sonarjs": "0.25.1",
|
|
104
100
|
"jest": "29.7.0",
|
|
105
101
|
"merge": "2.1.1",
|
|
106
|
-
"mongoose": "8.
|
|
102
|
+
"mongoose": "8.6.2",
|
|
107
103
|
"open-cli": "8.0.0",
|
|
108
|
-
"typescript": "5.
|
|
104
|
+
"typescript": "5.6.2"
|
|
109
105
|
},
|
|
110
106
|
"peerDependencies": {
|
|
111
107
|
"mongoose": ">=6.6.0 < 9"
|