5htp-core 0.3.5-1 → 0.3.5-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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5htp-core",
|
|
3
3
|
"description": "Convenient TypeScript framework designed for Performance and Productivity.",
|
|
4
|
-
"version": "0.3.5-
|
|
4
|
+
"version": "0.3.5-2",
|
|
5
5
|
"author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
|
|
6
6
|
"repository": "git://github.com/gaetanlegac/5htp-core.git",
|
|
7
7
|
"license": "MIT",
|
|
@@ -122,8 +122,8 @@ export const defaultOptions = {
|
|
|
122
122
|
----------------------------------*/
|
|
123
123
|
export const buildUrl = (
|
|
124
124
|
path: string,
|
|
125
|
-
params: {
|
|
126
|
-
domains:
|
|
125
|
+
params: {[alias: string]: any},
|
|
126
|
+
domains: {[alias: string]: string},
|
|
127
127
|
absolute: boolean
|
|
128
128
|
) => {
|
|
129
129
|
|
|
@@ -135,7 +135,9 @@ export const buildUrl = (
|
|
|
135
135
|
|
|
136
136
|
// Extract domain ID from path
|
|
137
137
|
let domainId: string;
|
|
138
|
-
|
|
138
|
+
let slackPos = path.indexOf('/');
|
|
139
|
+
if (slackPos === -1)
|
|
140
|
+
slackPos = path.length;
|
|
139
141
|
domainId = path.substring(1, slackPos);
|
|
140
142
|
path = path.substring(slackPos);
|
|
141
143
|
|
|
@@ -516,8 +516,8 @@ export default class SQL extends Service<Config, Hooks, Application, Services> {
|
|
|
516
516
|
let valuesNamesToUpdate: (keyof TData)[] = [];
|
|
517
517
|
if (colsToUpdate === '*') {
|
|
518
518
|
|
|
519
|
-
console.log(LogPrefix, `Automatic upsert into ${table.chemin} using ${table.pk.join(', ')} as pk`);
|
|
520
519
|
valuesNamesToUpdate = Object.keys(table.colonnes);// table.columnNamesButPk;
|
|
520
|
+
console.log(LogPrefix, `Automatic upsert into ${table.chemin} using ${table.pk.join(', ')} as pk: ${valuesNamesToUpdate.join(', ')}`);
|
|
521
521
|
// We don't take columnNamesButPk, because if all the columns are pks, we don't have yny value for the ON DUPLICATE KEY
|
|
522
522
|
// Meaning
|
|
523
523
|
|