@steedos/service-object-graphql 2.5.0-beta.9 → 2.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-object-graphql",
3
- "version": "2.5.0-beta.9",
3
+ "version": "2.5.1",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -15,12 +15,12 @@
15
15
  "description": "steedos package",
16
16
  "repository": {},
17
17
  "license": "MIT",
18
- "gitHead": "a2623b433dd42632dc54d23c51b718bd4d1a2fdc",
18
+ "gitHead": "793bcd4718210c693aa52d0280e9b1b2a8d3230e",
19
19
  "dependencies": {
20
- "@steedos/filters": "2.5.0-beta.9",
21
- "@steedos/i18n": "2.5.0-beta.9",
22
- "@steedos/objectql": "2.5.0-beta.9",
23
- "@steedos/service-object-mixin": "2.5.0-beta.9",
20
+ "@steedos/filters": "2.5.1",
21
+ "@steedos/i18n": "2.5.1",
22
+ "@steedos/objectql": "2.5.1",
23
+ "@steedos/service-object-mixin": "2.5.1",
24
24
  "graphql": "^15.8.0",
25
25
  "graphql-parse-resolve-info": "^4.12.3",
26
26
  "moleculer": "^0.14.25",
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2023-03-23 15:12:14
4
- * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2023-04-13 18:48:20
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2023-05-16 11:28:59
6
6
  * @Description:
7
7
  */
8
8
 
@@ -29,6 +29,7 @@ module.exports = {
29
29
  mixins: [serviceObjectMixin],
30
30
 
31
31
  globalGraphQLSettings: {}, // service-api 里generateGraphQLSchema使用
32
+ getGraphqlFields: getQueryFields,
32
33
 
33
34
  projectStarted: false,
34
35
 
@@ -266,7 +267,10 @@ module.exports = {
266
267
 
267
268
  if (!this.projectStarted) {
268
269
  this.projectStarted = true
269
- console.log('');
270
+ // 开发环境, 显示耗时
271
+ if(process.env.NODE_ENV == 'development' && global.__startDate){
272
+ console.log('耗时: ' + (new Date().getTime() - global.__startDate.getTime()) + ' ms');
273
+ }
270
274
  console.log(`Project is running at ${process.env.ROOT_URL}`);
271
275
  console.log('');
272
276
  if (process.env.STEEDOS_AUTO_OPEN_BROWSER != 'false') { // 默认打开,如果不想打开,设置STEEDOS_AUTO_OPEN_BROWSER=false