@adonisjs/assembler 5.4.1 → 5.4.2

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.
@@ -9,7 +9,11 @@
9
9
  */
10
10
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
11
  if (k2 === undefined) k2 = k;
12
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
12
+ var desc = Object.getOwnPropertyDescriptor(m, k);
13
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
+ desc = { enumerable: true, get: function() { return m[k]; } };
15
+ }
16
+ Object.defineProperty(o, k2, desc);
13
17
  }) : (function(o, m, k, k2) {
14
18
  if (k2 === undefined) k2 = k;
15
19
  o[k2] = m[k];
@@ -9,7 +9,11 @@
9
9
  */
10
10
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
11
  if (k2 === undefined) k2 = k;
12
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
12
+ var desc = Object.getOwnPropertyDescriptor(m, k);
13
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
+ desc = { enumerable: true, get: function() { return m[k]; } };
15
+ }
16
+ Object.defineProperty(o, k2, desc);
13
17
  }) : (function(o, m, k, k2) {
14
18
  if (k2 === undefined) k2 = k;
15
19
  o[k2] = m[k];
@@ -43,6 +43,7 @@ class MakeController extends Base_1.BaseGenerator {
43
43
  'Adonis',
44
44
  'Dashboard',
45
45
  'Signup',
46
+ 'Api',
46
47
  ];
47
48
  }
48
49
  /**
@@ -9,7 +9,11 @@
9
9
  */
10
10
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
11
  if (k2 === undefined) k2 = k;
12
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
12
+ var desc = Object.getOwnPropertyDescriptor(m, k);
13
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
+ desc = { enumerable: true, get: function() { return m[k]; } };
15
+ }
16
+ Object.defineProperty(o, k2, desc);
13
17
  }) : (function(o, m, k, k2) {
14
18
  if (k2 === undefined) k2 = k;
15
19
  o[k2] = m[k];
@@ -9,7 +9,11 @@
9
9
  */
10
10
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
11
  if (k2 === undefined) k2 = k;
12
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
12
+ var desc = Object.getOwnPropertyDescriptor(m, k);
13
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
+ desc = { enumerable: true, get: function() { return m[k]; } };
15
+ }
16
+ Object.defineProperty(o, k2, desc);
13
17
  }) : (function(o, m, k, k2) {
14
18
  if (k2 === undefined) k2 = k;
15
19
  o[k2] = m[k];
@@ -9,7 +9,11 @@
9
9
  */
10
10
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
11
  if (k2 === undefined) k2 = k;
12
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
12
+ var desc = Object.getOwnPropertyDescriptor(m, k);
13
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
+ desc = { enumerable: true, get: function() { return m[k]; } };
15
+ }
16
+ Object.defineProperty(o, k2, desc);
13
17
  }) : (function(o, m, k, k2) {
14
18
  if (k2 === undefined) k2 = k;
15
19
  o[k2] = m[k];
@@ -9,7 +9,11 @@
9
9
  */
10
10
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
11
  if (k2 === undefined) k2 = k;
12
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
12
+ var desc = Object.getOwnPropertyDescriptor(m, k);
13
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
+ desc = { enumerable: true, get: function() { return m[k]; } };
15
+ }
16
+ Object.defineProperty(o, k2, desc);
13
17
  }) : (function(o, m, k, k2) {
14
18
  if (k2 === undefined) k2 = k;
15
19
  o[k2] = m[k];
@@ -60,7 +60,7 @@ class HttpServer extends emittery_1.default {
60
60
  * Notify about server events
61
61
  */
62
62
  this.childProcess.on('message', (message) => {
63
- if (message && message['origin'] === 'adonis-http-server') {
63
+ if (message && message['isAdonisJS'] && message['environment'] === 'web') {
64
64
  this.emit('ready', message);
65
65
  }
66
66
  });
@@ -78,6 +78,9 @@ class Manifest {
78
78
  if (error.stderr) {
79
79
  this.logger.logError(error.stderr);
80
80
  }
81
+ if (error.stdout) {
82
+ this.logger.logError(error.stdout);
83
+ }
81
84
  return false;
82
85
  }
83
86
  }
@@ -1,3 +1,3 @@
1
- // import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
1
+ // import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
2
2
 
3
3
  export default class {{ filename }} {}
@@ -1,3 +1,3 @@
1
- import { EventsList } from '@ioc:Adonis/Core/Event'
1
+ import type { EventsList } from '@ioc:Adonis/Core/Event'
2
2
 
3
3
  export default class {{ filename }} {}
@@ -1,4 +1,4 @@
1
- import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
1
+ import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
2
2
 
3
3
  export default class {{ filename }} {
4
4
  public async handle({}: HttpContextContract, next: () => Promise<void>) {
@@ -1,4 +1,4 @@
1
- import { ApplicationContract } from '@ioc:Adonis/Core/Application'
1
+ import type { ApplicationContract } from '@ioc:Adonis/Core/Application'
2
2
 
3
3
  /*
4
4
  |--------------------------------------------------------------------------
@@ -1,4 +1,4 @@
1
- import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
1
+ import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
2
2
 
3
3
  export default class {{ filename }} {
4
4
  public async index({}: HttpContextContract) {}
@@ -1,5 +1,5 @@
1
1
  import { Exception } from '@adonisjs/core/build/standalone'
2
- import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
2
+ import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
3
3
 
4
4
  /*
5
5
  |--------------------------------------------------------------------------
@@ -1,5 +1,5 @@
1
1
  import { schema } from '@ioc:Adonis/Core/Validator'
2
- import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
2
+ import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
3
3
 
4
4
  export default class {{ filename }} {
5
5
  constructor(protected ctx: HttpContextContract) {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonisjs/assembler",
3
- "version": "5.4.1",
3
+ "version": "5.4.2",
4
4
  "description": "Core commands to compiler and build AdonisJs project",
5
5
  "main": "build/ace-manifest.json",
6
6
  "files": [
@@ -44,18 +44,18 @@
44
44
  },
45
45
  "homepage": "https://github.com/adonisjs/assembler#readme",
46
46
  "devDependencies": {
47
- "@adonisjs/ace": "^11.0.6",
48
- "@adonisjs/core": "^5.4.2",
47
+ "@adonisjs/ace": "^11.2.2",
48
+ "@adonisjs/core": "^5.5.3",
49
49
  "@adonisjs/mrm-preset": "^5.0.2",
50
- "@poppinss/dev-utils": "^2.0.1",
51
- "@types/node": "^17.0.9",
50
+ "@poppinss/dev-utils": "^2.0.2",
51
+ "@types/node": "^17.0.21",
52
52
  "commitizen": "^4.2.4",
53
53
  "copyfiles": "^2.4.1",
54
54
  "cross-env": "^7.0.3",
55
55
  "cz-conventional-changelog": "^3.3.0",
56
56
  "del-cli": "^4.0.1",
57
- "eslint": "^8.7.0",
58
- "eslint-config-prettier": "^8.3.0",
57
+ "eslint": "^8.10.0",
58
+ "eslint-config-prettier": "^8.5.0",
59
59
  "eslint-plugin-adonis": "^2.1.0",
60
60
  "eslint-plugin-prettier": "^4.0.0",
61
61
  "github-label-sync": "^2.0.2",
@@ -64,7 +64,7 @@
64
64
  "mrm": "^3.0.10",
65
65
  "np": "^7.6.0",
66
66
  "prettier": "^2.5.1",
67
- "typescript": "^4.5.4"
67
+ "typescript": "^4.6.2"
68
68
  },
69
69
  "nyc": {
70
70
  "exclude": [
@@ -89,18 +89,18 @@
89
89
  "anyBranch": false
90
90
  },
91
91
  "dependencies": {
92
- "@adonisjs/application": "^5.1.9",
93
- "@adonisjs/env": "^3.0.6",
94
- "@adonisjs/ioc-transformer": "^2.3.2",
95
- "@adonisjs/require-ts": "^2.0.9",
96
- "@adonisjs/sink": "^5.2.1",
97
- "@poppinss/chokidar-ts": "^3.3.3",
98
- "@poppinss/cliui": "^3.0.0",
99
- "@poppinss/utils": "^4.0.1",
92
+ "@adonisjs/application": "^5.2.0",
93
+ "@adonisjs/env": "^3.0.7",
94
+ "@adonisjs/ioc-transformer": "^2.3.3",
95
+ "@adonisjs/require-ts": "^2.0.10",
96
+ "@adonisjs/sink": "^5.2.2",
97
+ "@poppinss/chokidar-ts": "^3.3.4",
98
+ "@poppinss/cliui": "^3.0.1",
99
+ "@poppinss/utils": "^4.0.2",
100
100
  "cpy": "^8.1.2",
101
- "emittery": "^0.10.0",
101
+ "emittery": "^0.10.1",
102
102
  "execa": "^5.1.1",
103
- "fs-extra": "^10.0.0",
103
+ "fs-extra": "^10.0.1",
104
104
  "get-port": "^5.1.1",
105
105
  "has-yarn": "^2.1.0",
106
106
  "picomatch": "^2.3.1",