Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nocobase/server

Package Overview
Dependencies
Maintainers
1
Versions
453
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nocobase/server - npm Package Compare versions

Comparing version 0.7.0-alpha.18 to 0.7.0-alpha.20

15

esm/commands/install.js

@@ -10,4 +10,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
import chalk from 'chalk';
export default ({ app, cliArgs }) => __awaiter(void 0, void 0, void 0, function* () {
const [opts] = cliArgs;
if (!(opts === null || opts === void 0 ? void 0 : opts.clean) || !(opts === null || opts === void 0 ? void 0 : opts.force)) {
const tables = yield app.db.sequelize.getQueryInterface().showAllTables();
if (tables.includes('collections')) {
console.log();
console.log();
console.log(chalk.yellow('NocoBase is already installed. To reinstall, please execute:'));
console.log();
let command = 'yarn nocobase install -f';
console.log(chalk.yellow(command));
console.log();
console.log();
return;
}
}
yield app.install({

@@ -14,0 +29,0 @@ cliArgs,

@@ -11,5 +11,23 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const chalk_1 = __importDefault(require("chalk"));
exports.default = ({ app, cliArgs }) => __awaiter(void 0, void 0, void 0, function* () {
const [opts] = cliArgs;
if (!(opts === null || opts === void 0 ? void 0 : opts.clean) || !(opts === null || opts === void 0 ? void 0 : opts.force)) {
const tables = yield app.db.sequelize.getQueryInterface().showAllTables();
if (tables.includes('collections')) {
console.log();
console.log();
console.log(chalk_1.default.yellow('NocoBase is already installed. To reinstall, please execute:'));
console.log();
let command = 'yarn nocobase install -f';
console.log(chalk_1.default.yellow(command));
console.log();
console.log();
return;
}
}
yield app.install({

@@ -16,0 +34,0 @@ cliArgs,

12

package.json
{
"name": "@nocobase/server",
"version": "0.7.0-alpha.18",
"version": "0.7.0-alpha.20",
"main": "lib/index.js",

@@ -21,6 +21,6 @@ "types": "./lib/index.d.ts",

"@koa/router": "^9.4.0",
"@nocobase/acl": "0.7.0-alpha.18",
"@nocobase/actions": "0.7.0-alpha.18",
"@nocobase/database": "0.7.0-alpha.18",
"@nocobase/resourcer": "0.7.0-alpha.18",
"@nocobase/acl": "0.7.0-alpha.20",
"@nocobase/actions": "0.7.0-alpha.20",
"@nocobase/database": "0.7.0-alpha.20",
"@nocobase/resourcer": "0.7.0-alpha.20",
"commander": "^8.1.0",

@@ -35,3 +35,3 @@ "dotenv": "^8.2.0",

},
"gitHead": "400167fe0cd2b29337bd4e2873ecc6894147f5f8"
"gitHead": "d2e0cbdb5d26ba66e87a9d7660b10f3ec30a3c4b"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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