🚀 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
3.0.3
to
3.1.0
+25
-12
lib/interpreter-functions.js

@@ -19,2 +19,4 @@ 'use strict';

gvunescape: getvalueunescape,
genv: getenv,
env: getenv,
if: _if,

@@ -93,3 +95,3 @@ eq: eq,

* Get Environment variable.
* Used by GetValue
* Used by GetValue / GetEnv
* @param s string

@@ -118,13 +120,3 @@ * @returns string

const match = values[idvalue];
if (match) {
res = match;
}
if (quote) {
if (quote === "\\'") {
quote = "'";
}
res = quote + res + quote;
}
if (match) res = match;
} else {

@@ -135,2 +127,7 @@ if (idvalue.startsWith('ENV_')) {

}
if (quote) {
if (quote === "\\'") quote = "'";
res = quote + res + quote;
}
return res;

@@ -152,2 +149,18 @@ }

/**
* GetEnv/GENV: Returns a environment value
* Used to obtain values of the environment
* @param envName
* @param values
* @returns {string}
*/
function getenv(envName, quote) {
let res = process.env[envName] || '';
if (quote) {
if (quote === "\\'") quote = "'";
res = quote + res + quote;
}
return res;
}
/**
* Escape

@@ -154,0 +167,0 @@ * @param string

{
"name": "@runnerty/interpreter-core",
"version": "3.0.3",
"version": "3.1.0",
"description": "Runnerty interpreter module",

@@ -5,0 +5,0 @@ "author": "Runnerty Tech",