🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@mikro-orm/sql

Package Overview
Dependencies
Maintainers
1
Versions
688
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mikro-orm/sql - npm Package Compare versions

Comparing version
7.1.6-dev.8
to
7.1.6-dev.10
+1
-0
dialects/mysql/MySqlSchemaHelper.d.ts

@@ -12,2 +12,3 @@ import { type Dictionary, type Transaction, type Type } from '@mikro-orm/core';

'current_timestamp(?)': string[];
'curdate()': string[];
'0': string[];

@@ -14,0 +15,0 @@ };

@@ -8,2 +8,3 @@ import { EnumType, StringType, TextType } from '@mikro-orm/core';

'current_timestamp(?)': ['current_timestamp(?)'],
'curdate()': ['(current_date)', 'curdate()'],
'0': ['0', 'false'],

@@ -10,0 +11,0 @@ };

+2
-2
{
"name": "@mikro-orm/sql",
"version": "7.1.6-dev.8",
"version": "7.1.6-dev.10",
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",

@@ -56,3 +56,3 @@ "keywords": [

"peerDependencies": {
"@mikro-orm/core": "7.1.6-dev.8"
"@mikro-orm/core": "7.1.6-dev.10"
},

@@ -59,0 +59,0 @@ "engines": {

@@ -897,3 +897,4 @@ import { ArrayType, BooleanType, DateTimeType, DecimalType, inspect, JsonType, parseJsonSafe, Utils, } from '@mikro-orm/core';

return (str
?.replace(/_\w+'(.*?)'/g, '$1')
// lookbehind: only strip a real charset introducer, never an underscore inside a literal like 'a_b'
?.replace(/(?<![\w'])_\w+'(.*?)'/g, '$1')
.replace(/!=/g, '<>')

@@ -900,0 +901,0 @@ .replace(/in\s*\((.*?)\)/gi, '= any (array[$1])')