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

season

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

season - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

13

lib/cson.js
(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"

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