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.4.21 to 0.4.22

11

lib/utils.js

@@ -490,2 +490,13 @@ (function webpackUniversalModuleDefinition(root, factory) {

if (isRelationReference_isRelationReference(fieldSchema, data[fieldName]) && !isFileField(fieldSchema)) {
if (isListField(fieldSchema)) {
result = external_ramda_["assoc"](fieldName, data[fieldName].map(function (_ref) {
var id = _ref.id;
return id;
}), result);
} else {
result = external_ramda_["assoc"](fieldName, data[fieldName].id, result);
}
}
return result;

@@ -492,0 +503,0 @@ }, {}, external_ramda_["keys"](data));

4

package.json
{
"name": "@8base/utils",
"version": "0.4.21",
"version": "0.4.22",
"main": "lib/utils.js",

@@ -22,3 +22,3 @@ "scripts": {

"devDependencies": {
"@8base/webpack-configuration": "^0.4.21",
"@8base/webpack-configuration": "^0.4.22",
"babel-cli": "^6.26.0",

@@ -25,0 +25,0 @@ "babel-core": "^6.26.3",

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

import { getFieldSchemaByName, getTableSchemaByName } from '../selectors';
import { isRelationField, isFileField, isListField, isMetaField } from '../verifiers';
import { isRelationField, isRelationReference, isFileField, isListField, isMetaField } from '../verifiers';
import type { FieldSchema, TableSchema, Schema } from '../types';

@@ -37,2 +37,10 @@

if (isRelationReference(fieldSchema, data[fieldName]) && !isFileField(fieldSchema)) {
if (isListField(fieldSchema)) {
result = R.assoc(fieldName, data[fieldName].map(({ id }) => id), result);
} else {
result = R.assoc(fieldName, data[fieldName].id, result);
}
}
return result;

@@ -39,0 +47,0 @@ }, {}, R.keys(data));

Sorry, the diff of this file is not supported yet

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