@microfleet/plugin-couchdb
Advanced tools
Comparing version 4.3.0 to 5.0.0
@@ -23,3 +23,3 @@ import type { Microfleet } from '@microfleet/core'; | ||
} | ||
export declare function attach(this: Microfleet, params: Config): PluginInterface; | ||
export declare function attach(this: Microfleet, params: Config): Promise<PluginInterface>; | ||
//# sourceMappingURL=couchdb.d.ts.map |
@@ -61,7 +61,7 @@ "use strict"; | ||
}); | ||
function attach(params) { | ||
async function attach(params) { | ||
(0, node_assert_1.strict)(this.hasPlugin('logger'), new common_errors_1.NotFoundError('log module must be included')); | ||
(0, node_assert_1.strict)(this.hasPlugin('validator'), new common_errors_1.NotFoundError('validator module must be included')); | ||
// load local schemas | ||
this.validator.addLocation((0, path_1.resolve)(__dirname, '../schemas')); | ||
await this.validator.addLocation((0, path_1.resolve)(__dirname, '../schemas')); | ||
const opts = this.validator.ifError(exports.name, params); | ||
@@ -68,0 +68,0 @@ const nano = (0, nano_1.default)(opts.connection); |
@@ -6,3 +6,3 @@ { | ||
"types": "./lib/index.d.ts", | ||
"version": "4.3.0", | ||
"version": "5.0.0", | ||
"tags": [ | ||
@@ -28,3 +28,3 @@ "microservice", | ||
"common-errors": "~1.x.x", | ||
"@microfleet/core": "^19.3.0" | ||
"@microfleet/core": "^20.0.0" | ||
}, | ||
@@ -35,6 +35,6 @@ "dependencies": { | ||
"nano": "^10.1.3", | ||
"@microfleet/core-types": "^2.3.0", | ||
"@microfleet/plugin-logger": "^2.3.0", | ||
"@microfleet/plugin-validator": "^2.3.0", | ||
"@microfleet/utils": "^2.3.0" | ||
"@microfleet/core-types": "^3.0.0", | ||
"@microfleet/plugin-logger": "^3.0.0", | ||
"@microfleet/plugin-validator": "^3.0.0", | ||
"@microfleet/utils": "^3.0.0" | ||
}, | ||
@@ -68,3 +68,3 @@ "devDependencies": { | ||
"typescript": "~5.3.3", | ||
"@microfleet/core": "^19.3.0" | ||
"@microfleet/core": "^20.0.0" | ||
}, | ||
@@ -71,0 +71,0 @@ "engines": { |
@@ -88,6 +88,6 @@ import { strict as assert } from 'node:assert' | ||
export function attach( | ||
export async function attach( | ||
this: Microfleet, | ||
params: Config | ||
): PluginInterface { | ||
): Promise<PluginInterface> { | ||
assert(this.hasPlugin('logger'), new NotFoundError('log module must be included')) | ||
@@ -97,3 +97,3 @@ assert(this.hasPlugin('validator'), new NotFoundError('validator module must be included')) | ||
// load local schemas | ||
this.validator.addLocation(resolve(__dirname, '../schemas')) | ||
await this.validator.addLocation(resolve(__dirname, '../schemas')) | ||
@@ -100,0 +100,0 @@ const opts = this.validator.ifError<Config>(name, params) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
17309
+ Added@microfleet/core@20.1.3(transitive)
+ Added@microfleet/core-types@3.1.3(transitive)
+ Added@microfleet/plugin-logger@3.1.3(transitive)
+ Added@microfleet/plugin-validator@3.1.3(transitive)
+ Added@microfleet/utils@3.1.3(transitive)
+ Added@microfleet/validation@12.0.0(transitive)
+ Addedsonic-boom@3.8.0(transitive)
- Removed@microfleet/core@19.3.0(transitive)
- Removed@microfleet/core-types@2.3.0(transitive)
- Removed@microfleet/plugin-logger@2.3.0(transitive)
- Removed@microfleet/plugin-validator@2.3.0(transitive)
- Removed@microfleet/utils@2.3.0(transitive)
- Removed@microfleet/validation@11.2.1(transitive)
- Removedsonic-boom@3.7.0(transitive)
Updated@microfleet/utils@^3.0.0