mythix 2.12.0 → 2.12.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.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # mythix
2
2
 
3
+ ![Mythix](docs/mythix-logo-colored.png)
4
+
3
5
  Mythix is a NodeJS web-app framework. It is configured to have sane defaults so that you need not worry about configuration. However, it was designed such that any part of the default application can be overloaded to provide custom functionality for any components of the framework.
4
6
 
5
7
  ## Heads UP!
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mythix",
3
- "version": "2.12.0",
3
+ "version": "2.12.2",
4
4
  "description": "Mythix is a NodeJS web-app framework",
5
5
  "main": "src/index",
6
6
  "scripts": {
@@ -35,7 +35,7 @@
35
35
  "form-data": "^4.0.0",
36
36
  "luxon": "^3.1.1",
37
37
  "micromatch": "^4.0.5",
38
- "mythix-orm": "^1.12.0",
38
+ "mythix-orm": "^1.13.2",
39
39
  "nife": "^1.12.1",
40
40
  "prompts": "^2.4.2"
41
41
  }
@@ -13,6 +13,8 @@ class ValidationError extends Error {}
13
13
  function generateMigration(migrationID, upCode, downCode) {
14
14
  let template =
15
15
  `
16
+ 'use strict';
17
+
16
18
  const MIGRATION_ID = '${migrationID}';
17
19
 
18
20
  module.exports = {
@@ -160,9 +162,8 @@ class GenerateMigrationCommand extends CommandBase {
160
162
  let content = await this[methodName](args);
161
163
  let finalPath = Path.join(args.outputPath, migrationName);
162
164
 
163
- console.log(`Would write content:\n${content}`);
164
-
165
- // FileSystem.writeFileSync(migrationWritePath, migrationSource, 'utf8');
165
+ //console.log(`Would write content:\n${content}`);
166
+ FileSystem.writeFileSync(finalPath, content, 'utf8');
166
167
 
167
168
  console.log(`New migration to revision ${args.version} has been written to file "${finalPath}"`);
168
169
  } catch (error) {
@@ -92,6 +92,9 @@ class HTTPInterface {
92
92
  'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
93
93
  }, this.keysToLowerCase(this.defaultHeaders || {}), this.keysToLowerCase(requestOptions.headers || {}));
94
94
 
95
+ if (requestOptions.logger)
96
+ requestOptions.logger.log(`Making request: ${method} ${url}`);
97
+
95
98
  if (data) {
96
99
  if ((!method.match(/^(GET|HEAD)$/i) && requestOptions.data)) {
97
100
  if (data.constructor.name === 'FormData') {