@contrast/common 1.11.0 → 1.13.0

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.
@@ -1,63 +0,0 @@
1
- /*
2
- * Copyright: 2022 Contrast Security, Inc
3
- * Contact: support@contrastsecurity.com
4
- * License: Commercial
5
-
6
- * NOTICE: This Software and the patented inventions embodied within may only be
7
- * used as part of Contrast Security’s commercial offerings. Even though it is
8
- * made available through public repositories, use of this Software is subject to
9
- * the applicable End User Licensing Agreement found at
10
- * https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
11
- * between Contrast Security and the End User. The Software may not be reverse
12
- * engineered, modified, repackaged, sold, redistributed or otherwise used in a
13
- * way not consistent with the End User License Agreement.
14
- */
15
-
16
- const collectionSignatures: [string, any][] = [
17
- 'find',
18
- 'findOne',
19
- 'findAndModify',
20
- 'findOneAndDelete',
21
- 'findOneAndReplace',
22
- 'findOneAndUpdate',
23
- 'remove',
24
- 'removeOne',
25
- 'replaceOne',
26
- 'removeMany',
27
- 'save',
28
- 'update',
29
- 'updateOne',
30
- 'updateMany',
31
- 'deleteOne',
32
- 'deleteMany',
33
- 'aggregate',
34
- 'mapReduce',
35
- 'group'
36
- ].map((method) => [
37
- `mongodb.Collection.prototype.${method}`,
38
- {
39
- moduleName: 'mongodb',
40
- methodName: `Collection.prototype.${method}`,
41
- isModule: true,
42
- }
43
- ]);
44
-
45
- const dbSignatures: [string, any][] = [
46
- 'command',
47
- 'eval',
48
- 'aggregate'
49
- ].map((method) => [
50
- `mongodb.Db.prototype.${method}`,
51
- {
52
- moduleName: 'mongodb',
53
- methodName: `Db.prototype.${method}`,
54
- isModule: true,
55
- }
56
- ]);
57
-
58
- const mongodb: Map<string, any> = new Map([
59
- ...collectionSignatures,
60
- ...dbSignatures
61
- ]);
62
-
63
- export default mongodb;
@@ -1,52 +0,0 @@
1
- /*
2
- * Copyright: 2022 Contrast Security, Inc
3
- * Contact: support@contrastsecurity.com
4
- * License: Commercial
5
-
6
- * NOTICE: This Software and the patented inventions embodied within may only be
7
- * used as part of Contrast Security’s commercial offerings. Even though it is
8
- * made available through public repositories, use of this Software is subject to
9
- * the applicable End User Licensing Agreement found at
10
- * https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
11
- * between Contrast Security and the End User. The Software may not be reverse
12
- * engineered, modified, repackaged, sold, redistributed or otherwise used in a
13
- * way not consistent with the End User License Agreement.
14
- */
15
-
16
- import { Signature } from '../types';
17
-
18
-
19
- const mssql = new Map<string, Signature>([
20
- [
21
- 'mssql/lib/base/prepared-statement.prototype.prepare',
22
- {
23
- moduleName: 'mssql',
24
- version: '>=6.4.0',
25
- fileName: 'lib/base/prepared-statement.js',
26
- methodName: 'PreparedStatement.prototype.prepare',
27
- isModule: true,
28
- },
29
- ],
30
- [
31
- 'mssql/lib/base/request.prototype.batch',
32
- {
33
- moduleName: 'mssql',
34
- version: '>=6.4.0',
35
- fileName: 'lib/base/request.js',
36
- methodName: 'Request.prototype.batch',
37
- isModule: true,
38
- },
39
- ],
40
- [
41
- 'mssql/lib/base/request.prototype.query',
42
- {
43
- moduleName: 'mssql',
44
- version: '>=6.4.0',
45
- fileName: 'lib/base/request.js',
46
- methodName: 'Request.prototype.query',
47
- isModule: true,
48
- },
49
- ],
50
- ] as [string, Signature][]);
51
-
52
- export default mssql;