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.6 to 0.2.7

8

es/formatters/formatRelationReferenceForMutation.js

@@ -7,2 +7,10 @@ import { MUTATION_TYPE } from '../constants';

if (Array.isArray(formatedData)) {
formatedData = formatedData.map(function (id) {
return { id: id };
});
} else {
formatedData = { id: formatedData };
}
if (type === MUTATION_TYPE.CREATE) {

@@ -9,0 +17,0 @@ formatedData = { connect: formatedData };

2

package.json
{
"name": "@8base/utils",
"version": "0.2.6",
"version": "0.2.7",
"main": "es/index.js",

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

@@ -8,2 +8,8 @@ //@flow

if (Array.isArray(formatedData)) {
formatedData = formatedData.map((id) => ({ id }));
} else {
formatedData = { id: formatedData };
}
if (type === MUTATION_TYPE.CREATE) {

@@ -10,0 +16,0 @@ formatedData = { connect: formatedData };

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