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

fielded

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fielded - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

dist/core/field.d.ts

@@ -45,3 +45,3 @@ import { Validation, ValidationError, Validator } from "./validation";

*/
static fromValidator<T>(validator: Validator<FieldValue<unknown>, T>): Field<T>;
static fromValidator<T>(validator: Validator<FieldValue<unknown>, T>, initialValue?: FieldValue<T>): Field<T>;
/**

@@ -48,0 +48,0 @@ * Updates the underlying value of the field.

@@ -51,4 +51,4 @@ "use strict";

*/
static fromValidator(validator) {
return new Field({ validators: [validator] });
static fromValidator(validator, initialValue) {
return new Field({ validators: [validator], initialValue });
}

@@ -55,0 +55,0 @@ /**

@@ -5,3 +5,3 @@ {

"repository": "gustavohenke/fielded",
"version": "0.5.0",
"version": "0.5.1",
"license": "MIT",

@@ -8,0 +8,0 @@ "homepage": "https://gustavohenke.github.io/fielded/",

Sorry, the diff of this file is not supported yet

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