@venizia/ignis-helpers 0.1.0 → 0.1.1-0
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/modules/queue/kafka/bundler/common/constants.d.ts +9 -0
- package/dist/modules/queue/kafka/bundler/common/constants.d.ts.map +1 -0
- package/dist/modules/queue/kafka/bundler/common/constants.js +14 -0
- package/dist/modules/queue/kafka/bundler/common/constants.js.map +1 -0
- package/dist/modules/queue/kafka/bundler/common/index.d.ts +2 -0
- package/dist/modules/queue/kafka/bundler/common/index.d.ts.map +1 -0
- package/dist/modules/queue/kafka/bundler/common/index.js +18 -0
- package/dist/modules/queue/kafka/bundler/common/index.js.map +1 -0
- package/dist/modules/queue/kafka/bundler/index.d.ts +3 -0
- package/dist/modules/queue/kafka/bundler/index.d.ts.map +1 -0
- package/dist/modules/queue/kafka/bundler/index.js +19 -0
- package/dist/modules/queue/kafka/bundler/index.js.map +1 -0
- package/dist/modules/queue/kafka/bundler/platformatic-wasm.plugin.d.ts +12 -0
- package/dist/modules/queue/kafka/bundler/platformatic-wasm.plugin.d.ts.map +1 -0
- package/dist/modules/queue/kafka/bundler/platformatic-wasm.plugin.js +38 -0
- package/dist/modules/queue/kafka/bundler/platformatic-wasm.plugin.js.map +1 -0
- package/dist/modules/queue/kafka/index.d.ts +1 -0
- package/dist/modules/queue/kafka/index.d.ts.map +1 -1
- package/dist/modules/queue/kafka/index.js +1 -0
- package/dist/modules/queue/kafka/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class KafkaBundlerPluginNames {
|
|
2
|
+
static readonly PLATFORMATIC_WASM = "ignis:platformatic-wasm";
|
|
3
|
+
}
|
|
4
|
+
export declare class PlatformaticWasmSpecifiers {
|
|
5
|
+
static readonly ENTRYPOINT = "@platformatic/wasm-utils";
|
|
6
|
+
static readonly BUNDLED_ENTRYPOINT = "@platformatic/wasm-utils/bundled";
|
|
7
|
+
static readonly ENTRYPOINT_FILTER: RegExp;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/queue/kafka/bundler/common/constants.ts"],"names":[],"mappings":"AAAA,qBAAa,uBAAuB;IAClC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,6BAA6B;CAC/D;AAED,qBAAa,0BAA0B;IACrC,MAAM,CAAC,QAAQ,CAAC,UAAU,8BAA8B;IACxD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,sCAAsC;IACxE,MAAM,CAAC,QAAQ,CAAC,iBAAiB,SAAiC;CACnE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformaticWasmSpecifiers = exports.KafkaBundlerPluginNames = void 0;
|
|
4
|
+
class KafkaBundlerPluginNames {
|
|
5
|
+
static { this.PLATFORMATIC_WASM = 'ignis:platformatic-wasm'; }
|
|
6
|
+
}
|
|
7
|
+
exports.KafkaBundlerPluginNames = KafkaBundlerPluginNames;
|
|
8
|
+
class PlatformaticWasmSpecifiers {
|
|
9
|
+
static { this.ENTRYPOINT = '@platformatic/wasm-utils'; }
|
|
10
|
+
static { this.BUNDLED_ENTRYPOINT = '@platformatic/wasm-utils/bundled'; }
|
|
11
|
+
static { this.ENTRYPOINT_FILTER = /^@platformatic\/wasm-utils$/; }
|
|
12
|
+
}
|
|
13
|
+
exports.PlatformaticWasmSpecifiers = PlatformaticWasmSpecifiers;
|
|
14
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/modules/queue/kafka/bundler/common/constants.ts"],"names":[],"mappings":";;;AAAA,MAAa,uBAAuB;aAClB,sBAAiB,GAAG,yBAAyB,CAAC;;AADhE,0DAEC;AAED,MAAa,0BAA0B;aACrB,eAAU,GAAG,0BAA0B,CAAC;aACxC,uBAAkB,GAAG,kCAAkC,CAAC;aACxD,sBAAiB,GAAG,6BAA6B,CAAC;;AAHpE,gEAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/queue/kafka/bundler/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
__exportStar(require("./constants"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/queue/kafka/bundler/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/queue/kafka/bundler/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
__exportStar(require("./common"), exports);
|
|
18
|
+
__exportStar(require("./platformatic-wasm.plugin"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/queue/kafka/bundler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6DAA2C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BunPlugin } from 'bun';
|
|
2
|
+
/**
|
|
3
|
+
* platformaticWasmPlugin — Bun bundler plugin required to compile applications using the Kafka helpers.
|
|
4
|
+
*
|
|
5
|
+
* `@platformatic/kafka` reaches Kafka's CRC32C and compression codecs through
|
|
6
|
+
* `@platformatic/wasm-utils`, whose default entrypoint reads `native.wasm` from disk at module load
|
|
7
|
+
* time. `bun build --compile` embeds JavaScript only, so that read resolves against `/$bunfs` and the
|
|
8
|
+
* binary dies with ENOENT before reaching the application. The `/bundled` entrypoint exposes the same
|
|
9
|
+
* API with the wasm payload inlined; this plugin swaps one for the other at bundle time.
|
|
10
|
+
*/
|
|
11
|
+
export declare const platformaticWasmPlugin: () => BunPlugin;
|
|
12
|
+
//# sourceMappingURL=platformatic-wasm.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformatic-wasm.plugin.d.ts","sourceRoot":"","sources":["../../../../../src/modules/queue/kafka/bundler/platformatic-wasm.plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAIrC;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,QAAO,SAsBxC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.platformaticWasmPlugin = void 0;
|
|
4
|
+
const error_1 = require("../../../../modules/error");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
const common_1 = require("./common");
|
|
7
|
+
/**
|
|
8
|
+
* platformaticWasmPlugin — Bun bundler plugin required to compile applications using the Kafka helpers.
|
|
9
|
+
*
|
|
10
|
+
* `@platformatic/kafka` reaches Kafka's CRC32C and compression codecs through
|
|
11
|
+
* `@platformatic/wasm-utils`, whose default entrypoint reads `native.wasm` from disk at module load
|
|
12
|
+
* time. `bun build --compile` embeds JavaScript only, so that read resolves against `/$bunfs` and the
|
|
13
|
+
* binary dies with ENOENT before reaching the application. The `/bundled` entrypoint exposes the same
|
|
14
|
+
* API with the wasm payload inlined; this plugin swaps one for the other at bundle time.
|
|
15
|
+
*/
|
|
16
|
+
const platformaticWasmPlugin = () => ({
|
|
17
|
+
name: common_1.KafkaBundlerPluginNames.PLATFORMATIC_WASM,
|
|
18
|
+
setup(build) {
|
|
19
|
+
build.onResolve({ filter: common_1.PlatformaticWasmSpecifiers.ENTRYPOINT_FILTER }, args => {
|
|
20
|
+
try {
|
|
21
|
+
return {
|
|
22
|
+
path: Bun.resolveSync(common_1.PlatformaticWasmSpecifiers.BUNDLED_ENTRYPOINT, (0, node_path_1.dirname)(args.importer)),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
throw (0, error_1.getError)({
|
|
27
|
+
message: [
|
|
28
|
+
`[platformaticWasmPlugin] Failed to resolve ${common_1.PlatformaticWasmSpecifiers.BUNDLED_ENTRYPOINT}`,
|
|
29
|
+
`from ${args.importer}`,
|
|
30
|
+
`| Error: ${error instanceof Error ? error.message : String(error)}`,
|
|
31
|
+
].join(' '),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
exports.platformaticWasmPlugin = platformaticWasmPlugin;
|
|
38
|
+
//# sourceMappingURL=platformatic-wasm.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformatic-wasm.plugin.js","sourceRoot":"","sources":["../../../../../src/modules/queue/kafka/bundler/platformatic-wasm.plugin.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAE3C,yCAAoC;AACpC,qCAA+E;AAE/E;;;;;;;;GAQG;AACI,MAAM,sBAAsB,GAAG,GAAc,EAAE,CAAC,CAAC;IACtD,IAAI,EAAE,gCAAuB,CAAC,iBAAiB;IAC/C,KAAK,CAAC,KAAK;QACT,KAAK,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,mCAA0B,CAAC,iBAAiB,EAAE,EAAE,IAAI,CAAC,EAAE;YAC/E,IAAI,CAAC;gBACH,OAAO;oBACL,IAAI,EAAE,GAAG,CAAC,WAAW,CACnB,mCAA0B,CAAC,kBAAkB,EAC7C,IAAA,mBAAO,EAAC,IAAI,CAAC,QAAQ,CAAC,CACvB;iBACF,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAA,gBAAQ,EAAC;oBACb,OAAO,EAAE;wBACP,8CAA8C,mCAA0B,CAAC,kBAAkB,EAAE;wBAC7F,QAAQ,IAAI,CAAC,QAAQ,EAAE;wBACvB,YAAY,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;qBACrE,CAAC,IAAI,CAAC,GAAG,CAAC;iBACZ,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAtBU,QAAA,sBAAsB,0BAsBhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/queue/kafka/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/queue/kafka/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./admin"), exports);
|
|
18
18
|
__exportStar(require("./base"), exports);
|
|
19
|
+
__exportStar(require("./bundler"), exports);
|
|
19
20
|
__exportStar(require("./common"), exports);
|
|
20
21
|
__exportStar(require("./consumer"), exports);
|
|
21
22
|
__exportStar(require("./producer"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/queue/kafka/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,yCAAuB;AACvB,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B;AAC3B,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/queue/kafka/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,yCAAuB;AACvB,4CAA0B;AAC1B,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B;AAC3B,2CAAyB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venizia/ignis-helpers",
|
|
3
|
-
"version": "0.1.0",
|
|
3
|
+
"version": "0.1.1-0",
|
|
4
4
|
"description": "Production-ready TypeScript utility library with 14+ modules: Winston logging with daily rotation, Redis single/cluster with pub/sub, BullMQ/MQTT/Kafka message queues, MinIO/Disk/Memory object storage, AES-256/RSA/ECDH cryptography, Snowflake UID generation (4M IDs/sec), cron scheduling, Socket.IO/WebSocket real-time communication, TCP/TLS/UDP networking, HTTP clients, worker thread pools, and environment management. Sub-path imports isolate optional peer dependencies for optimal tree-shaking and bundle size.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aes",
|