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

@formily/shared

Package Overview
Dependencies
Maintainers
1
Versions
243
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formily/shared - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

lib/array.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("./types");
exports.toArr = function (val) { return (types_1.isArr(val) ? val : val ? [val] : []); };
exports.toArr = function (val) { return [].concat(val || []); };
function each(val, iterator, revert) {

@@ -6,0 +6,0 @@ if (types_1.isArr(val) || types_1.isStr(val)) {

{
"name": "@formily/shared",
"version": "1.0.2",
"version": "1.0.3",
"license": "MIT",

@@ -21,3 +21,3 @@ "main": "lib",

},
"gitHead": "dd8ec3e3b51bd41c06f3fad974eb2b2023461747",
"gitHead": "2d3cf73f5b913785015b3d46853349f38cbc0004",
"scripts": {

@@ -24,0 +24,0 @@ "build": "tsc --declaration"

@@ -34,4 +34,3 @@ import { isArr, isObj, isStr } from './types'

export const toArr = (val: any): any[] => (isArr(val) ? val : val ? [val] : [])
export const toArr = (val: any): any[] => [].concat(val || [])
export function each(

@@ -38,0 +37,0 @@ val: string,

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