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 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 security = require('./src/security');
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
- security,
48
+ crypto,
48
49
  types,
50
+ typedefs,
49
51
  validation,
50
52
  Bromise,
51
53
  WebBuilder,
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "binhend",
3
- "version": "2.1.17",
3
+ "version": "2.1.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
- "types": "src/types/index.d.ts",
7
6
  "author": "Nguyen Duc Binh",
8
7
  "license": "UNLICENSED",
9
8
  "bin": {
@@ -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