@carbonorm/carbonnode 1.0.3 → 1.0.4
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
|
@@ -9,6 +9,14 @@ export default function <RestTableInterfaces extends { [key:string] : any }>(res
|
|
|
9
9
|
|
|
10
10
|
tableNames.forEach((table) => {
|
|
11
11
|
|
|
12
|
+
if (!(table in C6)) {
|
|
13
|
+
|
|
14
|
+
console.error(`Table name (${table}) is not found in the C6 object.`, C6);
|
|
15
|
+
|
|
16
|
+
throw new Error(`Table name (${table}) is not found in the C6 object.`);
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
Object.keys(restfulObject).map(value => {
|
|
13
21
|
|
|
14
22
|
let shortReference = value.toUpperCase();
|