@atlantjs/backend 11.0.22 → 11.0.24

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,2 +0,0 @@
1
- import { interfaces } from "inversify";
2
- export declare function getBoundary<T>(stitchPoint: interfaces.ServiceIdentifier<unknown>): T;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBoundary = getBoundary;
4
- const di_container_1 = require("../setup/dependency-injections/di-container");
5
- function getBoundary(stitchPoint) {
6
- let token;
7
- if (!di_container_1.diContainer.isBound(stitchPoint)) {
8
- // access internal binding keys and find a matching symbol by description
9
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
10
- // @ts-ignore
11
- const keys = di_container_1.diContainer._bindingDictionary?._map
12
- ? // @ts-ignore
13
- Array.from(di_container_1.diContainer._bindingDictionary._map.keys())
14
- : [];
15
- const found = keys.find((k) => String(k) === String(stitchPoint));
16
- if (found)
17
- token = found;
18
- }
19
- return di_container_1.diContainer.get(token);
20
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- require("reflect-metadata");
4
- // allow require() to load TypeScript source files during tests
5
- require("ts-node/register/transpile-only");
6
- const node_fs_1 = require("node:fs");
7
- const node_path_1 = require("node:path");
8
- const dotenv_1 = require("dotenv");
9
- const setup_1 = require("../setup");
10
- (0, setup_1.synthesizePaths)();
11
- const envConfig = (0, dotenv_1.parse)((0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, "..", "..", "..", "..", ".env.test")));
12
- for (const key in envConfig) {
13
- if (!envConfig[key].startsWith("$")) {
14
- process.env[key] = envConfig[key];
15
- }
16
- }