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

@types/json-api-serializer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/json-api-serializer - npm Package Compare versions

Comparing version 2.6.2 to 2.6.3

39

json-api-serializer/index.d.ts

@@ -25,3 +25,3 @@ // Type definitions for json-api-serializer 2.6

links?: LinksObject | LinksCallback | undefined;
meta?: MetaCallback | unknown | undefined;
meta?: MetaCallback | Meta | undefined;
beforeSerialize?: BeforeSerializeCallback | undefined;

@@ -40,3 +40,3 @@ }

topLevelMeta?: MetaCallback | unknown | undefined;
meta?: MetaCallback | unknown | undefined;
meta?: MetaCallback | Meta | undefined;
relationships?: {

@@ -63,7 +63,8 @@ [key: string]: RelationshipOptions;

href: string;
meta: unknown;
meta?: Meta;
}
interface LinksObject {
[name: string]: LinkObject | LinksCallback | string | null;
self?: LinkObject | LinksCallback | string | null;
related?: LinkObject | LinksCallback | string | null;
}

@@ -76,3 +77,3 @@

relationships?: {
[key: string]: { data: ResourceObject<any> | Array<ResourceObject<any>> };
[key: string]: Relationship;
} | undefined;

@@ -82,2 +83,26 @@ links?: LinksObject | LinksCallback | undefined;

type Relationship = {
links?: LinksObject | LinksCallback | undefined;
data: Linkage | Linkage[];
meta?: Meta;
} | {
links?: LinksObject | LinksCallback | undefined;
data?: Linkage | Linkage[];
meta: Meta;
} | {
links: LinksObject | LinksCallback | undefined;
data?: Linkage | Linkage[];
meta?: Meta;
};
interface Meta {
[name: string]: unknown;
}
interface Linkage {
type: string;
id: string;
meta?: Meta;
}
interface JsonApiObject {

@@ -97,3 +122,3 @@ version: string;

source?: unknown | undefined;
meta?: unknown | undefined;
meta?: Meta | undefined;
}

@@ -106,3 +131,3 @@

errors?: ErrorObject[] | undefined;
meta?: { [key: string]: unknown } | undefined;
meta?: Meta | undefined;
included?: Array<ResourceObject<unknown>> | undefined;

@@ -109,0 +134,0 @@ }

6

json-api-serializer/package.json
{
"name": "@types/json-api-serializer",
"version": "2.6.2",
"version": "2.6.3",
"description": "TypeScript definitions for json-api-serializer",

@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-api-serializer",

"dependencies": {},
"typesPublisherContentHash": "1c2b43cf4c047c7e19070dafd3427174eca51d2c8643b8d0ad8ba66ec47afceb",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "5c199e1418428f5f8675157f87dc61d88a99c3f4b088c771977698a513dbe99e",
"typeScriptVersion": "3.7"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 08 Jul 2021 16:22:50 GMT
* Last updated: Mon, 30 Aug 2021 16:01:20 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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