@versori/run 0.1.0-alpha.11 → 0.1.0-alpha.12

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,4 +1,4 @@
1
- import { TlsOptions } from '@nats-io/transport-deno';
1
+ import { TlsOptions } from '@nats-io/transport-node';
2
2
  import { DestroyOptions, KeyValue, KeyValueProvider, KVOptions } from '../KeyValue.js';
3
3
  export type NatsKeyValueProviderOptions = {
4
4
  organizationId: string;
@@ -1,6 +1,6 @@
1
1
  import { JetStreamApiCodes, JetStreamApiError } from '../../../deps/jsr.io/@nats-io/jetstream/3.0.2/src/mod.js';
2
2
  import { Kvm } from '../../../deps/jsr.io/@nats-io/kv/3.0.2/src/mod.js';
3
- import { connect, credsAuthenticator } from '@nats-io/transport-deno';
3
+ import { connect, credsAuthenticator } from '@nats-io/transport-node';
4
4
  import { isKVOptionsExecution, } from '../KeyValue.js';
5
5
  import { NatsKeyValue } from './NatsKeyValue.js';
6
6
  function getOptionsFromEnv() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versori/run",
3
- "version": "v0.1.0-alpha.11",
3
+ "version": "v0.1.0-alpha.12",
4
4
  "description": "Versori Run",
5
5
  "homepage": "https://github.com/versori/versori-run#readme",
6
6
  "repository": {
@@ -26,6 +26,7 @@
26
26
  "@bufbuild/protobuf": "^2.2.3",
27
27
  "@connectrpc/connect": "^2.0.1",
28
28
  "@connectrpc/connect-node": "^2.0.1",
29
+ "@nats-io/transport-node": "^3.0.2",
29
30
  "cron": "3.5.0",
30
31
  "express": "^4.18.3",
31
32
  "rxjs": "^7.8.1",
@@ -1,4 +1,4 @@
1
- import { TlsOptions } from '@nats-io/transport-deno';
1
+ import { TlsOptions } from '@nats-io/transport-node';
2
2
  import { DestroyOptions, KeyValue, KeyValueProvider, KVOptions } from '../KeyValue.js';
3
3
  export type NatsKeyValueProviderOptions = {
4
4
  organizationId: string;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NatsKeyValueProvider = void 0;
4
4
  const mod_js_1 = require("../../../deps/jsr.io/@nats-io/jetstream/3.0.2/src/mod.js");
5
5
  const mod_js_2 = require("../../../deps/jsr.io/@nats-io/kv/3.0.2/src/mod.js");
6
- const transport_deno_1 = require("@nats-io/transport-deno");
6
+ const transport_node_1 = require("@nats-io/transport-node");
7
7
  const KeyValue_js_1 = require("../KeyValue.js");
8
8
  const NatsKeyValue_js_1 = require("./NatsKeyValue.js");
9
9
  function getOptionsFromEnv() {
@@ -89,9 +89,9 @@ class NatsKeyValueProvider {
89
89
  const credsFile = parsedOpts.nats.credsFile
90
90
  ? await Deno.readFile(parsedOpts.nats.credsFile)
91
91
  : undefined;
92
- const conn = await (0, transport_deno_1.connect)({
92
+ const conn = await (0, transport_node_1.connect)({
93
93
  servers: [parsedOpts.nats.url],
94
- authenticator: credsFile ? (0, transport_deno_1.credsAuthenticator)(credsFile) : undefined,
94
+ authenticator: credsFile ? (0, transport_node_1.credsAuthenticator)(credsFile) : undefined,
95
95
  ...(parsedOpts.nats.tls && {
96
96
  tls: parsedOpts.nats.tls,
97
97
  }),