@things-factory/shell 6.1.182 → 6.1.189

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.
@@ -22,6 +22,8 @@ module.exports = {
22
22
  level: 'silly'
23
23
  }
24
24
  },
25
+ /* database field encryption key : 32 bytes - must be changed by every installation */
26
+ dataEncryptionKey: 'V6g5oHJZb7KcYzIyL6cM95XvIDouon5b',
25
27
  /**
26
28
  * requestBody configuration
27
29
  * ie.
@@ -19,38 +19,39 @@ module.exports = {
19
19
  level: 'info'
20
20
  }
21
21
  },
22
+ /* database field encryption key : 32 bytes - must be changed by every installation */
23
+ dataEncryptionKey: 'V6g5oHJZb7KcYzIyL6cM95XvIDouon5b',
24
+ /**
25
+ * requestBody configuration
26
+ * ie.
27
+ * requestBody: {
28
+ * formLimit: '100mb',
29
+ * jsonLimit: '100mb',
30
+ * textLimit: '100mb'
31
+ * }
32
+ **/
22
33
 
23
- /**
24
- * requestBody configuration
25
- * ie.
26
- * requestBody: {
27
- * formLimit: '100mb',
28
- * jsonLimit: '100mb',
29
- * textLimit: '100mb'
30
- * }
31
- **/
34
+ /**
35
+ * fileUpload configuration
36
+ * ie.
37
+ * fileUpload: {
38
+ * maxFileSize: '100mb',
39
+ * maxFiles: 10
40
+ * }
41
+ **/
32
42
 
33
- /**
34
- * fileUpload configuration
35
- * ie.
36
- * fileUpload: {
37
- * maxFileSize: '100mb',
38
- * maxFiles: 10
39
- * }
40
- **/
41
-
42
- /**
43
- * Domain Primary Colulumn Configuration
44
- * support
45
- * Types : "int","int2","int4","int8","integer","tinyint","smallint","mediumint","bigint",'uuid'
46
- * Strategy = 'uuid','rowid',"increment","identity"
47
- * by defualt use uuid auto generated id
48
- * ie.
49
- * domainPrimaryOption:{
50
- * type:'int8',
51
- * strategy:null
52
- * }
53
- */
43
+ /**
44
+ * Domain Primary Colulumn Configuration
45
+ * support
46
+ * Types : "int","int2","int4","int8","integer","tinyint","smallint","mediumint","bigint",'uuid'
47
+ * Strategy = 'uuid','rowid',"increment","identity"
48
+ * by defualt use uuid auto generated id
49
+ * ie.
50
+ * domainPrimaryOption:{
51
+ * type:'int8',
52
+ * strategy:null
53
+ * }
54
+ */
54
55
 
