@bool-ts/core 2.0.0 → 2.0.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bool-ts/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Core package for BoolTS framework",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
19
|
"test": "bun --hot run __test/index.ts",
|
|
20
|
-
"build": "tsc --emitDeclarationOnly && bun
|
|
20
|
+
"build": "tsc --emitDeclarationOnly && bun run app.build.ts"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@bool-ts/date-time": "^1.0.0",
|
|
34
34
|
"qs": "^6.14.0",
|
|
35
35
|
"reflect-metadata": "^0.2.2",
|
|
36
|
-
"zod": "^3.25.
|
|
36
|
+
"zod": "^3.25.67"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/bun": "latest",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IContext, TContextOptions } from "../interfaces";
|
|
2
|
-
export declare class Context implements IContext {
|
|
3
|
-
private readonly _staticMap;
|
|
4
|
-
private readonly _dynamicMap;
|
|
5
|
-
private _options?;
|
|
6
|
-
constructor(...contexts: Array<Context>);
|
|
7
|
-
get<T = unknown>(key: symbol, options?: TContextOptions): T;
|
|
8
|
-
has(key: symbol, options?: TContextOptions): boolean;
|
|
9
|
-
set(key: symbol, value: any, options?: TContextOptions): this;
|
|
10
|
-
setOptions(options: TContextOptions): this;
|
|
11
|
-
get staticEntries(): [symbol, any][];
|
|
12
|
-
get dynamicEntries(): [symbol, any][];
|
|
13
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import "reflect-metadata";
|
|
2
|
-
type TDefinition<T = any> = {
|
|
3
|
-
new (...args: any[]): T;
|
|
4
|
-
} | string | symbol;
|
|
5
|
-
interface IInjector {
|
|
6
|
-
set(key: TDefinition, value: any): void;
|
|
7
|
-
get<T>(definition: TDefinition): T;
|
|
8
|
-
}
|
|
9
|
-
export declare class Injector implements IInjector {
|
|
10
|
-
private readonly _mapper;
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param injectors
|
|
14
|
-
*/
|
|
15
|
-
constructor(...injectors: Array<Injector>);
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param definition
|
|
19
|
-
*/
|
|
20
|
-
get<T>(definition: TDefinition): any;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param key
|
|
24
|
-
* @param value
|
|
25
|
-
*/
|
|
26
|
-
set(key: TDefinition, value: any): void;
|
|
27
|
-
get entries(): [string | symbol | Function, any][];
|
|
28
|
-
}
|
|
29
|
-
export default Injector;
|