New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@abtnode/models

Package Overview
Dependencies
Maintainers
3
Versions
474
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtnode/models - npm Package Compare versions

Comparing version 1.16.11-next-a232f5fb to 1.16.11-next-bd38e3c7

lib/migrations/blocklet/20230605000000-cleanup.js

1

lib/migrations/server/20230524000000-launcher.js

@@ -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: {

3

lib/models/index.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc