Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prisma-query-log

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma-query-log - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

9

index.js

@@ -32,3 +32,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/index.ts

function unescapeQuery(query) {
const regex = /`\w+`\.`\w+`(\.`\w+`)?/g;
const regex = /`\w+`(\.`\w+`)?(\.`\w+`)?/g;
const matchAllResult = query.matchAll(regex);

@@ -42,7 +42,10 @@ const matches = Array.from(matchAllResult);

const parts = fullMatch.split("`.`");
let replacement = "";
if (parts.length >= 2) {
parts.shift();
const replacement = parts.join(".").slice(0, -1);
query = query.slice(0, matchIndex) + replacement + query.slice(matchIndex + fullMatch.length);
replacement = parts.join(".").slice(0, -1);
} else {
replacement = parts[0].slice(1, -1);
}
query = query.slice(0, matchIndex) + replacement + query.slice(matchIndex + fullMatch.length);
}

@@ -49,0 +52,0 @@ return query;

{
"name": "prisma-query-log",
"version": "1.1.1",
"version": "1.1.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Log prisma query event",

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