Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

jssn

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

jssn - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+1
-1
component.json

@@ -5,3 +5,3 @@ {

"description": "JavaScript Super Notation (JSON + circular refs + dates + (optional)functions)",
"version": "1.0.1",
"version": "1.0.2",
"keywords": [],

@@ -8,0 +8,0 @@ "dependencies": {

@@ -37,2 +37,6 @@ function type(val){

}
function trim(str) {
if (typeof str.trim === 'function') return str.trim();
return str.replace(/^ +/, '').replace(/ +$/, '');
}

@@ -104,3 +108,3 @@ exports.stringify = stringify;

if (from.constructor != Object) {
to['_jssn_proto'] = /^function([^\(]+)\(/.exec(from.constructor.toString())[1].trim();
to['_jssn_proto'] = trim(/^function([^\(]+)\(/.exec(from.constructor.toString())[1]);
}

@@ -149,5 +153,3 @@ var k = keys(from);

if (!parsed) console.log(json.stringify(o));
var args = filter(map(parsed[1].split(','),
function (a) { return a.trim(); }),
function (a) { return a; });
var args = filter(map(parsed[1].split(','), trim), function (a) { return a; });
args.push(parsed[2]);

@@ -154,0 +156,0 @@ return Function.apply(null, args);

{
"name": "jssn",
"version": "1.0.1",
"version": "1.0.2",
"description": "JavaScript Super Notation (JSON + circular refs + dates + (optional)functions)",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display