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

rc-field-form

Package Overview
Dependencies
Maintainers
5
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-field-form - npm Package Compare versions

Comparing version 1.32.2 to 1.33.0

3

es/useWatch.d.ts

@@ -1,3 +0,2 @@

import type { FormInstance } from '.';
import type { NamePath, Store, WatchOptions } from './interface';
import type { FormInstance, NamePath, Store, WatchOptions } from './interface';
type ReturnPromise<T> = T extends Promise<infer ValueType> ? ValueType : never;

@@ -4,0 +3,0 @@ type GetGeneric<TForm extends FormInstance> = ReturnPromise<ReturnType<TForm['validateFields']>>;

import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import { FieldContext } from '.';
import warning from "rc-util/es/warning";
import { HOOK_MARK } from './FieldContext';
import FieldContext, { HOOK_MARK } from './FieldContext';
import { useState, useContext, useEffect, useRef, useMemo } from 'react';

@@ -6,0 +5,0 @@ import { getNamePath, getValue } from './utils/valueUtil';

@@ -1,3 +0,2 @@

import type { FormInstance } from '.';
import type { NamePath, Store, WatchOptions } from './interface';
import type { FormInstance, NamePath, Store, WatchOptions } from './interface';
type ReturnPromise<T> = T extends Promise<infer ValueType> ? ValueType : never;

@@ -4,0 +3,0 @@ type GetGeneric<TForm extends FormInstance> = ReturnPromise<ReturnType<TForm['validateFields']>>;

"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;

@@ -10,5 +11,4 @@ Object.defineProperty(exports, "__esModule", {

var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _ = require(".");
var _warning = _interopRequireDefault(require("rc-util/lib/warning"));
var _FieldContext = require("./FieldContext");
var _FieldContext = _interopRequireWildcard(require("./FieldContext"));
var _react = require("react");

@@ -50,3 +50,3 @@ var _valueUtil = require("./utils/valueUtil");

valueStrRef.current = valueStr;
var fieldContext = (0, _react.useContext)(_.FieldContext);
var fieldContext = (0, _react.useContext)(_FieldContext.default);
var formInstance = form || fieldContext;

@@ -53,0 +53,0 @@ var isValidForm = formInstance && formInstance._init;

{
"name": "rc-field-form",
"version": "1.32.2",
"version": "1.33.0",
"description": "React Form Component",

@@ -5,0 +5,0 @@ "typings": "es/index.d.ts",

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