diff --git a/nodejs/deploy-and-start-instance.js b/nodejs/deploy-and-start-instance.js index 4acd938..49dd968 100644 --- a/nodejs/deploy-and-start-instance.js +++ b/nodejs/deploy-and-start-instance.js @@ -16,4 +16,5 @@ void (async () => { }) console.log(result) + process.exit(0) })() diff --git a/nodejs/email-worker.js b/nodejs/email-worker.js index 3792c43..8d4c03b 100644 --- a/nodejs/email-worker.js +++ b/nodejs/email-worker.js @@ -8,9 +8,9 @@ const zbc = new ZBClient({ }, }) -zbc.createWorker({ +const worker = zbc.createWorker({ taskType: 'email', - taskHandler: (job, _, worker) => { + taskHandler: (job) => { const { message_content } = job.variables worker.log(`Sending email with message content: ${message_content}`) job.complete() diff --git a/nodejs/package-lock.json b/nodejs/package-lock.json index a196ca6..de09cf6 100644 --- a/nodejs/package-lock.json +++ b/nodejs/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "Apache-2.0", "dependencies": { - "zeebe-node": "^8.1.5" + "zeebe-node": "8.2.5" } }, "node_modules/@grpc/grpc-js": { @@ -424,18 +424,24 @@ } }, "node_modules/fast-xml-parser": { - "version": "3.21.1", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-3.21.1.tgz", - "integrity": "sha512-FTFVjYoBOZTJekiUsawGsSYV9QL0A+zDYCRj7y34IO6Jg+2IMYEtQa+bbictpdpV8dHxXywqU7C0gRDEOFtBFg==", + "version": "4.2.7", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.7.tgz", + "integrity": "sha512-J8r6BriSLO1uj2miOk1NW0YVm8AGOOu3Si2HQp/cSmo6EA4m3fcwu2WKjJ4RK9wMLBtg69y1kS8baDiQBR41Ig==", + "funding": [ + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + }, + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], "dependencies": { - "strnum": "^1.0.4" + "strnum": "^1.0.5" }, "bin": { - "xml2js": "cli.js" - }, - "funding": { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" + "fxparser": "src/cli/cli.js" } }, "node_modules/fp-ts": { @@ -739,12 +745,11 @@ "integrity": "sha512-HLwA+hNq/2eXe03isJSfa7YJt6NikplBGdNKvlhyuR6WL5iZi2uXJIZv1SSOMEIukCZbeQ8QwIcQ801S0/Qulw==" }, "node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz", + "integrity": "sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==", "bin": { - "uuid": "bin/uuid" + "uuid": "dist/bin/uuid" } }, "node_modules/wrap-ansi": { @@ -802,9 +807,9 @@ } }, "node_modules/zeebe-node": { - "version": "8.1.5", - "resolved": "https://registry.npmjs.org/zeebe-node/-/zeebe-node-8.1.5.tgz", - "integrity": "sha512-+ObPyFp9vWcqZno+yUZe8UozQgo/wGb6H+UAQQGNFSGU6HqkTr43ILa763tggMSGf40i7vytIq3dN98UMB4yMQ==", + "version": "8.2.5", + "resolved": "https://registry.npmjs.org/zeebe-node/-/zeebe-node-8.2.5.tgz", + "integrity": "sha512-QhEnnchsuM7j0v8cCtOKMPfV/MdtJm8o/NY2abKyB45X6oNOUJGKuTCpt5WFiPjHdmD+VWUXfEm6ATl1OZevGQ==", "dependencies": { "@grpc/grpc-js": "1.8.7", "@grpc/proto-loader": "0.7.4", @@ -812,14 +817,14 @@ "console-stamp": "^3.0.2", "dayjs": "^1.8.15", "debug": "^4.2.0", - "fast-xml-parser": "^3.12.12", + "fast-xml-parser": "^4.1.3", "fp-ts": "^2.5.1", "got": "^11.8.5", "long": "^4.0.0", "promise-retry": "^1.1.1", "stack-trace": "0.0.10", "typed-duration": "^1.0.12", - "uuid": "^3.3.2" + "uuid": "^7.0.3" }, "bin": { "zeebe-node": "bin/zeebe-node" @@ -1156,11 +1161,11 @@ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" }, "fast-xml-parser": { - "version": "3.21.1", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-3.21.1.tgz", - "integrity": "sha512-FTFVjYoBOZTJekiUsawGsSYV9QL0A+zDYCRj7y34IO6Jg+2IMYEtQa+bbictpdpV8dHxXywqU7C0gRDEOFtBFg==", + "version": "4.2.7", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.7.tgz", + "integrity": "sha512-J8r6BriSLO1uj2miOk1NW0YVm8AGOOu3Si2HQp/cSmo6EA4m3fcwu2WKjJ4RK9wMLBtg69y1kS8baDiQBR41Ig==", "requires": { - "strnum": "^1.0.4" + "strnum": "^1.0.5" } }, "fp-ts": { @@ -1393,9 +1398,9 @@ "integrity": "sha512-HLwA+hNq/2eXe03isJSfa7YJt6NikplBGdNKvlhyuR6WL5iZi2uXJIZv1SSOMEIukCZbeQ8QwIcQ801S0/Qulw==" }, "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz", + "integrity": "sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==" }, "wrap-ansi": { "version": "7.0.0", @@ -1437,9 +1442,9 @@ "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==" }, "zeebe-node": { - "version": "8.1.5", - "resolved": "https://registry.npmjs.org/zeebe-node/-/zeebe-node-8.1.5.tgz", - "integrity": "sha512-+ObPyFp9vWcqZno+yUZe8UozQgo/wGb6H+UAQQGNFSGU6HqkTr43ILa763tggMSGf40i7vytIq3dN98UMB4yMQ==", + "version": "8.2.5", + "resolved": "https://registry.npmjs.org/zeebe-node/-/zeebe-node-8.2.5.tgz", + "integrity": "sha512-QhEnnchsuM7j0v8cCtOKMPfV/MdtJm8o/NY2abKyB45X6oNOUJGKuTCpt5WFiPjHdmD+VWUXfEm6ATl1OZevGQ==", "requires": { "@grpc/grpc-js": "1.8.7", "@grpc/proto-loader": "0.7.4", @@ -1447,14 +1452,14 @@ "console-stamp": "^3.0.2", "dayjs": "^1.8.15", "debug": "^4.2.0", - "fast-xml-parser": "^3.12.12", + "fast-xml-parser": "^4.1.3", "fp-ts": "^2.5.1", "got": "^11.8.5", "long": "^4.0.0", "promise-retry": "^1.1.1", "stack-trace": "0.0.10", "typed-duration": "^1.0.12", - "uuid": "^3.3.2" + "uuid": "^7.0.3" } } } diff --git a/nodejs/package.json b/nodejs/package.json index 9c0f724..0768e8f 100644 --- a/nodejs/package.json +++ b/nodejs/package.json @@ -17,6 +17,6 @@ }, "homepage": "https://github.com/camunda/camunda-platform-get-started#readme", "dependencies": { - "zeebe-node": "^8.1.5" + "zeebe-node": "8.2.5" } }