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

@contrail/types

Package Overview
Dependencies
Maintainers
11
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 3.0.56 to 3.0.57

19

lib/copy/copy-helper.js

@@ -31,5 +31,22 @@ "use strict";

}
const validCopyPropertyTypes = [
type_properties_1.PropertyType.Text,
type_properties_1.PropertyType.String,
type_properties_1.PropertyType.Number,
type_properties_1.PropertyType.Currency,
type_properties_1.PropertyType.Percent,
type_properties_1.PropertyType.Date,
type_properties_1.PropertyType.Boolean,
type_properties_1.PropertyType.MultiSelect,
type_properties_1.PropertyType.SingleSelect,
type_properties_1.PropertyType.ObjectReference,
type_properties_1.PropertyType.TypeReference,
type_properties_1.PropertyType.UserList,
type_properties_1.PropertyType.SizeRange,
];
const propertiesToCopy = entityType.typeProperties.filter(property => (property.copyBehavior === type_properties_1.CopyBehavior.Copy || !property.copyBehavior) &&
property.propertyLevel &&
[typeLevel, 'overridable', 'all'].includes(property.propertyLevel) &&
property.propertyType &&
validCopyPropertyTypes.includes(property.propertyType) &&
!property.isUniqueProperty);

@@ -39,2 +56,4 @@ const propertiesToDefault = entityType.typeProperties.filter(property => property.copyBehavior === type_properties_1.CopyBehavior.Default &&

[typeLevel, 'overridable', 'all'].includes(property.propertyLevel) &&
property.propertyType &&
validCopyPropertyTypes.includes(property.propertyType) &&
!property.isUniqueProperty);

@@ -41,0 +60,0 @@ const propertiesToIgnore = [...new Set(...propertySlugsToIgnore, 'id', 'roles', 'specifiedId')];

2

package.json
{
"name": "@contrail/types",
"version": "3.0.56",
"version": "3.0.57",
"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