couchdb-web-node-plugin 1.0.772 → 1.0.774

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "couchdb-web-node-plugin",
3
- "version": "1.0.772",
3
+ "version": "1.0.774",
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",
@@ -67,30 +67,30 @@
67
67
  "rxjs": "^7.8.2"
68
68
  },
69
69
  "devDependencies": {
70
- "@babel/eslint-parser": "^7.28.0",
71
- "@babel/runtime": "^7.28.2",
72
- "@stylistic/eslint-plugin": "^5.2.2",
70
+ "@babel/eslint-parser": "^7.28.4",
71
+ "@babel/runtime": "^7.28.4",
72
+ "@stylistic/eslint-plugin": "^5.4.0",
73
73
  "@types/ejs": "^3.1.5",
74
74
  "@types/express": "^5.0.3",
75
- "@types/node": "^24.1.0",
75
+ "@types/node": "^24.5.2",
76
76
  "@types/pouchdb-node": "^6.1.7",
77
- "@typescript-eslint/eslint-plugin": "^8.38.0",
78
- "@typescript-eslint/parser": "^8.38.0",
79
- "clientnode": "^3.0.1303",
77
+ "@typescript-eslint/eslint-plugin": "^8.44.1",
78
+ "@typescript-eslint/parser": "^8.44.1",
79
+ "clientnode": "^3.0.1310",
80
80
  "documentation-website": "^1.0.394",
81
- "eslint": "^9.32.0",
81
+ "eslint": "^9.36.0",
82
82
  "eslint-config-google": "^0.14.0",
83
- "eslint-plugin-jsdoc": "^52.0.1",
83
+ "eslint-plugin-jsdoc": "^60.5.0",
84
84
  "express": "^5.1.0",
85
85
  "express-pouchdb": "^4.2.0",
86
- "jest": "^30.0.5",
86
+ "jest": "^30.2.0",
87
87
  "jsdoc": "^4.0.4",
88
88
  "mkdirp": "^3.0.1",
89
89
  "node-fetch": "^3.3.2",
90
90
  "rimraf": "^6.0.1",
91
- "typescript-eslint": "^8.38.0",
92
- "web-node": "^1.0.550",
93
- "weboptimizer": "^2.0.1598"
91
+ "typescript-eslint": "^8.44.1",
92
+ "web-node": "^1.0.551",
93
+ "weboptimizer": "^2.0.1609"
94
94
  },
95
95
  "peerDependencies": {
96
96
  "@babel/runtime": "*",
@@ -149,11 +149,11 @@
149
149
  "__evaluate__": "60 ** 2 * 24 * 14"
150
150
  },
151
151
  "chttpd/require_valid_user": true,
152
- "httpd/allow_jsonp": true,
152
+ "httpd/allow_jsonp": false,
153
153
  "httpd/bind_address": {
154
154
  "__evaluate__": "self.couchdb.backend.configuration['httpd/host']"
155
155
  },
156
- "httpd/enable_cors": true,
156
+ "httpd/enable_cors": false,
157
157
  "httpd/host": "0.0.0.0",
158
158
  "httpd/port": 5984,
159
159
  "log/file": "/dev/stdout",
package/type.d.ts CHANGED
@@ -66,10 +66,12 @@ export type PrimitiveType = typeof PrimitiveTypes[number];
66
66
  export type Type = boolean | number | string;
67
67
  export type TypeSpecification = Array<Type> | Array<Array<Type>> | Type;
68
68
  export type ConstraintKey = 'arrayConstraintExecution' | 'arrayConstraintExpression' | 'conflictingConstraintExecution' | 'conflictingConstraintExpression' | 'constraintExecution' | 'constraintExpression';
69
- export interface SelectionMapping {
69
+ export interface SelectionOption {
70
70
  label: string;
71
- value: unknown;
71
+ value: Primitive;
72
72
  }
73
+ export type NormalizedSelection = Array<SelectionOption>;
74
+ export type Selection = Array<SelectionOption> | Array<Primitive> | Mapping;
73
75
  export type Pattern = Array<RegExp | string> | RegExp | string;
74
76
  export interface BasePropertySpecification<Type, AdditionalSpecifications extends object> {
75
77
  allowedRoles?: AllowedRoles;
@@ -101,7 +103,7 @@ export interface BasePropertySpecification<Type, AdditionalSpecifications extend
101
103
  mutable?: boolean;
102
104
  nullable?: boolean;
103
105
  writable?: boolean;
104
- selection?: Array<SelectionMapping> | Array<unknown> | Mapping<unknown>;
106
+ selection?: Selection;
105
107
  type?: TypeSpecification;
106
108
  emptyEqualsNull?: boolean;
107
109
  trim?: boolean;