Socket
Socket
Sign inDemoInstall

@flatfile/hooks

Package Overview
Dependencies
Maintainers
25
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flatfile/hooks - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

dist/index.d.ts

@@ -56,3 +56,3 @@ type TPrimitive = string | boolean | number | null;

getMetadata(): Object;
getLinks(field: string): any;
getLinks(field: string): TRecordData<TPrimitive>[] | null;
getLinkedValue(linkedFieldKey: string, childKey: string): string | number | boolean | {

@@ -59,0 +59,0 @@ value: TPrimitive;

@@ -109,16 +109,10 @@ "use strict";

const fieldValue = this.mutated[field];
if (!fieldValue)
return null;
if (typeof fieldValue === "object") {
if (fieldValue && typeof fieldValue === "object") {
const { links } = fieldValue;
if (!links) {
console.error("Field is has no links.");
return null;
if (links) {
return links;
}
return links;
} else if (typeof fieldValue === "string") {
console.error("Field is not a ReferenceField.");
return fieldValue;
}
}
console.error("Field has no links.");
return null;

@@ -125,0 +119,0 @@ }

{
"name": "@flatfile/hooks",
"version": "1.3.1",
"version": "1.3.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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