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

formulr

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formulr - npm Package Compare versions

Comparing version 0.2.0-beta.18 to 0.2.0-beta.19

3

cmd/builders.d.ts

@@ -1,3 +0,4 @@

import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel, FieldSetValue } from './models';
import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel } from './models';
import { IValidator } from './validate';
import { FieldSetValue } from './utils';
export declare function field<T>(defaultValue: T, validators?: IValidator<T>[]): FieldModel<T>;

@@ -4,0 +5,0 @@ export declare function set<Children>(children: Children, validators?: IValidator<FieldSetValue<Children>>[]): FieldSetModel<Children>;

import { BehaviorSubject, Subject } from 'rxjs';
import { ValidateStrategy, IMaybeError } from './validate';
import { FieldSetValue } from './utils';
export declare enum FormStrategy {

@@ -4,0 +5,0 @@ Model = 0,

import { IMaybeError } from './validate';
import { FieldSetModel } from './models';
import { FieldSetModel, BasicModel } from './models';
export declare type FieldSetValue<Children> = {
[key in keyof Children]: Children[key] extends BasicModel<any> ? Children[key]['$$value'] : never;
};
/**

@@ -4,0 +7,0 @@ * same algorithm as lodash.isPlainObject

@@ -1,3 +0,4 @@

import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel, FieldSetValue } from './models';
import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel } from './models';
import { IValidator } from './validate';
import { FieldSetValue } from './utils';
export declare function field<T>(defaultValue: T, validators?: IValidator<T>[]): FieldModel<T>;

@@ -4,0 +5,0 @@ export declare function set<Children>(children: Children, validators?: IValidator<FieldSetValue<Children>>[]): FieldSetModel<Children>;

import { BehaviorSubject, Subject } from 'rxjs';
import { ValidateStrategy, IMaybeError } from './validate';
import { FieldSetValue } from './utils';
export declare enum FormStrategy {

@@ -4,0 +5,0 @@ Model = 0,

import { IMaybeError } from './validate';
import { FieldSetModel } from './models';
import { FieldSetModel, BasicModel } from './models';
export declare type FieldSetValue<Children> = {
[key in keyof Children]: Children[key] extends BasicModel<any> ? Children[key]['$$value'] : never;
};
/**

@@ -4,0 +7,0 @@ * same algorithm as lodash.isPlainObject

{
"name": "formulr",
"version": "0.2.0-beta.18",
"version": "0.2.0-beta.19",
"description": "Form toolkit for React",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -1,3 +0,4 @@

import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel, FieldSetValue } from './models';
import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel } from './models';
import { IValidator } from './validate';
import { FieldSetValue } from './utils';

@@ -4,0 +5,0 @@ export function field<T>(defaultValue: T, validators: IValidator<T>[] = []) {

import { BehaviorSubject, Observable, Subject } from 'rxjs';
import { IValidator, ValidateStrategy, IMaybeError } from './validate';
import { FieldSetValue } from './utils';
/** @internal */
export type FieldSetValue<Children> = {
[key in keyof Children]: Children[key] extends BasicModel<any> ? Children[key]['$$value'] : never
};
export enum FormStrategy {

@@ -10,0 +6,0 @@ Model,

import { IMaybeError } from './validate';
import { FieldSetModel } from './models';
import { FieldSetModel, BasicModel } from './models';
export type FieldSetValue<Children> = {
[key in keyof Children]: Children[key] extends BasicModel<any> ? Children[key]['$$value'] : never
};
/**

@@ -5,0 +9,0 @@ * same algorithm as lodash.isPlainObject

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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