Comparing version 1.0.2 to 2.0.0
(function() { | ||
var CoffeeScript, crypto, csonCache, fs, getCachePath, multiplyString, parseContents, parseContentsSync, parseObject, path, stringifyArray, stringifyBoolean, stringifyIndent, stringifyNull, stringifyNumber, stringifyObject, stringifyString, writeCacheFile, writeCacheFileSync, _; | ||
var CSONParser, crypto, csonCache, fs, getCachePath, multiplyString, parseContents, parseContentsSync, parseObject, path, stringifyArray, stringifyBoolean, stringifyIndent, stringifyNull, stringifyNumber, stringifyObject, stringifyString, writeCacheFile, writeCacheFileSync, _; | ||
@@ -12,3 +12,3 @@ crypto = require('crypto'); | ||
CoffeeScript = null; | ||
CSONParser = null; | ||
@@ -142,9 +142,6 @@ multiplyString = function(string, n) { | ||
if (path.extname(objectPath) === '.cson') { | ||
if (CoffeeScript == null) { | ||
CoffeeScript = require('coffee-script'); | ||
if (CSONParser == null) { | ||
CSONParser = require('cson-safe'); | ||
} | ||
return CoffeeScript["eval"](contents, { | ||
bare: true, | ||
sandbox: true | ||
}); | ||
return CSONParser.parse(contents); | ||
} else { | ||
@@ -151,0 +148,0 @@ return JSON.parse(contents); |
{ | ||
"name": "season", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "CSON utilities", | ||
@@ -34,3 +34,3 @@ "licenses": [ | ||
"underscore-plus": "1.x", | ||
"coffee-script": "~1.7.0", | ||
"cson-safe": "~0.1.1", | ||
"optimist": "~0.4.0", | ||
@@ -37,0 +37,0 @@ "fs-plus": "2.x" |
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
15484
327
+ Addedcson-safe@~0.1.1
+ AddedStringScanner@0.0.3(transitive)
+ Addedabbrev@1.1.1(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedcoffee-script-redux@2.0.0-beta8(transitive)
+ Addedcson-safe@0.1.1(transitive)
+ Addedescodegen@0.0.28(transitive)
+ Addedescope@1.0.3(transitive)
+ Addedesmangle@0.0.17(transitive)
+ Addedesprima@1.0.4(transitive)
+ Addedesshorten@0.0.2(transitive)
+ Addedestraverse@1.2.01.3.22.0.0(transitive)
+ Addednopt@2.1.2(transitive)
+ Addedsource-map@0.1.11(transitive)
- Removedcoffee-script@~1.7.0
- Removedcoffee-script@1.7.1(transitive)
- Removedmkdirp@0.3.5(transitive)