@vizzly/sqlbuilder-public
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,2 +0,2 @@ | ||
import { NormalizedDataType } from "./types"; | ||
import { Client, NormalizedDataType } from "./types"; | ||
export * from "./nativeDataTypeDatabase"; | ||
@@ -6,1 +6,2 @@ export * from "./types"; | ||
export declare const DATE_MATHS_OPERATORS: string[]; | ||
export declare const getNativeDataTypesOfNormalizedType: (client: Client, normalizedDataType: NormalizedDataType) => string[]; |
@@ -17,3 +17,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DATE_MATHS_OPERATORS = exports.NORMALIZED_DATA_TYPES = void 0; | ||
exports.getNativeDataTypesOfNormalizedType = exports.DATE_MATHS_OPERATORS = exports.NORMALIZED_DATA_TYPES = void 0; | ||
const nativeDataTypeDatabase_1 = require("./nativeDataTypeDatabase"); | ||
__exportStar(require("./nativeDataTypeDatabase"), exports); | ||
@@ -34,1 +35,10 @@ __exportStar(require("./types"), exports); | ||
]; | ||
const getNativeDataTypesOfNormalizedType = (client, normalizedDataType) => { | ||
const allTypes = Object.keys(nativeDataTypeDatabase_1.NATIVE_DATA_TYPES_DATABASE[client]); | ||
// Only keep native data types that are of the normalized data type. | ||
return allTypes.filter((nativeDataType) => { | ||
return (nativeDataTypeDatabase_1.NATIVE_DATA_TYPES_DATABASE[client][nativeDataType].normalizedType === | ||
normalizedDataType); | ||
}); | ||
}; | ||
exports.getNativeDataTypesOfNormalizedType = getNativeDataTypesOfNormalizedType; |
{ | ||
"name": "@vizzly/sqlbuilder-public", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"source": "src/index.ts", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
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
18036
681