javascript-stringify
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -112,2 +112,6 @@ (function (root, stringify) { | ||
'[object Object]': function (object, indent, stringify) { | ||
if (typeof Buffer === 'function' && Buffer.isBuffer(object)) { | ||
return 'new Buffer(' + stringify(object.toString()) + ')'; | ||
} | ||
// Iterate over object keys and concat string together. | ||
@@ -114,0 +118,0 @@ var values = Object.keys(object).reduce(function (values, key) { |
{ | ||
"name": "javascript-stringify", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`", | ||
@@ -5,0 +5,0 @@ "main": "javascript-stringify.js", |
@@ -30,2 +30,7 @@ var expect = require('chai').expect; | ||
); | ||
it( | ||
'should escape certain unicode sequences', | ||
test('\u0602', "'\\u0602'") | ||
); | ||
}); | ||
@@ -78,2 +83,6 @@ | ||
}); | ||
describe('Buffer', function () { | ||
it('should stringify', test(new Buffer('test'), "new Buffer('test')")); | ||
}); | ||
}); | ||
@@ -80,0 +89,0 @@ |
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
17308
381