@carlosdiazz/lottodiz-shared 2.9.4 → 2.9.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/node.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./utils/build-nats-tls-options";
package/dist/node.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Entry point para microservicios backend (Node.js)
18
+ // Contiene utilidades que dependen de módulos de Node.js (fs, tls, etc.)
19
+ // NO importar desde el frontend (Next.js browser)
20
+ __exportStar(require("./utils/build-nats-tls-options"), exports);
@@ -11,7 +11,7 @@ interface NatsOptionsResult {
11
11
  queue?: string;
12
12
  timeout?: number;
13
13
  tls?: {
14
- ca: Buffer[];
14
+ ca: any[];
15
15
  };
16
16
  }
17
17
  /**
@@ -18,7 +18,7 @@ function buildNatsOptions(env, extra) {
18
18
  options.timeout = extra.timeout;
19
19
  }
20
20
  if (env.NATS_CA_PATH) {
21
- // eslint-disable-next-line @typescript-eslint/no-require-imports
21
+ // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
22
22
  const fs = require("fs");
23
23
  options.tls = {
24
24
  ca: [fs.readFileSync(env.NATS_CA_PATH)],
@@ -22,4 +22,3 @@ export * from "./validate-template_result";
22
22
  export * from "./validate-xpath";
23
23
  export * from "./validatePositionsResult";
24
24
  export * from "./validate_propety";
25
- export * from "./build-nats-tls-options";
@@ -38,4 +38,3 @@ __exportStar(require("./validate-template_result"), exports);
38
38
  __exportStar(require("./validate-xpath"), exports);
39
39
  __exportStar(require("./validatePositionsResult"), exports);
40
40
  __exportStar(require("./validate_propety"), exports);
41
- __exportStar(require("./build-nats-tls-options"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "2.9.4",
3
+ "version": "2.9.5",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,