New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@contrail/types

Package Overview
Dependencies
Maintainers
0
Versions
200
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 3.0.90 to 3.0.91

4

lib/formulas/formula-function-processor.js

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

static async processFormulaFunctionsForEntity(entity, properties, context = {}, options = { useLocalCache: true }) {
const formulaProperties = properties?.filter(property => property?.formulaFunction?.length || 0 > 0) || [];
const formulaProperties = properties?.filter((property) => property?.formulaFunction?.length || 0 > 0) || [];
const filteredFormulaProperties = (0, utils_1.filterPropertiesByLevel)(entity, formulaProperties);

@@ -38,3 +38,3 @@ if (!filteredFormulaProperties?.length) {

static processFormulasForEntities(entities, properties) {
entities.forEach(entity => {
entities.forEach((entity) => {
FormulaFunctionProcessor.processFormulaFunctionsForEntity(entity, properties);

@@ -41,0 +41,0 @@ });

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

static processFormulasForEntities(entities, properties) {
entities.forEach(entity => {
entities.forEach((entity) => {
this.processFormulasForEntity(entity, properties);

@@ -27,6 +27,6 @@ });

static processFormulasForEntity(entity, properties) {
const formulaProperties = properties?.filter(property => property.propertyType === type_properties_1.PropertyType.Formula) || [];
const formulaProperties = properties?.filter((property) => property.propertyType === type_properties_1.PropertyType.Formula) || [];
const filteredFormulaProperties = (0, utils_1.filterPropertiesByLevel)(entity, formulaProperties);
const formulaPropertiesInOrder = (0, formula_order_helper_1.getExecutionOrder)(filteredFormulaProperties);
formulaPropertiesInOrder.forEach(property => {
formulaPropertiesInOrder.forEach((property) => {
entity[property.slug] = this.processFormulaForProperty(property, entity);

@@ -33,0 +33,0 @@ });

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

function filterPropertiesByLevel(entity, properties) {
const isItemOrProjectItem = entity?.entityType?.startsWith('item') || entity?.entityType?.startsWith('project-item');
const isItemOrProjectItem = entity?.typePath?.startsWith('item') || entity?.typePath?.startsWith('project-item');
if (!isItemOrProjectItem) {

@@ -8,0 +8,0 @@ return properties;

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