Comparing version 3.0.2 to 3.0.3
@@ -26,3 +26,3 @@ /** | ||
const preamble = 'The following configuration values are invalid: ' | ||
const paths = (details || [ ]).map(d => d.path.replace(/\.(\d)+$/, '[$1]')) | ||
const paths = (details || [ ]).map(d => d.path.join('.')) | ||
@@ -29,0 +29,0 @@ return preamble + paths.join(', ') |
{ | ||
"name": "trails", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Modern Web Application Framework for Node.js", | ||
@@ -71,7 +71,7 @@ "keywords": [ | ||
"dependencies": { | ||
"joi": "^10.2.2", | ||
"lodash.defaultsdeep": "^4.6.0", | ||
"lodash.isplainobject": "^4.0.6", | ||
"lodash.mapvalues": "^4.6.0", | ||
"lodash.merge": "^4.6.0", | ||
"joi": "13.0.2", | ||
"lodash.defaultsdeep": "4.6.0", | ||
"lodash.isplainobject": "4.0.6", | ||
"lodash.mapvalues": "4.6.0", | ||
"lodash.merge": "4.6.0", | ||
"mkdirp": "0.5.1" | ||
@@ -82,8 +82,8 @@ }, | ||
"eslint-config-trails": "^3", | ||
"mocha": "^3.2.0", | ||
"mocha": "^4", | ||
"nyc": "^11.0.2", | ||
"pre-commit": "^1.1.3", | ||
"proxyquire": "^1.7.11", | ||
"smokesignals": "next", | ||
"trailpack": "3.0.0-pre.5", | ||
"smokesignals": "^3", | ||
"trailpack": "^3", | ||
"winston": "^2.1.1" | ||
@@ -90,0 +90,0 @@ }, |
@@ -87,5 +87,4 @@ /* eslint new-cap: [0] */ | ||
catch (e) { | ||
console.log(e) | ||
assert(/The following configuration values are invalid/.test(e.message)) | ||
assert(/main.packs\[0\]/.test(e.message)) | ||
assert(/main.packs\.0/.test(e.message)) | ||
} | ||
@@ -92,0 +91,0 @@ }) |
@@ -8,6 +8,5 @@ const TrailsApp = require('trails') | ||
* Write custom logic here to test out your Trails Controller on RunKit | ||
* @return Promise or value | ||
*/ | ||
runkitEndpoint (request) { | ||
return { | ||
runkitEndpoint (request, reply) { | ||
reply({ | ||
message: 'hello world!', | ||
@@ -18,3 +17,3 @@ from: 'trails.js', | ||
body: request.body | ||
} | ||
}) | ||
} | ||
@@ -27,2 +26,3 @@ } | ||
packs: [ | ||
require('trailpack-router'), | ||
require('trailpack-runkit')(exports) | ||
@@ -29,0 +29,0 @@ ] |
Sorry, the diff of this file is not supported yet
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
105317
88
2760
+ Addedhoek@5.0.46.1.3(transitive)
+ Addedisemail@3.2.0(transitive)
+ Addedjoi@13.0.2(transitive)
+ Addedlodash.defaultsdeep@4.6.0(transitive)
+ Addedlodash.merge@4.6.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedtopo@3.0.3(transitive)
- Removedhoek@4.3.1(transitive)
- Removedisemail@2.2.1(transitive)
- Removeditems@2.2.1(transitive)
- Removedjoi@10.6.0(transitive)
- Removedlodash.defaultsdeep@4.6.1(transitive)
- Removedlodash.merge@4.6.2(transitive)
- Removedtopo@2.1.1(transitive)
Updatedjoi@13.0.2
Updatedlodash.defaultsdeep@4.6.0
Updatedlodash.isplainobject@4.0.6
Updatedlodash.mapvalues@4.6.0
Updatedlodash.merge@4.6.0