strapi-utils
Advanced tools
Comparing version 3.0.0-alpha.4.8 to 3.0.0-alpha.5
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
18762
15
509
+ Addedpino@^4.7.1
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedfast-json-parse@1.0.3(transitive)
+ Addedfast-safe-stringify@1.2.3(transitive)
+ Addedflatstr@1.0.12(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedknex@0.13.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpino@4.17.6(transitive)
+ Addedpino-std-serializers@2.5.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedquick-format-unescaped@1.1.2(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsplit2@2.2.0(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedthrough2@2.0.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedinclude-all@^2.0.0
- Removedwinston@^2.3.1
- Removedasync@2.6.4(transitive)
- Removedcolors@1.0.3(transitive)
- Removedcycle@1.0.3(transitive)
- Removedeyes@0.1.8(transitive)
- Removedinclude-all@2.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedknex@0.12.9(transitive)
- Removedlodash@3.10.1(transitive)
- Removedstack-trace@0.0.10(transitive)
- Removedwinston@2.4.7(transitive)
Updatedknex@^0.13.0