Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@financial-times/biz-ops-schema

Package Overview
Dependencies
Maintainers
15
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/biz-ops-schema - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

14

methods/get-relationships.js

@@ -34,3 +34,4 @@ const rawData = require('../lib/raw-data');

endNode,
isRecursive
isRecursive,
fieldset
}) => ({

@@ -45,8 +46,13 @@ type: endNode,

description,
label
label,
fieldset
});
const graphqlRelationships = relationships => {
const graphqlRelationships = (relationships, properties) => {
return relationships
.filter(({ hidden }) => !hidden)
.map(def => {
def.fieldset = properties[def.name].fieldset
return def
})
.map(createGraphqlRelationship);

@@ -81,3 +87,3 @@ };

if (structure === 'graphql') {
relationships = graphqlRelationships(relationships);
relationships = graphqlRelationships(relationships, type.properties);
}

@@ -84,0 +90,0 @@ return deepFreeze(relationships);

{
"name": "@financial-times/biz-ops-schema",
"version": "0.2.0",
"version": "0.2.1",
"description": "Schema for biz-ops data store and api. It provides two things: - yaml files which define which types, properties and relationships are allowed - a nodejs library for extracting subsets of this information",

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

@@ -361,3 +361,4 @@ const rawData = require('../../lib/raw-data');

description: 'test description',
label: 'test label'
label: 'test label',
fieldset: undefined
}

@@ -379,3 +380,4 @@ ]);

description: 'test description',
label: 'test label'
label: 'test label',
fieldset: undefined
}

@@ -447,3 +449,4 @@ ]);

description: 'test description',
label: 'test label'
label: 'test label',
fieldset: undefined
}

@@ -465,3 +468,4 @@ ]);

hasMany: true,
name: 'many'
name: 'many',
fieldset: undefined
},

@@ -477,3 +481,4 @@ {

name: 'singular',
hasMany: false
hasMany: false,
fieldset: undefined
}

@@ -480,0 +485,0 @@ ]);

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