@remit/account-worker 0.0.21 → 0.0.23
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/package.json +3 -2
- package/src/handlers/organize-job.ts +1 -5
- package/src/poller.ts +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remit/account-worker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"bundle": "esbuild src/index.ts --sourcemap --bundle --platform=node --format=esm --outfile=dist/index.js",
|
|
30
30
|
"test:typecheck": "tsgo --noEmit",
|
|
31
31
|
"test:run": "node $NODE_TEST_FLAGS --env-file=../../localhost-test-unit.env --experimental-test-coverage --test-coverage-include='src/**' --test-coverage-exclude='src/**/*.test.ts' --test-coverage-exclude='src/**/*.test.tsx' --test-coverage-lines=91 --test 'src/**/*.test.ts'",
|
|
32
|
-
"test": "npm run test:typecheck && npm run test:run"
|
|
32
|
+
"test": "npm run test:typecheck && npm run test:run",
|
|
33
|
+
"dev": "node --import tsx src/poller.ts"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@remit/data-ports": "*",
|
|
@@ -79,11 +79,7 @@ export const processOrganizeJob = async (
|
|
|
79
79
|
|
|
80
80
|
const { messageIds, semanticUnavailable } = match;
|
|
81
81
|
const { applied, failed } = await applyOrganize(
|
|
82
|
-
{
|
|
83
|
-
client,
|
|
84
|
-
moveService: buildOrganizeMoveService(client),
|
|
85
|
-
match: matchDeps,
|
|
86
|
-
},
|
|
82
|
+
{ client, moveService: buildOrganizeMoveService(client) },
|
|
87
83
|
accountConfigId,
|
|
88
84
|
messageIds,
|
|
89
85
|
predicate,
|
package/src/poller.ts
CHANGED
|
@@ -4,10 +4,13 @@ import { env } from "expect-env";
|
|
|
4
4
|
import { fanoutHandler, finalizeHandler } from "./index.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Production queue poller
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* Production queue poller, and the standalone entrypoint for the dedicated
|
|
8
|
+
* image. The sibling workers carry a separate `e2e-processor-shim.ts` because
|
|
9
|
+
* they predate `runQueuePoller`; this one has no shim and needs none — the
|
|
10
|
+
* poller drains an SQS-compatible endpoint (the queue sidecar) exactly as it
|
|
11
|
+
* drains SQS, which is what deploy/vps/docker-compose.sqlite.yml already does,
|
|
12
|
+
* so the source-built e2e stack runs this same file (`npm run dev -w
|
|
13
|
+
* @remit/account-worker`, wired in npm-scripts/e2e-dev-up.sh).
|
|
11
14
|
*
|
|
12
15
|
* The deployment-specific steps of the cascade — sign-out, content
|
|
13
16
|
* invalidation, storage cleanup, and the row cascade — resolve through the
|