@toolproof-npm/shared 0.1.95 → 0.1.96

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.
@@ -1,3 +1,3 @@
1
1
  import type { WorkStepJson, WhileStepJson, ForStepJson, JobJson } from '@toolproof-npm/schema';
2
2
  export declare const makeWorkStepFromJob: (job: JobJson) => Promise<WorkStepJson>;
3
- export declare const makeLoopStepFromJob: (job: JobJson, lessThanJob: JobJson, kind: "for" | "while") => Promise<ForStepJson | WhileStepJson>;
3
+ export declare const makeLoopStepFromJob: (job: JobJson, whenJob: JobJson, kind: "for" | "while") => Promise<ForStepJson | WhileStepJson>;
@@ -37,11 +37,11 @@ export const makeWorkStepFromJob = async (job) => {
37
37
  return newWorkStep;
38
38
  };
39
39
  // DOC: Helper function to construct a ForStep or WhileStep from a job
40
- export const makeLoopStepFromJob = async (job, lessThanJob, kind) => {
40
+ export const makeLoopStepFromJob = async (job, whenJob, kind) => {
41
41
  // Create the "what" WorkStep from the provided job
42
42
  const whatWorkStep = await makeWorkStepFromJob(job);
43
43
  // Create the "when" WorkStep from the LessThan job
44
- const whenWorkStep = await makeWorkStepFromJob(lessThanJob);
44
+ const whenWorkStep = await makeWorkStepFromJob(whenJob);
45
45
  // Generate loop step identity based on kind
46
46
  const stepIdentity = (kind === 'for'
47
47
  ? await getNewIdentity(CONSTANTS.STEPS.for)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolproof-npm/shared",
3
- "version": "0.1.95",
3
+ "version": "0.1.96",
4
4
  "description": "Core library utilities for ToolProof",
5
5
  "keywords": [
6
6
  "toolproof",