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

lucid-extension-sdk

Package Overview
Dependencies
Maintainers
2
Versions
320
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucid-extension-sdk - npm Package Compare versions

Comparing version 0.0.256 to 0.0.257

3

core/data/serializedfield/serializedfielddefinition.d.ts

@@ -13,3 +13,4 @@ import { isString } from '../../checks';

NO_WHITESPACE = "noWhitespace",
UNIQUE_EDIT = "uniqueEditType"
UNIQUE_EDIT = "uniqueEditType",
MAX_LENGTH = "maxLength"
}

@@ -16,0 +17,0 @@ export declare const isFieldConstraintType: (x: unknown) => x is FieldConstraintType;

@@ -19,2 +19,3 @@ "use strict";

FieldConstraintType["UNIQUE_EDIT"] = "uniqueEditType";
FieldConstraintType["MAX_LENGTH"] = "maxLength";
})(FieldConstraintType || (exports.FieldConstraintType = FieldConstraintType = {}));

@@ -21,0 +22,0 @@ exports.isFieldConstraintType = (0, validators_1.enumValidator)(FieldConstraintType);

@@ -35,4 +35,8 @@ import { isNumber, isUndefined } from '../core/checks';

}
export type FieldConstraintDefinition = RequiredFieldConstraintDefinition | LockedFieldConstraintDefinition | MinValueFieldConstraintDefinition | MaxValueFieldConstraintDefinition | SingleLineFieldConstraintDefinition | NoWhitespaceFieldConstraintDefinition | UniqueEditFieldConstraintDefinition;
export declare function minMaxFieldConstraintValidator(val: unknown): val is FieldConstraintType.MIN_VALUE | FieldConstraintType.MAX_VALUE;
export interface MaxLengthConstraintDefinition {
type: FieldConstraintType.MAX_LENGTH;
value: number;
}
export type FieldConstraintDefinition = RequiredFieldConstraintDefinition | LockedFieldConstraintDefinition | MinValueFieldConstraintDefinition | MaxValueFieldConstraintDefinition | SingleLineFieldConstraintDefinition | NoWhitespaceFieldConstraintDefinition | UniqueEditFieldConstraintDefinition | MaxLengthConstraintDefinition;
export declare function minMaxFieldConstraintValidator(val: unknown): val is FieldConstraintType.MIN_VALUE | FieldConstraintType.MAX_VALUE | FieldConstraintType.MAX_LENGTH;
export declare const isFieldConstraintDefinition: (x: unknown) => x is {

@@ -39,0 +43,0 @@ type?: FieldConstraintType | undefined;

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

function minMaxFieldConstraintValidator(val) {
return val === serializedfielddefinition_1.FieldConstraintType.MIN_VALUE || val === serializedfielddefinition_1.FieldConstraintType.MAX_VALUE;
return (val === serializedfielddefinition_1.FieldConstraintType.MIN_VALUE ||
val === serializedfielddefinition_1.FieldConstraintType.MAX_VALUE ||
val === serializedfielddefinition_1.FieldConstraintType.MAX_LENGTH);
}

@@ -58,2 +60,3 @@ exports.minMaxFieldConstraintValidator = minMaxFieldConstraintValidator;

case serializedfielddefinition_1.FieldConstraintType.MAX_VALUE:
case serializedfielddefinition_1.FieldConstraintType.MAX_LENGTH:
if (!(0, checks_1.isNumber)(constraint['Details'])) {

@@ -60,0 +63,0 @@ throw new Error('Invalid constraint format');

{
"name": "lucid-extension-sdk",
"version": "0.0.256",
"version": "0.0.257",
"description": "Utility classes for writing Lucid Software editor extensions",

@@ -5,0 +5,0 @@ "main": "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