Socket
Socket
Sign inDemoInstall

grunt-banana-checker

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-banana-checker - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

10

History.md
# grunt-banana-checker Release History
## v0.2.2 / 2015-06-05
* Fix off-by-one error in counting the number of messages (Kunal Mehta)
* build: Bump devDep grunt-contrib-jshint to 0.11.2 (James D. Forrester)
* build: Bump grunt-jscs to latest version (James D. Forrester)
* readme: Improved (Sébastien Santoro)
## v0.2.1 / 2015-03-27
* Fix catastrophic logic error (James D. Forrester)
* build: Owner has moved from me to Wikimedia (James D. Forrester)
* build: Change Travis-CI output channel (James D. Forrester)
* build: Bump devDependencies to latest (James D. Forrester)
* Fix catastrophic logic error (James D. Forrester)
## v0.2.0 / 2014-08-31
* task: Fail if a documentation message is blank or whitespace-only (James D. Forrester)

@@ -17,3 +22,2 @@ * task: Fail if a documentation message has no matching source message (James D. Forrester)

## v0.1.0 / 2014-04-04
* Initial release (James D. Forrester)
{
"name": "grunt-banana-checker",
"version": "0.2.1",
"version": "0.2.2",
"description": "A grunt checker for the \"banana\" JSON i18n system provided by MediaWiki and jquery.i18n",

@@ -17,8 +17,3 @@ "scripts": {

],
"licenses": [
{
"type": "MIT",
"url": "https://raw.github.com/wikimedia/grunt-banana-checker/master/LICENSE"
}
],
"license": "MIT",
"bugs": {

@@ -31,6 +26,6 @@ "url": "https://github.com/wikimedia/grunt-banana-checker/issues"

"grunt": "0.4.5",
"grunt-contrib-jshint": "0.11.1",
"grunt-contrib-jshint": "0.11.2",
"grunt-contrib-watch": "0.6.1",
"grunt-jscs": "1.6.0"
"grunt-jscs": "1.8.0"
}
}

@@ -10,3 +10,3 @@ [![NPM version](https://badge.fury.io/js/grunt-banana-checker.svg)](http://badge.fury.io/js/grunt-banana-checker) [![Build Status](https://travis-ci.org/wikimedia/grunt-banana-checker.svg?branch=master)](https://travis-ci.org/wikimedia/grunt-banana-checker)

If this is the first time you've used [grunt](http://gruntjs.com/), the [getting started guide](http://gruntjs.com/getting-started) will show you how to get up and running.
If this is the first time you're using [Grunt](http://gruntjs.com/), the [getting started guide](http://gruntjs.com/getting-started) will show you how to get up and running.

@@ -30,9 +30,9 @@ Once you have that installed, with a [Gruntfile](http://gruntjs.com/sample-gruntfile) set for your code, you can install the plugin with:

This is designed to be very simple and not need configuring for the most common case.
This is designed to be very simple and not need configuring for the most common cases.
You can specify the targets and options for the task using the normal grunt configuration – see grunt's [guide on how to configure tasks](http://gruntjs.com/configuring-tasks) in general
You can specify the targets and options for the task using the normal Grunt configuration – see Grunt's [guide on how to configure tasks](http://gruntjs.com/configuring-tasks) in general.
### Options
For edge cases you can set some path options:
For edge cases, you can set some path options:

@@ -84,6 +84,6 @@ ### sourceFile

* The source and documentation files both exist, and are both valid JSON.
* Both source and documentation include an "@metadata" object.
- (Note that no parsing is done of the metadata objects.)
* Both source and documentation include a "@metadata" object.
- (Note no parsing is done of the metadata objects.)
* Each defined source message has a matching defined documentation message.
- (Note that no parsing is done of the message definitions or their documentation, including if they are simply the blank string "".)
- (Note no parsing is done of the message definitions or their documentation, including if they are simply the blank string "".)
* Each defined documentation message has a matching defined source message.
/*!
* A grunt checker for the 'banana' format JSON i18n message files.
* A Grunt checker for the 'banana' format JSON i18n message files.
*/

@@ -29,4 +29,2 @@

messageCount += sourceMessageKeys.length;
sourceMessagesMetadataIndex = sourceMessageKeys.indexOf( '@metadata' );

@@ -39,2 +37,4 @@ if ( sourceMessagesMetadataIndex === -1 ) {

sourceMessageKeys.splice( sourceMessagesMetadataIndex, 1 );
// Count after @metadata is removed
messageCount += sourceMessageKeys.length;

@@ -41,0 +41,0 @@ documentationMessagesMetadataIndex = documentationMessageKeys.indexOf( '@metadata' );

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