ml-testing-toolkit 18.14.2 → 18.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,16 @@
1
1
  # Changelog: [mojaloop/thirdparty-api-svc](https://github.com/mojaloop/thirdparty-api-svc)
2
+ ### [18.14.3](https://github.com/mojaloop/ml-testing-toolkit/compare/v18.14.2...v18.14.3) (2025-08-19)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * add URL handling for API definitions ([#336](https://github.com/mojaloop/ml-testing-toolkit/issues/336)) ([730557c](https://github.com/mojaloop/ml-testing-toolkit/commit/730557cc103dcd1b9cc36716b3792e73cf7efd5c))
8
+
9
+
10
+ ### Chore
11
+
12
+ * **sbom:** update sbom [skip ci] ([a9e0800](https://github.com/mojaloop/ml-testing-toolkit/commit/a9e0800f36c91372025760cba64539631ad62154))
13
+
2
14
  ### [18.14.2](https://github.com/mojaloop/ml-testing-toolkit/compare/v18.14.1...v18.14.2) (2025-08-07)
3
15
 
4
16
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ml-testing-toolkit",
3
3
  "description": "Testing Toolkit for Mojaloop implementations",
4
- "version": "18.14.2",
4
+ "version": "18.14.3",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Vijaya Kumar Guthi, ModusBox Inc. ",
7
7
  "contributors": [
@@ -71,11 +71,11 @@
71
71
  "genexec": "pkg -t node8-win ."
72
72
  },
73
73
  "dependencies": {
74
- "@elastic/elasticsearch": "9.1.0",
74
+ "@elastic/elasticsearch": "9.1.1",
75
75
  "@hapi/basic": "7.0.2",
76
76
  "@hapi/boom": "10.0.1",
77
77
  "@hapi/good": "9.0.1",
78
- "@hapi/hapi": "21.4.2",
78
+ "@hapi/hapi": "21.4.3",
79
79
  "@hapi/inert": "7.1.0",
80
80
  "@hapi/vision": "7.0.3",
81
81
  "@mojaloop/central-services-logger": "11.9.0",
@@ -108,13 +108,13 @@
108
108
  "json-rules-engine": "7.3.1",
109
109
  "jsonwebtoken": "9.0.2",
110
110
  "lodash": "4.17.21",
111
- "mongoose": "8.17.1",
111
+ "mongoose": "8.17.2",
112
112
  "multer": "2.0.2",
113
113
  "mustache": "4.2.0",
114
114
  "mv": "2.1.1",
115
115
  "node-dir": "0.1.17",
116
116
  "node-strings": "1.0.2",
117
- "openapi-backend": "5.13.0",
117
+ "openapi-backend": "5.14.0",
118
118
  "parse-strings-in-object": "1.6.0",
119
119
  "passport": "0.7.0",
120
120
  "passport-jwt": "4.0.1",
@@ -2,7 +2,7 @@ type,bom_ref,license-id,group,author,name,version,purl,path,description,vcs-url,
2
2
  application,,,,,npm,10.9.0,,,,,,,,,,,,,,,,,
3
3
  application,,Apache-2.0,@cyclonedx,Jan Kowalleck,cyclonedx-npm,3.0.0,,,Create CycloneDX Software Bill of Materials (SBOM) from NPM projects.,git+https://github.com/CycloneDX/cyclonedx-node-npm.git,"as detected from PackageJson property ""repository.url""",https://github.com/CycloneDX/cyclonedx-node-npm#readme,"as detected from PackageJson property ""homepage""",https://github.com/CycloneDX/cyclonedx-node-npm/issues,"as detected from PackageJson property ""bugs.url""",,,,,,,,
4
4
  library,,Apache-2.0,@cyclonedx,Jan Kowalleck,cyclonedx-library,8.5.0,,,Core functionality of CycloneDX for JavaScript (Node.js or WebBrowser).,git+https://github.com/CycloneDX/cyclonedx-javascript-library.git,"as detected from PackageJson property ""repository.url""",https://github.com/CycloneDX/cyclonedx-javascript-library#readme,"as detected from PackageJson property ""homepage""",https://github.com/CycloneDX/cyclonedx-javascript-library/issues,"as detected from PackageJson property ""bugs.url""",,,,,,,,
5
- application,ml-testing-toolkit@18.14.1,Apache-2.0,,Vijaya Kumar Guthi~ ModusBox Inc.,ml-testing-toolkit,18.14.1,pkg:npm/ml-testing-toolkit@18.14.1?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Fmojaloop%2Fml-testing-toolkit.git,,Testing Toolkit for Mojaloop implementations,git+https://github.com/mojaloop/ml-testing-toolkit.git,"as detected from PackageJson property ""repository.url""",https://github.com/mojaloop/ml-testing-toolkit#readme,"as detected from PackageJson property ""homepage""",https://github.com/mojaloop/ml-testing-toolkit/issues,"as detected from PackageJson property ""bugs.url""",,,,,,active,Active in npm registry,2025-08-05T09:04:51.981Z
5
+ application,ml-testing-toolkit@18.14.2,Apache-2.0,,Vijaya Kumar Guthi~ ModusBox Inc.,ml-testing-toolkit,18.14.2,pkg:npm/ml-testing-toolkit@18.14.2?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Fmojaloop%2Fml-testing-toolkit.git,,Testing Toolkit for Mojaloop implementations,git+https://github.com/mojaloop/ml-testing-toolkit.git,"as detected from PackageJson property ""repository.url""",https://github.com/mojaloop/ml-testing-toolkit#readme,"as detected from PackageJson property ""homepage""",https://github.com/mojaloop/ml-testing-toolkit/issues,"as detected from PackageJson property ""bugs.url""",,,,,,active,Active in npm registry,2025-08-06T23:49:27.865Z
6
6
  library,@elastic/elasticsearch@9.1.0,Apache-2.0,@elastic,,elasticsearch,9.1.0,pkg:npm/%40elastic/elasticsearch@9.1.0,node_modules/@elastic/elasticsearch,The official Elasticsearch client for Node.js,git+https://github.com/elastic/elasticsearch-js.git,"as detected from PackageJson property ""repository.url""",http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html,"as detected from PackageJson property ""homepage""",https://github.com/elastic/elasticsearch-js/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/@elastic/elasticsearch/-/elasticsearch-9.1.0.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,955e6e665cc1b974a49fb29d61a02ba8ddcf2443bdf1b00a69220ee05876079eb9fdb25c9cb2cfdf36c65ff876727d826dd7e62e7a0e7338334341f4f4a0ee59,,active,Active in npm registry,2025-07-30T17:44:14.362Z
7
7
  library,@elastic/transport@9.1.0,Apache-2.0,@elastic,Elastic Client Library Maintainers,transport,9.1.0,pkg:npm/%40elastic/transport@9.1.0,node_modules/@elastic/transport,Transport classes and utilities shared among Node.js Elastic client libraries,git+https://github.com/elastic/elastic-transport-js.git,"as detected from PackageJson property ""repository.url""",https://github.com/elastic/elastic-transport-js#readme,"as detected from PackageJson property ""homepage""",https://github.com/elastic/elastic-transport-js/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/@elastic/transport/-/transport-9.1.0.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,3e88135d2200ba807b4220f90676472252c288620012cc6bd631cbe9458d9e50d9a7962f7eec06cb6206884fe50488ede45b06f9e1e710f8ff23bd41c3a31624,,active,Active in npm registry,2025-07-01T21:19:35.697Z
8
8
  library,@opentelemetry/api@1.9.0,Apache-2.0,@opentelemetry,OpenTelemetry Authors,api,1.9.0,pkg:npm/%40opentelemetry/api@1.9.0,node_modules/@opentelemetry/api,Public API for OpenTelemetry,git+https://github.com/open-telemetry/opentelemetry-js.git,"as detected from PackageJson property ""repository.url""",https://github.com/open-telemetry/opentelemetry-js/tree/main/api,"as detected from PackageJson property ""homepage""",https://github.com/open-telemetry/opentelemetry-js/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,de0880390bd9887e45f5b325322bfcf8648f31eaa0d1d6da7a8e7cff44a503db314aa6619d4b71cd7f7fd85cf2852f6c5907f94b418913400a06b16a8e979872,,active,Active in npm registry,2025-07-22T15:16:26.226Z
@@ -138,7 +138,7 @@ library,eslint@8.57.1|json-schema-traverse@0.4.1,MIT,,Evgeny Poberezkin,json-sch
138
138
  library,eslint@8.57.1|ignore@5.3.2,MIT,,kael,ignore,5.3.2,pkg:npm/ignore@5.3.2,node_modules/eslint/node_modules/ignore,Ignore is a manager and filter for .gitignore rules~ the one used by eslint~ gitbook and many others.,git+ssh://git@github.com/kaelzhang/node-ignore.git,"as detected from PackageJson property ""repository.url""",https://github.com/kaelzhang/node-ignore#readme,"as detected from PackageJson property ""homepage""",https://github.com/kaelzhang/node-ignore/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,86c053354a904c3c245ad71d608da2d3a63f9d4044b0d10324a8d676280bbde832f240ee2404bcb91969924710a721172f467fa630f2e4706632344227682afa,,active,Active in npm registry,2025-05-31T02:18:53.593Z
139
139
  library,eslint@8.57.1|minimatch@3.1.2,ISC,,Isaac Z. Schlueter,minimatch,3.1.2,pkg:npm/minimatch@3.1.2,node_modules/eslint/node_modules/minimatch,a glob matcher in javascript,git://github.com/isaacs/minimatch.git,"as detected from PackageJson property ""repository.url""",https://github.com/isaacs/minimatch#readme,"as detected from PackageJson property ""homepage""",https://github.com/isaacs/minimatch/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,27ba7ade1462023c35343130c355bb8b7efe07222b3963b95d0400cd9dd539c2f43cdc9bc297e657f374e73140cf043d512c84717eaddd43be2b96aa0503881f,i@izs.me,active,Active in npm registry,2025-06-12T20:19:28.018Z
140
140
  library,ts-api-utils@2.1.0,MIT,,JoshuaKGoldberg,ts-api-utils,2.1.0,pkg:npm/ts-api-utils@2.1.0,node_modules/ts-api-utils,Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️,git+https://github.com/JoshuaKGoldberg/ts-api-utils.git,"as detected from PackageJson property ""repository.url""",https://github.com/JoshuaKGoldberg/ts-api-utils#readme,"as detected from PackageJson property ""homepage""",https://github.com/JoshuaKGoldberg/ts-api-utils/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,09481364bd62af0f2edbd6f3ace0ff9c7f398eac9cef80fa4ac84582e8ce200ee8b26d91cfb7581fbeda824c7b1f81413710eaec28dff888da5fff33c055be65,npm@joshuakgoldberg.com,active,Active in npm registry,2025-03-20T12:24:50.789Z
141
- library,typescript@5.8.3,Apache-2.0,,Microsoft Corp.,typescript,5.8.3,pkg:npm/typescript@5.8.3,node_modules/typescript,TypeScript is a language for application scale JavaScript development,git+https://github.com/microsoft/TypeScript.git,"as detected from PackageJson property ""repository.url""",https://www.typescriptlang.org/,"as detected from PackageJson property ""homepage""",https://github.com/microsoft/TypeScript/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,a757625ba4ea2fd2f4ee7371bd130cee130cc387395cea3fd626cbe1a0081a6480b7db254c4d57830e4a5aea1fdae4cebc283d058ed9462f86685fbbb1f80f79,,active,Active in npm registry,2025-08-06T07:18:55.762Z
141
+ library,typescript@5.8.3,Apache-2.0,,Microsoft Corp.,typescript,5.8.3,pkg:npm/typescript@5.8.3,node_modules/typescript,TypeScript is a language for application scale JavaScript development,git+https://github.com/microsoft/TypeScript.git,"as detected from PackageJson property ""repository.url""",https://www.typescriptlang.org/,"as detected from PackageJson property ""homepage""",https://github.com/microsoft/TypeScript/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,a757625ba4ea2fd2f4ee7371bd130cee130cc387395cea3fd626cbe1a0081a6480b7db254c4d57830e4a5aea1fdae4cebc283d058ed9462f86685fbbb1f80f79,,active,Active in npm registry,2025-08-07T07:18:58.673Z
142
142
  library,@eslint-community/eslint-utils@4.7.0,MIT,@eslint-community,Toru Nagashima,eslint-utils,4.7.0,pkg:npm/%40eslint-community/eslint-utils@4.7.0,node_modules/@eslint-community/eslint-utils,Utilities for ESLint plugins.,git+https://github.com/eslint-community/eslint-utils.git,"as detected from PackageJson property ""repository.url""",https://github.com/eslint-community/eslint-utils#readme,"as detected from PackageJson property ""homepage""",https://github.com/eslint-community/eslint-utils/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,772c9b6f701c6a30bbba16ba0af85d55126a68aca7ef0d982aa2b200ddfb34a620653dfac3e8916f40f29a6739a84279e3d73f4b7d5c30c48577be5bb5e0a90b,,active,Active in npm registry,2025-05-02T07:52:14.764Z
143
143
  library,graphemer@1.4.0,MIT,,Matt Davies,graphemer,1.4.0,pkg:npm/graphemer@1.4.0,node_modules/graphemer,A JavaScript library that breaks strings into their individual user-perceived characters (including emojis!),git+https://github.com/flmnt/graphemer.git,"as detected from PackageJson property ""repository.url""",https://github.com/flmnt/graphemer,"as detected from PackageJson property ""homepage""",https://github.com/flmnt/graphemer/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,12d2b0a0eea4c422fd58ee718a98874d9952cc19bb58b4fadbb4ea0bfb9545dd072a6abc357c9e6e7358c43a018bbc2df1e4d6ad4aca5c2395685abdc759206a,matt@filament.so,active,Active in npm registry,2023-06-22T16:32:15.232Z
144
144
  library,ignore@7.0.5,MIT,,kael,ignore,7.0.5,pkg:npm/ignore@7.0.5,node_modules/ignore,Ignore is a manager and filter for .gitignore rules~ the one used by eslint~ gitbook and many others.,git+ssh://git@github.com/kaelzhang/node-ignore.git,"as detected from PackageJson property ""repository.url""",https://github.com/kaelzhang/node-ignore#readme,"as detected from PackageJson property ""homepage""",https://github.com/kaelzhang/node-ignore/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,1ece7dc4135f508ba730581601b197e5cabaf3ddc86d68382a7ae36d8c17dedc74ceda2b5604c303a076b317fc7a31c9e30cfc06a194318967ccd05eaf936f1a,,active,Active in npm registry,2025-05-31T02:18:53.593Z
@@ -663,7 +663,7 @@ library,ci-info@3.9.0,MIT,,Thomas Watson Steen,ci-info,3.9.0,pkg:npm/ci-info@3.9
663
663
  library,picomatch@2.3.1,MIT,,Jon Schlinkert,picomatch,2.3.1,pkg:npm/picomatch@2.3.1,node_modules/picomatch,Blazing fast and accurate glob matcher written in JavaScript~ with no dependencies and full support for standard and extended Bash glob features~ including braces~ extglobs~ POSIX brackets~ and regular expressions.,git+https://github.com/micromatch/picomatch.git,"as detected from PackageJson property ""repository.url""",https://github.com/micromatch/picomatch,"as detected from PackageJson property ""homepage""",https://github.com/micromatch/picomatch/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,254ded7874cd8e6136542185cee63c117cc20d5c04a81d9af1fb08bf0692b4784058911e55dd68d500fcd0253af997445d748b6d2b2e2f0263902056a9141454,,active,Active in npm registry,2025-07-15T19:39:26.657Z
664
664
  library,@jest/schemas@29.6.3,MIT,@jest,,schemas,29.6.3,pkg:npm/%40jest/schemas@29.6.3#packages/jest-schemas,node_modules/@jest/schemas,,git+https://github.com/jestjs/jest.git#packages/jest-schemas,"as detected from PackageJson property ""repository.url"" and ""repository.directory""",https://github.com/jestjs/jest#readme,"as detected from PackageJson property ""homepage""",https://github.com/jestjs/jest/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,9a8e63e57fa321998942f78129e4bf72502e7a2a55eca8225f5bcc802c5a9b544d622a84d70eb69f4fed2499c7b635bc647710728e6063ce630379a2d0bfa748,,active,Active in npm registry,2025-07-22T02:28:24.848Z
665
665
  library,@sinclair/typebox@0.27.8,MIT,@sinclair,sinclairzx81,typebox,0.27.8,pkg:npm/%40sinclair/typebox@0.27.8,node_modules/@sinclair/typebox,JSONSchema Type Builder with Static Type Resolution for TypeScript,git+https://github.com/sinclairzx81/typebox.git,"as detected from PackageJson property ""repository.url""",https://github.com/sinclairzx81/typebox#readme,"as detected from PackageJson property ""homepage""",https://github.com/sinclairzx81/typebox/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,f858f8de948cc09b38291ac7ffddfc51ffae0042c881506643383fab5606d74763c9f0374e7ad4f0df17cea0a1fe891976ccea0504d97fdea274c7c4e659f04c,,active,Active in npm registry,2025-07-16T02:48:03.435Z
666
- library,react-is@18.3.1,MIT,,,react-is,18.3.1,pkg:npm/react-is@18.3.1#packages/react-is,node_modules/react-is,Brand checking of React Elements.,git+https://github.com/facebook/react.git#packages/react-is,"as detected from PackageJson property ""repository.url"" and ""repository.directory""",https://reactjs.org/,"as detected from PackageJson property ""homepage""",https://github.com/facebook/react/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,fcb2cc5726acd258e302da1888fa9888bf15597cd451d4e1ae6539fa7db40d9bfe6be0a54687af533c3927153e21e879fdcf3bcada13055f46d4588a7cd25d9a,,active,Active in npm registry,2025-08-06T16:21:51.442Z
666
+ library,react-is@18.3.1,MIT,,,react-is,18.3.1,pkg:npm/react-is@18.3.1#packages/react-is,node_modules/react-is,Brand checking of React Elements.,git+https://github.com/facebook/react.git#packages/react-is,"as detected from PackageJson property ""repository.url"" and ""repository.directory""",https://reactjs.org/,"as detected from PackageJson property ""homepage""",https://github.com/facebook/react/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,fcb2cc5726acd258e302da1888fa9888bf15597cd451d4e1ae6539fa7db40d9bfe6be0a54687af533c3927153e21e879fdcf3bcada13055f46d4588a7cd25d9a,,active,Active in npm registry,2025-08-07T16:21:11.414Z
667
667
  library,@types/socket.io@3.0.2,MIT,@types,,socket.io,3.0.2,pkg:npm/%40types/socket.io@3.0.2,node_modules/@types/socket.io,Stub TypeScript definitions entry for socket.io~ which provides its own types definitions,,,,,,,https://registry.npmjs.org/@types/socket.io/-/socket.io-3.0.2.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,a6ed2c37d9b95630b105954af215b7ed970c7bcae39f81c782004de426da453bc5c2fe633a6b8845912e75db013daf53874b6cd12228dcd8ae92afbde5c3016d,,deprecated,"This is a stub types definition. socket.io provides its own type definitions, so you do not need this installed.",2022-06-13T01:16:45.912Z
668
668
  library,socket.io@4.8.1,MIT,,,socket.io,4.8.1,pkg:npm/socket.io@4.8.1,node_modules/socket.io,node.js realtime framework server,git+https://github.com/socketio/socket.io.git,"as detected from PackageJson property ""repository.url""",https://github.com/socketio/socket.io/tree/main/packages/socket.io#readme,"as detected from PackageJson property ""homepage""",https://github.com/socketio/socket.io/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/socket.io/-/socket.io-4.8.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,a19ee2502c6987c5984471dc8c111cf6e9f0dda76de42992365a698ffe50e24d9122b865f19e726365ebe23f738f4fb0cd56746f1998a064b32899d197a038ca,,active,Active in npm registry,2025-05-08T13:13:01.493Z
669
669
  library,socket.io@4.8.1|accepts@1.3.8,MIT,,,accepts,1.3.8,pkg:npm/accepts@1.3.8,node_modules/socket.io/node_modules/accepts,Higher-level content negotiation,git+https://github.com/jshttp/accepts.git,"as detected from PackageJson property ""repository.url""",https://github.com/jshttp/accepts#readme,"as detected from PackageJson property ""homepage""",https://github.com/jshttp/accepts/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,3d802d8536b69b654ac6ebd20f70cf0bf1b2f94fac380d4b02e4fc9a4991bafc3e34009269e5c443e34771517bace365eaa71ac55dd4b9e9b06b093eefe4892f,,active,Active in npm registry,2025-05-14T14:56:12.314Z
@@ -987,7 +987,7 @@ library,lodash.isnumber@3.0.3,MIT,,John-David Dalton,lodash.isnumber,3.0.3,pkg:n
987
987
  library,lodash.isplainobject@4.0.6,MIT,,John-David Dalton,lodash.isplainobject,4.0.6,pkg:npm/lodash.isplainobject@4.0.6,node_modules/lodash.isplainobject,The lodash method `_.isPlainObject` exported as a module.,git+https://github.com/lodash/lodash.git,"as detected from PackageJson property ""repository.url""",https://lodash.com/,"as detected from PackageJson property ""homepage""",https://github.com/lodash/lodash/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,a125f3696ca908c1e43c2dcdbc111a3c77f42ac0399af3eb38f810583b1b83c9fba2b676f743340660bf8e0459e2f709e834c0863aec49881db16fc5f8c14e04,john.david.dalton@gmail.com,active,Active in npm registry,2022-06-19T13:36:10.975Z
988
988
  library,lodash.isstring@4.0.1,MIT,,John-David Dalton,lodash.isstring,4.0.1,pkg:npm/lodash.isstring@4.0.1,node_modules/lodash.isstring,The lodash method `_.isString` exported as a module.,git+https://github.com/lodash/lodash.git,"as detected from PackageJson property ""repository.url""",https://lodash.com/,"as detected from PackageJson property ""homepage""",https://github.com/lodash/lodash/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,d302717f11f5c203b71ab6ee3fe7534e4ee8a7ee8be354025db188344983fa7cbf1bf782a86cf1c82b21ef5e7d4be9a00c37286ab9c1c3a3c2d4f4b9fb050683,john.david.dalton@gmail.com,active,Active in npm registry,2022-06-19T13:36:14.947Z
989
989
  library,lodash.once@4.1.1,MIT,,John-David Dalton,lodash.once,4.1.1,pkg:npm/lodash.once@4.1.1,node_modules/lodash.once,The lodash method `_.once` exported as a module.,git+https://github.com/lodash/lodash.git,"as detected from PackageJson property ""repository.url""",https://lodash.com/,"as detected from PackageJson property ""homepage""",https://github.com/lodash/lodash/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,49be3ceda4ce0abf5dad054bf292313b356169f3a364df54539e2188df0f537b8089257b971d7260da5b3667b1d8f2ba752268353489514b304fae75cb0c3732,john.david.dalton@gmail.com,active,Active in npm registry,2022-06-19T13:36:59.972Z
990
- library,mongoose@8.17.0,MIT,,Guillermo Rauch,mongoose,8.17.0,pkg:npm/mongoose@8.17.0,node_modules/mongoose,Mongoose MongoDB ODM,git://github.com/Automattic/mongoose.git,"as detected from PackageJson property ""repository.url""",https://mongoosejs.com,"as detected from PackageJson property ""homepage""",https://github.com/Automattic/mongoose/issues/new,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/mongoose/-/mongoose-8.17.0.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,9b15ba4c13c75623917cd60e1570953a74f8779691afe0a00f14ecd558985dfb87ccda647a580942b41af8bcfa8687e81102129ca957bf52f76671f22519217c,guillermo@learnboost.com,active,Active in npm registry,2025-08-06T11:26:32.888Z
990
+ library,mongoose@8.17.1,MIT,,Guillermo Rauch,mongoose,8.17.1,pkg:npm/mongoose@8.17.1,node_modules/mongoose,Mongoose MongoDB ODM,git://github.com/Automattic/mongoose.git,"as detected from PackageJson property ""repository.url""",https://mongoosejs.com,"as detected from PackageJson property ""homepage""",https://github.com/Automattic/mongoose/issues/new,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/mongoose/-/mongoose-8.17.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,6a8752e1c69cbb1e5c6a8c41e44ac4c119ab69f214b15449c479ef3fb5119d25274de9ebdf68f5a81555f8a8d8c6bcb22d28ac424c60940145ebd4cd2de6532e,guillermo@learnboost.com,active,Active in npm registry,2025-08-07T18:59:40.275Z
991
991
  library,bson@6.10.4,Apache-2.0,,The MongoDB NodeJS Team,bson,6.10.4,pkg:npm/bson@6.10.4,node_modules/bson,A bson parser for node.js and the browser,git+https://github.com/mongodb/js-bson.git,"as detected from PackageJson property ""repository.url""",https://github.com/mongodb/js-bson#readme,"as detected from PackageJson property ""homepage""",https://jira.mongodb.org/projects/NODE/issues/,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/bson/-/bson-6.10.4.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,588b0aaa4482d00068049b93d4b117fb61c4bcd98d28a8274c0c9dd1f2fcab32b8487da2f4d5e0fadd3c62d759a7f57d219df77317b7895e32334aa0f253109e,dbx-node@mongodb.com,active,Active in npm registry,2025-06-02T20:56:41.269Z
992
992
  library,kareem@2.6.3,Apache-2.0,,Valeri Karpov,kareem,2.6.3,pkg:npm/kareem@2.6.3,node_modules/kareem,Next-generation take on pre/post function hooks,git://github.com/mongoosejs/kareem.git,"as detected from PackageJson property ""repository.url""",https://github.com/mongoosejs/kareem#readme,"as detected from PackageJson property ""homepage""",https://github.com/mongoosejs/kareem/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/kareem/-/kareem-2.6.3.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,0b78877ee1945cadaef3f8a9abd2df8c57d7171019310249abbbcb4b8e6bdc3f58db143f9b84bccda478ccc2c55a1f40b0d3d799c15f50385310ef14202fd5e9,val@karpov.io,active,Active in npm registry,2024-04-05T20:57:21.900Z
993
993
  library,mongodb@6.18.0,Apache-2.0,,The MongoDB NodeJS Team,mongodb,6.18.0,pkg:npm/mongodb@6.18.0,node_modules/mongodb,The official MongoDB driver for Node.js,git+ssh://git@github.com/mongodb/node-mongodb-native.git,"as detected from PackageJson property ""repository.url""",https://github.com/mongodb/node-mongodb-native,"as detected from PackageJson property ""homepage""",https://jira.mongodb.org/projects/NODE/issues/,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/mongodb/-/mongodb-6.18.0.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,7cee6db4df550bc3f41797eab5099c9409205d9c5b2246114d48b58fc24ee88630bda9a486d6038a526bdf98ce3c42d1e3dcea089817656c02b56ec1f9333cbd,dbx-node@mongodb.com,active,Active in npm registry,2025-08-06T00:19:25.336Z
@@ -1088,7 +1088,7 @@ library,@babel/compat-data@7.28.0,MIT,@babel,The Babel Team,compat-data,7.28.0,p
1088
1088
  library,@babel/helper-validator-option@7.27.1,MIT,@babel,The Babel Team,helper-validator-option,7.27.1,pkg:npm/%40babel/helper-validator-option@7.27.1#packages/babel-helper-validator-option,node_modules/@babel/helper-validator-option,Validate plugin/preset options,git+https://github.com/babel/babel.git#packages/babel-helper-validator-option,"as detected from PackageJson property ""repository.url"" and ""repository.directory""",https://github.com/babel/babel#readme,"as detected from PackageJson property ""homepage""",https://github.com/babel/babel/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,62f8c9a30f45c5b84514a0d2b859d509ed96c57935cd6736d9f15e3d5344696244bbc22b65595d6ba374b87c3366b50cd6297b342f4c969e0c68961b61df494a,,active,Active in npm registry,2025-07-02T09:03:55.612Z
1089
1089
  library,browserslist@4.25.1,MIT,,Andrey Sitnik,browserslist,4.25.1,pkg:npm/browserslist@4.25.1,node_modules/browserslist,Share target browsers between different front-end tools~ like Autoprefixer~ Stylelint and babel-env-preset,git+https://github.com/browserslist/browserslist.git,"as detected from PackageJson property ""repository.url""",https://github.com/browserslist/browserslist#readme,"as detected from PackageJson property ""homepage""",https://github.com/browserslist/browserslist/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/browserslist/-/browserslist-4.25.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,2868f42a838c5cba5236490423a67a992866432d1b73523e4fb2bd37cd64e1658cadfcfee9f43a7acf3407f60b01e4682af8d81356121c7396d6a7bdc485731f,andrey@sitnik.ru,active,Active in npm registry,2025-06-25T09:14:14.999Z
1090
1090
  library,caniuse-lite@1.0.30001727,CC-BY-4.0,,Ben Briggs,caniuse-lite,1.0.30001727,pkg:npm/caniuse-lite@1.0.30001727,node_modules/caniuse-lite,A smaller version of caniuse-db~ with only the essentials!,git+https://github.com/browserslist/caniuse-lite.git,"as detected from PackageJson property ""repository.url""",https://github.com/browserslist/caniuse-lite#readme,"as detected from PackageJson property ""homepage""",https://github.com/browserslist/caniuse-lite/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,a41ebc9c81e66cde8bff80ba307d43a24c91ddb62a1708da4acfec5831c68f8093705b5051032e25fb55c16917abb98d58ec9b0f72a152fde8587a06c603f5e1,beneb.info@gmail.com,active,Active in npm registry,2025-07-29T05:15:35.742Z
1091
- library,electron-to-chromium@1.5.192,ISC,,Kilian Valkhof,electron-to-chromium,1.5.192,pkg:npm/electron-to-chromium@1.5.192,node_modules/electron-to-chromium,Provides a list of electron-to-chromium version mappings,git+https://github.com/kilian/electron-to-chromium.git,"as detected from PackageJson property ""repository.url""",https://github.com/kilian/electron-to-chromium#readme,"as detected from PackageJson property ""homepage""",https://github.com/kilian/electron-to-chromium/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.192.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,acff04cf4c3b50dc3ff63e5e49709ed74a3583ff01d4fe5233dd0f0823159084509f64742c41d6cf8121f519f19278ae0ded56d1c4d2381dcc2e591318372e0a,,active,Active in npm registry,2025-08-06T06:02:28.065Z
1091
+ library,electron-to-chromium@1.5.192,ISC,,Kilian Valkhof,electron-to-chromium,1.5.192,pkg:npm/electron-to-chromium@1.5.192,node_modules/electron-to-chromium,Provides a list of electron-to-chromium version mappings,git+https://github.com/kilian/electron-to-chromium.git,"as detected from PackageJson property ""repository.url""",https://github.com/kilian/electron-to-chromium#readme,"as detected from PackageJson property ""homepage""",https://github.com/kilian/electron-to-chromium/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.192.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,acff04cf4c3b50dc3ff63e5e49709ed74a3583ff01d4fe5233dd0f0823159084509f64742c41d6cf8121f519f19278ae0ded56d1c4d2381dcc2e591318372e0a,,active,Active in npm registry,2025-08-07T02:02:25.137Z
1092
1092
  library,node-releases@2.0.19,MIT,,Sergey Rubanov,node-releases,2.0.19,pkg:npm/node-releases@2.0.19,node_modules/node-releases,Node.js releases data,git+https://github.com/chicoxyzzy/node-releases.git,"as detected from PackageJson property ""repository.url""",https://github.com/chicoxyzzy/node-releases#readme,"as detected from PackageJson property ""homepage""",https://github.com/chicoxyzzy/node-releases/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,c7139626c04ab7302aec363427e0d3ceecf9f0af1eeec25b760c246cc5907bc51807a7a49ac438e6ad0cfed243b0669999b0be97b9f9ed457c1e5e6d1f13bdbb,chi187@gmail.com,active,Active in npm registry,2024-12-10T03:28:41.711Z
1093
1093
  library,update-browserslist-db@1.1.3,MIT,,Andrey Sitnik,update-browserslist-db,1.1.3,pkg:npm/update-browserslist-db@1.1.3,node_modules/update-browserslist-db,CLI tool to update caniuse-lite to refresh target browsers from Browserslist config,git+https://github.com/browserslist/update-db.git,"as detected from PackageJson property ""repository.url""",https://github.com/browserslist/update-db#readme,"as detected from PackageJson property ""homepage""",https://github.com/browserslist/update-db/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,531848650f9022755dba790301a89acefbd3ffe7d72f93acaf4259949ba57a962ee8977ba89b4366396eaf47a64654fbd4437749c3e813b82fb2e20a28d6af2b,andrey@sitnik.ru,active,Active in npm registry,2025-02-26T17:32:43.209Z
1094
1094
  library,yallist@3.1.1,ISC,,Isaac Z. Schlueter,yallist,3.1.1,pkg:npm/yallist@3.1.1,node_modules/yallist,Yet Another Linked List,git+https://github.com/isaacs/yallist.git,"as detected from PackageJson property ""repository.url""",https://github.com/isaacs/yallist#readme,"as detected from PackageJson property ""homepage""",https://github.com/isaacs/yallist/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,6b850641a58f1f9f663975189c01b67b09dc412e22e05e374efdc9a0033eb365430264bd36c2bc1a90cc2eb0873e4b054fb8772ba4cea14367da96fb4685f1e2,i@izs.me,active,Active in npm registry,2024-04-09T19:21:45.008Z
@@ -1469,7 +1469,7 @@ library,estraverse@5.3.0,BSD-2-Clause,,,estraverse,5.3.0,pkg:npm/estraverse@5.3.
1469
1469
  library,jsx-ast-utils@3.3.5,MIT,,Ethan Cohen,jsx-ast-utils,3.3.5,pkg:npm/jsx-ast-utils@3.3.5,node_modules/jsx-ast-utils,AST utility module for statically analyzing JSX,git+https://github.com/jsx-eslint/jsx-ast-utils.git,"as detected from PackageJson property ""repository.url""",https://github.com/jsx-eslint/jsx-ast-utils#readme,"as detected from PackageJson property ""homepage""",https://github.com/jsx-eslint/jsx-ast-utils/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,659a30f47048e4ee843e04892d46fc9f634a8265564f00af1c6c05b8994c8ef2c5aa5186ea98e2acf86d76cb1e68b6634a26c3f1e7a0ce6629519c282258f671,,active,Active in npm registry,2023-07-29T01:35:03.311Z
1470
1470
  library,object.entries@1.1.9,MIT,,Jordan Harband,object.entries,1.1.9,pkg:npm/object.entries@1.1.9,node_modules/object.entries,ES2017 spec-compliant Object.entries shim.,git://github.com/es-shims/Object.entries.git,"as detected from PackageJson property ""repository.url""",https://github.com/es-shims/Object.entries#readme,"as detected from PackageJson property ""homepage""",https://github.com/es-shims/Object.entries/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,f2efe17d7151043d4ed213d48e2a0b8685851d19adead280e3fbd93f272406bd7c975284f6e1eb15a15a522f0c0d14e98b8b9a936828c8f4d23492d75f69361f,,active,Active in npm registry,2025-03-15T05:05:59.563Z
1471
1471
  library,prop-types@15.8.1,MIT,,,prop-types,15.8.1,pkg:npm/prop-types@15.8.1,node_modules/prop-types,Runtime type checking for React props and similar objects.,git+https://github.com/facebook/prop-types.git,"as detected from PackageJson property ""repository.url""",https://facebook.github.io/react/,"as detected from PackageJson property ""homepage""",https://github.com/facebook/prop-types/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,a23f3b0a064809dba5528868815011ec08e50b4df6ed4e1e9782fa780bcea827ae74c0d553435384d695f9bf437f87578123f58173139cf7617deff6a831f972,,active,Active in npm registry,2023-08-24T18:09:31.990Z
1472
- library,prop-types@15.8.1|react-is@16.13.1,MIT,,,react-is,16.13.1,pkg:npm/react-is@16.13.1#packages/react-is,node_modules/prop-types/node_modules/react-is,Brand checking of React Elements.,git+https://github.com/facebook/react.git#packages/react-is,"as detected from PackageJson property ""repository.url"" and ""repository.directory""",https://reactjs.org/,"as detected from PackageJson property ""homepage""",https://github.com/facebook/react/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,db87baca71361fe38ab7892ab0ebcd77c901a55eb9ce8c5b038055b04381dc0455590922fc31f3694a02e4ab8e37f06271c0da0824d906e39c7d9b3bd2447c6d,,active,Active in npm registry,2025-08-06T16:21:51.442Z
1472
+ library,prop-types@15.8.1|react-is@16.13.1,MIT,,,react-is,16.13.1,pkg:npm/react-is@16.13.1#packages/react-is,node_modules/prop-types/node_modules/react-is,Brand checking of React Elements.,git+https://github.com/facebook/react.git#packages/react-is,"as detected from PackageJson property ""repository.url"" and ""repository.directory""",https://reactjs.org/,"as detected from PackageJson property ""homepage""",https://github.com/facebook/react/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,db87baca71361fe38ab7892ab0ebcd77c901a55eb9ce8c5b038055b04381dc0455590922fc31f3694a02e4ab8e37f06271c0da0824d906e39c7d9b3bd2447c6d,,active,Active in npm registry,2025-08-07T16:21:11.414Z
1473
1473
  library,loose-envify@1.4.0,MIT,,Andres Suarez,loose-envify,1.4.0,pkg:npm/loose-envify@1.4.0,node_modules/loose-envify,Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST,git://github.com/zertosh/loose-envify.git,"as detected from PackageJson property ""repository.url""",https://github.com/zertosh/loose-envify,"as detected from PackageJson property ""homepage""",https://github.com/zertosh/loose-envify/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,972bb13c6aff59f86b95e9b608bfd472751cd7372a280226043cee918ed8e45ff242235d928ebe7d12debe5c351e03324b0edfeb5d54218e34f04b71452a0add,zertosh@gmail.com,active,Active in npm registry,2023-07-23T04:49:38.578Z
1474
1474
  library,string.prototype.matchall@4.0.12,MIT,,Jordan Harband,string.prototype.matchall,4.0.12,pkg:npm/string.prototype.matchall@4.0.12,node_modules/string.prototype.matchall,Spec-compliant polyfill for String.prototype.matchAll,git+https://github.com/es-shims/String.prototype.matchAll.git,"as detected from PackageJson property ""repository.url""",https://github.com/es-shims/String.prototype.matchAll#readme,"as detected from PackageJson property ""homepage""",https://github.com/es-shims/String.prototype.matchAll/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,e820bdbb204bfbfe3c7588b345fec7ed501808c08d4c178cefcc7f55351ef5b1446b105ea4f2436b53b0f7d2ea23fd7217b92ecbb437710b1832b72319472c90,ljharb@gmail.com,active,Active in npm registry,2024-12-20T07:01:49.774Z
1475
1475
  library,string.prototype.repeat@1.0.0,MIT,,Mathias Bynens,string.prototype.repeat,1.0.0,pkg:npm/string.prototype.repeat@1.0.0,node_modules/string.prototype.repeat,A robust & optimized `String.prototype.repeat` polyfill~ based on the ECMAScript 6 specification.,git+https://github.com/mathiasbynens/String.prototype.repeat.git,"as detected from PackageJson property ""repository.url""",https://mths.be/repeat,"as detected from PackageJson property ""homepage""",https://github.com/mathiasbynens/String.prototype.repeat/issues,"as detected from PackageJson property ""bugs.url""",https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz,"as detected from npm-ls property ""resolved"" and property ""integrity""",SHA-512,d2efd395d0db283f1b14243fe1fe7e98d46b5f067c860db0ed947cc1ad7a7bccfd5e978f5a5dde1847140f4397a441ff5491ffd86de08d4b51dd93a205ed92ff,,active,Active in npm registry,2022-06-27T01:05:07.722Z
@@ -29,6 +29,7 @@
29
29
 
30
30
  const addFormats = require('ajv-formats')
31
31
  const OpenApiBackend = require('openapi-backend').default
32
+ const fs = require('node:fs')
32
33
  const Utils = require('./utils')
33
34
  const path = require('path')
34
35
  const Config = require('./config')
@@ -37,9 +38,24 @@ const OpenApiMockHandler = require('./mocking/openApiMockHandler')
37
38
 
38
39
  const apiDefinitionsPath = 'spec_files/api_definitions/'
39
40
 
41
+ // check if the file contains URL and return it instead of the file name
42
+ const checkUrl = async fileName => {
43
+ const buffer = Buffer.alloc(10)
44
+ const fileHandle = await fs.promises.open(fileName, 'r')
45
+ try {
46
+ await fileHandle.read(buffer, 0, 10, 0)
47
+ } finally {
48
+ await fileHandle.close()
49
+ }
50
+ const prefix = buffer.toString('utf8').replace('\uFEFF', '') // Remove BOM
51
+ return (prefix.startsWith('"http'))
52
+ ? JSON.parse(fs.readFileSync(fileName).toString('utf8'))
53
+ : fileName
54
+ }
55
+
40
56
  const validateDefinition = async (apiFilePath) => {
41
57
  const newApi = new OpenApiBackend({
42
- definition: path.join(apiFilePath),
58
+ definition: await checkUrl(path.join(apiFilePath)),
43
59
  customizeAjv: ajv => addFormats(ajv),
44
60
  strict: true,
45
61
  quick: true