@deepkit/orm-browser 1.0.1-alpha.98 → 1.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/tsconfig.json CHANGED
@@ -8,17 +8,19 @@
8
8
  "experimentalDecorators": true,
9
9
  "emitDecoratorMetadata": true,
10
10
  "moduleResolution": "node",
11
- "target": "es2018",
11
+ "skipLibCheck": true,
12
+ "target": "es2020",
12
13
  "module": "CommonJS",
13
14
  "esModuleInterop": true,
14
15
  "outDir": "./dist/cjs",
15
16
  "declaration": true,
16
- "composite": true
17
+ "composite": true,
18
+ "types": []
17
19
  },
20
+ "reflection": true,
18
21
  "include": [
19
22
  "src",
20
- "tests",
21
- "main.ts"
23
+ "index.ts"
22
24
  ],
23
25
  "references": [
24
26
  {
@@ -33,9 +35,6 @@
33
35
  {
34
36
  "path": "../core/tsconfig.json"
35
37
  },
36
- {
37
- "path": "../crypto/tsconfig.json"
38
- },
39
38
  {
40
39
  "path": "../framework/tsconfig.json"
41
40
  },
@@ -54,12 +53,6 @@
54
53
  {
55
54
  "path": "../rpc/tsconfig.json"
56
55
  },
57
- {
58
- "path": "../rpc-tcp/tsconfig.json"
59
- },
60
- {
61
- "path": "../sql/tsconfig.json"
62
- },
63
56
  {
64
57
  "path": "../type/tsconfig.json"
65
58
  }
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
package/dist/cjs/main.js DELETED
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const framework_1 = require("@deepkit/framework");
5
- const app_1 = require("@deepkit/app");
6
- const orm_1 = require("@deepkit/orm");
7
- const http_1 = require("@deepkit/http");
8
- const injector_1 = require("@deepkit/injector");
9
- orm_1.Database.registry = [];
10
- const databaseRegistry = new orm_1.DatabaseRegistry(injector_1.InjectorContext.forProviders([]));
11
- databaseRegistry.readDatabase(process.argv.slice(2));
12
- const appModule = new app_1.AppModule({
13
- providers: [
14
- { provide: framework_1.OrmBrowserController, useValue: new framework_1.OrmBrowserController(orm_1.Database.registry) },
15
- ],
16
- controllers: [
17
- framework_1.OrmBrowserController
18
- ],
19
- imports: [
20
- new framework_1.FrameworkModule({
21
- port: 9090
22
- })
23
- ]
24
- }).setup((module, config) => {
25
- const localPath = (0, app_1.findParentPath)('node_modules/@deepkit/orm-browser-gui/dist/orm-browser-gui', __dirname);
26
- if (!localPath)
27
- throw new Error('node_modules/@deepkit/orm-browser-gui not installed in ' + __dirname);
28
- (0, http_1.registerStaticHttpController)(module, { path: '/', localPath, controllerName: 'OrmBrowserController' });
29
- });
30
- app_1.App.fromModule(appModule).loadConfigFromEnv({ prefix: 'ORM_BROWSER_' }).run(['server:start']);
31
- //# sourceMappingURL=main.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../main.ts"],"names":[],"mappings":";;;AACA,kDAA2E;AAC3E,sCAA8D;AAC9D,sCAA0D;AAC1D,wCAA6D;AAC7D,gDAAoD;AAEpD,cAAQ,CAAC,QAAQ,GAAG,EAAE,CAAC;AACvB,MAAM,gBAAgB,GAAG,IAAI,sBAAgB,CAAC,0BAAe,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC;AAChF,gBAAgB,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAErD,MAAM,SAAS,GAAG,IAAI,eAAS,CAAC;IAC5B,SAAS,EAAE;QACP,EAAE,OAAO,EAAE,gCAAoB,EAAE,QAAQ,EAAE,IAAI,gCAAoB,CAAC,cAAQ,CAAC,QAAQ,CAAC,EAAE;KAC3F;IACD,WAAW,EAAE;QACT,gCAAoB;KACvB;IACD,OAAO,EAAE;QACL,IAAI,2BAAe,CAAC;YAChB,IAAI,EAAE,IAAI;SACb,CAAC;KACL;CACJ,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;IACxB,MAAM,SAAS,GAAG,IAAA,oBAAc,EAAC,4DAA4D,EAAE,SAAS,CAAC,CAAC;IAC1G,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,yDAAyD,GAAG,SAAS,CAAC,CAAC;IACvG,IAAA,mCAA4B,EAAC,MAAM,EAAE,EAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,cAAc,EAAE,sBAAsB,EAAC,CAAC,CAAC;AACzG,CAAC,CAAC,CAAC;AAEH,SAAG,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC,EAAC,MAAM,EAAE,cAAc,EAAC,CAAC,CAAC,GAAG,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC"}
package/main.ts DELETED
@@ -1,30 +0,0 @@
1
- #!/usr/bin/env node
2
- import { FrameworkModule, OrmBrowserController } from '@deepkit/framework';
3
- import { App, AppModule, findParentPath } from '@deepkit/app';
4
- import { Database, DatabaseRegistry } from '@deepkit/orm';
5
- import { registerStaticHttpController } from '@deepkit/http';
6
- import { InjectorContext } from '@deepkit/injector';
7
-
8
- Database.registry = [];
9
- const databaseRegistry = new DatabaseRegistry(InjectorContext.forProviders([]));
10
- databaseRegistry.readDatabase(process.argv.slice(2));
11
-
12
- const appModule = new AppModule({
13
- providers: [
14
- { provide: OrmBrowserController, useValue: new OrmBrowserController(Database.registry) },
15
- ],
16
- controllers: [
17
- OrmBrowserController
18
- ],
19
- imports: [
20
- new FrameworkModule({
21
- port: 9090
22
- })
23
- ]
24
- }).setup((module, config) => {
25
- const localPath = findParentPath('node_modules/@deepkit/orm-browser-gui/dist/orm-browser-gui', __dirname);
26
- if (!localPath) throw new Error('node_modules/@deepkit/orm-browser-gui not installed in ' + __dirname);
27
- registerStaticHttpController(module, {path: '/', localPath, controllerName: 'OrmBrowserController'});
28
- });
29
-
30
- App.fromModule(appModule).loadConfigFromEnv({prefix: 'ORM_BROWSER_'}).run(['server:start']);