@blocklet/sdk 1.16.36 → 1.16.37-beta-20241224-013714-a79db7d3

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.
@@ -68,6 +68,7 @@ export interface TNotification {
68
68
  checkUrl?: string;
69
69
  data?: object;
70
70
  feedType?: string;
71
+ id?: string;
71
72
  passthroughType?: string;
72
73
  poweredBy?: object;
73
74
  severity?: 'normal' | 'success' | 'error' | 'warning';
@@ -84,6 +84,7 @@ const sendToUser = async (receiver, notification, { appDid, appSk, type }, port
84
84
  appDid,
85
85
  type,
86
86
  token: JWT.sign(appDid, appSk),
87
+ componentDid: process.env.BLOCKLET_COMPONENT_DID,
87
88
  },
88
89
  receiver: Array.isArray(receiver) ? receiver.map(did_1.toAddress) : (0, did_1.toAddress)(receiver),
89
90
  notification,
@@ -164,6 +164,7 @@ const feedTypeSchema = Joi.object({
164
164
  exports.feedTypeSchema = feedTypeSchema;
165
165
  const notificationSchema = Joi.object({
166
166
  type: Joi.string().valid(...Object.values(TYPES)),
167
+ id: Joi.string().optional(),
167
168
  // feed type
168
169
  feedType: Joi.string(),
169
170
  passthroughType: Joi.string(),
package/lib/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare const version = "1.16.36";
1
+ declare const version = "1.16.37";
2
2
  export { version };
3
3
  declare const _default: {
4
4
  version: string;
package/lib/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- const version = '1.16.36';
4
+ const version = '1.16.37';
5
5
  exports.version = version;
6
6
  exports.default = { version };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.36",
6
+ "version": "1.16.37-beta-20241224-013714-a79db7d3",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
@@ -27,16 +27,16 @@
27
27
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@abtnode/client": "1.16.36",
31
- "@abtnode/constant": "1.16.36",
32
- "@abtnode/util": "1.16.36",
30
+ "@abtnode/client": "1.16.37-beta-20241224-013714-a79db7d3",
31
+ "@abtnode/constant": "1.16.37-beta-20241224-013714-a79db7d3",
32
+ "@abtnode/util": "1.16.37-beta-20241224-013714-a79db7d3",
33
33
  "@arcblock/did": "1.18.162",
34
34
  "@arcblock/did-auth": "1.18.162",
35
35
  "@arcblock/jwt": "1.18.162",
36
36
  "@arcblock/ws": "1.18.162",
37
- "@blocklet/constant": "1.16.36",
38
- "@blocklet/env": "1.16.36",
39
- "@blocklet/meta": "1.16.36",
37
+ "@blocklet/constant": "1.16.37-beta-20241224-013714-a79db7d3",
38
+ "@blocklet/env": "1.16.37-beta-20241224-013714-a79db7d3",
39
+ "@blocklet/meta": "1.16.37-beta-20241224-013714-a79db7d3",
40
40
  "@did-connect/authenticator": "^2.2.4",
41
41
  "@did-connect/handler": "^2.2.4",
42
42
  "@nedb/core": "^2.1.5",
@@ -81,5 +81,5 @@
81
81
  "ts-node": "^10.9.1",
82
82
  "typescript": "^5.6.3"
83
83
  },
84
- "gitHead": "2d70fa8a2f68de49e1d5718e693ec6b1bdcad15e"
84
+ "gitHead": "040363d1ac077f7d4b4ee29e6c3bfc3e61c3ce3f"
85
85
  }