Socket
Socket
Sign inDemoInstall

ts-japi

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-japi - npm Package Compare versions

Comparing version 1.9.1 to 1.10.0

2

.release-please-manifest.json
{
".": "1.9.1"
".": "1.10.0"
}
# Changelog
## [1.10.0](https://github.com/mathematic-inc/ts-japi/compare/v1.9.1...v1.10.0) (2024-03-21)
### Features
* add header to the source object ([#73](https://github.com/mathematic-inc/ts-japi/issues/73)) ([d5c1cbe](https://github.com/mathematic-inc/ts-japi/commit/d5c1cbefa7231336bde9436f8c3805e1cbd3e366))
## [1.9.1](https://github.com/mathematic-inc/ts-japi/compare/v1.9.0...v1.9.1) (2023-10-11)

@@ -4,0 +11,0 @@

@@ -27,2 +27,3 @@ import { ErrorSerializerOptions } from '../interfaces/error-serializer.interface';

parameter: undefined;
header: undefined;
};

@@ -29,0 +30,0 @@ };

@@ -31,2 +31,3 @@ "use strict";

parameter: undefined,
header: undefined,
},

@@ -98,2 +99,5 @@ },

}
if (attributes.source.header && e[attributes.source.header]) {
eo.source.header = String(e[attributes.source.header]);
}
if (Object.keys(eo.source).length === 0) {

@@ -100,0 +104,0 @@ delete eo.source;

@@ -60,2 +60,9 @@ import Linker from '../classes/linker';

parameter: keyof T;
/**
* A string indicating the name of a single request header which caused
* the error.
*
* @defaultValue `undefined`
*/
header: keyof T;
}

@@ -62,0 +69,0 @@ export interface ErrorSerializerOptions<T extends Dictionary<any>> {

@@ -12,2 +12,7 @@ export interface ErrorSource {

parameter?: string;
/**
* A string indicating the name of a single request header which caused
* the error.
*/
header?: string;
}

@@ -14,0 +19,0 @@ export interface ErrorOptions {

@@ -53,2 +53,7 @@ import { Dictionary, nullish } from '..';

parameter?: string;
/**
* A string indicating the name of a single request header which caused
* the error.
*/
header?: string;
};

@@ -55,0 +60,0 @@ /**

{
"name": "ts-japi",
"version": "1.9.1",
"version": "1.10.0",
"description": "A highly-modular (typescript-friendly)-framework agnostic library for serializing data to the JSON:API specification",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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