@blocklet/sdk 1.6.10 → 1.6.14

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.
@@ -2,6 +2,7 @@
2
2
  const axios = require('axios').create({ proxy: false });
3
3
 
4
4
  const JWT = require('@arcblock/jwt');
5
+ const { NODE_MODES } = require('@abtnode/constant');
5
6
 
6
7
  const validators = require('../validators');
7
8
  const { AUTH_SERVICE_PREFIX } = require('./constants');
@@ -10,6 +11,8 @@ const VERSION = require('../../package.json').version; // version of notificatio
10
11
 
11
12
  const { validateNotification, validateReceiver } = validators;
12
13
 
14
+ const SERVER_MODE = process.env.ABT_NODE_MODE;
15
+
13
16
  /**
14
17
  * @param {String|Array} receiver
15
18
  * @param {Object} notification
@@ -24,7 +27,10 @@ module.exports = async (
24
27
  port = process.env.ABT_NODE_SERVICE_PORT
25
28
  ) => {
26
29
  await validateReceiver(receiver);
27
- await validateNotification(notification);
30
+
31
+ if (SERVER_MODE !== NODE_MODES.DEBUG) {
32
+ await validateNotification(notification);
33
+ }
28
34
 
29
35
  const token = JWT.sign(appId, appSk);
30
36
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.6.10",
6
+ "version": "1.6.14",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,11 +19,11 @@
19
19
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "@abtnode/client": "1.6.10",
23
- "@abtnode/constant": "1.6.10",
22
+ "@abtnode/client": "1.6.14",
23
+ "@abtnode/constant": "1.6.14",
24
24
  "@arcblock/did-auth": "^1.13.79",
25
25
  "@arcblock/jwt": "^1.13.79",
26
- "@blocklet/meta": "1.6.10",
26
+ "@blocklet/meta": "1.6.14",
27
27
  "@nedb/core": "^1.2.2",
28
28
  "@ocap/mcrypto": "^1.13.79",
29
29
  "@ocap/wallet": "^1.13.79",
@@ -37,5 +37,5 @@
37
37
  "detect-port": "^1.3.0",
38
38
  "jest": "^27.4.5"
39
39
  },
40
- "gitHead": "90aa29d892f9f54c87faa3041daec042997fffcc"
40
+ "gitHead": "0ae215d5cf1160631bdd9b64639c8fcf80eb2d5f"
41
41
  }