binhend 2.1.17 → 2.1.19
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/index.js +4 -2
- package/package.json +1 -2
- package/src/utils/typedefs.js +31 -0
- /package/src/{security.js → crypto.js} +0 -0
package/index.js
CHANGED
|
@@ -21,9 +21,10 @@ const trycatch = require('./src/api/trycatch');
|
|
|
21
21
|
const cors = require('./src/middleware/cors');
|
|
22
22
|
|
|
23
23
|
const createCSD = require('./src/csd');
|
|
24
|
-
const
|
|
24
|
+
const crypto = require('./src/crypto');
|
|
25
25
|
const types = require('./src/utils/types');
|
|
26
26
|
const validation = require('./src/utils/validation');
|
|
27
|
+
const typedefs = require('./src/utils/typedefs');
|
|
27
28
|
const Bromise = require('./src/utils/Bromise.js');
|
|
28
29
|
|
|
29
30
|
/** CLIENT - Frontend */
|
|
@@ -44,8 +45,9 @@ module.exports = {
|
|
|
44
45
|
trycatch,
|
|
45
46
|
cors,
|
|
46
47
|
createCSD,
|
|
47
|
-
|
|
48
|
+
crypto,
|
|
48
49
|
types,
|
|
50
|
+
typedefs,
|
|
49
51
|
validation,
|
|
50
52
|
Bromise,
|
|
51
53
|
WebBuilder,
|
package/package.json
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {Object<string, any>} ObjectType
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Type definition for object accepting any extra properties
|
|
8
|
+
*
|
|
9
|
+
* @returns {ObjectType}
|
|
10
|
+
*/
|
|
11
|
+
function ObjectType() { return this; }
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @typedef {(Date|string|number)} DateType
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Type definition for date accepting any valid formats (string, number, date)
|
|
21
|
+
*
|
|
22
|
+
* @returns {DateType}
|
|
23
|
+
*/
|
|
24
|
+
function DateType() { return this; }
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
module.exports = {
|
|
29
|
+
ObjectType,
|
|
30
|
+
DateType
|
|
31
|
+
};
|
|
File without changes
|