New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-i18n-abide

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-i18n-abide - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

2

package.json
{
"name": "grunt-i18n-abide",
"description": "Grunt plugin for running jsxgettext against your codebase.",
"version": "0.0.16",
"version": "0.0.17",
"homepage": "https://github.com/mozilla/grunt-i18n-abide",

@@ -6,0 +6,0 @@ "author": {

@@ -7,2 +7,4 @@ var fs = require('fs');

var cmdPaths = [ '../../.bin/jsxgettext', '../node_modules/.bin/jsxgettext' ];
module.exports = function (grunt) {

@@ -12,2 +14,19 @@

var cachedPath = null;
var getPath = function(){
var _path;
if (cachedPath) {
return cachedPath;
}
for (var idx = 0; idx < cmdPaths.length; idx++) {
_path = path.join(__dirname, cmdPaths[idx]);
try {
fs.statSync(_path);
cachedPath = _path;
return _path;
} catch(err) {}
}
grunt.fail.fatal('Cannot find jsxgettext.');
};
grunt.registerMultiTask('abideExtract', 'Extracts gettext from js, EJS or Jinja (nunjucks).', function () {

@@ -21,3 +40,3 @@

var cmd = helpers.getCommand(options.cmd || path.join(__dirname, '../node_modules/.bin/jsxgettext'));
var cmd = helpers.getCommand(options.cmd || getPath() );

@@ -24,0 +43,0 @@ var args = [];

Sorry, the diff of this file is not supported yet

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