taon 19.0.63 → 19.0.64

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,6 +1,7 @@
1
1
  // @ts-nocheck
2
2
  import type { EndpointContext } from './endpoint-context';
3
3
  export declare class ContextsEndpointStorage {
4
+ SPECIAL_APP_READY_MESSAGE: string;
4
5
  private taonEndpointContexts;
5
6
  private static instance;
6
7
  private constructor();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon/browser",
3
- "version": "19.0.63",
3
+ "version": "19.0.64",
4
4
  "module": "fesm2022/taon.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {
@@ -1,15 +1,15 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- viewBox="0 0 23.432 23.432004"
4
- version="1.1"
5
- id="svg1"
6
- width="23.431999"
7
- height="23.432003"
8
- xmlns="http://www.w3.org/2000/svg"
9
- xmlns:svg="http://www.w3.org/2000/svg">
10
- <defs
11
- id="defs1" />
12
- <path
13
- id="path1"
14
- d="m 11.521484,1.265625 c -0.953032,1.5597622 -1.9887223,3.0593334 -3.1074215,4.5 C 6.9495642,4.7476223 5.485983,3.7308932 4.0214844,2.7128906 3.8829075,2.6603831 3.738968,2.6414114 3.5917969,2.6582031 2.7651252,6.7213623 1.8733597,10.758159 0.9140625,14.767578 v 0.75 c 1.6097872,1.096932 3.2239518,2.188127 4.8417969,3.273438 v 0.08008 h 0.1171875 c 1.806633,1.211497 3.6188659,2.414261 5.4355471,3.611328 0.07144,0.07147 0.14145,0.143364 0.21289,0.214844 h 0.429688 c 3.432812,-2.431526 6.897745,-4.824781 10.394531,-7.179688 V 14.552734 C 21.353633,10.612741 20.406845,6.6479161 19.505859,2.6582031 19.42892,2.5563391 19.339974,2.5393307 19.238281,2.6054688 17.782054,3.6890192 16.286176,4.7048374 14.75,5.6523438 a 3.4715793,3.1345327 0 0 0 -0.01758,-0.00195 C 13.814421,4.161603 12.851221,2.7003542 11.84375,1.265625 Z M 4.1855469,8.9433594 H 10.810547 V 10.048828 H 8.34375 V 15.46875 H 6.6601562 V 10.048828 H 4.1855469 Z m 7.7285151,0 h 1.638672 l 3.41211,4.3574216 V 8.9433594 h 1.564453 V 15.46875 h -1.689453 l -3.361328,-4.253906 v 4.253906 h -1.564454 z" />
15
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ viewBox="0 0 23.432 23.432004"
4
+ version="1.1"
5
+ id="svg1"
6
+ width="23.431999"
7
+ height="23.432003"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ xmlns:svg="http://www.w3.org/2000/svg">
10
+ <defs
11
+ id="defs1" />
12
+ <path
13
+ id="path1"
14
+ d="m 11.521484,1.265625 c -0.953032,1.5597622 -1.9887223,3.0593334 -3.1074215,4.5 C 6.9495642,4.7476223 5.485983,3.7308932 4.0214844,2.7128906 3.8829075,2.6603831 3.738968,2.6414114 3.5917969,2.6582031 2.7651252,6.7213623 1.8733597,10.758159 0.9140625,14.767578 v 0.75 c 1.6097872,1.096932 3.2239518,2.188127 4.8417969,3.273438 v 0.08008 h 0.1171875 c 1.806633,1.211497 3.6188659,2.414261 5.4355471,3.611328 0.07144,0.07147 0.14145,0.143364 0.21289,0.214844 h 0.429688 c 3.432812,-2.431526 6.897745,-4.824781 10.394531,-7.179688 V 14.552734 C 21.353633,10.612741 20.406845,6.6479161 19.505859,2.6582031 19.42892,2.5563391 19.339974,2.5393307 19.238281,2.6054688 17.782054,3.6890192 16.286176,4.7048374 14.75,5.6523438 a 3.4715793,3.1345327 0 0 0 -0.01758,-0.00195 C 13.814421,4.161603 12.851221,2.7003542 11.84375,1.265625 Z M 4.1855469,8.9433594 H 10.810547 V 10.048828 H 8.34375 V 15.46875 H 6.6601562 V 10.048828 H 4.1855469 Z m 7.7285151,0 h 1.638672 l 3.41211,4.3574216 V 8.9433594 h 1.564453 V 15.46875 h -1.689453 l -3.361328,-4.253906 v 4.253906 h -1.564454 z" />
15
+ </svg>
@@ -17,4 +17,4 @@ export declare const PROJECT_NPM_NAME = "taon";
17
17
  /**
18
18
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
19
19
  */
20
- export declare const CURRENT_PACKAGE_VERSION = "19.0.63";
20
+ export declare const CURRENT_PACKAGE_VERSION = "19.0.64";
@@ -21,6 +21,6 @@ exports.PROJECT_NPM_NAME = 'taon';
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- exports.CURRENT_PACKAGE_VERSION = '19.0.63';
24
+ exports.CURRENT_PACKAGE_VERSION = '19.0.64';
25
25
  // THIS FILE IS GENERATED - DO NOT MODIFY
26
26
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -0,0 +1,20 @@
1
+ import { Models } from '../../models';
2
+ import { TaonMiddlewareInheritanceObj } from '../http/http-methods-decorators';
3
+ import { TaonControllerOptions } from './controller-options';
4
+ export declare class ControllerConfig extends TaonControllerOptions {
5
+ methods: {
6
+ [methodName: string]: Models.MethodConfig;
7
+ };
8
+ /**
9
+ * Calculated path from parents controllers
10
+ */
11
+ calculatedPath?: string;
12
+ /**
13
+ * a way to transform entity before sending to browser
14
+ */
15
+ browserTransformFn?: (entity: any) => any;
16
+ /**
17
+ * Calculated middlewares object from parents controllers
18
+ */
19
+ calculatedMiddlewaresControllerObj?: TaonMiddlewareInheritanceObj;
20
+ }
@@ -0,0 +1,21 @@
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
+ /**
8
+ * Calculated path from parents controllers
9
+ */
10
+ calculatedPath;
11
+ /**
12
+ * a way to transform entity before sending to browser
13
+ */
14
+ browserTransformFn;
15
+ /**
16
+ * Calculated middlewares object from parents controllers
17
+ */
18
+ calculatedMiddlewaresControllerObj;
19
+ }
20
+ exports.ControllerConfig = ControllerConfig;
21
+ //# sourceMappingURL=controller-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controller-config.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAIA,6DAA6D;AAE7D,MAAa,gBAAiB,SAAQ,0CAAqB;IACzD,OAAO,GAAkD,EAAE,CAAC;IAC5D;;OAEG;IACH,cAAc,CAAU;IACxB;;OAEG;IACH,kBAAkB,CAAwB;IAC1C;;OAEG;IACH,kCAAkC,CAAgC;CACnE;AAdD,4CAcC"}
@@ -0,0 +1,16 @@
1
+ import { DecoratorAbstractOpt } from '../decorator-abstract-opt';
2
+ import type { TaonMiddlewareFunction } from '../http/http-methods-decorators';
3
+ export declare class TaonControllerOptions<ControllerClass = any> extends DecoratorAbstractOpt {
4
+ /**
5
+ * typeorm realtime subscribtion // TODO disabled for now, does not make sense ?s
6
+ */
7
+ realtime?: boolean;
8
+ /**
9
+ * override default path for controller api
10
+ */
11
+ path?: string;
12
+ /**
13
+ * Middlewares to be applied to all methods in the controller
14
+ */
15
+ middlewares?: TaonMiddlewareFunction;
16
+ }
@@ -0,0 +1,20 @@
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
+ * Middlewares to be applied to all methods in the controller
16
+ */
17
+ middlewares;
18
+ }
19
+ exports.TaonControllerOptions = TaonControllerOptions;
20
+ //# sourceMappingURL=controller-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controller-options.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,sEAAiE;AAGjE,MAAa,qBAEX,SAAQ,6CAAoB;IAC5B;;OAEG;IACH,QAAQ,CAAW;IACnB;;OAEG;IACH,IAAI,CAAU;IACd;;OAEG;IACH,WAAW,CAA0B;CACtC;AAfD,sDAeC"}
@@ -1,5 +1,6 @@
1
1
  import type { EndpointContext } from './endpoint-context';
2
2
  export declare class ContextsEndpointStorage {
3
+ SPECIAL_APP_READY_MESSAGE: string;
3
4
  private taonEndpointContexts;
4
5
  private static instance;
5
6
  private constructor();
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ContextsEndpointStorage = void 0;
4
+ const lib_1 = require("tnp-core/lib");
4
5
  class ContextsEndpointStorage {
6
+ SPECIAL_APP_READY_MESSAGE = lib_1.CoreModels.SPECIAL_APP_READY_MESSAGE;
5
7
  taonEndpointContexts = new Map();
6
8
  //#region singleton
7
9
  static instance;
@@ -31,4 +33,6 @@ class ContextsEndpointStorage {
31
33
  }
32
34
  }
33
35
  exports.ContextsEndpointStorage = ContextsEndpointStorage;
36
+ // TODO QUICK_FIX @LAST encapsulate this => move to separate package
37
+ globalThis['$$$ContextsEndpointStorage$$$'] = ContextsEndpointStorage.Instance;
34
38
  //# sourceMappingURL=endpoint-context-storage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint-context-storage.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAEA,MAAa,uBAAuB;IAC1B,oBAAoB,GAAG,IAAI,GAAG,EAA2B,CAAC;IAElE,mBAAmB;IACX,MAAM,CAAC,QAAQ,CAA0B;IAEjD;QACE,sDAAsD;IACxD,CAAC;IAEM,MAAM,KAAK,QAAQ;QACxB,IAAI,CAAC,uBAAuB,CAAC,QAAQ,EAAE,CAAC;YACtC,uBAAuB,CAAC,QAAQ,GAAG,IAAI,uBAAuB,EAAE,CAAC;QACnE,CAAC;QACD,OAAO,uBAAuB,CAAC,QAAQ,CAAC;IAC1C,CAAC;IACD,YAAY;IAEZ,GAAG,CAAC,OAAwB;QAC1B,IA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AO,CAAC,WAAW,CAAC,EAAE,CAAC;YACxD,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC;IAED,IAAI,GAAG;QACL,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAC1D,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,QAAQ,CAChC,CAAC;IACJ,CAAC;IAED,KAAK,CACH,OAA0C;QAE1C,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YAChC,OAAO,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAQ,CAAC;QACvD,CAAC;QACD,OAAO,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAQ,CAAC;IACnE,CAAC;CACF;AAvCD,0DAuCC;AAED,oEAAoE;AACpE,UAAU,CAAC,+BAA+B,CAAC,GAAG,uBAAuB,CAAC,QAAQ,CAAC"}
package/lib/ui/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dummy1759775010202 = dummy1759775010202;
4
- function dummy1759775010202() { }
3
+ exports.dummy1759833404916 = dummy1759833404916;
4
+ function dummy1759833404916() { }
5
5
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dummy1759775010809 = dummy1759775010809;
4
- function dummy1759775010809() { }
3
+ exports.dummy1759833405726 = dummy1759833405726;
4
+ function dummy1759833405726() { }
5
5
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon",
3
- "version": "19.0.63",
3
+ "version": "19.0.64",
4
4
  "scripts": {
5
5
  "mkdocs": "python3 -m mkdocs",
6
6
  "taon init": "taon init",
package/websql/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -1,6 +1,6 @@
1
1
  import 'reflect-metadata';
2
2
  import * as coreHelpers from 'tnp-core/websql';
3
- import { _, Utils, UtilsMigrations, Helpers, UtilsOs, crossPlatformPath } from 'tnp-core/websql';
3
+ import { _, Utils, UtilsMigrations, Helpers, UtilsOs, crossPlatformPath, CoreModels } from 'tnp-core/websql';
4
4
  import { __decorate, __metadata, __param } from 'tslib';
5
5
  import * as tsorm from 'taon-typeorm/websql';
6
6
  import { OrignalClassKey, Entity, Table, TableIndex, EventSubscriber, DataSource } from 'taon-typeorm/websql';
@@ -5044,6 +5044,7 @@ instead
5044
5044
 
5045
5045
  class ContextsEndpointStorage {
5046
5046
  constructor() {
5047
+ this.SPECIAL_APP_READY_MESSAGE = CoreModels.SPECIAL_APP_READY_MESSAGE;
5047
5048
  this.taonEndpointContexts = new Map();
5048
5049
  // Private constructor to prevent direct instantiation
5049
5050
  }
@@ -5069,6 +5070,8 @@ class ContextsEndpointStorage {
5069
5070
  return this.taonEndpointContexts.get(context.contextName);
5070
5071
  }
5071
5072
  }
5073
+ // TODO QUICK_FIX @LAST encapsulate this => move to separate package
5074
+ globalThis['$$$ContextsEndpointStorage$$$'] = ContextsEndpointStorage.Instance;
5072
5075
 
5073
5076
  //#region imports
5074
5077
  //#endregion