"license": "ISC",
"dependencies": {
"fastify": "^4.21.0",
- "poolifier": "^2.6.25"
+ "poolifier": "^2.6.26"
},
"devDependencies": {
"@rollup/plugin-typescript": "^11.1.2",
specifier: ^4.21.0
version: 4.21.0
poolifier:
- specifier: ^2.6.25
- version: 2.6.25
+ specifier: ^2.6.26
+ version: 2.6.26
devDependencies:
'@rollup/plugin-typescript':
tslib:
optional: true
dependencies:
- '@rollup/pluginutils': 5.0.2(rollup@3.28.0)
+ '@rollup/pluginutils': 5.0.3(rollup@3.28.0)
resolve: 1.22.4
rollup: 3.28.0
tslib: 2.6.1
typescript: 5.1.6
dev: true
- /@rollup/pluginutils@5.0.2(rollup@3.28.0):
- resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==}
+ /@rollup/pluginutils@5.0.3(rollup@3.28.0):
+ resolution: {integrity: sha512-hfllNN4a80rwNQ9QCxhxuHCGHMAvabXqxNdaChUSSadMre7t4iEUI6fFAhBOn/eIYTgYVhBv7vCLsAJ4u3lf3g==}
engines: {node: '>=14.0.0'}
peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0
thread-stream: 2.4.0
dev: false
- /poolifier@2.6.25:
- resolution: {integrity: sha512-e8RNC8txuDO7x1ALNMDTUVWyrsMCod3krp/ZIhR+L9Q0KpoywwHekyWnRB4V2PYW/B1yxvXoPbQi1a2hZOfsNw==}
+ /poolifier@2.6.26:
+ resolution: {integrity: sha512-cfcP3oCwtxG5DzxLXicUQjr6ieJzX/5/yT2Nt0tBByhufqtu6V2Son7kJXSHlWrNa08Y39cOaeNrOLCazoJ07w==}
engines: {node: '>=16.14.0', pnpm: '>=8.6.0'}
requiresBuild: true
dev: false
}
public constructor () {
- super(FastifyWorker.startFastify)
+ super(FastifyWorker.startFastify, {
+ killHandler: async () => {
+ await FastifyWorker.fastify.close()
+ }
+ })
}
}
name?: string,
transferList?: TransferListItem[]
) => Promise<ThreadWorkerResponse>
+ listTaskFunctions: () => string[]
}
}
"dependencies": {
"fastify": "^4.21.0",
"fastify-plugin": "^4.5.1",
- "poolifier": "^2.6.25"
+ "poolifier": "^2.6.26"
},
"devDependencies": {
"@rollup/plugin-typescript": "^11.1.2",
specifier: ^4.5.1
version: 4.5.1
poolifier:
- specifier: ^2.6.25
- version: 2.6.25
+ specifier: ^2.6.26
+ version: 2.6.26
devDependencies:
'@rollup/plugin-typescript':
tslib:
optional: true
dependencies:
- '@rollup/pluginutils': 5.0.2(rollup@3.28.0)
+ '@rollup/pluginutils': 5.0.3(rollup@3.28.0)
resolve: 1.22.4
rollup: 3.28.0
tslib: 2.6.1
typescript: 5.1.6
dev: true
- /@rollup/pluginutils@5.0.2(rollup@3.28.0):
- resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==}
+ /@rollup/pluginutils@5.0.3(rollup@3.28.0):
+ resolution: {integrity: sha512-hfllNN4a80rwNQ9QCxhxuHCGHMAvabXqxNdaChUSSadMre7t4iEUI6fFAhBOn/eIYTgYVhBv7vCLsAJ4u3lf3g==}
engines: {node: '>=14.0.0'}
peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0
thread-stream: 2.4.0
dev: false
- /poolifier@2.6.25:
- resolution: {integrity: sha512-e8RNC8txuDO7x1ALNMDTUVWyrsMCod3krp/ZIhR+L9Q0KpoywwHekyWnRB4V2PYW/B1yxvXoPbQi1a2hZOfsNw==}
+ /poolifier@2.6.26:
+ resolution: {integrity: sha512-cfcP3oCwtxG5DzxLXicUQjr6ieJzX/5/yT2Nt0tBByhufqtu6V2Son7kJXSHlWrNa08Y39cOaeNrOLCazoJ07w==}
engines: {node: '>=16.14.0', pnpm: '>=8.6.0'}
requiresBuild: true
dev: false
await pool.execute(data, name, transferList)
)
}
+ if (!fastify.hasDecorator('listTaskFunctions')) {
+ fastify.decorate('listTaskFunctions', (): string[] =>
+ pool.listTaskFunctions()
+ )
+ }
done()
}
}
public constructor () {
- super(FastifyWorker.startFastify)
+ super(FastifyWorker.startFastify, {
+ killHandler: async () => {
+ await FastifyWorker.fastify.close()
+ }
+ })
}
}
name?: string,
transferList?: TransferListItem[]
) => Promise<WorkerResponse>
+ listTaskFunctions: () => string[]
}
}
"dependencies": {
"fastify": "^4.21.0",
"fastify-plugin": "^4.5.1",
- "poolifier": "^2.6.25"
+ "poolifier": "^2.6.26"
},
"devDependencies": {
"@types/node": "^20.5.0",
specifier: ^4.5.1
version: 4.5.1
poolifier:
- specifier: ^2.6.25
- version: 2.6.25
+ specifier: ^2.6.26
+ version: 2.6.26
devDependencies:
'@types/node':
thread-stream: 2.4.0
dev: false
- /poolifier@2.6.25:
- resolution: {integrity: sha512-e8RNC8txuDO7x1ALNMDTUVWyrsMCod3krp/ZIhR+L9Q0KpoywwHekyWnRB4V2PYW/B1yxvXoPbQi1a2hZOfsNw==}
+ /poolifier@2.6.26:
+ resolution: {integrity: sha512-cfcP3oCwtxG5DzxLXicUQjr6ieJzX/5/yT2Nt0tBByhufqtu6V2Son7kJXSHlWrNa08Y39cOaeNrOLCazoJ07w==}
engines: {node: '>=16.14.0', pnpm: '>=8.6.0'}
requiresBuild: true
dev: false
): Promise<WorkerResponse> => await pool.execute(data, name, transferList)
)
}
+ if (!fastify.hasDecorator('listTaskFunctions')) {
+ fastify.decorate('listTaskFunctions', (): string[] =>
+ pool.listTaskFunctions()
+ )
+ }
done()
}
"author": "",
"license": "ISC",
"dependencies": {
- "poolifier": "^2.6.25",
+ "poolifier": "^2.6.26",
"ws": "^8.13.0"
},
"devDependencies": {
dependencies:
poolifier:
- specifier: ^2.6.25
- version: 2.6.25
+ specifier: ^2.6.26
+ version: 2.6.26
ws:
specifier: ^8.13.0
version: 8.13.0(bufferutil@4.0.7)(utf-8-validate@6.0.3)
tslib:
optional: true
dependencies:
- '@rollup/pluginutils': 5.0.2(rollup@3.28.0)
+ '@rollup/pluginutils': 5.0.3(rollup@3.28.0)
resolve: 1.22.4
rollup: 3.28.0
tslib: 2.6.1
typescript: 5.1.6
dev: true
- /@rollup/pluginutils@5.0.2(rollup@3.28.0):
- resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==}
+ /@rollup/pluginutils@5.0.3(rollup@3.28.0):
+ resolution: {integrity: sha512-hfllNN4a80rwNQ9QCxhxuHCGHMAvabXqxNdaChUSSadMre7t4iEUI6fFAhBOn/eIYTgYVhBv7vCLsAJ4u3lf3g==}
engines: {node: '>=14.0.0'}
peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0
engines: {node: '>=8.6'}
dev: true
- /poolifier@2.6.25:
- resolution: {integrity: sha512-e8RNC8txuDO7x1ALNMDTUVWyrsMCod3krp/ZIhR+L9Q0KpoywwHekyWnRB4V2PYW/B1yxvXoPbQi1a2hZOfsNw==}
+ /poolifier@2.6.26:
+ resolution: {integrity: sha512-cfcP3oCwtxG5DzxLXicUQjr6ieJzX/5/yT2Nt0tBByhufqtu6V2Son7kJXSHlWrNa08Y39cOaeNrOLCazoJ07w==}
engines: {node: '>=16.14.0', pnpm: '>=8.6.0'}
requiresBuild: true
dev: false
}
public constructor () {
- super(WebSocketServerWorker.startWebSocketServer)
+ super(WebSocketServerWorker.startWebSocketServer, {
+ killHandler: () => {
+ WebSocketServerWorker.wss.close()
+ }
+ })
}
}