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

@contrail/types

Package Overview
Dependencies
Maintainers
16
Versions
186
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.75-alpha.0 to 3.0.75-alpha.1

6

lib/formulas/entity-formula-processor.d.ts
import { Type, TypeProperty } from '../';
export interface CollectionDataMappedPropertiesBySlug {
'item': {
item: {
[propertySlug: string]: TypeProperty;

@@ -23,5 +23,5 @@ };

static buildCollectionDataTypePropertiesBySlugMap(typeMap: {
'item': Type;
item: Type;
'project-item': Type;
}): Promise<CollectionDataMappedPropertiesBySlug>;
}): CollectionDataMappedPropertiesBySlug;
}

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

}
const typeProperties = await EntityFormulaProcessor.buildTypePropertiesForFormulas(entity, type, collectionDataMappedTypeProperties);
const typeProperties = EntityFormulaProcessor.buildTypePropertiesForFormulas(entity, type, collectionDataMappedTypeProperties);
if (enableDebugLogs) {

@@ -27,5 +27,5 @@ console.log(`Formula Processing - ${type.typePath} - ${entity.id} - Processing ${typeProperties.length} formulas.`);

}
static async buildTypePropertiesForFormulas(entity, type, collectionDataMappedTypeProperties) {
static buildTypePropertiesForFormulas(entity, type, collectionDataMappedTypeProperties) {
const allTypeProperties = type?.typeProperties ?? [];
const isProcessingItemAndProjectItemMappedType = COLLECTION_DATA_TYPE_ROOT_SLUGS.some(typeRoot => type.typePath?.startsWith(typeRoot));
const isProcessingItemAndProjectItemMappedType = COLLECTION_DATA_TYPE_ROOT_SLUGS.some((typeRoot) => type.typePath?.startsWith(typeRoot));
if (!isProcessingItemAndProjectItemMappedType) {

@@ -64,3 +64,3 @@ return allTypeProperties;

}
static async buildCollectionDataTypePropertiesBySlugMap(typeMap) {
static buildCollectionDataTypePropertiesBySlugMap(typeMap) {
const itemType = typeMap['item'];

@@ -71,3 +71,3 @@ const itemPropertiesBySlug = _.keyBy(itemType.typeProperties, 'slug');

return {
'item': itemPropertiesBySlug,
item: itemPropertiesBySlug,
'project-item': projectItemPropertiesBySlug,

@@ -74,0 +74,0 @@ };

{
"name": "@contrail/types",
"version": "3.0.75-alpha.0",
"version": "3.0.75-alpha.1",
"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