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

@contrail/types

Package Overview
Dependencies
Maintainers
5
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrail/types - npm Package Compare versions

Comparing version 1.0.21 to 1.0.22

lib/formulas/test.d.ts

5

lib/formulas/formula-processor.js

@@ -12,3 +12,3 @@ "use strict";

static substituteValues(formula, data) {
const regEx = /(?<=\{)(.*?)(?=\})/g;
const regEx = /\{.*?\}/g;
let result = formula;

@@ -18,3 +18,4 @@ let vars = formula.match(regEx) || [];

while (result.indexOf(name) > -1) {
result = result.replace(`{${name}}`, data[name]);
let key = name.slice(1, name.length - 1);
result = result.replace(`${name}`, data[key]);
}

@@ -21,0 +22,0 @@ }

2

package.json
{
"name": "@contrail/types",
"version": "1.0.21",
"version": "1.0.22",
"description": "Types Utility module",

@@ -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