@spytecgps/nova-orm 1.4.197 → 1.4.198

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
4
3
  var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
4
+ var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
5
5
  var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
6
6
 
7
7
 
8
8
 
9
- exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
10
9
  exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
10
+ exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
11
11
  exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
@@ -5,7 +5,7 @@ export declare class QueryLogger implements Logger {
5
5
  protected readonly logging: LoggerOptions;
6
6
  constructor(logger: NovaLogger, logging?: LoggerOptions);
7
7
  /** If a parameter is a binary buffer, it will be serialized to a hex string */
8
- serializeParameters(parameters: any[]): any;
8
+ serializeParameters(parameters?: any[]): any;
9
9
  logQuery(query: string, parameters?: any[], _queryRunner?: QueryRunner): void;
10
10
  logQueryError(error: string | Error, query: string, parameters?: any[], _queryRunner?: QueryRunner): void;
11
11
  logQuerySlow(time: number, query: string, parameters?: any[], _queryRunner?: QueryRunner): void;
@@ -1 +1 @@
1
- "use strict";const e=["commit","start transaction","select version()"];exports.QueryLogger=class QueryLogger{logger;logging;constructor(e,r){this.logger=e,this.logging=null!=r&&r}serializeParameters(e){return e.map((e=>Buffer.isBuffer(e)?`X'${e.toString("hex")}'`:e))}logQuery(r,s,t){try{if(!this.logging||this.logging instanceof Array&&!this.logging.includes("query"))return;const t=r.toLowerCase();for(const r of e)if(t.includes(r))return;this.logger?.trace({query:r,parameters:this.serializeParameters(s)},"SQL QUERY")}catch(e){}}logQueryError(e,r,s,t){this.logger?.error({query:r,parameters:this.serializeParameters(s),error:e},"SQL QUERY WITH ERROR")}logQuerySlow(e,r,s,t){this.logger?.warn({query:r,parameters:this.serializeParameters(s),time:e},"SQL QUERY SLOW")}logSchemaBuild(e,r){this.logger?.trace({message:e},"SQL SCHEMA BUILD")}logMigration(e,r){this.logger?.trace({message:e},"SQL MIGRATION: ")}log(e,r,s){"string"==typeof r&&r.includes("provided glob pattern")||("warn"===e?this.logger?.warn({message:r},"SQL LOG:"):"info"===e?this.logger?.info({message:r},"SQL LOG:"):this.logger?.trace({message:r},"SQL LOG:"))}};
1
+ "use strict";const e=["commit","start transaction","select version()"];exports.QueryLogger=class QueryLogger{logger;logging;constructor(e,r){this.logger=e,this.logging=null!=r&&r}serializeParameters(e){return e?e.map((e=>Buffer.isBuffer(e)?`X'${e.toString("hex")}'`:e)):e}logQuery(r,t,s){try{if(!this.logging||this.logging instanceof Array&&!this.logging.includes("query"))return;const s=r.toLowerCase();for(const r of e)if(s.includes(r))return;this.logger?.trace({query:r,parameters:this.serializeParameters(t)},"SQL QUERY")}catch(e){}}logQueryError(e,r,t,s){try{this.logger?.error({query:r,parameters:this.serializeParameters(t),error:e},"SQL QUERY WITH ERROR")}catch(e){}}logQuerySlow(e,r,t,s){this.logger?.warn({query:r,parameters:this.serializeParameters(t),time:e},"SQL QUERY SLOW")}logSchemaBuild(e,r){this.logger?.trace({message:e},"SQL SCHEMA BUILD")}logMigration(e,r){this.logger?.trace({message:e},"SQL MIGRATION: ")}log(e,r,t){"string"==typeof r&&r.includes("provided glob pattern")||("warn"===e?this.logger?.warn({message:r},"SQL LOG:"):"info"===e?this.logger?.info({message:r},"SQL LOG:"):this.logger?.trace({message:r},"SQL LOG:"))}};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.197",
3
+ "version": "1.4.198",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/schema.sql CHANGED
@@ -1,6 +1,6 @@
1
- -- nova-orm-schema-checksum: 65814658a805b553a7069b8c8469bac0
1
+ -- nova-orm-schema-checksum: 32fa91f6e7d4a4aa64b94ddaae7a072e
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-03-09T07:21:05.026Z
3
+ -- Generated at: 2026-03-09T12:47:21.871Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6