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.7 to 0.3.8

4

es/formatters/formatConnectionForMutation.js

@@ -12,3 +12,5 @@ import { MUTATION_TYPE } from '../constants';

} else {
formatedData = { id: formatedData };
formatedData = {
id: typeof formatedData === 'string' ? formatedData : formatedData.id || formatedData
};
}

@@ -15,0 +17,0 @@

@@ -7,5 +7,5 @@ import * as R from 'ramda';

var isFileReference = function isFileReference(fieldSchema, data) {
return isFileField(fieldSchema) && !R.isNil(data) && (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' || data && typeof data.id === 'string');
};
export { isFileReference };
{
"name": "@8base/utils",
"version": "0.3.7",
"version": "0.3.8",
"main": "es/index.js",

@@ -35,3 +35,3 @@ "module": "es/index.js",

},
"gitHead": "e2790dcf125e2b2e709e8d51debe13f65b430469"
"gitHead": "7bda0c066c1b41ee34128f5a50f06e94e678dc8a"
}

@@ -11,3 +11,5 @@ //@flow

} else {
formatedData = { id: formatedData };
formatedData = {
id: typeof formatedData === 'string' ? formatedData : (formatedData.id || formatedData),
};
}

@@ -14,0 +16,0 @@

@@ -12,5 +12,11 @@ //@flow

&&
(typeof data === 'string' || data.length === 0 || typeof data[0] === 'string')
(
typeof data === 'string'
||
(data.length === 0 || typeof data[0] === 'string')
||
(data && typeof data.id === 'string')
)
);
export { isFileReference };
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