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

@contrail/types

Package Overview
Dependencies
Maintainers
5
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 1.0.22 to 2.0.0

3

lib/formatter/property-value-formatter.d.ts

@@ -10,3 +10,4 @@ import { NumberFormatingOption, TypeProperty } from "../type-properties";

setLocalConfig(config: LocalizationConfig): void;
getDisplayValue(obj: any, property: TypeProperty): string;
getDisplayValue(obj: Object, property: TypeProperty): string;
formatValueForProperty(value: any, property: TypeProperty): string;
formatOptionValue(value: any, property: TypeProperty): string;

@@ -13,0 +14,0 @@ formatValue(value: any, propertyType: any, numberFormat?: NumberFormatingOption): string;

@@ -23,2 +23,8 @@ "use strict";

let value = obj[property.slug];
return this.formatValueForProperty(value, property);
}
formatValueForProperty(value, property) {
if (!value || !property) {
return '';
}
if (property.options) {

@@ -25,0 +31,0 @@ return this.formatOptionValue(value, property);

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