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

@contrail/types

Package Overview
Dependencies
Maintainers
6
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 2.0.22 to 2.0.23

2

lib/formulas/formula-processor.d.ts
import { TypeProperty } from "../type-properties";
export declare class FormulaProcessor {
static processFormula(formula: string | undefined, data: any): number;
static processFormula(formula: string | undefined, data: any): number | null;
static substituteValues(formula: string, data: any): string;

@@ -5,0 +5,0 @@ static processFormulasForEntities(entities: Array<any>, properties: Array<TypeProperty>): void;

@@ -8,3 +8,6 @@ "use strict";

const converted = this.substituteValues(formula, data);
const value = parseFloat(eval(converted));
let value = parseFloat(eval(converted));
if (isNaN(value)) {
return null;
}
return value;

@@ -11,0 +14,0 @@ }

{
"name": "@contrail/types",
"version": "2.0.22",
"version": "2.0.23",
"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