@8base/utils
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -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 }; |
{ | ||
"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 }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
223115
492