@abtnode/models 1.16.19 → 1.16.20-beta-28c66e0b

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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.down = exports.up = void 0;
4
+ const sequelize_1 = require("sequelize");
5
+ const up = async ({ context }) => {
6
+ await context.addColumn('connections', 'memberAppInfo', { type: sequelize_1.DataTypes.JSON });
7
+ };
8
+ exports.up = up;
9
+ const down = async ({ context }) => {
10
+ await context.removeColumn('connections', 'memberAppInfo');
11
+ };
12
+ exports.down = down;
@@ -9,6 +9,7 @@ export type ConnectionState = {
9
9
  sharedKey: string;
10
10
  extraParams: Record<string, any>;
11
11
  appInfo: Record<string, any>;
12
+ memberAppInfo: Record<string, any>;
12
13
  clientVersion: string;
13
14
  encryptionKey: string;
14
15
  connectedWallet: Record<string, string>;
@@ -9,6 +9,9 @@ function createConnectionModel() {
9
9
  static initialize(sequelize) {
10
10
  this.init({
11
11
  ...this.GENESIS_ATTRIBUTES,
12
+ memberAppInfo: {
13
+ type: sequelize_1.DataTypes.JSON,
14
+ },
12
15
  }, {
13
16
  sequelize,
14
17
  modelName: 'Connection',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/models",
3
- "version": "1.16.19",
3
+ "version": "1.16.20-beta-28c66e0b",
4
4
  "description": "Sequelize models for blocklet server and blocklet service",
5
5
  "homepage": "https://github.com/ArcBlock/blocklet-server#readme",
6
6
  "publishConfig": {
@@ -32,8 +32,8 @@
32
32
  "url": "https://github.com/ArcBlock/blocklet-server/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@abtnode/logger": "1.16.19",
36
- "@abtnode/types": "1.16.19",
35
+ "@abtnode/logger": "1.16.20-beta-28c66e0b",
36
+ "@abtnode/types": "1.16.20-beta-28c66e0b",
37
37
  "lodash.clonedeep": "^4.5.0",
38
38
  "lodash.isempty": "^4.4.0",
39
39
  "sequelize": "^6.35.0",
@@ -52,5 +52,5 @@
52
52
  "typescript": "^5.0.4"
53
53
  },
54
54
  "resolutions": {},
55
- "gitHead": "d7ad91ba5d0e15c2a311c335e24882b572f4169e"
55
+ "gitHead": "c4c767c15f6f3c0972a466e262f00860878a90a3"
56
56
  }