Socket
Socket
Sign inDemoInstall

@microfleet/plugin-couchdb

Package Overview
Dependencies
157
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.0 to 5.0.0

2

lib/couchdb.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc