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.2.9 to 0.2.10

4

es/verifiers/isFileReference.js

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

import * as R from 'ramda';
import { isFileField } from './isFileField';

@@ -5,5 +7,5 @@

var isFileReference = function isFileReference(fieldSchema, data) {
return isFileField(fieldSchema) && (typeof data === 'string' || data.length === 0 || typeof data[0] === 'string');
return isFileField(fieldSchema) && !R.isNil(data) && (typeof data === 'string' || data.length === 0 || typeof data[0] === 'string');
};
export { isFileReference };
{
"name": "@8base/utils",
"version": "0.2.9",
"version": "0.2.10",
"main": "es/index.js",

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

//@flow
import * as R from 'ramda';
import { isFileField } from './isFileField';

@@ -8,2 +10,4 @@ import type { FieldSchema } from '../types';

&&
!R.isNil(data)
&&
(typeof data === 'string' || data.length === 0 || typeof data[0] === 'string')

@@ -10,0 +14,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