@things-factory/board-service 4.3.280 → 4.3.378

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,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./service"), exports);
18
+ __exportStar(require("./migrations"), exports);
19
+ __exportStar(require("./controllers"), exports);
20
+ require("./routes");
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B;AAC5B,gDAA6B;AAE7B,oBAAiB"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const board_print_router_1 = require("./routers/board-print-router");
4
+ const env_1 = require("@things-factory/env");
5
+ const headless_pool_for_board_1 = require("./controllers/headless-pool-for-board");
6
+ const headless_pool_for_label_1 = require("./controllers/headless-pool-for-label");
7
+ const internal_board_view_router_1 = require("./routers/internal-board-view-router");
8
+ const standalone_board_service_router_1 = require("./routers/standalone-board-service-router");
9
+ const isPathBaseDomain = !env_1.config.get('subdomain') && !env_1.config.get('useVirtualHostBasedDomain');
10
+ process.on('bootstrap-module-global-public-route', (app, domainGlobalPublicRouter) => {
11
+ (0, headless_pool_for_label_1.getHeadlessPool)();
12
+ (0, headless_pool_for_board_1.getHeadlessPool)();
13
+ domainGlobalPublicRouter.use('', internal_board_view_router_1.internalBoardViewRouter.routes(), internal_board_view_router_1.internalBoardViewRouter.allowedMethods());
14
+ });
15
+ process.on('bootstrap-module-domain-private-route', (app, domainPrivateRouter) => {
16
+ if (isPathBaseDomain) {
17
+ domainPrivateRouter.use('/domain/:domain', board_print_router_1.boardPrintRouter.routes(), board_print_router_1.boardPrintRouter.allowedMethods());
18
+ domainPrivateRouter.use('/domain/:domain', standalone_board_service_router_1.standaloneBoardServiceRouter.routes(), standalone_board_service_router_1.standaloneBoardServiceRouter.allowedMethods());
19
+ }
20
+ else {
21
+ domainPrivateRouter.use('', board_print_router_1.boardPrintRouter.routes(), board_print_router_1.boardPrintRouter.allowedMethods());
22
+ domainPrivateRouter.use('', standalone_board_service_router_1.standaloneBoardServiceRouter.routes(), standalone_board_service_router_1.standaloneBoardServiceRouter.allowedMethods());
23
+ }
24
+ });
25
+ //# sourceMappingURL=routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAAA,qEAA+D;AAC/D,6CAA4C;AAC5C,mFAAkG;AAClG,mFAAkG;AAClG,qFAA8E;AAC9E,+FAAwF;AAExF,MAAM,gBAAgB,GAAG,CAAC,YAAM,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,YAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;AAE7F,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,wBAAwB,EAAE,EAAE;IAC1F,IAAA,yCAAuB,GAAE,CAAA;IACzB,IAAA,yCAAuB,GAAE,CAAA;IACzB,wBAAwB,CAAC,GAAG,CAAC,EAAE,EAAE,oDAAuB,CAAC,MAAM,EAAE,EAAE,oDAAuB,CAAC,cAAc,EAAE,CAAC,CAAA;AAC9G,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF,IAAI,gBAAgB,EAAE;QACpB,mBAAmB,CAAC,GAAG,CAAC,iBAAiB,EAAE,qCAAgB,CAAC,MAAM,EAAE,EAAE,qCAAgB,CAAC,cAAc,EAAE,CAAC,CAAA;QACxG,mBAAmB,CAAC,GAAG,CACrB,iBAAiB,EACjB,8DAA4B,CAAC,MAAM,EAAE,EACrC,8DAA4B,CAAC,cAAc,EAAE,CAC9C,CAAA;KACF;SAAM;QACL,mBAAmB,CAAC,GAAG,CAAC,EAAE,EAAE,qCAAgB,CAAC,MAAM,EAAE,EAAE,qCAAgB,CAAC,cAAc,EAAE,CAAC,CAAA;QACzF,mBAAmB,CAAC,GAAG,CAAC,EAAE,EAAE,8DAA4B,CAAC,MAAM,EAAE,EAAE,8DAA4B,CAAC,cAAc,EAAE,CAAC,CAAA;KAClH;AACH,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/board-service",
3
- "version": "4.3.280",
3
+ "version": "4.3.378",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -23,8 +23,8 @@
23
23
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
24
24
  },
25
25
  "dependencies": {
26
- "@things-factory/auth-base": "^4.3.280",
27
- "@things-factory/font-base": "^4.3.280",
26
+ "@things-factory/auth-base": "^4.3.378",
27
+ "@things-factory/font-base": "^4.3.378",
28
28
  "content-disposition": "^0.5.3",
29
29
  "generic-pool": "^3.8.2"
30
30
  },
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@types/puppeteer": "^5.4.4"
37
37
  },
38
- "gitHead": "b2dc6ebcc7c2b2d8e7343f2a4ec5b872c304d305"
38
+ "gitHead": "9de7af5e7b61574cdb4773876a41e1b9b77c1689"
39
39
  }