Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-yaml

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-yaml - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

11

package.json
{
"name": "grunt-yaml",
"description": "Compiles YAML to JSON.",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/shiwano/grunt-yaml",

@@ -32,5 +32,5 @@ "author": {

"devDependencies": {
"grunt-contrib-jshint": "~0.1.0",
"grunt-contrib-clean": "~0.4.0a",
"grunt-contrib-nodeunit": "~0.1.0",
"grunt-contrib-jshint": "~0.1.1rc6",
"grunt-contrib-clean": "~0.4.0rc6",
"grunt-contrib-nodeunit": "~0.1.2rc6",
"grunt": "~0.4.0a"

@@ -43,5 +43,4 @@ },

"js-yaml": "~1.0.3",
"async": "~0.1.22",
"underscore": "~1.4.3"
"async": "~0.1.22"
}
}

@@ -7,3 +7,3 @@ # grunt-yaml

_If you haven't used [grunt][] before, be sure to check out the [Getting Started][] guide.
And, This task would work on grunt version `~0.4.0a` only._
And, This task would work on grunt version `~0.4.0rc7` only._

@@ -69,4 +69,4 @@ From the same directory as your project's [Gruntfile][Getting Started] and [package.json][], install this plugin with the following command:

#### options.constructors
Type: `Number`
Default value: `2`
Type: `Object`
Default value: `{}`

@@ -83,2 +83,3 @@ A Object for add custom constructor to [js-yaml](https://github.com/nodeca/js-yaml).

## Release History
* 2012-02-09   v0.1.1   Support for grunt 0.4.0rc7.
* 2012-12-22   v0.1.0   First release.

@@ -85,0 +86,0 @@

@@ -14,3 +14,2 @@ /*

var async = require('async');
var _ = require('underscore');

@@ -25,6 +24,8 @@ module.exports = function (grunt) {

var dest = this.data.dest;
var filepaths = grunt.file.expandFiles(this.data.src);
var filepaths = grunt.file.expand(this.data.src);
var taskDone = this.async();
_.each(options.constructors, function (constructor, tag) {
Object.keys(options.constructors).forEach(function (tag) {
var constructor = options.constructors[tag];
yaml.addConstructor(tag, function (node) {

@@ -31,0 +32,0 @@ return constructor.call(this, node, yaml);

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