@uns-kit/temporal 0.0.3 → 0.0.5

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.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { default } from "./uns-temporal-plugin";
2
- export { UnsTemporalProxy, type UnsProxyProcessWithTemporal } from "./uns-temporal-plugin";
3
- export * from "./temporal-interfaces";
1
+ export { default } from "./uns-temporal-plugin.js";
2
+ export { UnsTemporalProxy, type UnsProxyProcessWithTemporal } from "./uns-temporal-plugin.js";
3
+ export * from "./temporal-interfaces.js";
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { default } from "./uns-temporal-plugin";
2
- export { UnsTemporalProxy } from "./uns-temporal-plugin";
3
- export * from "./temporal-interfaces";
1
+ export { default } from "./uns-temporal-plugin.js";
2
+ export { UnsTemporalProxy } from "./uns-temporal-plugin.js";
3
+ export * from "./temporal-interfaces.js";
@@ -2,7 +2,7 @@
2
2
  * Change this file according to your specifications and rename it to index.ts
3
3
  */
4
4
  import UnsProxyProcess from "@uns-kit/core/uns/uns-proxy-process";
5
- import unsTemporalPlugin from "./uns-temporal-plugin";
5
+ import unsTemporalPlugin from "./uns-temporal-plugin.js";
6
6
  import { ConfigFile } from "@uns-kit/core/config-file";
7
7
  import { UnsAttributeType } from "@uns-kit/core/graphql/schema";
8
8
  import logger from "@uns-kit/core/logger";
@@ -1,6 +1,6 @@
1
1
  import type { ClientOptions, ConnectionOptions } from "@temporalio/client";
2
2
  import UnsProxyProcess, { type UnsProxyProcessPlugin } from "@uns-kit/core/uns/uns-proxy-process";
3
- import UnsTemporalProxy from "./uns-temporal-proxy";
3
+ import UnsTemporalProxy from "./uns-temporal-proxy.js";
4
4
  declare const unsTemporalPlugin: UnsProxyProcessPlugin;
5
5
  export default unsTemporalPlugin;
6
6
  export { UnsTemporalProxy };
@@ -1,5 +1,5 @@
1
1
  import UnsProxyProcess from "@uns-kit/core/uns/uns-proxy-process";
2
- import UnsTemporalProxy from "./uns-temporal-proxy";
2
+ import UnsTemporalProxy from "./uns-temporal-proxy.js";
3
3
  const temporalProxyRegistry = new WeakMap();
4
4
  const getTemporalProxies = (instance) => {
5
5
  let proxies = temporalProxyRegistry.get(instance);
@@ -1,6 +1,6 @@
1
1
  import UnsProxy from "@uns-kit/core/uns/uns-proxy";
2
2
  import { ConnectionOptions, ClientOptions, Workflow } from '@temporalio/client';
3
- import { ITemporalTopic } from "./temporal-interfaces";
3
+ import { ITemporalTopic } from "./temporal-interfaces.js";
4
4
  export default class UnsTemporalProxy extends UnsProxy {
5
5
  instanceName: string;
6
6
  protected processStatusTopic: string;
@@ -24,7 +24,7 @@ export default class UnsTemporalProxy extends UnsProxy {
24
24
  this.instanceName = instanceName;
25
25
  this.processName = processName;
26
26
  // Create the topic builder using packageJson values and the processName.
27
- this.topicBuilder = new MqttTopicBuilder(`uns-infra/${packageJson.name}/${packageJson.version}/${processName}/`);
27
+ this.topicBuilder = new MqttTopicBuilder(`uns-infra/${MqttTopicBuilder.sanitizeTopicPart(packageJson.name)}/${MqttTopicBuilder.sanitizeTopicPart(packageJson.version)}/${MqttTopicBuilder.sanitizeTopicPart(processName)}/`);
28
28
  // Generate the processStatusTopic using the builder.
29
29
  this.processStatusTopic = this.topicBuilder.getProcessStatusTopic();
30
30
  // Derive the instanceStatusTopic by appending the instance name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uns-kit/temporal",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Temporal.io integration plugin for UnsProxyProcess, wiring workflows into the UNS.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  "types": "dist/index.d.ts",
29
29
  "dependencies": {
30
30
  "@temporalio/client": "^1.13.0",
31
- "@uns-kit/core": "0.0.13"
31
+ "@uns-kit/core": "0.0.16"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "tsc -p tsconfig.build.json",