dust-usecontent-helper
Advanced tools
Comparing version 4.0.0-3 to 4.0.0
{ | ||
"name": "dust-usecontent-helper", | ||
"version": "4.0.0-3", | ||
"version": "4.0.0", | ||
"description": "A dust helper to load i18n content at render time", | ||
"main": "index.js", | ||
"scripts": { | ||
"cover": "nyc report --reporter=lcov", | ||
"test": "nyc tap test/*.js && nyc report", | ||
"cover": "nyc report --reporter=lcov" | ||
"prepublish": "amdify -e index.js -o index.amd.js" | ||
}, | ||
"author": "Aria Stewart <ariastewart@paypal.com>", | ||
"license": "Apache 2.0", | ||
"license": "Apache-2.0", | ||
"browserPackage": { | ||
"files": [ | ||
"index.amd.js" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@aredridel/amdify": "0.0.26", | ||
"dust-message-helper": "^3.0.0", | ||
@@ -14,0 +21,0 @@ "dustjs-linkedin": "~2.7.1", |
@@ -23,1 +23,16 @@ "use strict"; | ||
}); | ||
test('loader fails', function (t) { | ||
t.plan(3); | ||
helper(function (a, b, c) { | ||
t.pass('called'); | ||
c(new Error('oops')); | ||
}).registerWith(dustjs); | ||
var tmpl = dustjs.loadSource(dustjs.compile('{@useContent bundle="oops"}test{/useContent}')); | ||
dustjs.render(tmpl, {}, function (err, body) { | ||
t.match(err, { message: "oops" }); | ||
t.error(body); | ||
t.end(); | ||
}); | ||
}); |
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
15416
12
0
158
1
5