couchdb-web-node-plugin 1.0.745 → 1.0.747
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/helper.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/type.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "couchdb-web-node-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.747",
|
|
4
4
|
"description": "A couchdb server, model instance conflict handler, rest api, authentication, session management, schema validator and model relation guarantee for webNode.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
package/type.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ChildProcess } from 'child_process';
|
|
|
2
2
|
import { AnyFunction, Mapping, PlainObject, Primitive, ProcessCloseReason, UTILITY_SCOPE } from 'clientnode';
|
|
3
3
|
import { Configuration as BaseConfiguration, PluginHandler as BasePluginHandler, ServicePromises as BaseServicePromises, Services as BaseServices, ServicePromisesState as BaseServicePromisesState, ServicesState as BaseServicesState } from 'web-node/type';
|
|
4
4
|
import { Server as HTTPServer } from 'http';
|
|
5
|
+
import { Express } from 'express-serve-static-core';
|
|
5
6
|
export type Attachment = PouchDB.Core.Attachment & {
|
|
6
7
|
content_type?: PouchDB.Core.Attachment['content_type'];
|
|
7
8
|
contentType?: PouchDB.Core.Attachment['content_type'];
|
|
@@ -317,6 +318,8 @@ export interface CouchDB<Type extends object = Mapping<unknown>> {
|
|
|
317
318
|
connection: Connection<Type>;
|
|
318
319
|
connector: Connector;
|
|
319
320
|
server: {
|
|
321
|
+
express?: Express;
|
|
322
|
+
expressPouchDB?: Express;
|
|
320
323
|
process?: ChildProcess | HTTPServer;
|
|
321
324
|
reject: (value: Error | ProcessCloseReason) => void;
|
|
322
325
|
resolve: (reason?: ProcessCloseReason) => void;
|