Comparing version 1.0.247 to 1.0.248
@@ -311,3 +311,3 @@ "use strict"; | ||
const scale = get_neighbour_field(obj, path, '$scale'); | ||
const enum_values = (_a = get_neighbour_field(obj, path, '$enum_values')) === null || _a === void 0 ? void 0 : _a.map(el => `"${el}"`); | ||
const enum_values = (_a = get_neighbour_field(obj, path, '$enum_values')) === null || _a === void 0 ? void 0 : _a.map(el => (database_type === 'postgres' ? `'${el}'` : `"${el}"`)); | ||
const data_type_args = (enum_values !== null && enum_values !== void 0 ? enum_values : [precision, scale]) | ||
@@ -314,0 +314,0 @@ .filter(el => el !== undefined) |
{ | ||
"name": "orma", | ||
"version": "1.0.247", | ||
"version": "1.0.248", | ||
"description": "A declarative relational syncronous orm", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -476,3 +476,3 @@ /** | ||
const enum_values = get_neighbour_field(obj, path, '$enum_values')?.map( | ||
el => `"${el}"` | ||
el => (database_type === 'postgres' ? `'${el}'` : `"${el}"`) | ||
) | ||
@@ -479,0 +479,0 @@ const data_type_args = (enum_values ?? [precision, scale]) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1664529