@mnci/az-durable 0.1.0 → 0.1.1

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,6 +1,6 @@
1
1
  import type { InvocationContext } from '@azure/functions';
2
2
  import type { OrchestrationContext, RetryOptions, Task } from 'durable-functions';
3
- import type { TypedActivity, TypedTask } from './types';
3
+ import type { TypedActivity, TypedTask } from './types.js';
4
4
  /**
5
5
  * Registers an activity and remembers its input and output types.
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import type { DurableClient } from 'durable-functions';
2
- import type { TypedOrchestration } from './types';
2
+ import type { TypedOrchestration } from './types.js';
3
3
  /**
4
4
  * Starts an orchestration with an input checked against its declared type.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { Rule } from './rules/shared';
2
- export type { Rule } from './rules/shared';
1
+ import type { Rule } from './rules/shared.js';
2
+ export type { Rule } from './rules/shared.js';
3
3
  /**
4
4
  * Every rule this plugin ships, by name.
5
5
  *
@@ -40,7 +40,7 @@ export declare const recommended: {
40
40
  readonly 'az-durable/require-yield-star': "warn";
41
41
  };
42
42
  };
43
- export { noNondeterministicOrchestrator } from './rules/noNondeterministicOrchestrator';
44
- export { requireYieldStar } from './rules/requireYieldStar';
45
- export { noUntypedActivityHandler } from './rules/noUntypedActivityHandler';
43
+ export { noNondeterministicOrchestrator } from './rules/noNondeterministicOrchestrator.js';
44
+ export { requireYieldStar } from './rules/requireYieldStar.js';
45
+ export { noUntypedActivityHandler } from './rules/noUntypedActivityHandler.js';
46
46
  //# sourceMappingURL=eslint-plugin.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { DurableClient, OrchestrationContext, Task } from 'durable-functions';
2
- import type { TypedTask } from './types';
2
+ import type { TypedTask } from './types.js';
3
3
  /**
4
4
  * An external event name with its payload type attached.
5
5
  *
@@ -1,14 +1,14 @@
1
- export type { TypedActivity, TypedOrchestration, TypedTask, TypedTimerTask } from './types';
2
- export { defineActivity, activityTask, callActivity } from './activity';
3
- export { defineOrchestration, callSubOrchestration, subOrchestrationTask } from './orchestration';
4
- export type { DefineOrchestrationOptions, OrchestrationSelf } from './orchestration';
5
- export { startOrchestration } from './client';
6
- export { retryPolicy } from './retry';
7
- export type { RetryPolicy } from './retry';
8
- export { all, any, resultOf } from './parallel';
9
- export type { TaskOutputs } from './parallel';
10
- export { defineEvent, waitForEvent, eventTask, raiseEvent } from './events';
11
- export type { EventRef } from './events';
12
- export { now, sleepUntil, sleepFor, timerTask, timerTaskUntil } from './time';
13
- export { defineStatuses, setStatus } from './status';
1
+ export type { TypedActivity, TypedOrchestration, TypedTask, TypedTimerTask } from './types.js';
2
+ export { defineActivity, activityTask, callActivity } from './activity.js';
3
+ export { defineOrchestration, callSubOrchestration, subOrchestrationTask } from './orchestration.js';
4
+ export type { DefineOrchestrationOptions, OrchestrationSelf } from './orchestration.js';
5
+ export { startOrchestration } from './client.js';
6
+ export { retryPolicy } from './retry.js';
7
+ export type { RetryPolicy } from './retry.js';
8
+ export { all, any, resultOf } from './parallel.js';
9
+ export type { TaskOutputs } from './parallel.js';
10
+ export { defineEvent, waitForEvent, eventTask, raiseEvent } from './events.js';
11
+ export type { EventRef } from './events.js';
12
+ export { now, sleepUntil, sleepFor, timerTask, timerTaskUntil } from './time.js';
13
+ export { defineStatuses, setStatus } from './status.js';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { OrchestrationContext, RetryOptions, Task } from 'durable-functions';
2
- import type { TypedOrchestration, TypedTask } from './types';
2
+ import type { TypedOrchestration, TypedTask } from './types.js';
3
3
  /**
4
4
  * The orchestration's handle on itself, handed to its own handler.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import type { OrchestrationContext, Task } from 'durable-functions';
2
- import type { TypedTask } from './types';
2
+ import type { TypedTask } from './types.js';
3
3
  /**
4
4
  * The outputs of a tuple of tasks, in the same positions.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { type Rule } from './shared';
1
+ import { type Rule } from './shared.js';
2
2
  /**
3
3
  * Flags non-deterministic operations inside an orchestration body.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { Rule } from './shared';
1
+ import type { Rule } from './shared.js';
2
2
  /**
3
3
  * Flags annotations that collapse a typed handler back to `any`.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { Rule } from './shared';
1
+ import type { Rule } from './shared.js';
2
2
  /**
3
3
  * Flags `yield callActivity(...)` where `yield *` is meant.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { TypedOrchestration } from './types';
1
+ import type { TypedOrchestration } from './types.js';
2
2
  /**
3
3
  * A recorded activity or sub-orchestration call.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import type { OrchestrationContext, Task } from 'durable-functions';
2
- import type { TypedTimerTask } from './types';
2
+ import type { TypedTimerTask } from './types.js';
3
3
  /**
4
4
  * The current time, safely for replay.
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnci/az-durable",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "module": "./dist/index.esm.js",
@@ -49,6 +49,7 @@
49
49
  "test": "jest",
50
50
  "typecheck": "tsc --noEmit -p tsconfig.types.json",
51
51
  "lint": "eslint .",
52
- "check:entrypoints": "node scripts/checkEntryPoints.mjs"
52
+ "check:entrypoints": "node scripts/checkEntryPoints.mjs",
53
+ "check:consumer": "node scripts/checkConsumerTypes.mjs"
53
54
  }
54
55
  }