@abtnode/models
Advanced tools
Comparing version 1.16.11-next-a232f5fb to 1.16.11-next-bd38e3c7
@@ -5,2 +5,3 @@ "use strict"; | ||
const sequelize_1 = require("sequelize"); | ||
// Add missing fields for servers from launcher | ||
const up = async ({ context }) => { | ||
@@ -7,0 +8,0 @@ await context.addColumn('servers', 'launcher', { type: sequelize_1.DataTypes.JSON }); |
@@ -5,3 +5,4 @@ import { TBlockletState } from '@abtnode/types'; | ||
updatedAt: Date; | ||
tokens: Record<string, any>; | ||
}; | ||
export declare function createBlockletModel(): DynamicModel<BlockletState>; |
@@ -10,3 +10,8 @@ "use strict"; | ||
static initialize(sequelize) { | ||
this.init({ ...this.GENESIS_ATTRIBUTES }, { | ||
this.init({ | ||
...this.GENESIS_ATTRIBUTES, | ||
tokens: { | ||
type: sequelize_1.DataTypes.JSON, | ||
}, | ||
}, { | ||
sequelize, | ||
@@ -13,0 +18,0 @@ modelName: 'Blocklet', |
@@ -30,2 +30,3 @@ "use strict"; | ||
primaryKey: true, | ||
allowNull: false, | ||
}, | ||
@@ -45,2 +46,3 @@ pk: { | ||
type: sequelize_1.DataTypes.STRING(32), | ||
allowNull: false, | ||
}, | ||
@@ -47,0 +49,0 @@ id: { |
@@ -65,3 +65,4 @@ "use strict"; | ||
function createSequelize(dbPath, config = { | ||
logging: !!process.env.DEBUG || ['production', 'test'].includes(process.env.NODE_ENV) === false, | ||
logging: !process.env.DISABLE_SQLITE_LOG && | ||
(!!process.env.DEBUG || ['production', 'test'].includes(process.env.NODE_ENV) === false), | ||
}) { | ||
@@ -68,0 +69,0 @@ if (instances.has(dbPath)) { |
@@ -30,2 +30,3 @@ "use strict"; | ||
primaryKey: true, | ||
allowNull: false, | ||
}, | ||
@@ -32,0 +33,0 @@ userDid: { |
{ | ||
"name": "@abtnode/models", | ||
"version": "1.16.11-next-a232f5fb", | ||
"version": "1.16.11-next-bd38e3c7", | ||
"description": "Sequelize models for blocklet server and blocklet service", | ||
@@ -35,4 +35,4 @@ "homepage": "https://github.com/ArcBlock/blocklet-server#readme", | ||
"dependencies": { | ||
"@abtnode/logger": "1.16.11-next-a232f5fb", | ||
"@abtnode/types": "1.16.11-next-a232f5fb", | ||
"@abtnode/logger": "1.16.11-next-bd38e3c7", | ||
"@abtnode/types": "1.16.11-next-bd38e3c7", | ||
"@nedb/core": "^2.1.5", | ||
@@ -58,3 +58,3 @@ "lodash.clonedeep": "^4.5.0", | ||
"resolutions": {}, | ||
"gitHead": "1af264e9b6648aa191fbf23c67717262ac717697" | ||
"gitHead": "d42f3cbfe1702f0dfa184e1db1587f26a05804aa" | ||
} |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
101029
73
2750
5
246
+ Added@abtnode/constant@1.16.11-next-bd38e3c7(transitive)
+ Added@abtnode/logger@1.16.11-next-bd38e3c7(transitive)
+ Added@abtnode/types@1.16.11-next-bd38e3c7(transitive)
- Removed@abtnode/constant@1.16.11-next-a232f5fb(transitive)
- Removed@abtnode/logger@1.16.11-next-a232f5fb(transitive)
- Removed@abtnode/types@1.16.11-next-a232f5fb(transitive)