Skip to content

Commit c451dcb

Browse files
TrickSumoyaythomas
andauthored
docs: fix wrong package name and wrapper function
* Update handle-invocation-error.ts Wrong package name and wrapper function * Update invoke-with-config.ts Wrong package name and wrapper function * Update process-order.ts Wrong package name and wrapper function * Delete examples/typescript/getting-started/custom-boto3-client.ts File not required here * Update examples/typescript/operations/invoke/handle-invocation-error.ts * Update examples/typescript/operations/invoke/process-order.ts --------- Co-authored-by: thomas <18520168+yaythomas@users.noreply.github.com>
1 parent 9c36556 commit c451dcb

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

examples/typescript/getting-started/custom-boto3-client.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/typescript/operations/invoke/handle-invocation-error.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {
22
DurableContext,
33
InvokeError,
4-
durableExecution,
5-
} from "aws-durable-execution-sdk-js";
4+
withDurableExecution,
5+
} from "@aws/durable-execution-sdk-js";
66

7-
export const handler = durableExecution(
7+
export const handler = withDurableExecution(
88
async (event: { orderId: string }, context: DurableContext) => {
99
try {
1010
const result = await context.invoke(

examples/typescript/operations/invoke/invoke-with-config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {
22
DurableContext,
33
InvokeConfig,
4-
durableExecution,
5-
} from "aws-durable-execution-sdk-js";
4+
withDurableExecution,
5+
} from "@aws-durable-execution-sdk-js";
66

7-
export const handler = durableExecution(
7+
export const handler = withDurableExecution(
88
async (event: { orderId: string }, context: DurableContext) => {
99
const config: InvokeConfig<{ orderId: string }, { status: string }> = {
1010
tenantId: event.orderId,

examples/typescript/operations/invoke/process-order.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DurableContext, durableExecution } from "aws-durable-execution-sdk-js";
1+
import { DurableContext, withDurableExecution } from "@aws/durable-execution-sdk-js";
22

33
interface OrderEvent {
44
orderId: string;
@@ -14,7 +14,7 @@ interface PaymentResult {
1414
transactionId: string;
1515
}
1616

17-
export const handler = durableExecution(
17+
export const handler = withDurableExecution(
1818
async (event: OrderEvent, context: DurableContext) => {
1919
const validation = await context.invoke<OrderEvent, ValidationResult>(
2020
"validate-order",

0 commit comments

Comments
 (0)