express-generator-typescript 2.5.22 → 2.5.42

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.
@@ -6,7 +6,7 @@
6
6
  "clean-install": "rm -rf ./node_modules && rm -r package-lock.json && npm i",
7
7
  "dev": "NODE_ENV=development ts-node ./src",
8
8
  "dev:hot": "nodemon --exec \"npm run dev\" --watch ./src --ext .ts",
9
- "lint": "eslint --flag unstable_ts_config",
9
+ "lint": "eslint .",
10
10
  "start": "NODE_ENV=production node -r ./config.js ./dist",
11
11
  "test": "NODE_ENV=test ts-node ./spec",
12
12
  "test:hot": "nodemon --exec \"npm run test\" --watch ./src --watch ./spec --ext .ts",
@@ -28,6 +28,19 @@ export interface IUser {
28
28
  }
29
29
 
30
30
 
31
+ /******************************************************************************
32
+ Functions
33
+ ******************************************************************************/
34
+
35
+ // Initialize the parse function
36
+ const parseUser = parseObject<IUser>({
37
+ id: isRelationalKey,
38
+ name: isString,
39
+ email: isString,
40
+ created: transIsDate,
41
+ });
42
+
43
+
31
44
  /******************************************************************************
32
45
  Functions
33
46
  ******************************************************************************/
@@ -49,16 +62,6 @@ function testUser(arg: unknown, errCb?: TParseOnError): arg is IUser {
49
62
  return !!parseUser(arg, errCb);
50
63
  }
51
64
 
52
- /**
53
- * Parse a user object.
54
- */
55
- const parseUser = parseObject<IUser>({
56
- id: isRelationalKey,
57
- name: isString,
58
- email: isString,
59
- created: transIsDate,
60
- });
61
-
62
65
 
63
66
  /******************************************************************************
64
67
  Export default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-generator-typescript",
3
- "version": "2.5.22",
3
+ "version": "2.5.42",
4
4
  "description": "Generate new Express applications similar to express-generate which but sets it up to use TypeScript instead",
5
5
  "scripts": {
6
6
  "express-generator-typescript": "node bin/cli.js",