@deepkit/orm-browser 1.0.1-alpha.16 → 1.0.1-alpha.160

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.
@@ -0,0 +1,42 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./dist/esm",
5
+ "module": "ES2020"
6
+ },
7
+ "references": [
8
+ {
9
+ "path": "../app/tsconfig.esm.json"
10
+ },
11
+ {
12
+ "path": "../broker/tsconfig.esm.json"
13
+ },
14
+ {
15
+ "path": "../bson/tsconfig.esm.json"
16
+ },
17
+ {
18
+ "path": "../core/tsconfig.esm.json"
19
+ },
20
+ {
21
+ "path": "../framework/tsconfig.esm.json"
22
+ },
23
+ {
24
+ "path": "../http/tsconfig.esm.json"
25
+ },
26
+ {
27
+ "path": "../injector/tsconfig.esm.json"
28
+ },
29
+ {
30
+ "path": "../logger/tsconfig.esm.json"
31
+ },
32
+ {
33
+ "path": "../orm/tsconfig.esm.json"
34
+ },
35
+ {
36
+ "path": "../rpc/tsconfig.esm.json"
37
+ },
38
+ {
39
+ "path": "../type/tsconfig.esm.json"
40
+ }
41
+ ]
42
+ }
package/tsconfig.json CHANGED
@@ -8,45 +8,53 @@
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
  {
25
- "path": "../core/tsconfig.json"
27
+ "path": "../app/tsconfig.json"
26
28
  },
27
29
  {
28
- "path": "../type/tsconfig.json"
30
+ "path": "../broker/tsconfig.json"
29
31
  },
30
32
  {
31
- "path": "../app/tsconfig.json"
33
+ "path": "../bson/tsconfig.json"
32
34
  },
33
35
  {
34
- "path": "../framework/tsconfig.json"
36
+ "path": "../core/tsconfig.json"
35
37
  },
36
38
  {
37
- "path": "../http/tsconfig.json"
39
+ "path": "../framework/tsconfig.json"
38
40
  },
39
41
  {
40
- "path": "../sql/tsconfig.json"
42
+ "path": "../http/tsconfig.json"
41
43
  },
42
44
  {
43
- "path": "../rpc/tsconfig.json"
45
+ "path": "../injector/tsconfig.json"
44
46
  },
45
47
  {
46
48
  "path": "../logger/tsconfig.json"
47
49
  },
48
50
  {
49
51
  "path": "../orm/tsconfig.json"
52
+ },
53
+ {
54
+ "path": "../rpc/tsconfig.json"
55
+ },
56
+ {
57
+ "path": "../type/tsconfig.json"
50
58
  }
51
59
  ]
