create-nattyjs 0.0.1-beta.39 → 0.0.1-beta.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nattyjs",
3
- "version": "0.0.1-beta.39",
3
+ "version": "0.0.1-beta.40",
4
4
  "description": "Create NattyJS API Project",
5
5
  "main": "./index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,3 +1,4 @@
1
+ import { anonymous } from '@nattyjs/core'
1
2
 
2
3
  export class RequestsController {
3
4
 
@@ -7,6 +8,8 @@ export class RequestsController {
7
8
  * // API Endpoint: GET /api/requests
8
9
  * // Response: [{ name: 'NattyJS' }]
9
10
  */
11
+
12
+ @anonymous()
10
13
  async get(): Promise<Array<Object>> {
11
14
  return [{ name: 'NattyJS' }];
12
15
  }
@@ -18,6 +21,8 @@ export class RequestsController {
18
21
  * // Parameter: id = 1
19
22
  * // Response: { name: 'NattyJS', id: 1 }
20
23
  */
24
+
25
+ @anonymous()
21
26
  async getBy(id: number): Promise<Object> {
22
27
  // In a real application, this would query a database for the item
23
28
  // matching the provided ID.
@@ -10,14 +10,14 @@
10
10
  "build:prod": "natty build --mode prod"
11
11
  },
12
12
  "dependencies": {
13
- "@nattyjs/cli": "0.0.1-beta.39",
14
- "@nattyjs/common": "0.0.1-beta.39",
15
- "@nattyjs/core": "0.0.1-beta.39",
16
- "@nattyjs/entity": "0.0.1-beta.39",
17
- "@nattyjs/express": "0.0.1-beta.39",
18
- "@nattyjs/orm": "0.0.1-beta.39",
19
- "@nattyjs/types": "0.0.1-beta.39",
20
- "@nattyjs/validation-decorators": "0.0.1-beta.39",
13
+ "@nattyjs/cli": "0.0.1-beta.40",
14
+ "@nattyjs/common": "0.0.1-beta.40",
15
+ "@nattyjs/core": "0.0.1-beta.40",
16
+ "@nattyjs/entity": "0.0.1-beta.40",
17
+ "@nattyjs/express": "0.0.1-beta.40",
18
+ "@nattyjs/orm": "0.0.1-beta.40",
19
+ "@nattyjs/types": "0.0.1-beta.40",
20
+ "@nattyjs/validation-decorators": "0.0.1-beta.40",
21
21
  "mri": "^1.2.0",
22
22
  "reflect-metadata": "^0.2.2"
23
23
  }