+37
-3
@@ -34,3 +34,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
| //#region package.json | ||
| var version = "6.10.0-preview-workflows.0"; | ||
| var version = "6.10.0-preview-workflows.1"; | ||
@@ -760,4 +760,4 @@ //#endregion | ||
| status: workflow.status, | ||
| steps: workflow.steps?.map(parseStepConfig), | ||
| edges: workflow.edges?.map(parseEdge) | ||
| steps: workflow.steps.map(parseStepConfig), | ||
| edges: workflow.edges.map(parseEdge) | ||
| }; | ||
@@ -1005,2 +1005,35 @@ } | ||
| //#endregion | ||
| //#region src/workflow-run-steps/workflow-run-steps.ts | ||
| var WorkflowRunSteps = class { | ||
| constructor(resend) { | ||
| this.resend = resend; | ||
| } | ||
| async get(options) { | ||
| return await this.resend.get(`/workflows/${options.workflowId}/runs/${options.runId}/steps/${options.stepId}`); | ||
| } | ||
| async list(options) { | ||
| const queryString = buildPaginationQuery(options); | ||
| const url = queryString ? `/workflows/${options.workflowId}/runs/${options.runId}/steps?${queryString}` : `/workflows/${options.workflowId}/runs/${options.runId}/steps`; | ||
| return await this.resend.get(url); | ||
| } | ||
| }; | ||
| //#endregion | ||
| //#region src/workflow-runs/workflow-runs.ts | ||
| var WorkflowRuns = class { | ||
| constructor(resend) { | ||
| this.resend = resend; | ||
| this.steps = new WorkflowRunSteps(resend); | ||
| } | ||
| async get(options) { | ||
| return await this.resend.get(`/workflows/${options.workflowId}/runs/${options.runId}`); | ||
| } | ||
| async list(options) { | ||
| const queryString = buildPaginationQuery(options); | ||
| const url = queryString ? `/workflows/${options.workflowId}/runs?${queryString}` : `/workflows/${options.workflowId}/runs`; | ||
| return await this.resend.get(url); | ||
| } | ||
| }; | ||
| //#endregion | ||
| //#region src/workflows/workflows.ts | ||
@@ -1010,2 +1043,3 @@ var Workflows = class { | ||
| this.resend = resend; | ||
| this.runs = new WorkflowRuns(this.resend); | ||
| } | ||
@@ -1012,0 +1046,0 @@ async create(payload) { |
+37
-3
@@ -5,3 +5,3 @@ import PostalMime from "postal-mime"; | ||
| //#region package.json | ||
| var version = "6.10.0-preview-workflows.0"; | ||
| var version = "6.10.0-preview-workflows.1"; | ||
@@ -731,4 +731,4 @@ //#endregion | ||
| status: workflow.status, | ||
| steps: workflow.steps?.map(parseStepConfig), | ||
| edges: workflow.edges?.map(parseEdge) | ||
| steps: workflow.steps.map(parseStepConfig), | ||
| edges: workflow.edges.map(parseEdge) | ||
| }; | ||
@@ -976,2 +976,35 @@ } | ||
| //#endregion | ||
| //#region src/workflow-run-steps/workflow-run-steps.ts | ||
| var WorkflowRunSteps = class { | ||
| constructor(resend) { | ||
| this.resend = resend; | ||
| } | ||
| async get(options) { | ||
| return await this.resend.get(`/workflows/${options.workflowId}/runs/${options.runId}/steps/${options.stepId}`); | ||
| } | ||
| async list(options) { | ||
| const queryString = buildPaginationQuery(options); | ||
| const url = queryString ? `/workflows/${options.workflowId}/runs/${options.runId}/steps?${queryString}` : `/workflows/${options.workflowId}/runs/${options.runId}/steps`; | ||
| return await this.resend.get(url); | ||
| } | ||
| }; | ||
| //#endregion | ||
| //#region src/workflow-runs/workflow-runs.ts | ||
| var WorkflowRuns = class { | ||
| constructor(resend) { | ||
| this.resend = resend; | ||
| this.steps = new WorkflowRunSteps(resend); | ||
| } | ||
| async get(options) { | ||
| return await this.resend.get(`/workflows/${options.workflowId}/runs/${options.runId}`); | ||
| } | ||
| async list(options) { | ||
| const queryString = buildPaginationQuery(options); | ||
| const url = queryString ? `/workflows/${options.workflowId}/runs?${queryString}` : `/workflows/${options.workflowId}/runs`; | ||
| return await this.resend.get(url); | ||
| } | ||
| }; | ||
| //#endregion | ||
| //#region src/workflows/workflows.ts | ||
@@ -981,2 +1014,3 @@ var Workflows = class { | ||
| this.resend = resend; | ||
| this.runs = new WorkflowRuns(this.resend); | ||
| } | ||
@@ -983,0 +1017,0 @@ async create(payload) { |
+1
-1
| { | ||
| "name": "resend", | ||
| "version": "6.10.0-preview-workflows.0", | ||
| "version": "6.10.0-preview-workflows.1", | ||
| "description": "Node.js library for the Resend API", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
223580
4.64%2314
2.84%8
-11.11%31
14.81%