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.91 to 3.0.92

14

lib/formulas/utils.js

@@ -5,16 +5,10 @@ "use strict";

function filterPropertiesByLevel(entity, properties) {
const isItemOrProjectItem = entity?.typePath?.startsWith('item') || entity?.typePath?.startsWith('project-item');
if (!isItemOrProjectItem) {
const isItemType = Boolean(entity?.typePath === 'item' || entity?.typePath?.startsWith('item:'));
const isProjectItemType = entity?.typePath === 'project-item' || entity?.typePath?.startsWith('project-item:');
if (!isItemType && !isProjectItemType) {
return properties;
}
const isOption = entity?.roles?.includes('option');
const filteredProperties = [];
for (const property of properties) {
if (property?.propertyLevel === 'family' && isOption) {
continue;
}
filteredProperties.push(property);
}
return filteredProperties;
return isOption ? properties.filter((p) => p.propertyLevel !== 'family') : properties;
}
exports.filterPropertiesByLevel = filterPropertiesByLevel;
{
"name": "@contrail/types",
"version": "3.0.91",
"version": "3.0.92",
"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