prisma-query-log
Advanced tools
Comparing version 2.0.3 to 2.1.0
@@ -38,8 +38,9 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __assign = Object.assign; | ||
} | ||
query = query.replace(/\?/g, () => { | ||
query = query.replace(/\?/g, (s, index, string) => { | ||
let parameter = JSON.stringify(params.shift()); | ||
const previousChar = string.charAt(index - 1); | ||
if (colorQuery && colorParameter) { | ||
parameter = colorParameter + parameter + "[0m" + colorQuery; | ||
} | ||
return parameter; | ||
return (previousChar === "," ? " " : "") + parameter; | ||
}); | ||
@@ -46,0 +47,0 @@ if (format) { |
{ | ||
"name": "prisma-query-log", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"license": "MIT", | ||
@@ -51,16 +51,16 @@ "description": "Log prisma query event", | ||
"@types/mocha": "^8.2.0", | ||
"@types/node": "^14.14.14", | ||
"@typescript-eslint/eslint-plugin": "^4.11.0", | ||
"@typescript-eslint/parser": "^4.11.0", | ||
"c8": "^7.3.5", | ||
"commitizen": "^4.2.2", | ||
"@types/node": "^14.14.25", | ||
"@typescript-eslint/eslint-plugin": "^4.15.0", | ||
"@typescript-eslint/parser": "^4.15.0", | ||
"c8": "^7.5.0", | ||
"commitizen": "^4.2.3", | ||
"cz-customizable": "^6.3.0", | ||
"eslint": "^7.16.0", | ||
"eslint-config-prettier": "^7.1.0", | ||
"eslint": "^7.19.0", | ||
"eslint-config-prettier": "^7.2.0", | ||
"eslint-import-resolver-node": "^0.3.4", | ||
"eslint-plugin-etc": "^1.1.7", | ||
"eslint-plugin-etc": "^1.3.2", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-only-warn": "^1.0.2", | ||
"eslint-plugin-prettier": "^3.3.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"eslint-plugin-promise": "^4.3.1", | ||
"eslint-plugin-regexp": "^0.1.1", | ||
@@ -71,16 +71,17 @@ "eslint-plugin-simple-import-sort": "^7.0.0", | ||
"eslint-plugin-total-functions": "^4.7.2", | ||
"eslint-plugin-unicorn": "^24.0.0", | ||
"eslint-plugin-unicorn": "^28.0.0", | ||
"eslint-plugin-wix-editor": "^3.2.0", | ||
"expect": "^26.6.2", | ||
"git-branch-is": "^4.0.0", | ||
"husky": "^4.3.6", | ||
"husky": "^5.0.9", | ||
"mocha": "^8.2.1", | ||
"precise-commits": "^1.0.2", | ||
"prettier": "^2.2.1", | ||
"semantic-release": "^17.3.0", | ||
"semantic-release": "^17.3.8", | ||
"strip-ansi": "^6.0.0", | ||
"ts-node": "^9.1.1", | ||
"tslib": "^2.0.3", | ||
"typescript": "^4.1.3", | ||
"tslib": "^2.1.0", | ||
"typescript": "^4.1.5", | ||
"watchexec-bin": "^1.0.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9734
123
38