@spytecgps/nova-orm 1.4.193 → 1.4.194

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
3
  var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
4
- var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
5
4
  var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
5
+ var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
6
6
 
7
7
 
8
8
 
9
9
  exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
10
- exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
11
10
  exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
11
+ exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
@@ -1 +1 @@
1
- "use strict";const e=/\/\*\s*(.+?)\s*\*\//,r=/^\s*(SELECT|INSERT|UPDATE|DELETE)\s+[\s\S]*?(?:FROM|INTO)\s+`?(\w+)`?/i;exports.createSpanSubscriber=function(t){const n=new WeakMap;return{beforeQuery(s){if(!t?.startSpan)return;const u=t.startSpan(function(t){const n=t.match(e);if(n)return n[1];const s=t.match(r);if(s)return`${s[2]} ${s[1].toUpperCase()}`;const u=t.replace(/\s+/g," ").trim();return u.length>60?u.substring(0,60)+"…":u}(s.query),function(e){const t={"db.system.name":"mysql"},n=e.match(r);return n&&(t["db.operation.name"]=n[1].toUpperCase(),t["db.collection.name"]=n[2]),t["db.query.text"]=e.length>2048?e.substring(0,2048):e,t}(s.query));if(!u)return;const o=n.get(s.queryRunner)??[];o.push(u),n.set(s.queryRunner,o)},afterQuery(e){const r=n.get(e.queryRunner);if(!r?.length)return;const t=r.pop();t&&(!e.success&&e.error&&t.setStatus({code:2,message:String(e.error.message??e.error)}),t.end())}}};
1
+ "use strict";const e=/\/\*\s*(.+?)\s*\*\//,r=/^\s*(SELECT|INSERT|UPDATE|DELETE)\s+[\s\S]*?(?:FROM|INTO)\s+`?(\w+)`?/i,t=/^\s*(SELECT\s+VERSION|START\s+TRANSACTION|COMMIT|ROLLBACK|SET\s)/i;exports.createSpanSubscriber=function(s){const n=new WeakMap;return{beforeQuery(u){if(!s?.startSpan)return;if(t.test(u.query))return;const o=s.startSpan(function(t){const s=t.match(e);if(s)return s[1];const n=t.match(r);if(n)return`${n[2]} ${n[1].toUpperCase()}`;const u=t.replace(/\s+/g," ").trim();return u.length>60?u.substring(0,60)+"…":u}(u.query),function(e){const t={"db.system.name":"mysql"},s=e.match(r);return s&&(t["db.operation.name"]=s[1].toUpperCase(),t["db.collection.name"]=s[2]),t["db.query.text"]=e.length>2048?e.substring(0,2048):e,t}(u.query));if(!o)return;const c=n.get(u.queryRunner)??[];c.push(o),n.set(u.queryRunner,c)},afterQuery(e){const r=n.get(e.queryRunner);if(!r?.length)return;const t=r.pop();t&&(!e.success&&e.error&&t.setStatus({code:2,message:String(e.error.message??e.error)}),t.end())}}};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.193",
3
+ "version": "1.4.194",
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: 539aac6c7ad9834040d91b434013ac18
1
+ -- nova-orm-schema-checksum: eab98b02eaa70973d83c95138a9cfe5c
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-03-08T21:12:24.351Z
3
+ -- Generated at: 2026-03-08T21:53:40.314Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6