@minatojs/sql-utils
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -21,2 +21,3 @@ import { Dict } from 'cosmokit'; | ||
protected escapeMap: {}; | ||
protected escapeRegExp?: RegExp; | ||
protected types: Dict<Transformer>; | ||
@@ -26,7 +27,6 @@ protected createEqualQuery: (key: string, value: any) => string; | ||
protected evalOperators: EvalOperators; | ||
private escapeRegExp?; | ||
constructor(tables: Dict<Model>); | ||
protected createNullQuery(key: string, value: boolean): string; | ||
protected createMemberQuery(key: string, value: any[], notStr?: string): string; | ||
protected createRegExpQuery(key: string, value: RegExp): string; | ||
protected createRegExpQuery(key: string, value: string | RegExp): string; | ||
protected createElementQuery(key: string, value: any): string; | ||
@@ -33,0 +33,0 @@ protected comparator(operator: string): (key: string, value: any) => string; |
@@ -107,3 +107,3 @@ "use strict"; | ||
createRegExpQuery(key, value) { | ||
return `${key} regexp ${this.escape(value.source)}`; | ||
return `${key} regexp ${this.escape(typeof value === "string" ? value : value.source)}`; | ||
} | ||
@@ -110,0 +110,0 @@ createElementQuery(key, value) { |
{ | ||
"name": "@minatojs/sql-utils", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "SQL Utilities for Minato", | ||
@@ -32,3 +32,3 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"@minatojs/core": "^2.1.1" | ||
"@minatojs/core": "^2.1.2" | ||
}, | ||
@@ -35,0 +35,0 @@ "dependencies": { |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
41605
371
1