@mocks-server/plugin-openapi
Advanced tools
Comparing version 3.0.0-beta.3 to 3.0.0-beta.4
@@ -121,2 +121,14 @@ "use strict"; | ||
} | ||
get _defaultCollectionOptions() { | ||
if (!this._collectionIdOption.value) { | ||
return null; | ||
} | ||
const options = { | ||
id: this._collectionIdOption.value, | ||
}; | ||
if (this._collectionFromOption.value) { | ||
options.from = this._collectionFromOption.value; | ||
} | ||
return options; | ||
} | ||
_getRoutesAndCollectionsFromFilesContents(filesContents) { | ||
@@ -151,14 +163,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
get _defaultCollectionOptions() { | ||
if (!this._collectionIdOption.value) { | ||
return null; | ||
} | ||
const options = { | ||
id: this._collectionIdOption.value, | ||
}; | ||
if (this._collectionFromOption.value) { | ||
options.from = this._collectionFromOption.value; | ||
} | ||
return options; | ||
} | ||
_onLoadFiles(filesContents) { | ||
@@ -165,0 +165,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "@mocks-server/plugin-openapi", | ||
"version": "3.0.0-beta.3", | ||
"version": "3.0.0-beta.4", | ||
"description": "Mocks server plugin allowing to create routes and collections from OpenApi definitions", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@mocks-server/core": "5.0.0-beta.2" | ||
"@mocks-server/core": "5.0.0-beta.3" | ||
}, | ||
@@ -39,6 +39,6 @@ "dependencies": { | ||
"devDependencies": { | ||
"@mocks-server/config": "2.0.0-beta.2", | ||
"@mocks-server/core": "5.0.0-beta.2", | ||
"@mocks-server/logger": "2.0.0-beta.1", | ||
"@mocks-server/nested-collections": "3.0.0-beta.1" | ||
"@mocks-server/config": "2.0.0-beta.3", | ||
"@mocks-server/core": "5.0.0-beta.3", | ||
"@mocks-server/logger": "2.0.0-beta.2", | ||
"@mocks-server/nested-collections": "3.0.0-beta.2" | ||
}, | ||
@@ -45,0 +45,0 @@ "engines": { |