New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@uform/core

Package Overview
Dependencies
Maintainers
4
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uform/core - npm Package Compare versions

Comparing version 1.0.0-rc.2 to 1.0.0-rc.3

8

lib/index.js

@@ -681,3 +681,3 @@ "use strict";

var val = getValue();
return (index !== undefined ? newPath.concat(index) : newPath).existIn(val, newPath);
return (shared_1.isValid(index) ? newPath.concat(index) : newPath).existIn(val, newPath);
},

@@ -849,5 +849,5 @@ unshift: function (value) {

e_1 = _a.sent();
if (e_1) {
console.error(e_1);
}
new Promise(function () {
throw e_1;
});
return [3, 5];

@@ -854,0 +854,0 @@ case 5:

@@ -112,3 +112,3 @@ "use strict";

var result = _this.controller.dirtyCheck(_this.dirtys);
if (result !== undefined) {
if (shared_1.isValid(result)) {
Object.assign(_this.dirtys, result);

@@ -157,3 +157,3 @@ }

var result = _this.controller.dirtyCheck(_this.dirtys);
if (result !== undefined) {
if (shared_1.isValid(result)) {
Object.assign(_this.dirtys, result);

@@ -160,0 +160,0 @@ }

@@ -43,3 +43,3 @@ "use strict";

for (var i = 0; i < rules.length; i++) {
if (rules[i].required !== undefined) {
if (shared_1.isValid(rules[i].required)) {
return rules[i].required;

@@ -58,4 +58,4 @@ }

var keys = Object.keys(item || {});
if (item.required !== undefined) {
if (item.message !== undefined) {
if (shared_1.isValid(item.required)) {
if (shared_1.isValid(item.message)) {
if (keys.length > 2) {

@@ -62,0 +62,0 @@ return buf.concat(__assign(__assign({}, item), { required: required }));

{
"name": "@uform/core",
"version": "1.0.0-rc.2",
"version": "1.0.0-rc.3",
"license": "MIT",

@@ -29,4 +29,4 @@ "main": "lib",

"dependencies": {
"@uform/shared": "^1.0.0-rc.2",
"@uform/validator": "^1.0.0-rc.2",
"@uform/shared": "^1.0.0-rc.3",
"@uform/validator": "^1.0.0-rc.3",
"immer": "^3.2.0"

@@ -37,3 +37,3 @@ },

},
"gitHead": "864ca6d7921ac8d4d731912ae691046b25d866fd"
"gitHead": "605adc99fb7e946d4dc2790d1ebda4c327d60777"
}

@@ -739,3 +739,3 @@ import {

let val = getValue()
return (index !== undefined ? newPath.concat(index) : newPath).existIn(
return (isValid(index) ? newPath.concat(index) : newPath).existIn(
val,

@@ -905,5 +905,5 @@ newPath

} catch (e) {
if (e) {
console.error(e)
}
new Promise(() => {
throw e
})
}

@@ -910,0 +910,0 @@ }

@@ -9,3 +9,4 @@ import {

FormPath,
FormPathPattern
FormPathPattern,
isValid
} from '@uform/shared'

@@ -137,3 +138,3 @@ import produce, { Draft, setAutoFreeze } from 'immer'

const result = this.controller.dirtyCheck(this.dirtys)
if (result !== undefined) {
if (isValid(result)) {
Object.assign(this.dirtys, result)

@@ -184,3 +185,3 @@ }

const result = this.controller.dirtyCheck(this.dirtys)
if (result !== undefined) {
if (isValid(result)) {
Object.assign(this.dirtys, result)

@@ -187,0 +188,0 @@ }

@@ -79,3 +79,3 @@ import { createStateModel } from '../shared/model'

for (let i = 0; i < rules.length; i++) {
if (rules[i].required !== undefined) {
if (isValid(rules[i].required)) {
return rules[i].required

@@ -94,4 +94,4 @@ }

const keys = Object.keys(item || {})
if (item.required !== undefined) {
if (item.message !== undefined) {
if (isValid(item.required)) {
if (isValid(item.message)) {
if (keys.length > 2) {

@@ -98,0 +98,0 @@ return buf.concat({

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