Socket
Socket
Sign inDemoInstall

http-problem-details

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-problem-details - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

8

CHANGELOG.md

@@ -5,2 +5,10 @@ # Changelog

### [0.1.5](https://github.com/PDMLab/http-problem-details/compare/v0.1.4...v0.1.5) (2020-05-25)
### Features
* simplify problem details extensions ([71a6903](https://github.com/PDMLab/http-problem-details/commit/71a6903da31d510f5a7d075ef3a96b70f312b4df))
* simplify problem details extensions ([4b64aaa](https://github.com/PDMLab/http-problem-details/commit/4b64aaa1457b351cf12f6b32ec8fdb6d22be77be))
### [0.1.4](https://github.com/PDMLab/http-problem-details/compare/v0.1.3...v0.1.4) (2019-10-28)

@@ -7,0 +15,0 @@

6

dist/ProblemDocument.d.ts

@@ -7,3 +7,3 @@ export declare class ProblemDocument {

type?: string;
constructor(options: ProblemDocumentOptions, extension?: ProblemDocumentExtension);
constructor(options: ProblemDocumentOptions, extension?: ProblemDocumentExtension | Record<string, Object>);
}

@@ -18,4 +18,4 @@ export declare class ProblemDocumentOptions {

export declare class ProblemDocumentExtension {
extensionProperties: any;
constructor(extensionProperties: any);
extensionProperties: Record<string, Object>;
constructor(extensionProperties: Record<string, Object>);
}

@@ -44,5 +44,8 @@ "use strict";

if (extension) {
for (const propertyName in extension.extensionProperties) {
if (extension.extensionProperties.hasOwnProperty(propertyName)) {
this[propertyName] = extension.extensionProperties[propertyName];
const extensionProperties = extension instanceof ProblemDocumentExtension
? extension.extensionProperties
: extension;
for (const propertyName in extensionProperties) {
if (extensionProperties.hasOwnProperty(propertyName)) {
this[propertyName] = extensionProperties[propertyName];
}

@@ -49,0 +52,0 @@ }

{
"name": "http-problem-details",
"version": "0.1.4",
"version": "0.1.5",
"description": "HTTP Problem Details according to RFC 7807",

@@ -41,21 +41,21 @@ "main": "dist/index.js",

"devDependencies": {
"@types/mocha": "^5.2.6",
"@types/node": "^10.14.5",
"eslint": "^5.16.0",
"eslint-config-standard-with-typescript": "^7.0.0",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-node": "^8.0.1",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@types/mocha": "^7.0.2",
"@types/node": "^10",
"@typescript-eslint/eslint-plugin": "^2.23.0",
"@typescript-eslint/parser": "^2.23.0",
"eslint": "^6.8.0",
"eslint-config-standard-with-typescript": "^14.0.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0",
"mocha": "6.1.3",
"mocha-junit-reporter": "1.22.0",
"husky": "^4.2.3",
"mocha": "7.1.0",
"mocha-junit-reporter": "^1.22.0",
"should": "^13.2.3",
"ts-node": "^8.1.0",
"typescript": "^3.4.4",
"@typescript-eslint/eslint-plugin": "^1.7.0",
"@typescript-eslint/parser": "^1.7.0",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"standard-version": "^7.0.0",
"husky": "^3.0.9"
"ts-node": "^8.6.2",
"typescript": "^3.4.4"
},

@@ -62,0 +62,0 @@ "husky": {

@@ -1,2 +0,2 @@

[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) [![Join the chat at https://gitter.im/pdmlab/http-problem-details](https://badges.gitter.im/pdmlab/http-problem-details.svg)](https://gitter.im/pdmlab/http-problem-details?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

@@ -3,0 +3,0 @@ # HTTP Problem Details (RFC 7807) for Node.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