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

@contrail/util

Package Overview
Dependencies
Maintainers
8
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrail/util - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

1

lib/string-util/string-util.d.ts

@@ -5,2 +5,3 @@ export declare class StringUtil {

static isString(value: any): boolean;
static isArray(value: any): boolean;
}

@@ -30,2 +30,12 @@ "use strict";

}
if (StringUtil.isArray(replacementValue)) {
if (quoteStrings) {
const newArray = [];
for (const val of replacementValue) {
newArray.push(JSON.stringify(val));
}
replacementValue = newArray;
}
replacementValue = '[' + replacementValue + ']';
}
currentVariableString = currentVariableString.replace(match[0], replacementValue);

@@ -38,3 +48,6 @@ }

}
static isArray(value) {
return Array.isArray(value);
}
}
exports.StringUtil = StringUtil;

2

package.json
{
"name": "@contrail/util",
"version": "1.0.15",
"version": "1.0.16",
"description": "General javascript utilities",

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

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