@platformatic/sql-events 3.50.0 → 3.52.0
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/index.d.ts +5 -6
- package/package.json +4 -7
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Readable } from 'node:stream'
|
|
1
2
|
import { FastifyInstance } from 'fastify'
|
|
2
|
-
import {
|
|
3
|
+
import { MQEmitter } from 'mqemitter'
|
|
3
4
|
import { SQLMapperPluginInterface, Entities } from '@platformatic/sql-mapper'
|
|
4
5
|
import { FastifyError } from '@fastify/error'
|
|
5
6
|
|
|
@@ -9,10 +10,8 @@ export interface SQLEventsPluginInterface {
|
|
|
9
10
|
|
|
10
11
|
export interface SQLEventsPluginOptions<T extends Entities> {
|
|
11
12
|
mapper?: SQLMapperPluginInterface<T>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
mq?: any
|
|
15
|
-
connectionString?: String
|
|
13
|
+
mq?: MQEmitter
|
|
14
|
+
connectionString?: string
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
/**
|
|
@@ -28,5 +27,5 @@ export function setupEmitter<T extends Entities> (options: SQLEventsPluginOption
|
|
|
28
27
|
export namespace errors {
|
|
29
28
|
export const ObjectRequiredUnderTheDataProperty: () => FastifyError
|
|
30
29
|
export const PrimaryKeyIsNecessaryInsideData: () => FastifyError
|
|
31
|
-
export const NoSuchActionError: (
|
|
30
|
+
export const NoSuchActionError: (action: string) => FastifyError
|
|
32
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/sql-events",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.52.0",
|
|
4
4
|
"description": "Emit events via MQEmitter",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"fastify": "^5.7.0",
|
|
21
21
|
"ioredis": "^5.3.2",
|
|
22
22
|
"neostandard": "^0.12.0",
|
|
23
|
-
"
|
|
23
|
+
"tstyche": "^6.2.0",
|
|
24
24
|
"typescript": "^5.5.4",
|
|
25
|
-
"@platformatic/sql-mapper": "3.
|
|
25
|
+
"@platformatic/sql-mapper": "3.52.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@fastify/error": "^4.0.0",
|
|
@@ -31,9 +31,6 @@
|
|
|
31
31
|
"mqemitter": "^7.0.0",
|
|
32
32
|
"mqemitter-redis": "^7.0.0"
|
|
33
33
|
},
|
|
34
|
-
"tsd": {
|
|
35
|
-
"directory": "test/types"
|
|
36
|
-
},
|
|
37
34
|
"engines": {
|
|
38
35
|
"node": ">=22.19.0"
|
|
39
36
|
},
|
|
@@ -44,7 +41,7 @@
|
|
|
44
41
|
"test:mysql": "DB=mysql node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js",
|
|
45
42
|
"test:mysql8": "DB=mysql8 node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js",
|
|
46
43
|
"test:sqlite": "DB=sqlite node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js",
|
|
47
|
-
"test:types": "
|
|
44
|
+
"test:types": "tstyche",
|
|
48
45
|
"lint": "eslint"
|
|
49
46
|
}
|
|
50
47
|
}
|