diff --git a/docs/.vuepress/config.base.js b/docs/.vuepress/config.base.js index 6e2ebaa2925..ee5ef1312cd 100644 --- a/docs/.vuepress/config.base.js +++ b/docs/.vuepress/config.base.js @@ -257,6 +257,10 @@ module.exports = ({title, description, base = "", url, apiRedirectUrl = "", them text: "Serverless", link: `${base}/tutorials/serverless.html` }, + { + text: "Temporal", + link: `${base}/tutorials/temporal.html` + }, { text: "Terminus", link: `${base}/tutorials/terminus.html` diff --git a/docs/.vuepress/public/temporal.svg b/docs/.vuepress/public/temporal.svg new file mode 100644 index 00000000000..82c394d8257 --- /dev/null +++ b/docs/.vuepress/public/temporal.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/docs/tutorials/temporal.md b/docs/tutorials/temporal.md new file mode 100644 index 00000000000..6966032cd8c --- /dev/null +++ b/docs/tutorials/temporal.md @@ -0,0 +1,221 @@ +--- +meta: + - name: description + content: Use Temporal.io with Express/Koa, TypeScript and Ts.ED. Temporal is an open source durable execution system. Write code that’s fault tolerant, durable, and simple. + - name: keywords + content: ts.ed express typescript temporal temporal.io node.js javascript decorators +--- + +# Temporal + + + +## Feature + +[Temporal](https://temporal.io) lets you write complex asynchronous distributed workflows using easy to read linear code. For more information about Temporal take a look at the documentation [here](https://docs.temporal.io/). + +The `@tsed/temporal` module allows you to decorate classes with `@Temporal` and +corresponding methods with `@Activity` to write and start asynchronous workflows. + +Inject the `TemporalClient` to start/schedule and query workflows or to send signals to them. + +Use the `bootstrapWorker` helper to start a queue that executes your workflows and activities. + +## Installation + +To begin, install the Temporal module for Ts.ED: + +```bash +npm install --save @tsed/temporal +npm install --save @temporalio/client @temporalio/worker +``` + +## Configure your server + +Import `@tsed/temporal` in your Server: + +```typescript +import {Configuration} from "@tsed/common"; +import "@tsed/temporal"; // import temporal ts.ed module + +@Configuration({ + temporal: { + enabled: true, + connection: { + /* optional: see ConnectionOptions of @temporalio/client */ + }, + client: { + /* optional: see ClientOptions of @temporalio/client */ + } + } +}) +export class Server {} +``` + +## Create a new Service + +Decorate the class with `@Temporal`. + +Use the `@Activity` decorator to define activities. + +```typescript +import {Temporal, Activity} from "@tsed/agenda"; + +@Temporal() +export class UserOnboardingActivities { + constructor(private userService: UserService, private emailService: EmailService) {} + + @Activity() + async sendVerificationEmail(email: string) { + return this.emailService.sendVerificationEmail(email); + } + + @Activity() + async activateUser(email: string) { + return this.userService.activateUser(email); + } + + @Activity() + async sendWelcomeEmail(email: string) { + return this.emailService.sendWelcomeEmail(email); + } + + @Activity() + async sendFollowUpEmail(email: string) { + return this.emailService.sendFollowUpEmail(email); + } + + @Activity() + async deleteUser(email: string) { + return this.userService.deleteUser(email); + } +} +``` + +Optional, create an interface for your activities to use it later for your [workflows](https://docs.temporal.io/workflows). + +```ts +interface IUserOnboardingActivities { + sendVerificationEmail(email: string): Promise; + activateUser(email: string): Promise; + sendWelcomeEmail(email: string): Promise; + sendFollowUpEmail(email: string): Promise; + deleteUser(email: string): Promise; +} + +export type Activities = IGreetingActivity; +``` + +### Write Workflows + +Workflows are regular functions that cannot interact directly with Ts.ED or other packages. Just the earlier created interface is used for type-safety. + +::: warning +Do not import any non temporal packages here. The workflows are bundled internally by the worker and won't have access to anything else. +::: + +```ts +import {proxyActivities, defineSignal, setHandler, condition, sleep} from "@temporalio/workflow"; +import {Activities} from "../activities"; + +export const isVerifiedSignal = defineSignal("verificationSignal"); + +export async function onboardUser(email: string): Promise { + const {sendVerificationEmail, activateUser, sendWelcomeEmail, sendFollowUpEmail, deleteUser} = proxyActivities({ + startToCloseTimeout: "1 minute" + }); + + let isVerified = false; + setHandler(isVerifiedSignal, () => { + isVerified = true; + }); + + // 1. Send verification email + await sendVerificationEmail(email); + + // 2. Wait for verification ... + const verifiedInTime = await condition(() => isVerified, "1w" /* or for a timeout */); + if (!verifiedInTime) { + // 3a. If not verified in time, delete user + await deleteUserAndTenant(email); + return false; + } + + // 3b. If verified in time, send welcome email + await sendWelcomeEmail(email); + + // 4. Send follow up email after one day + await sleep("1d"); // special sleep function by temporal + await sendFollowUpEmail(email); +} +``` + +## Inject TemporalClient + +Inject the TemporalClient instance to interact with it directly, e.g. to start a workflow. + +```typescript +import {Service, AfterRoutesInit} from "@tsed/common"; +import {TemporalClient} from "@tsed/temporal"; +import {onboardUser} from "../workflows"; + +@Service() +export class UsersService implements AfterRoutesInit { + @Inject() + private temporalClient: TemporalClient; + + async create(user: User): Promise { + // ... + await this.temporalClient.workflow.start(onboardUser, { + args: [user.email], + taskQueue: "onboarding", + workflowId: `onboarding-${user.id}` + }); + } +} +``` + +### Start a worker + +The workflows and activities won't get executed until you start a worker. This module provides a helper function to bootstrap a worker based on your Ts.ED server class that is aware of all your activities. + +The most tricky part is the `workflowsPath` parameter. This is the path of the file/folder where the workflows are exported. The file is automatically loaded when the worker is started and internally bundled with webpack. The path is highly dependent on your project structure and build process. + +Read more about it [here](https://docs.temporal.io/typescript/troubleshooting/#webpack-errors). + +```ts +import {bootstrapWorker} from "@tsed/temporal"; +import {Server} from "./app/Server"; + +const worker = await bootstrapWorker(Server, { + worker: { + taskQueue: "onboarding", + workflowsPath: require.resolve("./temporal") // other example: path.join(process.cwd(), 'dist/apps/api/temporal/index.ts'); + }, + connection: { + /* optional: see NativeConnectionOptions of @temporalio/worker */ + }, + platform: { + /* optional: see PlatformBuilderSettings of @tsed/common */ + componentsScan: false, + logger: { + level: "info" + } + } +}); +await worker.run(); +``` + +## Authors + + + +## Maintainers + + + +
+ +
diff --git a/package.json b/package.json index afd42eb4f30..0524af505b4 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "test:graphql": "lerna run test --scope \"@tsed/{apollo,typegraphql}\" --stream", "test:security": "lerna run test --scope \"@tsed/{jwks,oidc-provider,passport}\" --stream", "test:specs": "lerna run test --scope \"@tsed/{ajv,exceptions,json-mapper,schema,swagger}\" --stream --concurrency 2", - "test:third-parties": "lerna run test --scope \"@tsed/{agenda,async-hook-context,components-scan,event-emitter,seq,socketio,stripe,terminus,vite-ssr-plugin}\" --stream --concurrency 4", + "test:third-parties": "lerna run test --scope \"@tsed/{agenda,async-hook-context,components-scan,event-emitter,seq,socketio,stripe,temporal,terminus,vite-ssr-plugin}\" --stream --concurrency 4", "test:formio": "lerna run test --scope \"@tsed/{schema-formio,formio}\" --stream", "coverage": "merge-istanbul --out coverage/coverage-final.json \"**/packages/**/coverage/coverage-final.json\" && nyc report --reporter text --reporter html --reporter lcov -t coverage --report-dir coverage", "coveralls": "nyc report --reporter=text-lcov | coveralls", diff --git a/packages/third-parties/temporal/.eslintignore b/packages/third-parties/temporal/.eslintignore new file mode 100644 index 00000000000..2aab498ae47 --- /dev/null +++ b/packages/third-parties/temporal/.eslintignore @@ -0,0 +1,13 @@ +node_modules +docs +docs-references +lib +dist +coverage +.nyc_output +*-lock.json +*.lock +benchmarks.* +**/generated + +**/*.js diff --git a/packages/third-parties/temporal/.eslintrc.js b/packages/third-parties/temporal/.eslintrc.js new file mode 100644 index 00000000000..802f86f8b54 --- /dev/null +++ b/packages/third-parties/temporal/.eslintrc.js @@ -0,0 +1 @@ +module.exports = require("@tsed/eslint/node.js"); diff --git a/packages/third-parties/temporal/jest.config.js b/packages/third-parties/temporal/jest.config.js new file mode 100644 index 00000000000..f4763791c11 --- /dev/null +++ b/packages/third-parties/temporal/jest.config.js @@ -0,0 +1,16 @@ +// For a detailed explanation regarding each configuration property, visit: +// https://jestjs.io/docs/en/configuration.html + +module.exports = { + ...require("@tsed/jest-config"), + roots: ["/src", "/test"], + coverageThreshold: { + global: { + statements: 81.91, + branches: 76.19, + functions: 80, + lines: 81.91 + } + }, + transformIgnorePatterns: ["test/workflows/.*\\.ts$"] +}; diff --git a/packages/third-parties/temporal/package.json b/packages/third-parties/temporal/package.json new file mode 100644 index 00000000000..f498f01b2f9 --- /dev/null +++ b/packages/third-parties/temporal/package.json @@ -0,0 +1,47 @@ +{ + "name": "@tsed/temporal", + "version": "7.36.5", + "description": "Temporal.io package for Ts.ED framework", + "source": "./src/index.ts", + "main": "./lib/cjs/index.js", + "module": "./lib/esm/index.js", + "typings": "./lib/types/index.d.ts", + "exports": { + "types": "./lib/types/index.d.ts", + "import": "./lib/esm/index.js", + "require": "./lib/cjs/index.js", + "default": "./lib/esm/index.js" + }, + "scripts": { + "build": "yarn barrels && yarn build:ts", + "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"", + "test": "cross-env NODE_ENV=test yarn jest --runInBand && jest-coverage-thresholds-bumper ", + "build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json", + "lint": "eslint '**/*.{ts,js}'", + "lint:fix": "eslint '**/*.{ts,js}' --fix" + }, + "contributors": [ + { + "name": "Oliver Christen" + } + ], + "dependencies": { + "tslib": "2.5.0" + }, + "private": false, + "devDependencies": { + "@temporalio/client": "^1.8.4", + "@temporalio/testing": "^1.8.4", + "@temporalio/worker": "^1.8.4", + "@tsed/common": "7.36.5", + "@tsed/core": "7.36.5", + "@tsed/di": "7.36.5", + "@tsed/eslint": "7.36.5", + "@tsed/typescript": "7.36.5", + "eslint": "^8.12.0" + }, + "peerDependencies": { + "@temporalio/client": "^1.8.4", + "@temporalio/worker": "^1.8.4" + } +} diff --git a/packages/third-parties/temporal/readme.md b/packages/third-parties/temporal/readme.md new file mode 100644 index 00000000000..fb1abe31b39 --- /dev/null +++ b/packages/third-parties/temporal/readme.md @@ -0,0 +1,256 @@ +

+ Ts.ED logo +

+ +
+ +

Temporal

+ +[![Build & Release](https://github.com/tsedio/tsed/workflows/Build%20&%20Release/badge.svg)](https://github.com/tsedio/tsed/actions?query=workflow%3A%22Build+%26+Release%22) +[![PR Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/tsedio/tsed/blob/master/CONTRIBUTING.md) +[![Coverage Status](https://coveralls.io/repos/github/tsedio/tsed/badge.svg?branch=production)](https://coveralls.io/github/tsedio/tsed?branch=production) +[![npm version](https://badge.fury.io/js/%40tsed%2Fcommon.svg)](https://badge.fury.io/js/%40tsed%2Fcommon) +[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) +[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) +[![github](https://img.shields.io/static/v1?label=Github%20sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/romakita) +[![opencollective](https://img.shields.io/static/v1?label=OpenCollective%20sponsor&message=%E2%9D%A4&logo=OpenCollective&color=%23fe8e86)](https://opencollective.com/tsed) + +
+ +
+ Website +   •   + Getting started +   •   + Slack +   •   + Twitter +
+ +
+ +A package of Ts.ED framework. See website: https://tsed.io + +## Feature + +[Temporal](https://temporal.io) lets you write complex asynchronous distributed workflows using easy to read linear code. For more information about Temporal take a look at the documentation [here](https://docs.temporal.io/). + +The `@tsed/temporal` module allows you to decorate classes with `@Temporal` and +corresponding methods with `@Activity` to write and start asynchronous workflows. + +Inject the `TemporalClient` to start/schedule and query workflows or to send signals to them. + +Use the `bootstrapWorker` helper to start a queue that executes your workflows and activities. + +## Installation + +To begin, install the Temporal module for Ts.ED: + +```bash +npm install --save @tsed/temporal +npm install --save @temporalio/client @temporalio/worker +``` + +## Configure your server + +Import `@tsed/temporal` in your Server: + +```typescript +import {Configuration} from "@tsed/common"; +import "@tsed/temporal"; // import temporal ts.ed module + +@Configuration({ + temporal: { + enabled: true, + connection: { + /* optional: see ConnectionOptions of @temporalio/client */ + }, + client: { + /* optional: see ClientOptions of @temporalio/client */ + } + } +}) +export class Server {} +``` + +## Create a new Service + +Decorate the class with `@Temporal`. + +Use the `@Activity` decorator to define activities. + +```typescript +import {Temporal, Activity} from "@tsed/temporal"; + +@Temporal() +export class UserOnboardingActivities { + constructor(private userService: UserService, private emailService: EmailService) {} + + @Activity() + async sendVerificationEmail(email: string) { + return this.emailService.sendVerificationEmail(email); + } + + @Activity() + async activateUser(email: string) { + return this.userService.activateUser(email); + } + + @Activity() + async sendWelcomeEmail(email: string) { + return this.emailService.sendWelcomeEmail(email); + } + + @Activity() + async sendFollowUpEmail(email: string) { + return this.emailService.sendFollowUpEmail(email); + } + + @Activity() + async deleteUser(email: string) { + return this.userService.deleteUser(email); + } +} +``` + +Optional, create an interface for your activities to use it later for your [workflows](https://docs.temporal.io/workflows). + +```ts +interface IUserOnboardingActivities { + sendVerificationEmail(email: string): Promise; + activateUser(email: string): Promise; + sendWelcomeEmail(email: string): Promise; + sendFollowUpEmail(email: string): Promise; + deleteUser(email: string): Promise; +} + +export type Activities = IGreetingActivity; +``` + +### Write Workflows + +Workflows are regular functions that cannot interact directly with Ts.ED or other packages. Just the earlier created interface is used for type-safety. + +::: warning +Do not import any non temporal packages here. The workflows are bundled internally by the worker and won't have access to anything else. +::: + +```ts +import {proxyActivities, defineSignal, setHandler, condition, sleep} from "@temporalio/workflow"; +import {Activities} from "../activities"; + +export const isVerifiedSignal = defineSignal("verificationSignal"); + +export async function onboardUser(email: string): Promise { + const {sendVerificationEmail, activateUser, sendWelcomeEmail, sendFollowUpEmail, deleteUser} = proxyActivities({ + startToCloseTimeout: "1 minute" + }); + + let isVerified = false; + setHandler(isVerifiedSignal, () => { + isVerified = true; + }); + + // 1. Send verification email + await sendVerificationEmail(email); + + // 2. Wait for verification ... + const verifiedInTime = await condition(() => isVerified, "1w" /* or for a timeout */); + if (!verifiedInTime) { + // 3a. If not verified in time, delete user + await deleteUserAndTenant(email); + return false; + } + + // 3b. If verified in time, send welcome email + await sendWelcomeEmail(email); + + // 4. Send follow up email after one day + await sleep("1d"); // special sleep function by temporal + await sendFollowUpEmail(email); +} +``` + +## Inject TemporalClient + +Inject the TemporalClient instance to interact with it directly, e.g. to start a workflow. + +```typescript +import {Service, AfterRoutesInit} from "@tsed/common"; +import {TemporalClient} from "@tsed/temporal"; +import {onboardUser} from "../workflows"; + +@Service() +export class UsersService implements AfterRoutesInit { + @Inject() + private temporalClient: TemporalClient; + + async create(user: User): Promise { + // ... + await this.temporalClient.workflow.start(onboardUser, { + args: [user.email], + taskQueue: "onboarding", + workflowId: `onboarding-${user.id}` + }); + } +} +``` + +### Start a worker + +The workflows and activities won't get executed until you start a worker. This module provides a helper function to bootstrap a worker based on your Ts.ED server class that is aware of all your activities. + +The most tricky part is the `workflowsPath` parameter. This is the path of the file/folder where the workflows are exported. The file is automatically loaded when the worker is started and internally bundled with webpack. The path is highly dependent on your project structure and build process. + +Read more about it [here](https://docs.temporal.io/typescript/troubleshooting/#webpack-errors). + +```ts +import {bootstrapWorker} from "@tsed/temporal"; +import {Server} from "./app/Server"; + +const worker = await bootstrapWorker(Server, { + worker: { + taskQueue: "onboarding", + workflowsPath: require.resolve("./temporal") // other example: path.join(process.cwd(), 'dist/apps/api/temporal/index.ts'); + }, + connection: { + /* optional: see NativeConnectionOptions of @temporalio/worker */ + }, + platform: { + /* optional: see PlatformBuilderSettings of @tsed/common */ + componentsScan: false, + logger: { + level: "info" + } + } +}); +await worker.run(); +``` + +## Contributors + +Please read [contributing guidelines here](https://tsed.io/contributing.html) + + + +## Backers + +Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)] + + + +## Sponsors + +Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)] + +## License + +The MIT License (MIT) + +Copyright (c) 2016 - 2021 Romain Lenzotti + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/third-parties/temporal/src/TemporalModule.ts b/packages/third-parties/temporal/src/TemporalModule.ts new file mode 100644 index 00000000000..354884497f1 --- /dev/null +++ b/packages/third-parties/temporal/src/TemporalModule.ts @@ -0,0 +1,48 @@ +import {Logger, OnDestroy} from "@tsed/common"; +import {Constant, Inject, InjectorService, Module, Provider} from "@tsed/di"; +import {PROVIDER_TYPE_TEMPORAL} from "./constants"; +import {TemporalStore, TEMPORAL_STORE_KEY} from "./interfaces/TemporalStore"; +import {TemporalClient} from "./services/TemporalFactory"; + +@Module() +export class TemporalModule implements OnDestroy { + @Inject() + protected logger!: Logger; + + @Inject() + protected injector!: InjectorService; + + @Inject() + protected client!: TemporalClient; + + @Constant("temporal.enabled", false) + private loadTemporal!: boolean; + + async $onDestroy(): Promise { + if (this.loadTemporal) { + await this.client.connection.close(); + } + } + + public getActivities(): object { + return this.getProviders().reduce((activities, provider) => Object.assign(activities, this.getActivitiesFromProvider(provider)), {}); + } + + protected getProviders(): Provider[] { + return this.injector.getProviders(PROVIDER_TYPE_TEMPORAL); + } + + protected getActivitiesFromProvider(provider: Provider) { + const activities = {}; + const store = provider.store.get(TEMPORAL_STORE_KEY, {}); + + Object.entries(store.activities || {}).forEach(([propertyKey, {name}]) => { + const instance = this.injector.get(provider.token); + const jobProcessor = instance[propertyKey].bind(instance); + const jobName = name || propertyKey; + Object.assign(activities, {[jobName]: jobProcessor}); + }); + + return activities; + } +} diff --git a/packages/third-parties/temporal/src/constants.ts b/packages/third-parties/temporal/src/constants.ts new file mode 100644 index 00000000000..b6ca8dedbb5 --- /dev/null +++ b/packages/third-parties/temporal/src/constants.ts @@ -0,0 +1 @@ +export const PROVIDER_TYPE_TEMPORAL = "PROVIDER_TYPE_TEMPORAL"; diff --git a/packages/third-parties/temporal/src/decorators/activity.spec.ts b/packages/third-parties/temporal/src/decorators/activity.spec.ts new file mode 100644 index 00000000000..7cc0820937a --- /dev/null +++ b/packages/third-parties/temporal/src/decorators/activity.spec.ts @@ -0,0 +1,40 @@ +import {Store} from "@tsed/core"; +import {Activity} from "./activity"; +import {Temporal} from "./temporal"; + +describe("@Activity()", () => { + it("should set metadata", () => { + @Temporal() + class Test { + @Activity() + testActivityDecorator() { + // test + } + } + + const store = Store.from(Test); + + expect(store.get("temporal").activities).toEqual({ + testActivityDecorator: {} + }); + }); + + it("should set options metadata", () => { + @Temporal() + class Test { + @Activity({ + name: "testActivityDecoratorCustomName" + }) + test() { + // test + } + } + + const store = Store.from(Test); + expect(store.get("temporal").activities).toEqual({ + test: { + name: "testActivityDecoratorCustomName" + } + }); + }); +}); diff --git a/packages/third-parties/temporal/src/decorators/activity.ts b/packages/third-parties/temporal/src/decorators/activity.ts new file mode 100644 index 00000000000..bfeb63c2f74 --- /dev/null +++ b/packages/third-parties/temporal/src/decorators/activity.ts @@ -0,0 +1,14 @@ +import {Store} from "@tsed/core"; +import {TemporalStore, ActivityOptions, TEMPORAL_STORE_KEY} from "../interfaces/TemporalStore"; + +export function Activity(options: ActivityOptions = {}): MethodDecorator { + return (target: any, propertyKey: string | symbol) => { + const store: TemporalStore = { + activities: { + [propertyKey]: options + } + }; + + Store.from(target).merge(TEMPORAL_STORE_KEY, store); + }; +} diff --git a/packages/third-parties/temporal/src/decorators/temporal.spec.ts b/packages/third-parties/temporal/src/decorators/temporal.spec.ts new file mode 100644 index 00000000000..1dcfabddc32 --- /dev/null +++ b/packages/third-parties/temporal/src/decorators/temporal.spec.ts @@ -0,0 +1,11 @@ +import {GlobalProviders} from "@tsed/di"; +import {Temporal} from "./temporal"; + +describe("@Activity()", () => { + it("should set metadata", () => { + @Temporal() + class Test {} + + expect(GlobalProviders.get(Test)?.useClass).toEqual(Test); + }); +}); diff --git a/packages/third-parties/temporal/src/decorators/temporal.ts b/packages/third-parties/temporal/src/decorators/temporal.ts new file mode 100644 index 00000000000..5c0c012cff3 --- /dev/null +++ b/packages/third-parties/temporal/src/decorators/temporal.ts @@ -0,0 +1,11 @@ +import {useDecorators} from "@tsed/core"; +import {Injectable} from "@tsed/di"; +import {PROVIDER_TYPE_TEMPORAL} from "../constants"; + +export function Temporal(): ClassDecorator { + return useDecorators( + Injectable({ + type: PROVIDER_TYPE_TEMPORAL + }) + ); +} diff --git a/packages/third-parties/temporal/src/index.ts b/packages/third-parties/temporal/src/index.ts new file mode 100644 index 00000000000..b029812c046 --- /dev/null +++ b/packages/third-parties/temporal/src/index.ts @@ -0,0 +1,12 @@ +/** + * @file Automatically generated by barrelsby. + */ + +export * from "./TemporalModule"; +export * from "./constants"; +export * from "./decorators/activity"; +export * from "./decorators/temporal"; +export * from "./interfaces/TemporalStore"; +export * from "./interfaces/interfaces"; +export * from "./services/TemporalFactory"; +export * from "./utils/worker"; diff --git a/packages/third-parties/temporal/src/interfaces/TemporalStore.ts b/packages/third-parties/temporal/src/interfaces/TemporalStore.ts new file mode 100644 index 00000000000..289ba4fc56a --- /dev/null +++ b/packages/third-parties/temporal/src/interfaces/TemporalStore.ts @@ -0,0 +1,9 @@ +export const TEMPORAL_STORE_KEY = "temporal"; + +export interface ActivityOptions { + name?: string; +} + +export interface TemporalStore { + activities?: {[propertyKey: string]: ActivityOptions}; +} diff --git a/packages/third-parties/temporal/src/interfaces/interfaces.ts b/packages/third-parties/temporal/src/interfaces/interfaces.ts new file mode 100644 index 00000000000..51fe40dbcf9 --- /dev/null +++ b/packages/third-parties/temporal/src/interfaces/interfaces.ts @@ -0,0 +1,14 @@ +import {ClientOptions, ConnectionOptions} from "@temporalio/client"; + +declare global { + // eslint-disable-next-line @typescript-eslint/no-namespace + namespace TsED { + interface Configuration { + temporal?: { + enabled?: boolean; + connection?: ConnectionOptions; + client?: Omit; + }; + } + } +} diff --git a/packages/third-parties/temporal/src/services/TemporalFactory.ts b/packages/third-parties/temporal/src/services/TemporalFactory.ts new file mode 100644 index 00000000000..d44f442115d --- /dev/null +++ b/packages/third-parties/temporal/src/services/TemporalFactory.ts @@ -0,0 +1,48 @@ +import {Configuration, registerProvider} from "@tsed/di"; +import {Client, Connection} from "@temporalio/client"; +import {$log} from "@tsed/common"; + +export const TemporalConnection = Connection; +export type TemporalConnection = Connection; + +export const TemporalClient = Client; +export type TemporalClient = Client; + +registerProvider({ + provide: TemporalConnection, + deps: [Configuration], + async useAsyncFactory(settings: Configuration) { + const {temporal} = settings; + if (!temporal?.enabled) { + return null; + } + + try { + $log.info("Connecting to Temporal Server: ", temporal.connection?.address || "default"); + const connection = await Connection.connect(temporal.connection); + $log.info("... connected to Temporal Server: ", temporal.connection?.address || "default"); + return connection; + } catch (error) { + $log.error("Failed to connect to Temporal Server:", error); + throw error; + } + } +}); + +registerProvider({ + provide: TemporalClient, + deps: [Configuration, TemporalConnection], + useFactory(settings: Configuration, connection: TemporalConnection) { + const {temporal} = settings; + if (!temporal?.enabled) { + return null; + } + + const client = new TemporalClient({ + connection, + ...temporal.client + }); + + return client; + } +}); diff --git a/packages/third-parties/temporal/src/utils/worker.ts b/packages/third-parties/temporal/src/utils/worker.ts new file mode 100644 index 00000000000..c6f15e4d7a3 --- /dev/null +++ b/packages/third-parties/temporal/src/utils/worker.ts @@ -0,0 +1,43 @@ +import {PlatformBuilderSettings, PlatformTest} from "@tsed/common"; +import {$log} from "@tsed/logger"; + +import {NativeConnection, NativeConnectionOptions, Worker, WorkerOptions} from "@temporalio/worker"; +import {TemporalModule} from "../TemporalModule"; + +type BootstrapWorkerOptions = { + platform?: PlatformBuilderSettings; + worker: Omit; + connection?: NativeConnection | NativeConnectionOptions; +}; + +export async function bootstrapWorker(mod: any, settings: BootstrapWorkerOptions) { + await PlatformTest.bootstrap(mod, settings.platform)(); + const temporalioModule = PlatformTest.get(TemporalModule); + const activities = temporalioModule.getActivities(); + $log.info('Starting temporal worker with queue "%s" and activities:', settings.worker.taskQueue); + + if (Object.keys(activities).length > 0) { + $log.printTable( + Object.entries(activities).map((x) => ({ + name: x[0], + activity: x[1].toString() + })) + ); + } + + let connection: NativeConnection; + if (settings.connection instanceof NativeConnection) { + connection = settings.connection; + } else { + $log.info("Connecting to Temporal Server: ", settings.connection?.address || "default"); + connection = await NativeConnection.connect(settings.connection); + } + + const worker = await Worker.create({ + connection, + ...settings.worker, + activities + }); + + return worker; +} diff --git a/packages/third-parties/temporal/test/client.integration.spec.ts b/packages/third-parties/temporal/test/client.integration.spec.ts new file mode 100644 index 00000000000..9f55d66e487 --- /dev/null +++ b/packages/third-parties/temporal/test/client.integration.spec.ts @@ -0,0 +1,39 @@ +import {TestWorkflowEnvironment} from "@temporalio/testing"; +import {Temporal, Activity, bootstrapWorker, TemporalClient} from "../src"; +import {Server} from "./helpers/Server"; +import {Runtime} from "@temporalio/worker"; +import {getEphemeralServerTarget} from "@temporalio/core-bridge"; +import {PlatformTest} from "@tsed/common"; + +describe("Temporal Client", () => { + let server: any; + let client: TemporalClient; + + beforeEach(async () => { + server = await Runtime.instance().createEphemeralServer({type: "time-skipping"}); + }); + + afterEach(async () => { + if (client) { + await client.connection.close(); + } + await Runtime.instance().shutdownEphemeralServer(server); + }); + + it("should provide TemporalClient", async () => { + const server = await Runtime.instance().createEphemeralServer({type: "time-skipping"}); + const address = getEphemeralServerTarget(server); + + await PlatformTest.bootstrap(Server, { + temporal: { + enabled: true, + connection: { + address + } + } + })(); + + client = PlatformTest.get(TemporalClient); + expect(client).toBeInstanceOf(TemporalClient); + }); +}); diff --git a/packages/third-parties/temporal/test/helpers/Server.ts b/packages/third-parties/temporal/test/helpers/Server.ts new file mode 100644 index 00000000000..7b9584bf99d --- /dev/null +++ b/packages/third-parties/temporal/test/helpers/Server.ts @@ -0,0 +1,36 @@ +import {Configuration, Inject, PlatformApplication} from "@tsed/common"; +import filedirname from "filedirname"; +import Path from "path"; +import "@tsed/platform-express"; +import "@tsed/temporal"; +import cookieParser from "cookie-parser"; +import bodyParser from "body-parser"; +import compress from "compression"; +import methodOverride from "method-override"; + +// FIXME remove when esm is ready +const [, rootDir] = filedirname(); + +@Configuration({ + rootDir, + port: 8001, + disableComponentScan: true, + httpsPort: false +}) +export class Server { + @Inject() + app: PlatformApplication; + + public $beforeRoutesInit(): void { + this.app + .use(bodyParser.json()) + .use( + bodyParser.urlencoded({ + extended: true + }) + ) + .use(cookieParser()) + .use(compress({})) + .use(methodOverride()); + } +} diff --git a/packages/third-parties/temporal/test/worker.integration.spec.ts b/packages/third-parties/temporal/test/worker.integration.spec.ts new file mode 100644 index 00000000000..44922ffd1c2 --- /dev/null +++ b/packages/third-parties/temporal/test/worker.integration.spec.ts @@ -0,0 +1,47 @@ +import {TestWorkflowEnvironment} from "@temporalio/testing"; +import {Temporal, Activity, bootstrapWorker} from "../src"; +import {Server} from "./helpers/Server"; + +describe("Temporal Worker", () => { + @Temporal() + class Activities { + @Activity() + greet(name: string) { + return `Hello, ${name}!`; + } + } + + let testEnv: TestWorkflowEnvironment; + + beforeEach(async () => { + testEnv = await TestWorkflowEnvironment.createTimeSkipping(); + }); + + afterEach(async () => { + await testEnv.teardown(); + }); + + it("should start a worker and execute decorated activites", async () => { + const worker = await bootstrapWorker(Server, { + worker: { + workflowsPath: require.resolve("./workflows"), + taskQueue: "test" + }, + connection: testEnv.nativeConnection + }); + + expect((worker.options.activities as any).greet).toBeDefined(); + + const {client} = testEnv; + + await worker.runUntil(async () => { + const handle = await client.workflow.start("example", { + taskQueue: "test", + args: ["world"], + workflowId: "greet-world" + }); + const result = await handle.result(); + expect(result).toEqual("Hello, world!"); + }); + }); +}); diff --git a/packages/third-parties/temporal/test/workflows/index.ts b/packages/third-parties/temporal/test/workflows/index.ts new file mode 100644 index 00000000000..bd1b8f470e4 --- /dev/null +++ b/packages/third-parties/temporal/test/workflows/index.ts @@ -0,0 +1 @@ +export * from "./testWorkflow"; diff --git a/packages/third-parties/temporal/test/workflows/testWorkflow.ts b/packages/third-parties/temporal/test/workflows/testWorkflow.ts new file mode 100644 index 00000000000..4dabb16c9da --- /dev/null +++ b/packages/third-parties/temporal/test/workflows/testWorkflow.ts @@ -0,0 +1,11 @@ +import * as workflow from "@temporalio/workflow"; + +const {greet} = workflow.proxyActivities({ + startToCloseTimeout: "1 minute" +}); + +/** A workflow that simply calls an activity */ +export async function example(name: string): Promise { + const result = await greet(name); + return result; +} diff --git a/packages/third-parties/temporal/tsconfig.esm.json b/packages/third-parties/temporal/tsconfig.esm.json new file mode 100644 index 00000000000..257d09cb6e0 --- /dev/null +++ b/packages/third-parties/temporal/tsconfig.esm.json @@ -0,0 +1,39 @@ +{ + "extends": "@tsed/typescript/tsconfig.node.json", + "compilerOptions": { + "baseUrl": ".", + "module": "ES2020", + "rootDir": "src", + "outDir": "./lib/esm", + "declaration": true, + "declarationDir": "./lib/types", + "composite": true, + "noEmit": false + }, + "include": ["src", "src/**/*.json"], + "exclude": [ + "node_modules", + "test", + "lib", + "benchmark", + "coverage", + "spec", + "**/*.benchmark.ts", + "**/*.spec.ts", + "keys", + "jest.config.js", + "**/__mock__/**", + "webpack.config.js" + ], + "references": [ + { + "path": "../../platform/common" + }, + { + "path": "../../core" + }, + { + "path": "../../di" + } + ] +} diff --git a/packages/third-parties/temporal/tsconfig.json b/packages/third-parties/temporal/tsconfig.json new file mode 100644 index 00000000000..8e8739d1a14 --- /dev/null +++ b/packages/third-parties/temporal/tsconfig.json @@ -0,0 +1,39 @@ +{ + "extends": "@tsed/typescript/tsconfig.node.json", + "compilerOptions": { + "baseUrl": ".", + "module": "commonjs", + "rootDir": "src", + "outDir": "./lib/cjs", + "declaration": true, + "declarationDir": "./lib/types", + "composite": true, + "noEmit": false + }, + "include": ["src", "src/**/*.json"], + "exclude": [ + "node_modules", + "test", + "lib", + "benchmark", + "coverage", + "spec", + "**/*.benchmark.ts", + "**/*.spec.ts", + "keys", + "jest.config.js", + "**/__mock__/**", + "webpack.config.js" + ], + "references": [ + { + "path": "../../platform/common" + }, + { + "path": "../../core" + }, + { + "path": "../../di" + } + ] +} diff --git a/yarn.lock b/yarn.lock index c950e44628b..8456369b221 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2480,6 +2480,24 @@ dependencies: tslib "~2.3.0" +"@grpc/grpc-js@~1.7.3": + version "1.7.3" + resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.7.3.tgz#f2ea79f65e31622d7f86d4b4c9ae38f13ccab99a" + integrity sha512-H9l79u4kJ2PVSxUNA08HMYAnUBLj9v6KjYQ7SQ71hOZcEXhShE/y5iQCesP8+6/Ik/7i2O0a10bPquIcYfufog== + dependencies: + "@grpc/proto-loader" "^0.7.0" + "@types/node" ">=12.12.47" + +"@grpc/proto-loader@^0.7.0": + version "0.7.10" + resolved "https://registry.yarnpkg.com/@grpc/proto-loader/-/proto-loader-0.7.10.tgz#6bf26742b1b54d0a473067743da5d3189d06d720" + integrity sha512-CAqDfoaQ8ykFd9zqBDn4k6iWT9loLAlc2ETmDFS9JCD70gDcnA4L3AFEo2iV7KyAtAAHFW9ftq1Fz+Vsgq80RQ== + dependencies: + lodash.camelcase "^4.3.0" + long "^5.0.0" + protobufjs "^7.2.4" + yargs "^17.7.2" + "@humanwhocodes/config-array@^0.9.2": version "0.9.5" resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.9.5.tgz#2cbaf9a89460da24b5ca6531b8bbfc23e1df50c7" @@ -3992,6 +4010,11 @@ resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.4.1.tgz#ff22eb2e5d476fbc2450a196e40dd243cc20c28f" integrity sha512-O2yRJce1GOc6PAy3QxFM4NzFiWzvScDC1/5ihYBL6BUEVdq0XMWN01sppE+H6bBXbaFYipjwFLEWLg5PaSOThA== +"@opentelemetry/api@^1.4.1": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.6.0.tgz#de2c6823203d6f319511898bb5de7e70f5267e19" + integrity sha512-OWlrQAnWn9577PhVgqjUvMr1pg57Bc4jv0iL4w0PRuOSRvq67rvHW9Ie/dZVMvCzhSCB+UxhcY/PmCmFj33Q+g== + "@opentelemetry/core@1.12.0": version "1.12.0" resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-1.12.0.tgz#afa32341b794045c54c979d4561de2f8f00d0da9" @@ -4836,51 +4859,101 @@ resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.41.tgz#c8ec25fb3171e1e53546d0fbf4044c33d5ab42c5" integrity sha512-D4fybODToO/BvuP35bionDUrSuTVVr8eW+mApr1unOqb3mfiqOrVv0VP2fpWNRYiA+xMq+oBCB6KcGpL60HKWQ== +"@swc/core-darwin-arm64@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.90.tgz#5eb85b4911c6e1a8a082711b7ef3d4be3f86163f" + integrity sha512-he0w74HvcoufE6CZrB/U/VGVbc7021IQvYrn1geMACnq/OqMBqjdczNtdNfJAy87LZ4AOUjHDKEIjsZZu7o8nQ== + "@swc/core-darwin-x64@1.3.41": version "1.3.41" resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.3.41.tgz#0f9d7077762f4274d50a8ef76a56b76096a8f0ff" integrity sha512-0RoVyiPCnylf3TG77C3S86PRSmaq+SaYB4VDLJFz3qcEHz1pfP0LhyskhgX4wjQV1mveDzFEn1BVAuo0eOMwZA== +"@swc/core-darwin-x64@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.3.90.tgz#e6d5c2118c6ad060f58ce9c7d246cf4c30420516" + integrity sha512-hKNM0Ix0qMlAamPe0HUfaAhQVbZEL5uK6Iw8v9ew0FtVB4v7EifQ9n41wh+yCj0CjcHBPEBbQU0P6mNTxJu/RQ== + "@swc/core-linux-arm-gnueabihf@1.3.41": version "1.3.41" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.41.tgz#5f6a03c4e8cae674b6262fc0d625379af14985be" integrity sha512-mZW7GeY7Uw1nkKoWpx898ou20oCSt8MR+jAVuAhMjX+G4Zr0WWXYSigWNiRymhR6Q9KhyvoFpMckguSvYWmXsw== +"@swc/core-linux-arm-gnueabihf@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.90.tgz#02cfecb0e5f3457e64e81eca70337c6dadba864d" + integrity sha512-HumvtrqTWE8rlFuKt7If0ZL7145H/jVc4AeziVjcd+/ajpqub7IyfrLCYd5PmKMtfeSVDMsxjG0BJ0HLRxrTJA== + "@swc/core-linux-arm64-gnu@1.3.41": version "1.3.41" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.41.tgz#e1c0a1669873dbab9ecb9573c2f7dd81b764212e" integrity sha512-e91LGn+6KuLFw3sWk5swwGc/dP4tXs0mg3HrhjImRoofU02Bb9aHcj5zgrSO8ZByvDtm/Knn16h1ojxIMOFaxg== +"@swc/core-linux-arm64-gnu@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.90.tgz#1ed87e65facc446880f5753fb89951da418f6ff5" + integrity sha512-tA7DqCS7YCwngwXZQeqQhhMm8BbydpaABw8Z/EDQ7KPK1iZ1rNjZw+aWvSpmNmEGmH1RmQ9QDS9mGRDp0faAeg== + "@swc/core-linux-arm64-musl@1.3.41": version "1.3.41" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.41.tgz#add780ae831a72a65ec799009d0c0e3e78bb969c" integrity sha512-Q7hmrniLWsQ7zjtImGcjx1tl5/Qxpel+fC+OXTnGvAyyoGssSftIBlXMnqVLteL78zhxIPAzi+gizWAe5RGqrA== +"@swc/core-linux-arm64-musl@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.90.tgz#531edd90f46aa7282e919178633f483f7ba073d6" + integrity sha512-p2Vtid5BZA36fJkNUwk5HP+HJlKgTru+Ghna7pRe45ghKkkRIUk3fhkgudEvfKfhT+3AvP+GTVQ+T9k0gc9S8w== + "@swc/core-linux-x64-gnu@1.3.41": version "1.3.41" resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.41.tgz#5b2bf83493e6fa0a58c3fb1815b9e59b923e300f" integrity sha512-h4sv1sCfZQgRIwmykz8WPqVpbvHb13Qm3SsrbOudhAp2MuzpWzsgMP5hAEpdCP/nWreiCz3aoM6L8JeakRDq0g== +"@swc/core-linux-x64-gnu@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.90.tgz#7b3937570964e290a0f382353d88fe8421ceb470" + integrity sha512-J6pDtWaulYGXuANERuvv4CqmUbZOQrRZBCRQGZQJ6a86RWpesZqckBelnYx48wYmkgvMkF95Y3xbI3WTfoSHzw== + "@swc/core-linux-x64-musl@1.3.41": version "1.3.41" resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.41.tgz#146547ea3e62466ca971d71ebcc4cfeed3008bda" integrity sha512-Z7c26i38378d0NT/dcz8qPSAXm41lqhNzykdhKhI+95mA9m4pskP18T/0I45rmyx1ywifypu+Ip+SXmKeVSPgQ== +"@swc/core-linux-x64-musl@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.90.tgz#ae042d8dc84e086954a26308e4bccf6f38c1dafe" + integrity sha512-3Gh6EA3+0K+l3MqnRON7h5bZ32xLmfcVM6QiHHJ9dBttq7YOEeEoMOCdIPMaQxJmK1VfLgZCsPYRd66MhvUSkw== + "@swc/core-win32-arm64-msvc@1.3.41": version "1.3.41" resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.41.tgz#91e438c1ca102b52172294905821b43f9d429a32" integrity sha512-I0CYnPc+ZGc912YeN0TykIOf/Q7yJQHRwDuhewwD6RkbiSEaVfSux5pAmmdoKw2aGMSq+cwLmgPe9HYLRNz+4w== +"@swc/core-win32-arm64-msvc@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.90.tgz#4952413bae4c5dbd7c150f7a626556fc6a2a3525" + integrity sha512-BNaw/iJloDyaNOFV23Sr53ULlnbmzSoerTJ10v0TjSZOEIpsS0Rw6xOK1iI0voDJnRXeZeWRSxEC9DhefNtN/g== + "@swc/core-win32-ia32-msvc@1.3.41": version "1.3.41" resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.41.tgz#77bdb6ab0ae942039756d41300c47315357bd814" integrity sha512-EygN4CVDWF29/U2T5fXGfWyLvRbMd2hiUgkciAl7zHuyJ6nKl+kpodqV2A0Wd4sFtSNedU0gQEBEXEe7cqvmsA== +"@swc/core-win32-ia32-msvc@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.90.tgz#ea5d417d3085dc521e6be6ecaef8c6ca59c4e5ec" + integrity sha512-SiyTethWAheE/JbxXCukAAciU//PLcmVZ2ME92MRuLMLmOhrwksjbaa7ukj9WEF3LWrherhSqTXnpj3VC1l/qw== + "@swc/core-win32-x64-msvc@1.3.41": version "1.3.41" resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.41.tgz#a8d766fc7a68752a3060276a90b7328d9f266631" integrity sha512-Mfp8qD1hNwWWRy0ISdwQJu1g0UYoVTtuQlO0z3aGbXqL51ew9e56+8j3M1U9i95lXFyWkARgjDCcKkQi+WezyA== +"@swc/core-win32-x64-msvc@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.90.tgz#af770b063fe7f32488a87cf0a9777e11932f7a3a" + integrity sha512-OpWAW5ljKcPJ3SQ0pUuKqYfwXv7ssIhVgrH9XP9ONtdgXKWZRL9hqJQkcL55FARw/gDjKanoCM47wsTNQL+ZZA== + "@swc/core@1.3.41": version "1.3.41" resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.3.41.tgz#8f10559db269da1a5df9863c92653f8afd0bd7c1" @@ -4897,6 +4970,30 @@ "@swc/core-win32-ia32-msvc" "1.3.41" "@swc/core-win32-x64-msvc" "1.3.41" +"@swc/core@^1.2.204": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.3.90.tgz#ef43524b76ef04798e6afb01d90347f4f51de136" + integrity sha512-wptBxP4PldOnhmyDVj8qUcn++GRqyw1qc9wOTGtPNHz8cpuTfdfIgYGlhI4La0UYqecuaaIfLfokyuNePOMHPg== + dependencies: + "@swc/counter" "^0.1.1" + "@swc/types" "^0.1.5" + optionalDependencies: + "@swc/core-darwin-arm64" "1.3.90" + "@swc/core-darwin-x64" "1.3.90" + "@swc/core-linux-arm-gnueabihf" "1.3.90" + "@swc/core-linux-arm64-gnu" "1.3.90" + "@swc/core-linux-arm64-musl" "1.3.90" + "@swc/core-linux-x64-gnu" "1.3.90" + "@swc/core-linux-x64-musl" "1.3.90" + "@swc/core-win32-arm64-msvc" "1.3.90" + "@swc/core-win32-ia32-msvc" "1.3.90" + "@swc/core-win32-x64-msvc" "1.3.90" + +"@swc/counter@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.1.tgz#e8d066c653883238c291d8fdd8b36ed932e87920" + integrity sha512-xVRaR4u9hcYjFvcSg71Lz5Bo4//CyjAAfMxa7UsaDSYxAshflUkVJWiyVWrfxC59z2kP1IzI4/1BEpnhI9o3Mw== + "@swc/helpers@0.4.14": version "0.4.14" resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.14.tgz#1352ac6d95e3617ccb7c1498ff019654f1e12a74" @@ -4911,6 +5008,11 @@ dependencies: "@jest/create-cache-key-function" "^27.4.2" +"@swc/types@^0.1.5": + version "0.1.5" + resolved "https://registry.yarnpkg.com/@swc/types/-/types-0.1.5.tgz#043b731d4f56a79b4897a3de1af35e75d56bc63a" + integrity sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw== + "@szmarczak/http-timer@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-5.0.1.tgz#c7c1bf1141cdd4751b0399c8fc7b8b664cd5be3a" @@ -4923,6 +5025,104 @@ resolved "https://registry.yarnpkg.com/@tediousjs/connection-string/-/connection-string-0.3.0.tgz#23f7af793a365cc3b6a149ec1320f1e28c4242ff" integrity sha512-d/keJiNKfpHo+GmSB8QcsAwBx8h+V1UbdozA5TD+eSLXprNY53JAYub47J9evsSKWDdNG5uVj0FiMozLKuzowQ== +"@temporalio/activity@1.8.6": + version "1.8.6" + resolved "https://registry.yarnpkg.com/@temporalio/activity/-/activity-1.8.6.tgz#b5959abe60ef40036c736dd3be4c055ae1b23fed" + integrity sha512-xTPIWIR1mL51Ub45nWpix+ATzJz/8ZAp0cCp3qw+xnKD8pwd4z9L0b30lr3co5kaPlWhSesdhypQ7VwWEf7ZHA== + dependencies: + "@temporalio/common" "1.8.6" + abort-controller "^3.0.0" + +"@temporalio/client@1.8.6", "@temporalio/client@^1.8.4": + version "1.8.6" + resolved "https://registry.yarnpkg.com/@temporalio/client/-/client-1.8.6.tgz#3f459b809d90003b75261ea9d36f18eb72685d5a" + integrity sha512-lcDy9YeNrHU1thGpfsvxxHOLj8VKEbEthkAWQfyZghvvjQ3K7NHS7qRzYfB9ZbYnaus+ZiodSqnKTyqW9gsJ6A== + dependencies: + "@grpc/grpc-js" "~1.7.3" + "@temporalio/common" "1.8.6" + "@temporalio/proto" "1.8.6" + abort-controller "^3.0.0" + long "^5.2.0" + uuid "^8.3.2" + +"@temporalio/common@1.8.6": + version "1.8.6" + resolved "https://registry.yarnpkg.com/@temporalio/common/-/common-1.8.6.tgz#260e3107ab079c5acb10ef3a15b0cbdffc4a63ac" + integrity sha512-7Cu1ymGkgklJM5xoYgJbppM/K/Dmq6Lb9bQnJiSvp8sb/RxXz6DQbiWypl9iDmaocUyFzDDaB/brA6abIq9xOQ== + dependencies: + "@opentelemetry/api" "^1.4.1" + "@temporalio/proto" "1.8.6" + long "^5.2.0" + ms "^3.0.0-canary.1" + proto3-json-serializer "^1.0.3" + protobufjs "^7.2.5" + +"@temporalio/core-bridge@1.8.6": + version "1.8.6" + resolved "https://registry.yarnpkg.com/@temporalio/core-bridge/-/core-bridge-1.8.6.tgz#b11166325f6caaa0688894d1ae6bc0dff63d7453" + integrity sha512-YkoG03qG7gqBWOupuhK1kt9A//ossKW2lOY9T22ZOTv2JfVZNgQPm0N0Kcusw0s4YULdiSGlLjalvRo4YTDoyQ== + dependencies: + "@opentelemetry/api" "^1.4.1" + "@temporalio/common" "1.8.6" + arg "^5.0.2" + cargo-cp-artifact "^0.1.6" + which "^2.0.2" + +"@temporalio/proto@1.8.6": + version "1.8.6" + resolved "https://registry.yarnpkg.com/@temporalio/proto/-/proto-1.8.6.tgz#86888f7c38f084ef793640054b28767be11bfb70" + integrity sha512-32ADOGSGBRinikP/XRTmyPXlIRaWjg5oAn64zj5NJRESrQy6ifpXb8bYVoPK01K9NIvcCL8FewCCWRKxxNvKZg== + dependencies: + long "^5.2.0" + protobufjs "^7.2.5" + +"@temporalio/testing@^1.8.4": + version "1.8.6" + resolved "https://registry.yarnpkg.com/@temporalio/testing/-/testing-1.8.6.tgz#1fe3c8e6d415845f98533c1094b6d66f7907f75a" + integrity sha512-sbSMfn18PjYsdHJRiDnfpNI33KK6BJvmud5C/uhZdxjVk6C2KLc2mt3lTZ6YGQ+K9ICiwztxWvxYNC/X2dfGBg== + dependencies: + "@grpc/grpc-js" "~1.7.3" + "@temporalio/activity" "1.8.6" + "@temporalio/client" "1.8.6" + "@temporalio/common" "1.8.6" + "@temporalio/core-bridge" "1.8.6" + "@temporalio/proto" "1.8.6" + "@temporalio/worker" "1.8.6" + "@temporalio/workflow" "1.8.6" + abort-controller "^3.0.0" + +"@temporalio/worker@1.8.6", "@temporalio/worker@^1.8.4": + version "1.8.6" + resolved "https://registry.yarnpkg.com/@temporalio/worker/-/worker-1.8.6.tgz#08cb86900118f3e32b6334d81c23108aec98f0fb" + integrity sha512-1T7TTkJwFJxrtAjRzHWpEoMlSrFw4b45aPx5oD8gpJCzkytHtjYjFLyPIuNOiFwsTzOJzffKnl2YIGinnn8emA== + dependencies: + "@opentelemetry/api" "^1.4.1" + "@swc/core" "^1.2.204" + "@temporalio/activity" "1.8.6" + "@temporalio/client" "1.8.6" + "@temporalio/common" "1.8.6" + "@temporalio/core-bridge" "1.8.6" + "@temporalio/proto" "1.8.6" + "@temporalio/workflow" "1.8.6" + abort-controller "^3.0.0" + cargo-cp-artifact "^0.1.6" + heap-js "^2.2.0" + memfs "^3.4.6" + rxjs "^7.5.5" + source-map "^0.7.4" + source-map-loader "^4.0.0" + swc-loader "^0.2.3" + unionfs "^4.5.1" + webpack "^5.75.0" + +"@temporalio/workflow@1.8.6": + version "1.8.6" + resolved "https://registry.yarnpkg.com/@temporalio/workflow/-/workflow-1.8.6.tgz#799deda7d0ff2a11ae5b9cb85bba2c5e524b3777" + integrity sha512-ltVIqjNyJ3HvkhdA8RvcID6ylKZK8Fggw4mOSNnpPXkhGiCxA0oXuidaZK+MW9lTJzbm5EDiOvt3YctchCWK0Q== + dependencies: + "@temporalio/common" "1.8.6" + "@temporalio/proto" "1.8.6" + "@tootallnate/once@1": version "1.1.2" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" @@ -5571,6 +5771,11 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.23.tgz#3b41a6e643589ac6442bdbd7a4a3ded62f33f7da" integrity sha512-UxDxWn7dl97rKVeVS61vErvw086aCYhDLyvRQZ5Rk65rZKepaFdm53GeqXaKBuOhED4e9uWq34IC3TdSdJJ2Gw== +"@types/node@>=12.12.47", "@types/node@>=13.7.0": + version "20.7.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.7.1.tgz#06d732ead0bd5ad978ef0ea9cbdeb24dc8717514" + integrity sha512-LT+OIXpp2kj4E2S/p91BMe+VgGX2+lfO+XTpfXhh+bCk2LkQtHZSub8ewFBMGP5ClysPjTDFa4sMI8Q3n4T0wg== + "@types/node@^10.1.0": version "10.17.60" resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b" @@ -6351,6 +6556,11 @@ a-sync-waterfall@^1.0.0: resolved "https://registry.yarnpkg.com/a-sync-waterfall/-/a-sync-waterfall-1.0.1.tgz#75b6b6aa72598b497a125e7a2770f14f4c8a1fa7" integrity sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA== +abab@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" + integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== + abbrev@1, abbrev@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" @@ -7063,7 +7273,7 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" -arg@5.0.2: +arg@5.0.2, arg@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c" integrity sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg== @@ -9105,6 +9315,11 @@ cardinal@^2.1.1: ansicolors "~0.3.2" redeyed "~2.1.0" +cargo-cp-artifact@^0.1.6: + version "0.1.8" + resolved "https://registry.yarnpkg.com/cargo-cp-artifact/-/cargo-cp-artifact-0.1.8.tgz#353814f49f6aa76601a4bcb3ea5f3071180b90de" + integrity sha512-3j4DaoTrsCD1MRkTF2Soacii0Nx7UHCce0EwUf4fHnggwiE4fbmF2AbnfzayR36DF8KGadfh7M/Yfy625kgPlA== + caseless@~0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" @@ -9552,6 +9767,15 @@ cliui@^7.0.2: strip-ansi "^6.0.0" wrap-ansi "^7.0.0" +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + clone-deep@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" @@ -13046,6 +13270,11 @@ fs-minipass@^2.0.0, fs-minipass@^2.1.0: dependencies: minipass "^3.0.0" +fs-monkey@^1.0.0, fs-monkey@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.5.tgz#fe450175f0db0d7ea758102e1d84096acb925788" + integrity sha512-8uMbBjrhzW76TYgEV27Y5E//W2f/lTFmx78P2w19FZSxarhI/798APGQyuGCwmkNxgwGRhrLfvWyLBvNtuOmew== + fs-monkey@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.3.tgz#ae3ac92d53bb328efe0e9a1d9541f6ad8d48e2d3" @@ -13845,6 +14074,11 @@ header-case@^2.0.4: capital-case "^1.0.4" tslib "^2.0.3" +heap-js@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/heap-js/-/heap-js-2.3.0.tgz#8eed2cede31ec312aa696eef1d4df0565841f183" + integrity sha512-E5303mzwQ+4j/n2J0rDvEPBN7GKjhis10oHiYOgjxsmxYgqG++hz9NyLLOXttzH8as/DyiBHYpUrJTZWYaMo8Q== + hexoid@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/hexoid/-/hexoid-1.0.0.tgz#ad10c6573fb907de23d9ec63a711267d9dc9bc18" @@ -16923,6 +17157,11 @@ long@^4.0.0: resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== +long@^5.0.0, long@^5.2.0: + version "5.2.3" + resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1" + integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q== + longest-streak@^2.0.0: version "2.0.4" resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-2.0.4.tgz#b8599957da5b5dab64dee3fe316fa774597d90e4" @@ -17349,6 +17588,13 @@ memfs@^3.4.3: dependencies: fs-monkey "^1.0.3" +memfs@^3.4.6: + version "3.6.0" + resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.6.0.tgz#d7a2110f86f79dd950a8b6df6d57bc984aa185f6" + integrity sha512-EGowvkkgbMcIChjMTMkESFDbZeSh8xZ7kNSF0hAiAN4Jh6jgHCRS0Ga/+C8y6Au+oqpezRHCfPsmJ2+DwAgiwQ== + dependencies: + fs-monkey "^1.0.4" + memory-cache@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/memory-cache/-/memory-cache-0.2.0.tgz#7890b01d52c00c8ebc9d533e1f8eb17e3034871a" @@ -18102,6 +18348,11 @@ ms@2.1.3, ms@^2.0.0, ms@^2.1.1, ms@^2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== +ms@^3.0.0-canary.1: + version "3.0.0-canary.1" + resolved "https://registry.yarnpkg.com/ms/-/ms-3.0.0-canary.1.tgz#c7b34fbce381492fd0b345d1cf56e14d67b77b80" + integrity sha512-kh8ARjh8rMN7Du2igDRO9QJnqCb2xYTJxyQYK7vJJS4TvLLmsbyhiKpSW+t+y26gyOyMd0riphX0GeWKU3ky5g== + msal@^1.0.2: version "1.4.16" resolved "https://registry.yarnpkg.com/msal/-/msal-1.4.16.tgz#199fa0fa666c6356ca8e665651e027308466628e" @@ -20628,6 +20879,31 @@ proto-list@~1.2.1: resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849" integrity sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk= +proto3-json-serializer@^1.0.3: + version "1.1.1" + resolved "https://registry.yarnpkg.com/proto3-json-serializer/-/proto3-json-serializer-1.1.1.tgz#1b5703152b6ce811c5cdcc6468032caf53521331" + integrity sha512-AwAuY4g9nxx0u52DnSMkqqgyLHaW/XaPLtaAo3y/ZCfeaQB/g4YDH4kb8Wc/mWzWvu0YjOznVnfn373MVZZrgw== + dependencies: + protobufjs "^7.0.0" + +protobufjs@^7.0.0, protobufjs@^7.2.4, protobufjs@^7.2.5: + version "7.2.5" + resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.2.5.tgz#45d5c57387a6d29a17aab6846dcc283f9b8e7f2d" + integrity sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A== + dependencies: + "@protobufjs/aspromise" "^1.1.2" + "@protobufjs/base64" "^1.1.2" + "@protobufjs/codegen" "^2.0.4" + "@protobufjs/eventemitter" "^1.1.0" + "@protobufjs/fetch" "^1.1.0" + "@protobufjs/float" "^1.0.2" + "@protobufjs/inquire" "^1.1.0" + "@protobufjs/path" "^1.1.2" + "@protobufjs/pool" "^1.1.0" + "@protobufjs/utf8" "^1.1.0" + "@types/node" ">=13.7.0" + long "^5.0.0" + protocols@^1.4.0: version "1.4.8" resolved "https://registry.yarnpkg.com/protocols/-/protocols-1.4.8.tgz#48eea2d8f58d9644a4a32caae5d5db290a075ce8" @@ -22691,6 +22967,15 @@ source-map-js@^1.0.2: resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== +source-map-loader@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/source-map-loader/-/source-map-loader-4.0.1.tgz#72f00d05f5d1f90f80974eda781cbd7107c125f2" + integrity sha512-oqXpzDIByKONVY8g1NUPOTQhe0UTU5bWUl32GSkqK2LjJj0HmwTMVKxcUip0RgAYhY1mqgOxjbQM48a0mmeNfA== + dependencies: + abab "^2.0.6" + iconv-lite "^0.6.3" + source-map-js "^1.0.2" + source-map-resolve@^0.5.0: version "0.5.3" resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" @@ -22773,6 +23058,11 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== +source-map@^0.7.4: + version "0.7.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== + source-map@~0.1.33: version "0.1.43" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346" @@ -23501,6 +23791,11 @@ swap-case@^1.1.0: lower-case "^1.1.1" upper-case "^1.1.1" +swc-loader@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/swc-loader/-/swc-loader-0.2.3.tgz#6792f1c2e4c9ae9bf9b933b3e010210e270c186d" + integrity sha512-D1p6XXURfSPleZZA/Lipb3A8pZ17fP4NObZvFCDjK/OKljroqDpPmsBdTraWhVBqUNpcWBQY1imWdoPScRlQ7A== + swig-templates@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/swig-templates/-/swig-templates-2.0.3.tgz#6b4c43b462175df2a8da857a2043379ec6ea6fd0" @@ -24514,6 +24809,13 @@ union-value@^1.0.0: is-extendable "^0.1.1" set-value "^2.0.1" +unionfs@^4.5.1: + version "4.5.1" + resolved "https://registry.yarnpkg.com/unionfs/-/unionfs-4.5.1.tgz#d2b812aa83840d8dc1f8c74100e318b4bb0071d4" + integrity sha512-hn8pzkh0/80mpsIT/YBJKa4+BF/9pNh0IgysBi0CjL95Uok8Hus69TNfgeJckoUNwfTpBq26+F7edO1oBINaIw== + dependencies: + fs-monkey "^1.0.0" + uniq@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" @@ -25739,6 +26041,11 @@ yargs-parser@^21.0.0: resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.0.1.tgz#0267f286c877a4f0f728fceb6f8a3e4cb95c6e35" integrity sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg== +yargs-parser@^21.1.1: + version "21.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== + yargs-unparser@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" @@ -25792,6 +26099,19 @@ yargs@^17.0.0, yargs@^17.0.1, yargs@^17.3.0, yargs@^17.3.1, yargs@^17.4.1: y18n "^5.0.5" yargs-parser "^21.0.0" +yargs@^17.7.2: + version "17.7.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + yargs@~1.2.3: version "1.2.6" resolved "https://registry.yarnpkg.com/yargs/-/yargs-1.2.6.tgz#9c7b4a82fd5d595b2bf17ab6dcc43135432fe34b"