55
56
  /*
56
57
  * pubsub configuration
@@ -63,16 +64,16 @@ module.exports = {
63
64
  * ...
64
65
  * }
65
66
  * }
66
- *
67
+ *
67
68
  * pubsub: {
68
69
  * middleware: 'kafka',
69
70
  * topic: 'operato-app-graphql-pubsub'
70
71
  * host: 'b-3.kafka-server:9092,b-1.kafka-server:9092,b-2.kafka-server:9092',
71
72
  * options: {
72
- * ...
73
+ * ...
73
74
  * }
74
75
  * }
75
- *
76
+ *
76
77
  * pubsub: {
77
78
  * middleware: 'kafka',
78
79
  * host: 'confluent.cloud:9092',
@@ -7,3 +7,4 @@ export * from './pubsub-log-transport';
7
7
  export * from './middlewares';
8
8
  export * from './graphql-local-client';
9
9
  export * from './service';
10
+ export * from './typeorm/encrypt-transform';
@@ -10,4 +10,5 @@ tslib_1.__exportStar(require("./pubsub-log-transport"), exports);
10
10
  tslib_1.__exportStar(require("./middlewares"), exports);
11
11
  tslib_1.__exportStar(require("./graphql-local-client"), exports);
12
12
  tslib_1.__exportStar(require("./service"), exports);
13
+ tslib_1.__exportStar(require("./typeorm/encrypt-transform"), exports);
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,yEAA8C;AAC9C,kEAAuC;AACvC,kDAAuB;AACvB,mDAAwB;AACxB,iEAAsC;AACtC,wDAA6B;AAC7B,iEAAsC;AACtC,oDAAyB","sourcesContent":["export * from './migrations'\nexport * from './initializers/naming-strategy'\nexport * from './initializers/database'\nexport * from './utils'\nexport * from './pubsub'\nexport * from './pubsub-log-transport'\nexport * from './middlewares'\nexport * from './graphql-local-client'\nexport * from './service'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,yEAA8C;AAC9C,kEAAuC;AACvC,kDAAuB;AACvB,mDAAwB;AACxB,iEAAsC;AACtC,wDAA6B;AAC7B,iEAAsC;AACtC,oDAAyB;AACzB,sEAA2C","sourcesContent":["export * from './migrations'\nexport * from './initializers/naming-strategy'\nexport * from './initializers/database'\nexport * from './utils'\nexport * from './pubsub'\nexport * from './pubsub-log-transport'\nexport * from './middlewares'\nexport * from './graphql-local-client'\nexport * from './service'\nexport * from './typeorm/encrypt-transform'\n"]}
@@ -37,8 +37,5 @@ function initMiddlewares(app) {
37
37
  });
38
38
  }
39
39
  exports.initMiddlewares = initMiddlewares;
40
- // process.on('bootstrap-module-subscription' as any, (app, subscriptionMiddleware) => {
41
- // subscriptionMiddleware.push(domainMiddleware)
42
- // })
43
40
  tslib_1.__exportStar(require("./domain-middleware"), exports);
44
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":";;;;AAAA,6CAAoD;AAEpD,2DAAsD;AAEtD,SAAgB,eAAe,CAAC,GAAG;IACjC,GAAG,CAAC,eAAe,GAAG,YAAM,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;IAEtD,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QAC/B,YAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACnB,CAAC,CAAC,CAAA;IAEF;;;OAGG;IACH,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,IAAI;YACF,MAAM,IAAI,EAAE,CAAA;SACb;QAAC,OAAO,GAAG,EAAE;YACZ,OAAO,CAAC,MAAM,GAAG,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,KAAI,GAAG,CAAA;YACnC,OAAO,CAAC,IAAI,GAAG,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAA;YAE3B,yCAAyC;YACzC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,CAAA;SACxC;IACH,CAAC,CAAC,CAAA;IAEF;;;OAGG;IACH,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;QAEhC,IAAI,MAAM,IAAI,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;YACnD,OAAO,MAAM,IAAA,oCAAgB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;SAC7C;QAED,MAAM,IAAI,EAAE,CAAA;IACd,CAAC,CAAC,CAAA;AACJ,CAAC;AApCD,0CAoCC;AAED,wFAAwF;AACxF,kDAAkD;AAClD,KAAK;AAEL,8DAAmC","sourcesContent":["import { config, logger } from '@things-factory/env'\n\nimport { domainMiddleware } from './domain-middleware'\n\nexport function initMiddlewares(app) {\n app.subdomainOffset = config.get('subdomainOffset', 2)\n\n app.on('error', (err, context) => {\n logger.error(err)\n })\n\n /*\n * Catching downstream errors\n * - recommend to use context.throw, context.assert\n */\n app.use(async (context, next) => {\n try {\n await next()\n } catch (err) {\n context.status = err?.status || 500\n context.body = err?.message\n\n // emitting error to app.on('error', ...)\n context.app.emit('error', err, context)\n }\n })\n\n /*\n * post:graphql 에 대해서는 domain을 확인한다.\n * graphql app을 router에 적용하지 못하기 때문임.\n */\n app.use(async (context, next) => {\n const { method, path } = context\n\n if (method == 'POST' && path.startsWith('/graphql')) {\n return await domainMiddleware(context, next)\n }\n\n await next()\n })\n}\n\n// process.on('bootstrap-module-subscription' as any, (app, subscriptionMiddleware) => {\n// subscriptionMiddleware.push(domainMiddleware)\n// })\n\nexport * from './domain-middleware'\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mC","sourcesContent":["import { config, logger } from '@things-factory/env'\n\nimport { domainMiddleware } from './domain-middleware'\n\nexport function initMiddlewares(app) {\n app.subdomainOffset = config.get('subdomainOffset', 2)\n\n app.on('error', (err, context) => {\n logger.error(err)\n })\n\n /*\n * Catching downstream errors\n * - recommend to use context.throw, context.assert\n */\n app.use(async (context, next) => {\n try {\n await next()\n } catch (err) {\n context.status = err?.status || 500\n context.body = err?.message\n\n // emitting error to app.on('error', ...)\n context.app.emit('error', err, context)\n }\n })\n\n /*\n * post:graphql 에 대해서는 domain을 확인한다.\n * graphql app을 router에 적용하지 못하기 때문임.\n */\n app.use(async (context, next) => {\n const { method, path } = context\n\n if (method == 'POST' && path.startsWith('/graphql')) {\n return await domainMiddleware(context, next)\n }\n\n await next()\n })\n}\n\nexport * from './domain-middleware'\n"]}