monastery 3.5.3 → 3.5.4
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 +2 -0
- package/lib/index.js +5 -1
- package/package.json +2 -2
- package/tsconfig.json +2 -2
- package/types/lib/index.d.ts +2 -164
- package/types/lib/index.d.ts.map +1 -1
- package/types/lib/manager.d.ts +1 -1
- package/types/lib/manager.d.ts.map +1 -1
- package/types/lib/rules.d.ts +36 -36
- package/types/lib/rules.d.ts.map +1 -1
- package/types/lib/util.d.ts +3 -3
- package/types/lib/util.d.ts.map +1 -1
package/changelog.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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
|
+
### [3.5.4](https://github.com/boycce/monastery/compare/3.5.3...3.5.4) (2025-06-12)
|
|
6
|
+
|
|
5
7
|
### [3.5.3](https://github.com/boycce/monastery/compare/3.5.2...3.5.3) (2025-06-12)
|
|
6
8
|
|
|
7
9
|
### [3.5.2](https://github.com/boycce/monastery/compare/3.5.1...3.5.2) (2025-01-22)
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
const Manager = require('./manager')
|
|
2
2
|
const rules = require('./rules.js')
|
|
3
3
|
|
|
4
|
+
// Create the manager instance
|
|
5
|
+
const manager = new Manager('init')
|
|
6
|
+
|
|
4
7
|
// Exports
|
|
5
|
-
module.exports =
|
|
8
|
+
module.exports = manager
|
|
6
9
|
module.exports.arrayWithSchema = Manager.prototype.arrayWithSchema
|
|
10
|
+
module.exports.db = manager
|
|
7
11
|
module.exports.getSignedUrl = Manager.prototype.getSignedUrl
|
|
8
12
|
module.exports.id = Manager.prototype.id
|
|
9
13
|
module.exports.isId = Manager.prototype.isId
|
package/package.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"name": "monastery",
|
|
3
3
|
"description": "⛪ A simple, straightforward MongoDB ODM",
|
|
4
4
|
"author": "Ricky Boyce",
|
|
5
|
-
"version": "3.5.
|
|
5
|
+
"version": "3.5.4",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "github:boycce/monastery",
|
|
8
8
|
"homepage": "https://boycce.github.io/monastery/",
|
|
9
9
|
"main": "lib/index.js",
|
|
10
|
-
"types": "./types/index.d.ts",
|
|
10
|
+
"types": "./types/lib/index.d.ts",
|
|
11
11
|
"keywords": [
|
|
12
12
|
"database",
|
|
13
13
|
"javascript",
|
package/tsconfig.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"allowJs": true,
|
|
4
|
-
"allowSyntheticDefaultImports": true,
|
|
5
4
|
"checkJs": true,
|
|
6
5
|
"declaration": true,
|
|
7
6
|
"declarationMap": true,
|
|
@@ -18,7 +17,8 @@
|
|
|
18
17
|
"outDir": "types",
|
|
19
18
|
"skipLibCheck": true,
|
|
20
19
|
"strict": false,
|
|
21
|
-
"
|
|
20
|
+
"module": "commonjs",
|
|
21
|
+
"target": "es6"
|
|
22
22
|
},
|
|
23
23
|
"include": [
|
|
24
24
|
"lib/**/*"
|
package/types/lib/index.d.ts
CHANGED
|
@@ -1,166 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
arrayWithSchema: any;
|
|
4
|
-
close(): Promise<any>;
|
|
5
|
-
_state: string;
|
|
6
|
-
command(...args: any[]): any;
|
|
7
|
-
connectionString(uri: any, databaseName: any): any;
|
|
8
|
-
get(name: any, options: any): any;
|
|
9
|
-
id: any;
|
|
10
|
-
isId: any;
|
|
11
|
-
models(pathname: any, opts?: {}): Promise<{}>;
|
|
12
|
-
onError(fn: any): Promise<any>;
|
|
13
|
-
onOpen(fn: any): Promise<any>;
|
|
14
|
-
open(): Promise<Manager>;
|
|
15
|
-
db: any;
|
|
16
|
-
parseData: any;
|
|
17
|
-
model: typeof import("./model");
|
|
18
|
-
getSignedUrl: any;
|
|
19
|
-
_getSignedUrl(): never;
|
|
20
|
-
parseBracketNotation: any;
|
|
21
|
-
parseBracketToDotNotation: any;
|
|
22
|
-
parseDotNotation: any;
|
|
23
|
-
rules: {
|
|
24
|
-
required: {
|
|
25
|
-
validateUndefined: boolean;
|
|
26
|
-
validateNull: boolean;
|
|
27
|
-
validateEmptyString: boolean;
|
|
28
|
-
message: string;
|
|
29
|
-
fn: (x: any) => boolean;
|
|
30
|
-
};
|
|
31
|
-
isBoolean: {
|
|
32
|
-
validateEmptyString: boolean;
|
|
33
|
-
message: string;
|
|
34
|
-
tryParse: (x: any) => any;
|
|
35
|
-
fn: (x: any) => boolean;
|
|
36
|
-
};
|
|
37
|
-
isArray: {
|
|
38
|
-
validateEmptyString: boolean;
|
|
39
|
-
message: string;
|
|
40
|
-
tryParse: (x: any) => any;
|
|
41
|
-
fn: (x: any) => boolean;
|
|
42
|
-
};
|
|
43
|
-
isDate: {
|
|
44
|
-
validateEmptyString: boolean;
|
|
45
|
-
message: string;
|
|
46
|
-
tryParse: (x: any) => any;
|
|
47
|
-
fn: (x: any) => boolean;
|
|
48
|
-
};
|
|
49
|
-
isImageObject: {
|
|
50
|
-
validateEmptyString: boolean;
|
|
51
|
-
message: string;
|
|
52
|
-
messageLong: string;
|
|
53
|
-
tryParse: (x: any) => any;
|
|
54
|
-
fn: (x: any) => boolean;
|
|
55
|
-
};
|
|
56
|
-
isInteger: {
|
|
57
|
-
validateEmptyString: boolean;
|
|
58
|
-
message: string;
|
|
59
|
-
tryParse: (x: any) => any;
|
|
60
|
-
fn: (x: any) => boolean;
|
|
61
|
-
};
|
|
62
|
-
isNumber: {
|
|
63
|
-
validateEmptyString: boolean;
|
|
64
|
-
message: string;
|
|
65
|
-
tryParse: (x: any) => any;
|
|
66
|
-
fn: (x: any) => boolean;
|
|
67
|
-
};
|
|
68
|
-
isObject: {
|
|
69
|
-
validateEmptyString: boolean;
|
|
70
|
-
message: string;
|
|
71
|
-
tryParse: (x: any) => any;
|
|
72
|
-
fn: (x: any) => boolean;
|
|
73
|
-
};
|
|
74
|
-
isString: {
|
|
75
|
-
validateEmptyString: boolean;
|
|
76
|
-
message: string;
|
|
77
|
-
tryParse: (x: any) => any;
|
|
78
|
-
fn: (x: any) => boolean;
|
|
79
|
-
};
|
|
80
|
-
isAny: {
|
|
81
|
-
validateEmptyString: boolean;
|
|
82
|
-
message: string;
|
|
83
|
-
fn: (x: any) => boolean;
|
|
84
|
-
};
|
|
85
|
-
isId: {
|
|
86
|
-
validateEmptyString: boolean;
|
|
87
|
-
message: string;
|
|
88
|
-
tryParse: (x: any) => any;
|
|
89
|
-
fn: (x: any) => boolean;
|
|
90
|
-
};
|
|
91
|
-
max: {
|
|
92
|
-
message: (x: any, arg: any) => string;
|
|
93
|
-
fn: (x: any, arg: any) => boolean;
|
|
94
|
-
};
|
|
95
|
-
min: {
|
|
96
|
-
message: (x: any, arg: any) => string;
|
|
97
|
-
fn: (x: any, arg: any) => boolean;
|
|
98
|
-
};
|
|
99
|
-
enum: {
|
|
100
|
-
message: (x: any, arg: any) => string;
|
|
101
|
-
fn: (x: any, arg: any) => boolean;
|
|
102
|
-
};
|
|
103
|
-
isAfter: {
|
|
104
|
-
message: (x: any, arg: any) => string;
|
|
105
|
-
fn: (x: any, arg: any) => any;
|
|
106
|
-
};
|
|
107
|
-
isBefore: {
|
|
108
|
-
message: (x: any, arg: any) => string;
|
|
109
|
-
fn: (x: any, arg: any) => any;
|
|
110
|
-
};
|
|
111
|
-
isCreditCard: {
|
|
112
|
-
message: string;
|
|
113
|
-
fn: (x: any, arg: any) => any;
|
|
114
|
-
};
|
|
115
|
-
isEmail: {
|
|
116
|
-
message: string;
|
|
117
|
-
fn: (x: any, arg: any) => any;
|
|
118
|
-
};
|
|
119
|
-
isHexColor: {
|
|
120
|
-
message: string;
|
|
121
|
-
fn: (x: any, arg: any) => any;
|
|
122
|
-
};
|
|
123
|
-
isIn: {
|
|
124
|
-
message: (x: any, arg: any) => string;
|
|
125
|
-
fn: (x: any, arg: any) => any;
|
|
126
|
-
};
|
|
127
|
-
isIP: {
|
|
128
|
-
message: string;
|
|
129
|
-
fn: (x: any, arg: any) => any;
|
|
130
|
-
};
|
|
131
|
-
isNotEmptyString: {
|
|
132
|
-
validateEmptyString: boolean;
|
|
133
|
-
message: string;
|
|
134
|
-
fn: (x: any) => boolean;
|
|
135
|
-
};
|
|
136
|
-
isNotIn: {
|
|
137
|
-
message: (x: any, arg: any) => string;
|
|
138
|
-
fn: (x: any, arg: any) => boolean;
|
|
139
|
-
};
|
|
140
|
-
isURL: {
|
|
141
|
-
message: string;
|
|
142
|
-
fn: (x: any, arg: any) => any;
|
|
143
|
-
};
|
|
144
|
-
isUUID: {
|
|
145
|
-
message: string;
|
|
146
|
-
fn: (x: any, arg: any) => any;
|
|
147
|
-
};
|
|
148
|
-
minLength: {
|
|
149
|
-
message: (x: any, arg: any) => string;
|
|
150
|
-
fn: (x: any, arg: any) => any;
|
|
151
|
-
};
|
|
152
|
-
maxLength: {
|
|
153
|
-
message: (x: any, arg: any) => string;
|
|
154
|
-
fn: (x: any, arg: any) => any;
|
|
155
|
-
};
|
|
156
|
-
regex: {
|
|
157
|
-
message: (x: any, arg: any) => string;
|
|
158
|
-
fn: (x: any, arg: any) => any;
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
export = _exports;
|
|
163
|
-
export { rules };
|
|
1
|
+
export = manager;
|
|
2
|
+
declare const manager: Manager;
|
|
164
3
|
import Manager = require("./manager");
|
|
165
|
-
import rules = require("./rules.js");
|
|
166
4
|
//# sourceMappingURL=index.d.ts.map
|
package/types/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":";AAIA,+BAAmC"}
|
package/types/lib/manager.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare class Manager {
|
|
|
14
14
|
models(pathname: any, opts?: {}): Promise<{}>;
|
|
15
15
|
onError(fn: any): Promise<any>;
|
|
16
16
|
onOpen(fn: any): Promise<any>;
|
|
17
|
-
open(): Promise<
|
|
17
|
+
open(): Promise<this>;
|
|
18
18
|
db: any;
|
|
19
19
|
parseData(obj: any, parseBracketToDotNotation: any, parseDotNotation: any): any;
|
|
20
20
|
model: typeof Model;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../lib/manager.js"],"names":[],"mappings":";AAYA,gEAuFC;;IAvFD,8CAuFC;IAED,sCAEC;IAED,8CAGC;IAED,sBAoBC;IAfqB,eAAuB;IAiB7C,6BAKC;IAED,mDA2BC;IAED,kCAYC;IAED,sCAEC;IAED,0BAEC;IAED,8CAsCC;IAED,+BAiBC;IAED,8BAuBC;IAED,
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../lib/manager.js"],"names":[],"mappings":";AAYA,gEAuFC;;IAvFD,8CAuFC;IAED,sCAEC;IAED,8CAGC;IAED,sBAoBC;IAfqB,eAAuB;IAiB7C,6BAKC;IAED,mDA2BC;IAED,kCAYC;IAED,sCAEC;IAED,0BAEC;IAED,8CAsCC;IAED,+BAiBC;IAED,8BAuBC;IAED,sBAsBC;IAfG,QAA0B;IAiB9B,gFAEC;IAED,oBAAuB;IAEvB,2EAA8B;IAE9B,uBAEC"}
|
package/types/lib/rules.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
export declare namespace required {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
let validateUndefined: boolean;
|
|
3
|
+
let validateNull: boolean;
|
|
4
|
+
let validateEmptyString: boolean;
|
|
5
|
+
let message: string;
|
|
6
6
|
function fn(x: any): boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare namespace isBoolean {
|
|
9
|
-
|
|
9
|
+
let validateEmptyString_1: boolean;
|
|
10
10
|
export { validateEmptyString_1 as validateEmptyString };
|
|
11
|
-
|
|
11
|
+
let message_1: string;
|
|
12
12
|
export { message_1 as message };
|
|
13
13
|
export function tryParse(x: any): any;
|
|
14
|
-
export function fn_1(x: any): boolean;
|
|
14
|
+
export function fn_1(x: any): x is boolean;
|
|
15
15
|
export { fn_1 as fn };
|
|
16
16
|
}
|
|
17
17
|
export declare namespace isArray {
|
|
18
|
-
|
|
18
|
+
let validateEmptyString_2: boolean;
|
|
19
19
|
export { validateEmptyString_2 as validateEmptyString };
|
|
20
|
-
|
|
20
|
+
let message_2: string;
|
|
21
21
|
export { message_2 as message };
|
|
22
22
|
export function tryParse_1(x: any): any;
|
|
23
23
|
export { tryParse_1 as tryParse };
|
|
24
|
-
export function fn_2(x: any):
|
|
24
|
+
export function fn_2(x: any): x is any[];
|
|
25
25
|
export { fn_2 as fn };
|
|
26
26
|
}
|
|
27
27
|
export declare namespace isDate {
|
|
28
|
-
|
|
28
|
+
let validateEmptyString_3: boolean;
|
|
29
29
|
export { validateEmptyString_3 as validateEmptyString };
|
|
30
|
-
|
|
30
|
+
let message_3: string;
|
|
31
31
|
export { message_3 as message };
|
|
32
32
|
export function tryParse_2(x: any): any;
|
|
33
33
|
export { tryParse_2 as tryParse };
|
|
@@ -35,20 +35,20 @@ export declare namespace isDate {
|
|
|
35
35
|
export { fn_3 as fn };
|
|
36
36
|
}
|
|
37
37
|
export declare namespace isImageObject {
|
|
38
|
-
|
|
38
|
+
let validateEmptyString_4: boolean;
|
|
39
39
|
export { validateEmptyString_4 as validateEmptyString };
|
|
40
|
-
|
|
40
|
+
let message_4: string;
|
|
41
41
|
export { message_4 as message };
|
|
42
|
-
export
|
|
42
|
+
export let messageLong: string;
|
|
43
43
|
export function tryParse_3(x: any): any;
|
|
44
44
|
export { tryParse_3 as tryParse };
|
|
45
45
|
export function fn_4(x: any): boolean;
|
|
46
46
|
export { fn_4 as fn };
|
|
47
47
|
}
|
|
48
48
|
export declare namespace isInteger {
|
|
49
|
-
|
|
49
|
+
let validateEmptyString_5: boolean;
|
|
50
50
|
export { validateEmptyString_5 as validateEmptyString };
|
|
51
|
-
|
|
51
|
+
let message_5: string;
|
|
52
52
|
export { message_5 as message };
|
|
53
53
|
export function tryParse_4(x: any): any;
|
|
54
54
|
export { tryParse_4 as tryParse };
|
|
@@ -56,9 +56,9 @@ export declare namespace isInteger {
|
|
|
56
56
|
export { fn_5 as fn };
|
|
57
57
|
}
|
|
58
58
|
export declare namespace isNumber {
|
|
59
|
-
|
|
59
|
+
let validateEmptyString_6: boolean;
|
|
60
60
|
export { validateEmptyString_6 as validateEmptyString };
|
|
61
|
-
|
|
61
|
+
let message_6: string;
|
|
62
62
|
export { message_6 as message };
|
|
63
63
|
export function tryParse_5(x: any): any;
|
|
64
64
|
export { tryParse_5 as tryParse };
|
|
@@ -66,9 +66,9 @@ export declare namespace isNumber {
|
|
|
66
66
|
export { fn_6 as fn };
|
|
67
67
|
}
|
|
68
68
|
export declare namespace isObject {
|
|
69
|
-
|
|
69
|
+
let validateEmptyString_7: boolean;
|
|
70
70
|
export { validateEmptyString_7 as validateEmptyString };
|
|
71
|
-
|
|
71
|
+
let message_7: string;
|
|
72
72
|
export { message_7 as message };
|
|
73
73
|
export function tryParse_6(x: any): any;
|
|
74
74
|
export { tryParse_6 as tryParse };
|
|
@@ -76,27 +76,27 @@ export declare namespace isObject {
|
|
|
76
76
|
export { fn_7 as fn };
|
|
77
77
|
}
|
|
78
78
|
export declare namespace isString {
|
|
79
|
-
|
|
79
|
+
let validateEmptyString_8: boolean;
|
|
80
80
|
export { validateEmptyString_8 as validateEmptyString };
|
|
81
|
-
|
|
81
|
+
let message_8: string;
|
|
82
82
|
export { message_8 as message };
|
|
83
83
|
export function tryParse_7(x: any): any;
|
|
84
84
|
export { tryParse_7 as tryParse };
|
|
85
|
-
export function fn_8(x: any):
|
|
85
|
+
export function fn_8(x: any): x is string;
|
|
86
86
|
export { fn_8 as fn };
|
|
87
87
|
}
|
|
88
88
|
export declare namespace isAny {
|
|
89
|
-
|
|
89
|
+
let validateEmptyString_9: boolean;
|
|
90
90
|
export { validateEmptyString_9 as validateEmptyString };
|
|
91
|
-
|
|
91
|
+
let message_9: string;
|
|
92
92
|
export { message_9 as message };
|
|
93
93
|
export function fn_9(x: any): boolean;
|
|
94
94
|
export { fn_9 as fn };
|
|
95
95
|
}
|
|
96
96
|
export declare namespace isId {
|
|
97
|
-
|
|
97
|
+
let validateEmptyString_10: boolean;
|
|
98
98
|
export { validateEmptyString_10 as validateEmptyString };
|
|
99
|
-
|
|
99
|
+
let message_10: string;
|
|
100
100
|
export { message_10 as message };
|
|
101
101
|
export function tryParse_8(x: any): any;
|
|
102
102
|
export { tryParse_8 as tryParse };
|
|
@@ -135,19 +135,19 @@ export declare namespace isBefore {
|
|
|
135
135
|
export { fn_15 as fn };
|
|
136
136
|
}
|
|
137
137
|
export declare namespace isCreditCard {
|
|
138
|
-
|
|
138
|
+
let message_16: string;
|
|
139
139
|
export { message_16 as message };
|
|
140
140
|
export function fn_16(x: any, arg: any): any;
|
|
141
141
|
export { fn_16 as fn };
|
|
142
142
|
}
|
|
143
143
|
export declare namespace isEmail {
|
|
144
|
-
|
|
144
|
+
let message_17: string;
|
|
145
145
|
export { message_17 as message };
|
|
146
146
|
export function fn_17(x: any, arg: any): any;
|
|
147
147
|
export { fn_17 as fn };
|
|
148
148
|
}
|
|
149
149
|
export declare namespace isHexColor {
|
|
150
|
-
|
|
150
|
+
let message_18: string;
|
|
151
151
|
export { message_18 as message };
|
|
152
152
|
export function fn_18(x: any, arg: any): any;
|
|
153
153
|
export { fn_18 as fn };
|
|
@@ -159,15 +159,15 @@ export declare namespace isIn {
|
|
|
159
159
|
export { fn_19 as fn };
|
|
160
160
|
}
|
|
161
161
|
export declare namespace isIP {
|
|
162
|
-
|
|
162
|
+
let message_20: string;
|
|
163
163
|
export { message_20 as message };
|
|
164
164
|
export function fn_20(x: any, arg: any): any;
|
|
165
165
|
export { fn_20 as fn };
|
|
166
166
|
}
|
|
167
167
|
export declare namespace isNotEmptyString {
|
|
168
|
-
|
|
168
|
+
let validateEmptyString_11: boolean;
|
|
169
169
|
export { validateEmptyString_11 as validateEmptyString };
|
|
170
|
-
|
|
170
|
+
let message_21: string;
|
|
171
171
|
export { message_21 as message };
|
|
172
172
|
export function fn_21(x: any): boolean;
|
|
173
173
|
export { fn_21 as fn };
|
|
@@ -179,13 +179,13 @@ export declare namespace isNotIn {
|
|
|
179
179
|
export { fn_22 as fn };
|
|
180
180
|
}
|
|
181
181
|
export declare namespace isURL {
|
|
182
|
-
|
|
182
|
+
let message_23: string;
|
|
183
183
|
export { message_23 as message };
|
|
184
184
|
export function fn_23(x: any, arg: any): any;
|
|
185
185
|
export { fn_23 as fn };
|
|
186
186
|
}
|
|
187
187
|
export declare namespace isUUID {
|
|
188
|
-
|
|
188
|
+
let message_24: string;
|
|
189
189
|
export { message_24 as message };
|
|
190
190
|
export function fn_24(x: any, arg: any): any;
|
|
191
191
|
export { fn_24 as fn };
|
package/types/lib/rules.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../lib/rules.js"],"names":[],"mappings":";;;;;IAYQ,6BAGH;;;;;;;IAQS,sCAKT;IACG,
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../lib/rules.js"],"names":[],"mappings":";;;;;IAYQ,6BAGH;;;;;;;IAQS,sCAKT;IACG,2CAEH;;;;;;;;IAKS,wCAKT;;IACG,yCAEH;;;;;;;;IAKS,wCAIT;;IACG,sCAGH;;;;;;;;;IAOS,wCAKT;;IACG,sCAGH;;;;;;;;IAKS,wCAIT;;IACG,sCAGH;;;;;;;;IAKS,wCAIT;;IACG,sCAGH;;;;;;;;IAKS,wCAKT;;IACG,sCAEH;;;;;;;;IAKS,wCAGT;;IACG,0CAEH;;;;;;;;IAKG,sCAEH;;;;;;;;IAKS,wCAKT;;IACG,uCAIH;;;;IAMQ,qDAAyE;;IAC9E,iDAGH;;;;IAGQ,qDAAsE;;IAC3E,iDAGH;;;;IAMQ,qDAAgC;;IACrC,iDAIH;;;;;IAGQ,qDAAgE;;IACrE,6CAAqD;;;;IAGhD,qDAA+D;;IACpE,6CAAsD;;;;;;IAItD,6CAA0D;;;;;;IAI1D,6CAAqD;;;;;;IAIrD,6CAAwD;;;;IAGnD,qDAAgF;;IACrF,6CAAkD;;;;;;IAIlD,6CAAkD;;;;;;;;IAKlD,uCAEH;;;;IAGQ,qDAA4E;;IACjF,iDAAmD;;;;;;IAInD,6CAA6E;;;;;;IAI7E,6CAA+C;;;;IAG1C,qDAGR;;IACG,6CAIH;;;;IAGQ,qDAGR;;IACG,6CAIH;;;;IAGQ,qDAAiF;;IACtF,6CAIH"}
|
package/types/lib/util.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export function cast(obj: any): any;
|
|
|
3
3
|
export function deepCopy(obj: any): any;
|
|
4
4
|
export function deepFind(obj: any, path: any): any;
|
|
5
5
|
export function forEach(obj: any, iteratee: any, context: any): any;
|
|
6
|
-
export function forceArray(value: any): any;
|
|
6
|
+
export function forceArray(value: any): any[];
|
|
7
7
|
export function id(str: string | ObjectId): ObjectId;
|
|
8
8
|
export function inArray(array: any, key: any, value: any): any;
|
|
9
|
-
export function isArray(value: any):
|
|
9
|
+
export function isArray(value: any): value is any[];
|
|
10
10
|
export function isArrayLike(collection: any): boolean;
|
|
11
11
|
export function isDefined(value: any): boolean;
|
|
12
12
|
export function isEmpty(obj: any): boolean;
|
|
@@ -21,7 +21,7 @@ export function isSchema(value: any): boolean;
|
|
|
21
21
|
export function isString(value: any): boolean;
|
|
22
22
|
export function isSubdocument(value: any): boolean;
|
|
23
23
|
export function isSubdocument2dsphere(value: any): any;
|
|
24
|
-
export function isUndefined(value: any):
|
|
24
|
+
export function isUndefined(value: any): value is undefined;
|
|
25
25
|
export function omit(obj: any, fields: any): any;
|
|
26
26
|
export function parseData(obj: any, parseBracketToDotNotation: any, parseDotNotation: any): any;
|
|
27
27
|
export function parseDotNotation(obj: any): any;
|
package/types/lib/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../lib/util.js"],"names":[],"mappings":";AAIQ,oCAwBL;AAES,wCAUT;AAES,mDAYT;AAEQ,oEAYR;AAEW,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../lib/util.js"],"names":[],"mappings":";AAIQ,oCAwBL;AAES,wCAUT;AAES,mDAYT;AAEQ,oEAYR;AAEW,8CAEX;AAOG,wBAHO,MAAM,GAAC,QAAQ,GACd,QAAQ,CAKnB;AAEQ,+DAaR;AAEQ,oDAER;AAEY,sDAGZ;AAEU,+CAEV;AAEQ,2CAIR;AAEW,gDAEX;AAEK,0CAKL;AAEQ,6CAiBR;AAES,8CAET;AAES,8CAMT;AAEiB,sDAGjB;AAEQ,6CAER;AAES,8CAET;AAES,8CAET;AAEc,mDAmBd;AAEsB,uDAQtB;AAEY,4DAEZ;AAEK,iDAOL;AAEU,gGAWV;AAEiB,gDA+BjB;AAEqB,oDAmCrB;AAE0B,wDAsB1B;AAEK,8CAeL;AAEgB,oDAYhB;AAEU,8EAmDV;AAEa,uIAwCb;AAEkB,yDAElB;AAEQ,8CAIR;AAEQ,0CAGR;AAEK,4CAEL"}
|