@abtnode/models 1.16.11-next-09bc31f8 → 1.16.11-next-7cff3891
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.down = exports.up = void 0;
|
|
4
4
|
const sequelize_1 = require("sequelize");
|
|
5
|
+
// Add missing fields for servers from launcher
|
|
5
6
|
const up = async ({ context }) => {
|
|
6
7
|
await context.addColumn('servers', 'launcher', { type: sequelize_1.DataTypes.JSON });
|
|
7
8
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.down = exports.up = void 0;
|
|
4
|
+
const sequelize_1 = require("sequelize");
|
|
5
|
+
// Add missing fields for paid blocklets
|
|
6
|
+
const up = async ({ context }) => {
|
|
7
|
+
await context.addColumn('blocklets', 'tokens', { type: sequelize_1.DataTypes.JSON });
|
|
8
|
+
};
|
|
9
|
+
exports.up = up;
|
|
10
|
+
const down = async ({ context }) => {
|
|
11
|
+
await context.removeColumn('blocklets', 'tokens');
|
|
12
|
+
};
|
|
13
|
+
exports.down = down;
|
package/lib/models/blocklet.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import { TBlockletState } from '@abtnode/types';
|
|
|
2
2
|
import { DynamicModel } from '../types';
|
|
3
3
|
export type BlockletState = Omit<TBlockletState, 'port' | 'configs' | 'trustedFactories' | 'trustedPassports' | 'enablePassportIssuance' | 'dynamic' | 'mountPoint' | 'controller'> & {
|
|
4
4
|
updatedAt: Date;
|
|
5
|
+
tokens: Record<string, any>;
|
|
5
6
|
};
|
|
6
7
|
export declare function createBlockletModel(): DynamicModel<BlockletState>;
|
package/lib/models/blocklet.js
CHANGED
|
@@ -7,7 +7,12 @@ function createBlockletModel() {
|
|
|
7
7
|
var _a;
|
|
8
8
|
return _a = class Blocklet extends sequelize_1.Model {
|
|
9
9
|
static initialize(sequelize) {
|
|
10
|
-
this.init({
|
|
10
|
+
this.init({
|
|
11
|
+
...this.GENESIS_ATTRIBUTES,
|
|
12
|
+
tokens: {
|
|
13
|
+
type: sequelize_1.DataTypes.JSON,
|
|
14
|
+
},
|
|
15
|
+
}, {
|
|
11
16
|
sequelize,
|
|
12
17
|
modelName: 'Blocklet',
|
|
13
18
|
tableName: 'blocklets',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/models",
|
|
3
|
-
"version": "1.16.11-next-
|
|
3
|
+
"version": "1.16.11-next-7cff3891",
|
|
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.11-next-
|
|
36
|
-
"@abtnode/types": "1.16.11-next-
|
|
35
|
+
"@abtnode/logger": "1.16.11-next-7cff3891",
|
|
36
|
+
"@abtnode/types": "1.16.11-next-7cff3891",
|
|
37
37
|
"@nedb/core": "^2.1.5",
|
|
38
38
|
"lodash.clonedeep": "^4.5.0",
|
|
39
39
|
"lodash.get": "^4.4.2",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"typescript": "^5.0.4"
|
|
55
55
|
},
|
|
56
56
|
"resolutions": {},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "53ffbcdca9cda278337d80bfafa44e7ef5635af1"
|
|
58
58
|
}
|