52
- }
60
+ }
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env ts-node-script
2
- import 'reflect-metadata';
package/dist/cjs/main.js DELETED
@@ -1,38 +0,0 @@
1
- #!/usr/bin/env ts-node-script
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- require("reflect-metadata");
5
- const framework_1 = require("@deepkit/framework");
6
- const app_1 = require("@deepkit/app");
7
- const path_1 = require("path");
8
- const orm_1 = require("@deepkit/orm");
9
- const http_1 = require("@deepkit/http");
10
- orm_1.Database.registry = [];
11
- for (const path of process.argv.slice(2)) {
12
- require(path_1.isAbsolute(path) ? path : path_1.join(process.cwd(), path));
13
- }
14
- for (const db of orm_1.Database.registry) {
15
- console.log(`Found database ${db.name} with adapter ${db.adapter.getName()}`);
16
- }
17
- const appModule = new app_1.AppModule({
18
- providers: [
19
- { provide: framework_1.OrmBrowserController, useValue: new framework_1.OrmBrowserController(orm_1.Database.registry) },
20
- ],
21
- controllers: [
22
- framework_1.OrmBrowserController
23
- ],
24
- imports: [
25
- framework_1.KernelModule.configure({
26
- port: 9090,
27
- broker: {
28
- startOnBootstrap: false,
29
- }
30
- })
31
- ]
32
- }).setup((module, config) => {
33
- const localPathPrefix = __dirname.includes('orm-browser/dist') ? '../../' : './';
34
- const localPath = path_1.join(__dirname, localPathPrefix, 'node_modules/@deepkit/orm-browser-gui/dist/orm-browser-gui');
35
- http_1.registerStaticHttpController(module, '/', localPath);
36
- });
37
- new framework_1.Application(appModule).run(['server:listen']);
38
- //# sourceMappingURL=main.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../main.ts"],"names":[],"mappings":";;;AAEA,4BAA0B;AAC1B,kDAAqF;AACrF,sCAAyC;AACzC,+BAAwC;AACxC,sCAAwC;AACxC,wCAA6D;AAE7D,cAAQ,CAAC,QAAQ,GAAG,EAAE,CAAC;AAEvB,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACtC,OAAO,CAAC,iBAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;CAChE;AAED,KAAK,MAAM,EAAE,IAAI,cAAQ,CAAC,QAAQ,EAAE;IAChC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,CAAC,IAAI,iBAAiB,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;CACjF;AAED,MAAM,SAAS,GAAG,IAAI,eAAS,CAAC;IAC5B,SAAS,EAAE;QACP,EAAC,OAAO,EAAE,gCAAoB,EAAE,QAAQ,EAAE,IAAI,gCAAoB,CAAC,cAAQ,CAAC,QAAQ,CAAC,EAAC;KACzF;IACD,WAAW,EAAE;QACT,gCAAoB;KACvB;IAED,OAAO,EAAE;QACL,wBAAY,CAAC,SAAS,CAAC;YACnB,IAAI,EAAE,IAAI;YACV,MAAM,EAAE;gBACJ,gBAAgB,EAAE,KAAK;aAC1B;SACJ,CAAC;KACL;CACJ,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;IACxB,MAAM,eAAe,GAAG,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;IACjF,MAAM,SAAS,GAAG,WAAI,CAAC,SAAS,EAAE,eAAe,EAAE,4DAA4D,CAAC,CAAC;IACjH,mCAA4B,CAAC,MAAM,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC;AACzD,CAAC,CAAC,CAAC;AAEH,IAAI,uBAAW,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC"}
package/main.ts DELETED
@@ -1,42 +0,0 @@
1
- #!/usr/bin/env ts-node-script
2
-
3
- import 'reflect-metadata';
4
- import { Application, KernelModule, OrmBrowserController } from '@deepkit/framework';
5
- import { AppModule } from '@deepkit/app';
6
- import { isAbsolute, join } from 'path';
7
- import { Database } from '@deepkit/orm';
8
- import { registerStaticHttpController } from '@deepkit/http';
9
-
10
- Database.registry = [];
11
-
12
- for (const path of process.argv.slice(2)) {
13
- require(isAbsolute(path) ? path : join(process.cwd(), path));
14
- }
15
-
16
- for (const db of Database.registry) {
17
- console.log(`Found database ${db.name} with adapter ${db.adapter.getName()}`);
18
- }
19
-
20
- const appModule = new AppModule({
21
- providers: [
22
- {provide: OrmBrowserController, useValue: new OrmBrowserController(Database.registry)},
23
- ],
24
- controllers: [
25
- OrmBrowserController
26
- ],
27
-
28
- imports: [
29
- KernelModule.configure({
30
- port: 9090,
31
- broker: {
32
- startOnBootstrap: false,
33
- }
34
- })
35
- ]
36
- }).setup((module, config) => {
37
- const localPathPrefix = __dirname.includes('orm-browser/dist') ? '../../' : './';
38
- const localPath = join(__dirname, localPathPrefix, 'node_modules/@deepkit/orm-browser-gui/dist/orm-browser-gui');
39
- registerStaticHttpController(module, '/', localPath);
40
- });
41
-
42
- new Application(appModule).run(['server:listen']);