Comparing version 3.0.1 to 3.0.2
@@ -5,3 +5,3 @@ | ||
"main": "js-yaml.js", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"homepage": "https://github.com/nodeca/js-yaml", | ||
@@ -8,0 +8,0 @@ "authors": [ "Dervus Grim <dervus.grim@gmail.com>", |
@@ -0,1 +1,7 @@ | ||
3.0.2 / 2014-02-27 | ||
------------------ | ||
- Fixed bug: "constructor" string parsed as `null`. | ||
3.0.1 / 2013-12-22 | ||
@@ -2,0 +8,0 @@ ------------------ |
@@ -6,8 +6,6 @@ // Modified from: | ||
// A trick for browserified version. | ||
// Since we make browserifier to ignore `buffer` module, NodeBuffer will be undefined | ||
var NodeBuffer = require('buffer').Buffer; | ||
var NodeBuffer; | ||
try { | ||
NodeBuffer = require('buffer').Buffer; // A trick for browserified version. | ||
} catch (_) {} | ||
var Type = require('../type'); | ||
@@ -76,3 +74,3 @@ | ||
// Wrap into Buffer for NodeJS and leave Array for browser | ||
if (NodeBuffer && NodeBuffer.isBuffer) { | ||
if (NodeBuffer) { | ||
state.result = new NodeBuffer(result); | ||
@@ -79,0 +77,0 @@ } else { |
@@ -16,3 +16,3 @@ 'use strict'; | ||
function resolveYamlNull(state) { | ||
if (YAML_NULL_MAP[state.result]) { | ||
if (YAML_NULL_MAP.hasOwnProperty(state.result)) { | ||
state.result = null; | ||
@@ -19,0 +19,0 @@ return true; |
{ | ||
"name" : "js-yaml", | ||
"version" : "3.0.1", | ||
"version" : "3.0.2", | ||
"description" : "YAML 1.2 parser and serializer", | ||
@@ -8,18 +8,8 @@ "keywords" : ["yaml", "parser", "serializer", "pyyaml"], | ||
"author" : { | ||
"name" : "Dervus Grim", | ||
"email" : "dervus.grim@gmail.com" | ||
}, | ||
"author" : "Dervus Grim <dervus.grim@gmail.com>", | ||
"contributors" : [ | ||
{ | ||
"name" : "Aleksey V Zapparov", | ||
"email" : "ixti@member.fsf.org", | ||
"url" : "http://www.ixti.net/" | ||
}, | ||
{ | ||
"name" : "Martin Grenfell", | ||
"email" : "martin.grenfell@gmail.com", | ||
"url" : "http://got-ravings.blogspot.com" | ||
} | ||
"Aleksey V Zapparov <ixti@member.fsf.org> (http://www.ixti.net/)", | ||
"Vitaly Puzrin <vitaly@rcdesign.ru> (https://github.com/puzrin)", | ||
"Martin Grenfell <martin.grenfell@gmail.com> (http://got-ravings.blogspot.com)" | ||
], | ||
@@ -34,3 +24,2 @@ | ||
"bin" : { "js-yaml": "bin/js-yaml.js" }, | ||
"scripts" : { "test": "make test" }, | ||
@@ -40,3 +29,6 @@ "dependencies" : { "argparse": "~ 0.1.11", | ||
"devDependencies" : { "mocha": "*" }, | ||
"engines" : { "node": ">= 0.6.0" } | ||
"browser" : { | ||
"./index.js": "./index_browser.js", | ||
"buffer": false | ||
} | ||
} |
@@ -271,3 +271,3 @@ JS-YAML - YAML 1.2 parser and serializer for JavaScript | ||
If your have not used __custom__ tags or loader classes and not loaded yaml | ||
files fia require - no changes needed. Just upgrade library. | ||
files via `require()` - no changes needed. Just upgrade library. | ||
@@ -274,0 +274,0 @@ In other case, you should: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120769
2868