equipped 4.4.4 → 4.4.6

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [4.4.6](https://github.com/kevinand11/equipped/compare/v4.4.5...v4.4.6) (2024-04-07)
6
+
7
+ ### [4.4.5](https://github.com/kevinand11/equipped/compare/v4.4.4...v4.4.5) (2024-04-06)
8
+
5
9
  ### [4.4.4](https://github.com/kevinand11/equipped/compare/v4.4.3...v4.4.4) (2024-03-23)
6
10
 
7
11
 
@@ -128,15 +128,17 @@ export declare const Validation: {
128
128
  shuffleArray: <Type_10>(array: Type_10[]) => Type_10[];
129
129
  chunkArray: <T_13>(arr: T_13[], size: number) => T_13[][];
130
130
  Geohash: typeof Validate.Geohash;
131
- isValid: <T_14>(value: T_14) => {
131
+ isValid: <T_14>(value: T_14, ignored?: boolean | undefined) => {
132
132
  valid: true;
133
133
  errors: string[];
134
134
  value: T_14;
135
+ ignored: boolean;
135
136
  };
136
137
  isInvalid: <T_15>(errors: string[], value: T_15) => {
137
138
  valid: false;
138
139
  errors: string[];
139
140
  value: unknown;
141
+ ignored: boolean;
140
142
  };
141
143
  makeRule: <T_16>(func: Validate.Rule<T_16>) => Validate.Rule<T_16>;
142
144
  makeSanitizer: <T_17>(func: Validate.Sanitizer<T_17>) => (val: T_17) => T_17;
@@ -144,10 +146,12 @@ export declare const Validation: {
144
146
  valid: false;
145
147
  errors: string[];
146
148
  value: unknown;
149
+ ignored: boolean;
147
150
  } | {
148
151
  valid: true;
149
152
  errors: string[];
150
153
  value: T_18;
154
+ ignored: boolean;
151
155
  };
152
156
  };
153
157
  export declare const validate: <T extends Record<string, Validate.VCore<any>>>(schema: T, value: Record<string, any>) => { [K in keyof T]: import("valleyed/lib/api/base").ExtractI<T[K]>; };
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "equipped",
3
- "version": "4.4.4",
3
+ "version": "4.4.6",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
+ "type": "commonjs",
7
8
  "scripts": {
8
9
  "dev": "tsc -watch",
9
10
  "build": "tsc --project tsconfig.json",
10
- "lint": "eslint src/ --ext .ts,.js --fix",
11
+ "lint": "eslint --fix",
11
12
  "test": "echo",
12
13
  "release": "standard-version",
13
14
  "prepare": "husky"
@@ -17,6 +18,7 @@
17
18
  "devDependencies": {
18
19
  "@commitlint/cli": "^19.2.1",
19
20
  "@commitlint/config-conventional": "^19.1.0",
21
+ "@stylistic/eslint-plugin": "^1.7.0",
20
22
  "@types/amqplib": "^0.10.5",
21
23
  "@types/bcryptjs": "^2.4.6",
22
24
  "@types/bull": "^3.15.9",
@@ -25,16 +27,16 @@
25
27
  "@types/express-fileupload": "^1.5.0",
26
28
  "@types/jsonwebtoken": "^9.0.6",
27
29
  "@types/morgan": "^1.9.9",
28
- "@types/node": "^20.11.30",
30
+ "@types/node": "^20.12.5",
29
31
  "@types/pug": "^2.0.10",
30
32
  "@types/supertest": "^6.0.2",
31
- "@typescript-eslint/eslint-plugin": "^7.3.1",
32
- "@typescript-eslint/parser": "^7.3.1",
33
- "eslint": "^8.57.0",
33
+ "@typescript-eslint/eslint-plugin": "^7.5.0",
34
+ "@typescript-eslint/parser": "^7.5.0",
35
+ "eslint": "^9.0.0",
34
36
  "eslint-plugin-promise": "^6.1.1",
35
37
  "husky": "^9.0.11",
36
38
  "standard-version": "^9.5.0",
37
- "typescript": "^5.4.3"
39
+ "typescript": "^5.4.4"
38
40
  },
39
41
  "dependencies": {
40
42
  "amqp-connection-manager": "^4.1.14",
@@ -47,7 +49,7 @@
47
49
  "cookie-parser": "^1.4.6",
48
50
  "cors": "^2.8.5",
49
51
  "dotenv": "^16.4.5",
50
- "express": "^4.19.1",
52
+ "express": "^4.19.2",
51
53
  "express-fileupload": "^1.5.0",
52
54
  "express-rate-limit": "^7.2.0",
53
55
  "express-slow-down": "^2.0.1",
@@ -55,18 +57,18 @@
55
57
  "jsonwebtoken": "^9.0.2",
56
58
  "jwks-rsa": "^3.1.0",
57
59
  "kafkajs": "^2.2.4",
58
- "mongoose": "^8.2.3",
60
+ "mongoose": "^8.3.0",
59
61
  "mongoose-lean-defaults": "^2.2.1",
60
62
  "mongoose-lean-getters": "^2.0.1",
61
63
  "mongoose-lean-virtuals": "^0.9.1",
62
64
  "morgan": "^1.10.0",
63
65
  "music-metadata": "^7.14.0",
64
- "path-to-regexp": "^6.2.1",
66
+ "path-to-regexp": "^6.2.2",
65
67
  "pug": "^3.0.2",
66
68
  "redis": "^4.6.13",
67
69
  "socket.io": "4.7.5",
68
70
  "supertest": "^6.3.4",
69
- "valleyed": "4.2.9"
71
+ "valleyed": "4.2.11"
70
72
  },
71
73
  "repository": {
72
74
  "url": "git://github.com/kevinand11/equipped.git"