@steedos/service-api 2.2.24 → 2.2.25

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.
Files changed (2) hide show
  1. package/index.js +7 -1
  2. package/package.json +4 -3
package/index.js CHANGED
@@ -4,6 +4,11 @@ const ApiGateway = require("moleculer-web");
4
4
  const steedosAuth = require('@steedos/auth');
5
5
  const { ApolloService } = require("moleculer-apollo-server");
6
6
  const GraphQLJSON = require('graphql-type-json');
7
+ const {
8
+ // GraphQLDate,
9
+ // GraphQLTime,
10
+ GraphQLDateTime
11
+ } = require('graphql-iso-date');
7
12
 
8
13
  /**
9
14
  * @typedef {import('moleculer').Context} Context Moleculer's Context
@@ -18,11 +23,12 @@ module.exports = {
18
23
  ApolloService({
19
24
 
20
25
  // Global GraphQL typeDefs
21
- typeDefs: `scalar JSON`,
26
+ typeDefs: ['scalar Date', `scalar JSON`],
22
27
 
23
28
  // Global resolvers
24
29
  resolvers: {
25
30
  JSON: GraphQLJSON,
31
+ Date: GraphQLDateTime
26
32
  },
27
33
 
28
34
  // API Gateway route options
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@steedos/service-api",
3
- "version": "2.2.24",
3
+ "version": "2.2.25",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
- "@steedos/auth": "2.2.24",
7
+ "@steedos/auth": "2.2.25",
8
+ "graphql-iso-date": "^3.6.1",
8
9
  "graphql-type-json": "^0.3.2",
9
10
  "moleculer-apollo-server": "^0.3.3",
10
11
  "moleculer-web": "^0.10.4"
@@ -13,5 +14,5 @@
13
14
  "publishConfig": {
14
15
  "access": "public"
15
16
  },
16
- "gitHead": "4650f826343d41eb0ccafabc73c721e24b04f50f"
17
+ "gitHead": "e81092f007bce951b627a5c28e286032afbba1fb"
17
18
  }