@dudousxd/nestjs-telescope-mikro-orm 1.13.0 → 1.14.1
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 +57 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +18 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +32 -0
- package/dist/schema.js.map +1 -0
- package/dist/telescope-mikro-orm.logger.d.ts +18 -3
- package/dist/telescope-mikro-orm.logger.d.ts.map +1 -1
- package/dist/telescope-mikro-orm.logger.js +16 -15
- package/dist/telescope-mikro-orm.logger.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# @dudousxd/nestjs-telescope-mikro-orm
|
|
2
2
|
|
|
3
|
+
## 1.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#39](https://github.com/DavideCarvalho/nestjs-telescope/pull/39) [`58f5d72`](https://github.com/DavideCarvalho/nestjs-telescope/commit/58f5d727244441c21f4db4ce2cc55609ac6dd11c) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - `telescopeMikroOrmLogger` accepts options as the first argument for the zero-config case — `telescopeMikroOrmLogger({ slowMs: 100 })` instead of `telescopeMikroOrmLogger(undefined, { slowMs: 100 })`.
|
|
8
|
+
|
|
9
|
+
## 1.14.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#37](https://github.com/DavideCarvalho/nestjs-telescope/pull/37) [`3969c33`](https://github.com/DavideCarvalho/nestjs-telescope/commit/3969c338dd6c360fb08bb68e6b279f06cdf7ab77) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Add `telescopeManagedTables()`, returning the three tables
|
|
14
|
+
(`telescope_entries`, `telescope_rollups`, `telescope_schema_meta`) the
|
|
15
|
+
`MikroOrmStorageProvider` boot-manages. Consumers running their own MikroORM
|
|
16
|
+
CLI migrations against a shared database previously had to hand-maintain a
|
|
17
|
+
`/^telescope_/` regex (or an explicit list) in `skipTables` so a migration
|
|
18
|
+
diff never tried to drop telescope's tables — including the boot fingerprint
|
|
19
|
+
marker, which is easy to forget. `telescopeManagedTables()` derives the list
|
|
20
|
+
straight from the entities' own `tableName` metadata (never a hardcoded
|
|
21
|
+
parallel literal), so a future rename flows through automatically:
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { telescopeManagedTables } from "@dudousxd/nestjs-telescope-mikro-orm";
|
|
25
|
+
|
|
26
|
+
await MikroORM.init({
|
|
27
|
+
// ...your entities/driver config
|
|
28
|
+
schemaGenerator: { skipTables: telescopeManagedTables() },
|
|
29
|
+
});
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
- [#37](https://github.com/DavideCarvalho/nestjs-telescope/pull/37) [`3969c33`](https://github.com/DavideCarvalho/nestjs-telescope/commit/3969c338dd6c360fb08bb68e6b279f06cdf7ab77) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Add a first-class deferred record sink, `telescopeRecord`/`setTelescopeRecordSink`
|
|
33
|
+
(exported from core), mirroring `telescopeDump`'s pattern. It exists for
|
|
34
|
+
boot-time integrations — most notably a MikroORM query logger — that need to
|
|
35
|
+
emit Telescope entries before Nest DI has constructed `TelescopeService`:
|
|
36
|
+
MikroORM builds (and can start calling) its logger at `MikroORM.init()`, well
|
|
37
|
+
before `TelescopeModule` wires anything. `TelescopeService`'s constructor binds
|
|
38
|
+
the global sink automatically and `onApplicationShutdown` clears it; calls made
|
|
39
|
+
before binding (or after shutdown) are dropped, not buffered — there is no
|
|
40
|
+
unbounded queue waiting to replay boot noise.
|
|
41
|
+
|
|
42
|
+
This removes the need for host apps to hand-roll their own module-global
|
|
43
|
+
bridge (`let telescopeRecord; export function setTelescopeRecord()` filled in
|
|
44
|
+
from `onModuleInit`) just to wire the MikroORM logger before DI is ready.
|
|
45
|
+
|
|
46
|
+
`telescopeMikroOrmLogger`'s `record` parameter is now optional. When omitted,
|
|
47
|
+
the logger lazily resolves `telescopeRecord` from core at each `logQuery` call
|
|
48
|
+
(not at construction), so binding order no longer matters:
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
MikroORM.init({
|
|
52
|
+
debug: ["query"],
|
|
53
|
+
loggerFactory: telescopeMikroOrmLogger(),
|
|
54
|
+
});
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
An explicit `record` function, when passed, still takes precedence over the
|
|
58
|
+
global sink.
|
|
59
|
+
|
|
3
60
|
## 1.13.0
|
|
4
61
|
|
|
5
62
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClF,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClF,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAwB,MAAM,4BAA4B,CAAC;AAClF,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAwB,MAAM,4BAA4B,CAAC;AAClF,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,aAAa,CAAC"}
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tables this package creates and manages at boot (autoSchema). Feed to your
|
|
3
|
+
* ORM's migration differ skip/exclude list so it never tries to drop them.
|
|
4
|
+
*
|
|
5
|
+
* DERIVED from the three entities' own `tableName` — never a hardcoded
|
|
6
|
+
* parallel literal list — so a future rename flows through automatically.
|
|
7
|
+
* Includes `telescope_schema_meta` (the boot fingerprint marker): a migration
|
|
8
|
+
* differ that doesn't know about it would try to drop it too.
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* await MikroORM.init({
|
|
12
|
+
* // ...your entities/driver config
|
|
13
|
+
* schemaGenerator: { skipTables: telescopeManagedTables() },
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function telescopeManagedTables(): string[];
|
|
18
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,EAAE,CAEjD"}
|
package/dist/schema.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// packages/mikro-orm/src/schema.ts
|
|
2
|
+
//
|
|
3
|
+
// The tables the `MikroOrmStorageProvider` boot-manages: `telescope_entries`,
|
|
4
|
+
// `telescope_rollups`, and `telescope_schema_meta` (see
|
|
5
|
+
// mikro-orm-storage.provider.ts for the fingerprint-gated `schema.update`
|
|
6
|
+
// that reconciles them). A host that runs its OWN MikroORM CLI migrations
|
|
7
|
+
// against a shared database needs to keep its migration differ from ever
|
|
8
|
+
// trying to drop these — this module gives it that denylist without hand-
|
|
9
|
+
// maintaining a parallel string list that can drift from the entities.
|
|
10
|
+
import { TelescopeEntry } from './telescope-entry.entity.js';
|
|
11
|
+
import { TelescopeRollup } from './telescope-rollup.entity.js';
|
|
12
|
+
import { TelescopeSchemaMeta } from './telescope-schema-meta.entity.js';
|
|
13
|
+
/**
|
|
14
|
+
* Tables this package creates and manages at boot (autoSchema). Feed to your
|
|
15
|
+
* ORM's migration differ skip/exclude list so it never tries to drop them.
|
|
16
|
+
*
|
|
17
|
+
* DERIVED from the three entities' own `tableName` — never a hardcoded
|
|
18
|
+
* parallel literal list — so a future rename flows through automatically.
|
|
19
|
+
* Includes `telescope_schema_meta` (the boot fingerprint marker): a migration
|
|
20
|
+
* differ that doesn't know about it would try to drop it too.
|
|
21
|
+
*
|
|
22
|
+
* ```ts
|
|
23
|
+
* await MikroORM.init({
|
|
24
|
+
* // ...your entities/driver config
|
|
25
|
+
* schemaGenerator: { skipTables: telescopeManagedTables() },
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export function telescopeManagedTables() {
|
|
30
|
+
return [TelescopeEntry.tableName, TelescopeRollup.tableName, TelescopeSchemaMeta.tableName];
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,EAAE;AACF,8EAA8E;AAC9E,wDAAwD;AACxD,0EAA0E;AAC1E,0EAA0E;AAC1E,yEAAyE;AACzE,0EAA0E;AAC1E,uEAAuE;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,CAAC,cAAc,CAAC,SAAS,EAAE,eAAe,CAAC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAC9F,CAAC"}
|
|
@@ -11,11 +11,13 @@ export interface TelescopeLoggerOptions {
|
|
|
11
11
|
silent?: boolean;
|
|
12
12
|
}
|
|
13
13
|
/** A MikroORM DefaultLogger subclass that tees every executed query into
|
|
14
|
-
* `record`, while preserving MikroORM's own logging behavior via super.
|
|
14
|
+
* `record`, while preserving MikroORM's own logging behavior via super.
|
|
15
|
+
* When `record` is omitted, each `logQuery` lazily resolves the boot-time
|
|
16
|
+
* `telescopeRecord` global sink instead — see {@link telescopeMikroOrmLogger}. */
|
|
15
17
|
export declare class TelescopeMikroOrmLogger extends DefaultLogger {
|
|
16
18
|
private readonly _record;
|
|
17
19
|
private readonly slowMs;
|
|
18
|
-
constructor(options: LoggerOptions, _record: (input: RecordInput) => void, slowMs: number);
|
|
20
|
+
constructor(options: LoggerOptions, _record: ((input: RecordInput) => void) | undefined, slowMs: number);
|
|
19
21
|
logQuery(context: {
|
|
20
22
|
query: string;
|
|
21
23
|
} & LogContext): void;
|
|
@@ -30,6 +32,19 @@ export declare class TelescopeMikroOrmLogger extends DefaultLogger {
|
|
|
30
32
|
* loggerFactory: telescopeMikroOrmLogger(record, { slowMs: 100, silent: true }),
|
|
31
33
|
* });
|
|
32
34
|
* ```
|
|
35
|
+
*
|
|
36
|
+
* Zero-config usage — omit `record` entirely and the logger resolves the
|
|
37
|
+
* boot-time global sink (`telescopeRecord`) at call time, so it works even
|
|
38
|
+
* when `MikroORM.init()` runs before `TelescopeModule` has wired anything
|
|
39
|
+
* (entries are simply dropped until it does). Options can be passed FIRST in
|
|
40
|
+
* that case — no `undefined` placeholder needed:
|
|
41
|
+
* ```ts
|
|
42
|
+
* MikroORM.init({
|
|
43
|
+
* debug: ['query'],
|
|
44
|
+
* loggerFactory: telescopeMikroOrmLogger({ slowMs: 100, silent: true }),
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
33
47
|
*/
|
|
34
|
-
export declare function telescopeMikroOrmLogger(
|
|
48
|
+
export declare function telescopeMikroOrmLogger(options?: TelescopeLoggerOptions): (loggerOptions: LoggerOptions) => TelescopeMikroOrmLogger;
|
|
49
|
+
export declare function telescopeMikroOrmLogger(record: ((input: RecordInput) => void) | undefined, options?: TelescopeLoggerOptions): (loggerOptions: LoggerOptions) => TelescopeMikroOrmLogger;
|
|
35
50
|
//# sourceMappingURL=telescope-mikro-orm.logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telescope-mikro-orm.logger.d.ts","sourceRoot":"","sources":["../src/telescope-mikro-orm.logger.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"telescope-mikro-orm.logger.d.ts","sourceRoot":"","sources":["../src/telescope-mikro-orm.logger.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,WAAW,EAGjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErF,MAAM,WAAW,sBAAsB;IACrC,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;mFAGmF;AACnF,qBAAa,uBAAwB,SAAQ,aAAa;IAGtD,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFvB,OAAO,EAAE,aAAa,EACL,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,SAAS,EACnD,MAAM,EAAE,MAAM;IAMxB,QAAQ,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,UAAU,GAAG,IAAI;CAwBjE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,CAAC,EAAE,sBAAsB,GAC/B,CAAC,aAAa,EAAE,aAAa,KAAK,uBAAuB,CAAC;AAC7D,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,SAAS,EAClD,OAAO,CAAC,EAAE,sBAAsB,GAC/B,CAAC,aAAa,EAAE,aAAa,KAAK,uBAAuB,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// packages/mikro-orm/src/telescope-mikro-orm.logger.ts
|
|
2
|
-
import { EntryType, queryFamilyHash } from '@dudousxd/nestjs-telescope';
|
|
2
|
+
import { EntryType, queryFamilyHash, telescopeRecord, } from '@dudousxd/nestjs-telescope';
|
|
3
3
|
import { DefaultLogger } from '@mikro-orm/core';
|
|
4
4
|
/** A MikroORM DefaultLogger subclass that tees every executed query into
|
|
5
|
-
* `record`, while preserving MikroORM's own logging behavior via super.
|
|
5
|
+
* `record`, while preserving MikroORM's own logging behavior via super.
|
|
6
|
+
* When `record` is omitted, each `logQuery` lazily resolves the boot-time
|
|
7
|
+
* `telescopeRecord` global sink instead — see {@link telescopeMikroOrmLogger}. */
|
|
6
8
|
export class TelescopeMikroOrmLogger extends DefaultLogger {
|
|
7
9
|
_record;
|
|
8
10
|
slowMs;
|
|
@@ -17,7 +19,12 @@ export class TelescopeMikroOrmLogger extends DefaultLogger {
|
|
|
17
19
|
if (sql) {
|
|
18
20
|
const took = typeof context.took === 'number' ? context.took : null;
|
|
19
21
|
const tags = took !== null && took >= this.slowMs ? ['slow'] : [];
|
|
20
|
-
|
|
22
|
+
// Resolved AT CALL TIME (not captured at construction) so that when no
|
|
23
|
+
// explicit `record` was supplied, binding order doesn't matter: MikroORM
|
|
24
|
+
// can construct this logger (via `MikroORM.init()`) before Nest DI has
|
|
25
|
+
// wired `TelescopeService`, and `telescopeRecord` is a no-op until then.
|
|
26
|
+
const record = this._record ?? telescopeRecord;
|
|
27
|
+
record({
|
|
21
28
|
type: EntryType.Query,
|
|
22
29
|
content: {
|
|
23
30
|
sql,
|
|
@@ -32,18 +39,12 @@ export class TelescopeMikroOrmLogger extends DefaultLogger {
|
|
|
32
39
|
super.logQuery(context);
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* // Capture queries for Telescope without spamming the console:
|
|
42
|
-
* loggerFactory: telescopeMikroOrmLogger(record, { slowMs: 100, silent: true }),
|
|
43
|
-
* });
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
export function telescopeMikroOrmLogger(record, options = {}) {
|
|
42
|
+
export function telescopeMikroOrmLogger(recordOrOptions, maybeOptions = {}) {
|
|
43
|
+
// Options-first overload: a non-function first arg IS the options bag.
|
|
44
|
+
const record = typeof recordOrOptions === 'function' ? recordOrOptions : undefined;
|
|
45
|
+
const options = typeof recordOrOptions === 'function' || recordOrOptions === undefined
|
|
46
|
+
? maybeOptions
|
|
47
|
+
: recordOrOptions;
|
|
47
48
|
const slowMs = options.slowMs ?? 100;
|
|
48
49
|
const silent = options.silent ?? false;
|
|
49
50
|
// When silent, swap MikroORM's writer for a no-op so `super.logQuery` records
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telescope-mikro-orm.logger.js","sourceRoot":"","sources":["../src/telescope-mikro-orm.logger.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"telescope-mikro-orm.logger.js","sourceRoot":"","sources":["../src/telescope-mikro-orm.logger.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EACL,SAAS,EAET,eAAe,EACf,eAAe,GAChB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAuC,MAAM,iBAAiB,CAAC;AAarF;;;mFAGmF;AACnF,MAAM,OAAO,uBAAwB,SAAQ,aAAa;IAGrC;IACA;IAHnB,YACE,OAAsB,EACL,OAAmD,EACnD,MAAc;QAE/B,KAAK,CAAC,OAAO,CAAC,CAAC;QAHE,YAAO,GAAP,OAAO,CAA4C;QACnD,WAAM,GAAN,MAAM,CAAQ;IAGjC,CAAC;IAED,+DAA+D;IACtD,QAAQ,CAAC,OAAuC;QACvD,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC;QAC1B,IAAI,GAAG,EAAE,CAAC;YACR,MAAM,IAAI,GAAG,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACpE,MAAM,IAAI,GAAa,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5E,uEAAuE;YACvE,yEAAyE;YACzE,uEAAuE;YACvE,yEAAyE;YACzE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,IAAI,eAAe,CAAC;YAC/C,MAAM,CAAC;gBACL,IAAI,EAAE,SAAS,CAAC,KAAK;gBACrB,OAAO,EAAE;oBACP,GAAG;oBACH,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;oBAClE,IAAI;iBACL;gBACD,UAAU,EAAE,eAAe,CAAC,GAAG,CAAC;gBAChC,UAAU,EAAE,IAAI;gBAChB,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACrC,CAAC,CAAC;QACL,CAAC;QACD,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF;AAgCD,MAAM,UAAU,uBAAuB,CACrC,eAAyE,EACzE,eAAuC,EAAE;IAEzC,uEAAuE;IACvE,MAAM,MAAM,GAAG,OAAO,eAAe,KAAK,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;IACnF,MAAM,OAAO,GACX,OAAO,eAAe,KAAK,UAAU,IAAI,eAAe,KAAK,SAAS;QACpE,CAAC,CAAC,YAAY;QACd,CAAC,CAAC,eAAe,CAAC;IACtB,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC;IACrC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,KAAK,CAAC;IACvC,8EAA8E;IAC9E,4EAA4E;IAC5E,mEAAmE;IACnE,OAAO,CAAC,aAA4B,EAAE,EAAE,CACtC,IAAI,uBAAuB,CACzB,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,aAAa,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,aAAa,EACtE,MAAM,EACN,MAAM,CACP,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudousxd/nestjs-telescope-mikro-orm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"description": "MikroORM query watcher for @dudousxd/nestjs-telescope.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@nestjs/common": ">=10.0.0",
|
|
33
33
|
"@nestjs/core": ">=10.0.0",
|
|
34
34
|
"reflect-metadata": ">=0.1.13",
|
|
35
|
-
"@dudousxd/nestjs-telescope": "^1.
|
|
35
|
+
"@dudousxd/nestjs-telescope": "^1.16.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@mikro-orm/core": "^7.0.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"supertest": "^7.0.0",
|
|
51
51
|
"typescript": "^5.4.0",
|
|
52
52
|
"vitest": "^3.0.0",
|
|
53
|
-
"@dudousxd/nestjs-telescope": "1.
|
|
53
|
+
"@dudousxd/nestjs-telescope": "1.16.0"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=20"
|