Socket
Socket
Sign inDemoInstall

strapi-utils

Package Overview
Dependencies
Maintainers
1
Versions
282
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strapi-utils - npm Package Compare versions

Comparing version 3.0.0-alpha.4.8 to 3.0.0-alpha.5

lib/logger.js

3

lib/index.js

@@ -10,3 +10,2 @@ 'use strict';

commander: require('./commander'),
dictionary: require('./dictionary'),
finder: require('./finder'),

@@ -16,5 +15,5 @@ joijson: require('./joi-json'),

knex: require('./knex'),
logger: require('./winston'),
logger: require('./logger'),
models: require('./models'),
regex: require('./regex')
};

@@ -14,5 +14,2 @@ 'use strict';

// Logger.
const logger = require('./winston');
/**

@@ -29,4 +26,4 @@ * Check if connection is valid

} catch (err) {
logger.error('Impossible to call the Knex migration tool.');
logger.error('You can install it with `$ npm install strapi-knex --save`.');
console.error('Impossible to call the Knex migration tool.');
console.error('You can install it with `$ npm install strapi-knex --save`.');
process.exit(1);

@@ -40,4 +37,4 @@ }

} catch (err) {
logger.error('No `databases.json` file detected at `' + path.resolve(scope.rootPath, 'config', 'environments', scope.environment) + '`.');
logger.error(err);
console.error('No `databases.json` file detected at `' + path.resolve(scope.rootPath, 'config', 'environments', scope.environment) + '`.');
console.error(err);
process.exit(1);

@@ -59,3 +56,3 @@ }

if (!_.has(scope.connections, scope.connection)) {
logger.error('No connection found for `' + scope.connection + '`.');
console.error('No connection found for `' + scope.connection + '`.');
process.exit(1);

@@ -69,4 +66,4 @@ }

} catch (err) {
logger.error('The client `' + config.client + '` is not installed.');
logger.error(err);
console.error('The client `' + config.client + '` is not installed.');
console.error(err);
process.exit(1);

@@ -73,0 +70,0 @@ }

{
"name": "strapi-utils",
"version": "3.0.0-alpha.4.8",
"version": "3.0.0-alpha.5",
"description": "Shared utilities for the Strapi packages",
"homepage": "http://strapi.io",
"keywords": [
"dictionary",
"knex",

@@ -20,11 +19,7 @@ "strapi",

"commander": "^2.11.0",
"include-all": "^2.0.0",
"joi-json": "^2.0.1",
"knex": "^0.12.9",
"knex": "^0.13.0",
"lodash": "^4.17.4",
"winston": "^2.3.1"
"pino": "^4.7.1"
},
"scripts": {
"prepublish": "npm prune"
},
"author": {

@@ -54,2 +49,2 @@ "email": "hi@strapi.io",

"license": "MIT"
}
}
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