Comparing version 51.2.0 to 51.2.2
@@ -98,5 +98,9 @@ /* eslint-disable max-lines-per-function */ | ||
this.wrapIdentifierCaseConvert = options.wrapIdentifierCaseConvert ?? CaseType.snake; | ||
if (this.wrapIdentifierCaseConvert !== CaseType.none | ||
&& this.config.wrapIdentifier !== wrapIdentifier) { | ||
this.config.wrapIdentifier = wrapIdentifier; | ||
if (!this.config.wrapIdentifier) { | ||
if (this.wrapIdentifierCaseConvert === CaseType.none) { | ||
this.config.wrapIdentifier = defaultGlobalWrapIdentifier; | ||
} | ||
else { | ||
this.config.wrapIdentifier = wrapIdentifier; | ||
} | ||
} | ||
@@ -228,2 +232,9 @@ this.postProcessResponseSet.add(postProcessResponse); | ||
} | ||
function defaultGlobalWrapIdentifier(value, origImpl) { | ||
const ret = origImpl(value); | ||
if (value === '' && ret === '``') { | ||
return '\'\''; | ||
} | ||
return ret; | ||
} | ||
//# sourceMappingURL=kmore.js.map |
{ | ||
"name": "kmore", | ||
"author": "waiting", | ||
"version": "51.2.0", | ||
"version": "51.2.2", | ||
"description": "A SQL query builder based on knex with powerful TypeScript type support", | ||
@@ -81,3 +81,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "9015d7642a90620f0d30946f1699baacd78c098c" | ||
"gitHead": "45b04620d3bc56751ec19055bd06babca81f4a38" | ||
} |
@@ -127,5 +127,9 @@ /* eslint-disable max-lines-per-function */ | ||
if (this.wrapIdentifierCaseConvert !== CaseType.none | ||
&& this.config.wrapIdentifier !== wrapIdentifier) { | ||
this.config.wrapIdentifier = wrapIdentifier | ||
if (! this.config.wrapIdentifier) { | ||
if (this.wrapIdentifierCaseConvert === CaseType.none) { | ||
this.config.wrapIdentifier = defaultGlobalWrapIdentifier | ||
} | ||
else { | ||
this.config.wrapIdentifier = wrapIdentifier | ||
} | ||
} | ||
@@ -323,1 +327,9 @@ | ||
function defaultGlobalWrapIdentifier(value: string, origImpl: (input: string) => string) { | ||
const ret = origImpl(value) | ||
if (value === '' && ret === '``') { | ||
return '\'\'' | ||
} | ||
return ret | ||
} | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
399064
6679