@things-factory/shell 6.2.103 → 6.2.114

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/shell",
3
- "version": "6.2.103",
3
+ "version": "6.2.114",
4
4
  "description": "Core module for framework",
5
5
  "bin": {
6
6
  "things-factory": "bin/things-factory",
@@ -134,5 +134,5 @@
134
134
  "pg": "^8.7.3",
135
135
  "sqlite3": "^5.0.8"
136
136
  },
137
- "gitHead": "941f06e7c042ed4da546f96cc770e803b3ee1d71"
137
+ "gitHead": "6b471894613abd775ce70b23790f89a2505c825a"
138
138
  }
@@ -1,6 +1,11 @@
1
1
  // ts-import-sorter: disable
2
2
 
3
- /* following 2 lines should be located in top of the file */
3
+ /* following 7 lines should be located in top of the file */
4
+ const OS = require('os')
5
+ process.env.UV_THREADPOOL_SIZE = OS.cpus().length
6
+
7
+ console.log('UV_THREADPOOL_SIZE', process.env.UV_THREADPOOL_SIZE)
8
+
4
9
  process.env.NODE_ENV = 'development'
5
10
  process.setMaxListeners(0)
6
11
 
@@ -29,13 +34,7 @@ import { initLicense, checkValidity } from '@things-factory/operato-license-chec
29
34
 
30
35
  import { GraphqlLocalClient } from './graphql-local-client'
31
36
  import { databaseInitializer } from './initializers/database'
32
- import {
33
- domainPrivateRouter,
34
- domainPublicRouter,
35
- globalPrivateRouter,
36
- globalPublicRouter,
37
- graphqlRouter
38
- } from './routers'
37
+ import { domainPrivateRouter, domainPublicRouter, globalPrivateRouter, globalPublicRouter, graphqlRouter } from './routers'
39
38
  import { schema } from './schema'
40
39
  import { Domain } from './service'
41
40
  import { EntityManager } from 'typeorm'
package/server/server.ts CHANGED
@@ -1,6 +1,11 @@
1
1
  // ts-import-sorter: disable
2
2
 
3
- /* following 2 lines should be located in top of the file */
3
+ /* following 5 lines should be located in top of the file */
4
+ const OS = require('os')
5
+ process.env.UV_THREADPOOL_SIZE = OS.cpus().length
6
+
7
+ console.log('UV_THREADPOOL_SIZE', process.env.UV_THREADPOOL_SIZE)
8
+
4
9
  process.env.NODE_ENV = 'production'
5
10
  process.setMaxListeners(0)
6
11
 
@@ -28,13 +33,7 @@ import { initLicense, checkValidity } from '@things-factory/operato-license-chec
28
33
 
29
34
  import { GraphqlLocalClient } from './graphql-local-client'
30
35
  import { databaseInitializer } from './initializers/database'
31
- import {
32
- domainPrivateRouter,
33
- domainPublicRouter,
34
- globalPrivateRouter,
35
- globalPublicRouter,
36
- graphqlRouter
37
- } from './routers'
36
+ import { domainPrivateRouter, domainPublicRouter, globalPrivateRouter, globalPublicRouter, graphqlRouter } from './routers'
38
37
  import { schema } from './schema'
39
38
  import { domainMiddleware } from './middlewares'
40
39