New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@minatojs/sql-utils

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@minatojs/sql-utils - npm Package Compare versions

Comparing version 4.2.2 to 4.2.3

3

lib/index.js

@@ -121,2 +121,3 @@ "use strict";

$concat: (args) => `concat(${args.map((arg) => this.parseEval(arg)).join(", ")})`,
$regex: ([key, value]) => `${this.parseEval(key)} regexp ${this.parseEval(value)}`,
// logical

@@ -351,3 +352,3 @@ $or: (args) => this.logicalOr(args.map((arg) => this.parseEval(arg))),

this.state.sqlType = "raw";
if (typeof expr === "string" || typeof expr === "number" || typeof expr === "boolean" || expr instanceof Date) {
if (typeof expr === "string" || typeof expr === "number" || typeof expr === "boolean" || expr instanceof Date || expr instanceof RegExp) {
return this.escape(expr);

@@ -354,0 +355,0 @@ }

{
"name": "@minatojs/sql-utils",
"version": "4.2.2",
"version": "4.2.3",
"description": "SQL Utilities for Minato",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -130,2 +130,3 @@ import { Dict, isNullable } from 'cosmokit'

$concat: (args) => `concat(${args.map(arg => this.parseEval(arg)).join(', ')})`,
$regex: ([key, value]) => `${this.parseEval(key)} regexp ${this.parseEval(value)}`,

@@ -394,3 +395,3 @@ // logical

this.state.sqlType = 'raw'
if (typeof expr === 'string' || typeof expr === 'number' || typeof expr === 'boolean' || expr instanceof Date) {
if (typeof expr === 'string' || typeof expr === 'number' || typeof expr === 'boolean' || expr instanceof Date || expr instanceof RegExp) {
return this.escape(expr)

@@ -397,0 +398,0 @@ }

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc