@carbonorm/carbonnode 1.4.2 → 1.4.3
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
|
@@ -130,10 +130,12 @@ const Delete = restRequest<DeleteCustomAndRequiredFields, i{{TABLE_NAME_SHORT_PA
|
|
|
130
130
|
responseCallback: deleteState{{TABLE_NAME_SHORT_PASCAL_CASE}}
|
|
131
131
|
});
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
const {{TABLE_NAME_SHORT_PASCAL_CASE}} = {
|
|
134
134
|
// Export all GET, POST, PUT, DELETE functions for each table
|
|
135
135
|
Get,
|
|
136
136
|
Post,
|
|
137
137
|
Put,
|
|
138
138
|
Delete,
|
|
139
|
-
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export default {{TABLE_NAME_SHORT_PASCAL_CASE}};
|
|
@@ -93,7 +93,7 @@ var MySQLDump = /** @class */ (function () {
|
|
|
93
93
|
MySQLDump.DB_PASS = argMap['--pass'] || 'password';
|
|
94
94
|
MySQLDump.DB_HOST = argMap['--host'] || '127.0.0.1';
|
|
95
95
|
MySQLDump.DB_PORT = argMap['--port'] || '3306';
|
|
96
|
-
MySQLDump.DB_NAME = argMap['--dbname'] || '
|
|
96
|
+
MySQLDump.DB_NAME = argMap['--dbname'] || 'CarbonPHP';
|
|
97
97
|
MySQLDump.DB_PREFIX = argMap['--prefix'] || 'carbon_';
|
|
98
98
|
MySQLDump.RELATIVE_OUTPUT_DIR = argMap['--output'] || '/src/api/rest';
|
|
99
99
|
MySQLDump.OUTPUT_DIR = path.join(process.cwd(), MySQLDump.RELATIVE_OUTPUT_DIR);
|
|
@@ -24,7 +24,7 @@ class MySQLDump {
|
|
|
24
24
|
static DB_PASS = argMap['--pass'] || 'password';
|
|
25
25
|
static DB_HOST = argMap['--host'] || '127.0.0.1';
|
|
26
26
|
static DB_PORT = argMap['--port'] || '3306';
|
|
27
|
-
static DB_NAME = argMap['--dbname'] || '
|
|
27
|
+
static DB_NAME = argMap['--dbname'] || 'CarbonPHP';
|
|
28
28
|
static DB_PREFIX = argMap['--prefix'] || 'carbon_';
|
|
29
29
|
static RELATIVE_OUTPUT_DIR = argMap['--output'] || '/src/api/rest';
|
|
30
30
|
static OUTPUT_DIR = path.join(process.cwd(), MySQLDump.RELATIVE_OUTPUT_DIR);
|