🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@runnerty/interpreter-core

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@runnerty/interpreter-core - npm Package Compare versions

Comparing version
4.0.0
to
4.0.1
+21
-11
index.cjs

@@ -924,17 +924,27 @@ 'use strict';

for (const value of values) {
const newObjRaw = await interpreter.interpret(obj, value);
const newObj = JSON.parse(newObjRaw, (k, v) => {
if (
typeof v === 'string' &&
((v.startsWith('{') && v.endsWith('}')) || (v.startsWith('[') && v.endsWith(']')))
) {
const newObjRaw = await interpreter.interpret(obj, value, { source: 'for_of' });
const newObjParsed = (obj => {
if (typeof obj === 'object') {
return obj;
} else {
try {
return JSON.parse(v);
return JSON.parse(obj, (k, v) => {
if (
typeof v === 'string' &&
((v.startsWith('{') && v.endsWith('}')) || (v.startsWith('[') && v.endsWith(']')))
) {
try {
return JSON.parse(v);
} catch (e) {
return v;
}
}
return v;
});
} catch (e) {
return v;
return obj;
}
}
return v;
});
res.push(newObj);
})(newObjRaw);
res.push(newObjParsed);
}

@@ -941,0 +951,0 @@ return res;

@@ -922,17 +922,27 @@ import _uuid from 'uuid';

for (const value of values) {
const newObjRaw = await interpreter.interpret(obj, value);
const newObj = JSON.parse(newObjRaw, (k, v) => {
if (
typeof v === 'string' &&
((v.startsWith('{') && v.endsWith('}')) || (v.startsWith('[') && v.endsWith(']')))
) {
const newObjRaw = await interpreter.interpret(obj, value, { source: 'for_of' });
const newObjParsed = (obj => {
if (typeof obj === 'object') {
return obj;
} else {
try {
return JSON.parse(v);
return JSON.parse(obj, (k, v) => {
if (
typeof v === 'string' &&
((v.startsWith('{') && v.endsWith('}')) || (v.startsWith('[') && v.endsWith(']')))
) {
try {
return JSON.parse(v);
} catch (e) {
return v;
}
}
return v;
});
} catch (e) {
return v;
return obj;
}
}
return v;
});
res.push(newObj);
})(newObjRaw);
res.push(newObjParsed);
}

@@ -939,0 +949,0 @@ return res;

{
"name": "@runnerty/interpreter-core",
"version": "4.0.0",
"version": "4.0.1",
"description": "Runnerty interpreter module",

@@ -37,3 +37,3 @@ "author": "Runnerty Tech",

"object-sizeof": "~2.6.5",
"uuid": "~11.0.3"
"uuid": "~11.0.4"
},

@@ -45,4 +45,4 @@ "devDependencies": {

"prettier": "^3.4.2",
"rollup": "^4.29.1"
"rollup": "^4.30.0"
}
}