From a59c5a7fa8c2dbf611634d390bb91be99c82056c Mon Sep 17 00:00:00 2001 From: nulltoken Date: Tue, 24 Oct 2023 08:33:04 +0200 Subject: [PATCH 1/2] Switch to CommonJS friendly is-plain-object Fix #286 --- package.json | 2 +- src/lib/helpers.ts | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 766afcd..bb024ad 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "basic-auth": "^2.0.1", "cors": "^2.8.5", "express": "^4.18.2", - "is-plain-obj": "^4.1.0", + "is-plain-object": "^5.0.0", "jose": "^4.15.4" }, "devDependencies": { diff --git a/src/lib/helpers.ts b/src/lib/helpers.ts index 388680b..4f179d7 100644 --- a/src/lib/helpers.ts +++ b/src/lib/helpers.ts @@ -19,7 +19,7 @@ import { AssertionError } from 'assert'; import type { AddressInfo } from 'net'; import { readFileSync } from 'fs'; -import isPlainObject from 'is-plain-obj'; +import { isPlainObject } from 'is-plain-object'; import type { TokenRequest } from './types'; diff --git a/yarn.lock b/yarn.lock index ac0f6ab..ba83c25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1952,10 +1952,10 @@ is-path-inside@^3.0.3: resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== -is-plain-obj@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0" - integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg== +is-plain-object@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344" + integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== is-regex@^1.1.4: version "1.1.4" From fceb769a76c85a4e5eafb329728ab0711ff186b9 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Tue, 24 Oct 2023 08:35:55 +0200 Subject: [PATCH 2/2] Version 7.1.1 --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d52f4f4..8e8844f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). +## [7.1.1](https://github.com/axa-group/oauth2-mock-server/compare/v7.1.0...v7.1.1) — 2023-10-24 + +### Fixed + +- Be a better citizen in an ECMAScript modules world + ## [7.1.0](https://github.com/axa-group/oauth2-mock-server/compare/v7.0.0...v7.1.0) — 2023-10-23 ### Added diff --git a/package.json b/package.json index bb024ad..ef4301d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oauth2-mock-server", - "version": "7.1.0", + "version": "7.1.1", "description": "OAuth 2 mock server", "keywords": [ "oauth",