Socket
Socket
Sign inDemoInstall

dust-usecontent-helper

Package Overview
Dependencies
0
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-3 to 4.0.0

.nyc_output/59291.json

13

package.json
{
"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();
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc