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

@8base/utils

Package Overview
Dependencies
Maintainers
2
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@8base/utils - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

es/verifiers/isFileInstance.js

@@ -5,5 +5,5 @@ import { isFileField } from './isFileField';

var isFileInstance = function isFileInstance(fieldSchema, data) {
return isFileField(fieldSchema) && data && typeof data.fileId === 'string';
return isFileField(fieldSchema) && (data && typeof data.fileId === 'string' || Array.isArray(data) && isFileInstance(fieldSchema, data[0]));
};
export { isFileInstance };
{
"name": "@8base/utils",
"version": "0.3.0",
"version": "0.3.1",
"main": "es/index.js",

@@ -5,0 +5,0 @@ "module": "es/index.js",

@@ -9,2 +9,4 @@ //@flow

(data && typeof data.fileId === 'string')
||
(Array.isArray(data) && isFileInstance(fieldSchema, data[0]))
)

@@ -11,0 +13,0 @@ );

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