taon 19.0.55 → 19.0.56
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/README.md +160 -160
- package/bin/start.js +279 -279
- package/bin/taon +6 -6
- package/bin/taon-debug +5 -5
- package/bin/taon-debug-brk +5 -5
- package/browser/README.md +24 -24
- package/browser/fesm2022/taon.mjs +268 -155
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/config/controller-config.d.ts +22 -0
- package/{websql/lib/decorators/classes → browser/lib/config}/controller-options.d.ts +6 -1
- package/browser/lib/config/method-config.d.ts +39 -0
- package/browser/lib/config/param-config.d.ts +9 -0
- package/browser/lib/decorators/classes/controller-decorator.d.ts +1 -1
- package/browser/lib/decorators/http/http-methods-decorators.d.ts +14 -1
- package/browser/lib/endpoint-context.d.ts +3 -1
- package/browser/lib/helpers/class-helpers.d.ts +5 -2
- package/browser/lib/helpers/clone-obj.d.ts +2 -0
- package/browser/lib/helpers/taon-helpers.d.ts +5 -5
- package/browser/lib/models.d.ts +0 -31
- package/browser/lib/symbols.d.ts +0 -2
- package/browser/lib/validators.d.ts +2 -2
- package/browser/package.json +1 -1
- package/lib/base-classes/base-class.js +2 -16
- package/lib/base-classes/base-class.js.map +1 -1
- package/lib/base-classes/base-controller.js +4 -1
- package/lib/base-classes/base-controller.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/config/controller-config.d.ts +21 -0
- package/lib/config/controller-config.js +34 -0
- package/lib/config/controller-config.js.map +1 -0
- package/lib/{decorators/classes → config}/controller-options.d.ts +6 -1
- package/lib/config/controller-options.js +8 -0
- package/lib/config/controller-options.js.map +1 -0
- package/lib/config/method-config.d.ts +38 -0
- package/lib/config/method-config.js +12 -0
- package/lib/config/method-config.js.map +1 -0
- package/lib/config/param-config.d.ts +8 -0
- package/lib/config/param-config.js +8 -0
- package/lib/config/param-config.js.map +1 -0
- package/lib/decorators/classes/controller-decorator.d.ts +1 -1
- package/lib/decorators/classes/controller-decorator.js +6 -1
- package/lib/decorators/classes/controller-decorator.js.map +1 -1
- package/lib/decorators/classes/middleware-decorator.js.map +1 -1
- package/lib/decorators/classes/provider-decorator.js.map +1 -1
- package/lib/decorators/decorator-abstract-opt.js +0 -1
- package/lib/decorators/decorator-abstract-opt.js.map +1 -1
- package/lib/decorators/http/http-methods-decorators.d.ts +14 -1
- package/lib/decorators/http/http-methods-decorators.js +3 -10
- package/lib/decorators/http/http-methods-decorators.js.map +1 -1
- package/lib/decorators/http/http-params-decorators.js +10 -16
- package/lib/decorators/http/http-params-decorators.js.map +1 -1
- package/lib/endpoint-context.d.ts +3 -1
- package/lib/endpoint-context.js +241 -143
- package/lib/endpoint-context.js.map +1 -1
- package/lib/helpers/class-helpers.d.ts +5 -2
- package/lib/helpers/class-helpers.js +47 -35
- package/lib/helpers/class-helpers.js.map +1 -1
- package/lib/helpers/clone-obj.d.ts +1 -0
- package/lib/helpers/clone-obj.js +22 -0
- package/lib/helpers/clone-obj.js.map +1 -0
- package/lib/helpers/taon-helpers.d.ts +5 -5
- package/lib/helpers/taon-helpers.js.map +1 -1
- package/lib/models.d.ts +0 -31
- package/lib/models.js +0 -33
- package/lib/models.js.map +1 -1
- package/lib/symbols.d.ts +0 -2
- package/lib/symbols.js +5 -7
- package/lib/symbols.js.map +1 -1
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib/validators.d.ts +2 -2
- package/lib/validators.js.map +1 -1
- package/package.json +1 -1
- package/scss/vars.scss +6 -6
- package/websql/README.md +24 -24
- package/websql/fesm2022/taon.mjs +269 -156
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/config/controller-config.d.ts +22 -0
- package/{browser/lib/decorators/classes → websql/lib/config}/controller-options.d.ts +6 -1
- package/websql/lib/config/method-config.d.ts +39 -0
- package/websql/lib/config/param-config.d.ts +9 -0
- package/websql/lib/decorators/classes/controller-decorator.d.ts +1 -1
- package/websql/lib/decorators/http/http-methods-decorators.d.ts +14 -1
- package/websql/lib/endpoint-context.d.ts +3 -1
- package/websql/lib/helpers/class-helpers.d.ts +5 -2
- package/websql/lib/helpers/clone-obj.d.ts +2 -0
- package/websql/lib/helpers/taon-helpers.d.ts +5 -5
- package/websql/lib/models.d.ts +0 -31
- package/websql/lib/symbols.d.ts +0 -2
- package/websql/lib/validators.d.ts +2 -2
- package/websql/package.json +1 -1
- package/browser/lib/decorators/classes/controller-config.d.ts +0 -10
- package/lib/decorators/classes/controller-config.d.ts +0 -9
- package/lib/decorators/classes/controller-config.js +0 -11
- package/lib/decorators/classes/controller-config.js.map +0 -1
- package/lib/decorators/classes/controller-options.js +0 -16
- package/lib/decorators/classes/controller-options.js.map +0 -1
- package/lib/env.d.ts +0 -2
- package/lib/env.js +0 -7
- package/lib/env.js.map +0 -1
- package/lib/storage.d.ts +0 -1
- package/lib/storage.js +0 -6
- package/lib/storage.js.map +0 -1
- package/websql/lib/decorators/classes/controller-config.d.ts +0 -10
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { TaonMiddlewareInheritanceObj } from '../decorators/http/http-methods-decorators';
|
|
3
|
+
import { TaonControllerOptions } from './controller-options';
|
|
4
|
+
import { MethodConfig } from './method-config';
|
|
5
|
+
export declare class ControllerConfig extends TaonControllerOptions {
|
|
6
|
+
methods: {
|
|
7
|
+
[methodName: string]: Partial<MethodConfig>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Calculated path from parents controllers
|
|
11
|
+
*/
|
|
12
|
+
calculatedPath?: string;
|
|
13
|
+
/**
|
|
14
|
+
* a way to transform entity before sending to browser
|
|
15
|
+
*/
|
|
16
|
+
browserTransformFn?: (entity: any) => any;
|
|
17
|
+
/**
|
|
18
|
+
* Calculated middlewares object from parents controllers
|
|
19
|
+
*/
|
|
20
|
+
calculatedMiddlewaresControllerObj?: TaonMiddlewareInheritanceObj;
|
|
21
|
+
}
|
|
22
|
+
export declare const controllerConfigFrom: (partial: Partial<ControllerConfig>) => ControllerConfig;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { DecoratorAbstractOpt } from '../decorator-abstract-opt';
|
|
2
|
+
import { DecoratorAbstractOpt } from '../decorators/decorator-abstract-opt';
|
|
3
|
+
import type { TaonMiddlewareFunction } from '../decorators/http/http-methods-decorators';
|
|
3
4
|
export declare class TaonControllerOptions<ControllerClass = any> extends DecoratorAbstractOpt {
|
|
4
5
|
/**
|
|
5
6
|
* typeorm realtime subscribtion // TODO disabled for now, does not make sense ?s
|
|
@@ -9,4 +10,8 @@ export declare class TaonControllerOptions<ControllerClass = any> extends Decora
|
|
|
9
10
|
* override default path for controller api
|
|
10
11
|
*/
|
|
11
12
|
path?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Middlewares to be applied to all methods in the controller
|
|
15
|
+
*/
|
|
16
|
+
middlewares?: TaonMiddlewareFunction;
|
|
12
17
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { CoreModels } from 'tnp-core/websql';
|
|
3
|
+
import type { BaseMiddleware } from '../base-classes/base-middleware';
|
|
4
|
+
import type { TaonHttpDecoratorOptions, TaonMiddlewareFunction, TaonMiddlewareInheritanceObj } from '../decorators/http/http-methods-decorators';
|
|
5
|
+
import { ParamConfig } from './param-config';
|
|
6
|
+
/**
|
|
7
|
+
* @link './decorators/http/http-methods-decorators.ts' TaonHttpDecoratorOptions
|
|
8
|
+
*/
|
|
9
|
+
export declare class MethodConfig implements Pick<TaonHttpDecoratorOptions, 'path' | 'middlewares'> {
|
|
10
|
+
methodName: string;
|
|
11
|
+
global?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* override default content type
|
|
14
|
+
*/
|
|
15
|
+
contentType?: any;
|
|
16
|
+
/**
|
|
17
|
+
* override default axiso response type
|
|
18
|
+
*/
|
|
19
|
+
responseType?: any;
|
|
20
|
+
path: string;
|
|
21
|
+
descriptor: PropertyDescriptor;
|
|
22
|
+
type: CoreModels.HttpMethod;
|
|
23
|
+
parameters: {
|
|
24
|
+
[paramName: string]: Partial<ParamConfig>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Middlewares from controller method options
|
|
28
|
+
*/
|
|
29
|
+
middlewares?: TaonMiddlewareFunction;
|
|
30
|
+
/**
|
|
31
|
+
* Calculated middlewares object from parents controllers
|
|
32
|
+
*/
|
|
33
|
+
calculatedMiddlewaresMethodObj?: TaonMiddlewareInheritanceObj;
|
|
34
|
+
/**
|
|
35
|
+
* Middlewares array in proper order and ready to be used in
|
|
36
|
+
* express or in axios interceptors.
|
|
37
|
+
*/
|
|
38
|
+
calculatedMiddlewares: (typeof BaseMiddleware)[];
|
|
39
|
+
}
|
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
import { Models as ModelsNg2Rest } from 'ng2-rest/websql';
|
|
3
3
|
import { CoreModels } from 'tnp-core/websql';
|
|
4
4
|
import { BaseMiddleware } from '../../base-classes/base-middleware';
|
|
5
|
+
export type TaonMiddlewareInheritanceObj = {
|
|
6
|
+
[parentMiddlewaresName: string]: typeof BaseMiddleware;
|
|
7
|
+
};
|
|
8
|
+
export type TaonMiddlewareFunction = (options: {
|
|
9
|
+
/**
|
|
10
|
+
* middlewares inherited from parent class
|
|
11
|
+
*/
|
|
12
|
+
parentMiddlewares: TaonMiddlewareInheritanceObj;
|
|
13
|
+
/**
|
|
14
|
+
* Get real class name - needed when code is minified
|
|
15
|
+
*/
|
|
16
|
+
className: (middlewareClass: Function) => string;
|
|
17
|
+
}) => TaonMiddlewareInheritanceObj;
|
|
5
18
|
export interface TaonHttpDecoratorOptions {
|
|
6
19
|
/**
|
|
7
20
|
* @deprecated don't use in production - keep stuff encapsulated
|
|
@@ -17,7 +30,7 @@ export interface TaonHttpDecoratorOptions {
|
|
|
17
30
|
pathIsGlobal?: boolean;
|
|
18
31
|
overrideContentType?: CoreModels.ContentType;
|
|
19
32
|
overrideResponseType?: ModelsNg2Rest.ResponseTypeAxios;
|
|
20
|
-
middlewares?:
|
|
33
|
+
middlewares?: TaonMiddlewareFunction;
|
|
21
34
|
}
|
|
22
35
|
export declare function GET(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
23
36
|
export declare function HEAD(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
@@ -109,7 +109,6 @@ export declare class EndpointContext {
|
|
|
109
109
|
isActiveOn(classInstance: object): boolean;
|
|
110
110
|
get frontendHostUri(): URL;
|
|
111
111
|
get uri(): URL;
|
|
112
|
-
get uriPort(): string | undefined;
|
|
113
112
|
get uriProtocol(): string | undefined;
|
|
114
113
|
/**
|
|
115
114
|
* Examples
|
|
@@ -130,6 +129,7 @@ export declare class EndpointContext {
|
|
|
130
129
|
* https://localhost/path/to/ -> '/path/to/somewhere' # remove last slash
|
|
131
130
|
*/
|
|
132
131
|
get uriPathnameOrNothingIfRoot(): string;
|
|
132
|
+
get uriPort(): string | undefined;
|
|
133
133
|
/**
|
|
134
134
|
* Port from uri as number
|
|
135
135
|
* @returns {Number | undefined}
|
|
@@ -155,6 +155,8 @@ export declare class EndpointContext {
|
|
|
155
155
|
initEntities(): Promise<void>;
|
|
156
156
|
destroy(): Promise<void>;
|
|
157
157
|
initDatabaseConnection(): Promise<void>;
|
|
158
|
+
private updateCalculatedPathsForControllers;
|
|
159
|
+
private mergeControllerMethodsConfigs;
|
|
158
160
|
initControllers(): Promise<void>;
|
|
159
161
|
writeActiveRoutes(): void;
|
|
160
162
|
get middlewares(): Models.MiddlewareType[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { ControllerConfig } from '../
|
|
2
|
+
import { ControllerConfig } from '../config/controller-config';
|
|
3
|
+
import { MethodConfig } from '../config/method-config';
|
|
3
4
|
export declare namespace ClassHelpers {
|
|
4
5
|
/**
|
|
5
6
|
* TODO - repalce in every place when getting class fn from object
|
|
@@ -12,11 +13,13 @@ export declare namespace ClassHelpers {
|
|
|
12
13
|
const isContextClassObject: (obj: any) => boolean;
|
|
13
14
|
const setName: (target: Function, className: string) => void;
|
|
14
15
|
const hasParentClassWithName: (target: Function, className: string, targets?: any[]) => boolean;
|
|
15
|
-
const getControllerConfig: (target: Function) => ControllerConfig | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* Express async handler for middleware functions.
|
|
18
18
|
*/
|
|
19
19
|
const asyncHandler: (fn: any) => (req: any, res: any, next: any) => void;
|
|
20
20
|
const getMethodsNames: (classOrClassInstance: any, allMethodsNames?: any[]) => string[];
|
|
21
21
|
const getControllerConfigs: (target: Function, configs?: ControllerConfig[], callerTarget?: Function) => ControllerConfig[];
|
|
22
|
+
const ensureClassConfig: (target: Function) => Partial<ControllerConfig>;
|
|
23
|
+
const ensureMethodConfig: (target: any, propertyKey: string | symbol) => Partial<MethodConfig>;
|
|
24
|
+
const getClassConfig: (constructor: Function) => Partial<ControllerConfig> | undefined;
|
|
22
25
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import type { ControllerConfig } from '../
|
|
3
|
-
import {
|
|
2
|
+
import type { ControllerConfig } from '../config/controller-config';
|
|
3
|
+
import { MethodConfig } from '../config/method-config';
|
|
4
4
|
export declare namespace TaonHelpers {
|
|
5
5
|
const fillUpTo: (s: string, nCharacters: number) => string;
|
|
6
6
|
const isGoodPath: (p: string) => boolean;
|
|
7
7
|
const tryTransformParam: (param: any) => any;
|
|
8
|
-
const getExpressPath: (c: ControllerConfig, pathOrClassConfig:
|
|
8
|
+
const getExpressPath: (c: ControllerConfig, pathOrClassConfig: Partial<MethodConfig>) => string;
|
|
9
9
|
const defaultType: (value: any) => {};
|
|
10
10
|
const parseJSONwithStringJSONs: (object: Object, waring?: boolean) => Object;
|
|
11
11
|
const isPlainFileOrFolder: (filePath: any) => boolean;
|
|
12
|
-
const ipcKeyNameResponse: (target: Function, methodConfig:
|
|
13
|
-
const ipcKeyNameRequest: (target: Function, methodConfig:
|
|
12
|
+
const ipcKeyNameResponse: (target: Function, methodConfig: Partial<MethodConfig>, expressPath: string) => string;
|
|
13
|
+
const ipcKeyNameRequest: (target: Function, methodConfig: Partial<MethodConfig>, expressPath: string) => string;
|
|
14
14
|
const websqlMocks: (headers: any) => {
|
|
15
15
|
request: Express.Request;
|
|
16
16
|
response: Express.Response;
|
package/websql/lib/models.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ import type { RequestHandler } from 'express';
|
|
|
3
3
|
import { Response as ExpressResponse, Request as ExpressRequest } from 'express';
|
|
4
4
|
import { Models as ModelsNg2Rest } from 'ng2-rest/websql';
|
|
5
5
|
import { CoreModels } from 'tnp-core/websql';
|
|
6
|
-
import type { BaseMiddleware } from './base-classes/base-middleware';
|
|
7
|
-
import type { TaonHttpDecoratorOptions } from './decorators/http/http-methods-decorators';
|
|
8
6
|
export declare namespace Models {
|
|
9
7
|
type FrameworkMode = 'backend-frontend(tcp+udp)' | 'remote-backend(tcp+udp)' | 'backend-frontend(ipc-electron)' | 'backend-frontend(websql-electron)' | 'backend-frontend(websql)';
|
|
10
8
|
enum ClassType {
|
|
@@ -213,35 +211,6 @@ export declare namespace Models {
|
|
|
213
211
|
*/
|
|
214
212
|
cwd?: string;
|
|
215
213
|
}
|
|
216
|
-
class ParamConfig {
|
|
217
|
-
paramName: string;
|
|
218
|
-
paramType: CoreModels.ParamType;
|
|
219
|
-
index: number;
|
|
220
|
-
defaultType: any;
|
|
221
|
-
expireInSeconds?: number;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* @link './decorators/http/http-methods-decorators.ts' TaonHttpDecoratorOptions
|
|
225
|
-
*/
|
|
226
|
-
class MethodConfig implements Pick<TaonHttpDecoratorOptions, 'path' | 'middlewares'> {
|
|
227
|
-
methodName: string;
|
|
228
|
-
global?: boolean;
|
|
229
|
-
/**
|
|
230
|
-
* override default content type
|
|
231
|
-
*/
|
|
232
|
-
contentType?: any;
|
|
233
|
-
/**
|
|
234
|
-
* override default axiso response type
|
|
235
|
-
*/
|
|
236
|
-
responseType?: any;
|
|
237
|
-
path: string;
|
|
238
|
-
descriptor: PropertyDescriptor;
|
|
239
|
-
type: CoreModels.HttpMethod;
|
|
240
|
-
parameters: {
|
|
241
|
-
[paramName: string]: ParamConfig;
|
|
242
|
-
};
|
|
243
|
-
middlewares?: (typeof BaseMiddleware)[];
|
|
244
|
-
}
|
|
245
214
|
namespace Http {
|
|
246
215
|
export import Rest = ModelsNg2Rest;
|
|
247
216
|
type ContextENDPOINT = {
|
package/websql/lib/symbols.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import {
|
|
2
|
+
import { MethodConfig } from './config/method-config';
|
|
3
3
|
export declare namespace Validators {
|
|
4
4
|
const classNameVlidation: (className: any, target: Function) => any;
|
|
5
|
-
const checkIfMethodsWithReponseTYpeAlowed: (methods:
|
|
5
|
+
const checkIfMethodsWithReponseTYpeAlowed: (methods: MethodConfig[], current: MethodConfig) => void;
|
|
6
6
|
const validateClassFunctions: (controllers: any[], entities: any[], proviers: any[], repositories: any[]) => void;
|
|
7
7
|
const preventUndefinedModel: (model: any, id: any) => void;
|
|
8
8
|
}
|
package/websql/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Models } from '../../models';
|
|
3
|
-
import { TaonControllerOptions } from './controller-options';
|
|
4
|
-
export declare class ControllerConfig extends TaonControllerOptions {
|
|
5
|
-
methods: {
|
|
6
|
-
[methodName: string]: Models.MethodConfig;
|
|
7
|
-
};
|
|
8
|
-
calculatedPath?: string;
|
|
9
|
-
browserTransformFn?: (entity: any) => any;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Models } from '../../models';
|
|
2
|
-
import { TaonControllerOptions } from './controller-options';
|
|
3
|
-
export declare class ControllerConfig extends TaonControllerOptions {
|
|
4
|
-
methods: {
|
|
5
|
-
[methodName: string]: Models.MethodConfig;
|
|
6
|
-
};
|
|
7
|
-
calculatedPath?: string;
|
|
8
|
-
browserTransformFn?: (entity: any) => any;
|
|
9
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ControllerConfig = void 0;
|
|
4
|
-
const controller_options_1 = require("./controller-options");
|
|
5
|
-
class ControllerConfig extends controller_options_1.TaonControllerOptions {
|
|
6
|
-
methods = {};
|
|
7
|
-
calculatedPath;
|
|
8
|
-
browserTransformFn;
|
|
9
|
-
}
|
|
10
|
-
exports.ControllerConfig = ControllerConfig;
|
|
11
|
-
//# sourceMappingURL=controller-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"controller-config.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAEA,6DAA6D;AAC7D,MAAa,gBAAiB,SAAQ,0CAAqB;IACzD,OAAO,GAAkD,EAAE,CAAC;IAC5D,cAAc,CAAU;IACxB,kBAAkB,CAAwB;CAC3C;AAJD,4CAIC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaonControllerOptions = void 0;
|
|
4
|
-
const decorator_abstract_opt_1 = require("../decorator-abstract-opt");
|
|
5
|
-
class TaonControllerOptions extends decorator_abstract_opt_1.DecoratorAbstractOpt {
|
|
6
|
-
/**
|
|
7
|
-
* typeorm realtime subscribtion // TODO disabled for now, does not make sense ?s
|
|
8
|
-
*/
|
|
9
|
-
realtime;
|
|
10
|
-
/**
|
|
11
|
-
* override default path for controller api
|
|
12
|
-
*/
|
|
13
|
-
path;
|
|
14
|
-
}
|
|
15
|
-
exports.TaonControllerOptions = TaonControllerOptions;
|
|
16
|
-
//# sourceMappingURL=controller-options.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"controller-options.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,sEAAiE;AAEjE,MAAa,qBAEX,SAAQ,6CAAoB;IAC5B;;OAEG;IACH,QAAQ,CAAW;IACnB;;OAEG;IACH,IAAI,CAAU;CACf;AAXD,sDAWC"}
|
package/lib/env.d.ts
DELETED
package/lib/env.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ENV = void 0;
|
|
4
|
-
const lib_1 = require("tnp-core/lib");
|
|
5
|
-
const ENV = lib_1.Helpers.isBrowser ? window['ENV'] : global['ENV'];
|
|
6
|
-
exports.ENV = ENV;
|
|
7
|
-
//# sourceMappingURL=env.js.map
|
package/lib/env.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,sCAAuC;AAEvC,MAAM,GAAG,GAAG,aAAO,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAErD,kBAAG"}
|
package/lib/storage.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const globalPublicStorage: typeof globalThis;
|
package/lib/storage.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.globalPublicStorage = void 0;
|
|
4
|
-
const lib_1 = require("tnp-core/lib");
|
|
5
|
-
exports.globalPublicStorage = lib_1.Helpers.isBrowser ? window : global;
|
|
6
|
-
//# sourceMappingURL=storage.js.map
|
package/lib/storage.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,sCAAuC;AAE1B,QAAA,mBAAmB,GAAG,aAAO,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Models } from '../../models';
|
|
3
|
-
import { TaonControllerOptions } from './controller-options';
|
|
4
|
-
export declare class ControllerConfig extends TaonControllerOptions {
|
|
5
|
-
methods: {
|
|
6
|
-
[methodName: string]: Models.MethodConfig;
|
|
7
|
-
};
|
|
8
|
-
calculatedPath?: string;
|
|
9
|
-
browserTransformFn?: (entity: any) => any;
|
|
10
|
-
}
|