From 5a11566ff238eb92f5c26714c87ab8be7953955b Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Thu, 22 Apr 2021 18:43:35 +0200 Subject: [PATCH] Import createPatch in ts/sql_format directly --- ts/sql_format.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/sql_format.ts b/ts/sql_format.ts index fc5beedfa..4e66d8c71 100644 --- a/ts/sql_format.ts +++ b/ts/sql_format.ts @@ -2,7 +2,7 @@ // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import sqlFormatter from "@sqltools/formatter"; -import * as Diff from "diff"; +import { createPatch } from "diff"; import process from "process"; import path from "path"; import fs from "fs"; @@ -38,7 +38,7 @@ for (const path of process.argv.slice(2)) { errorFound = true; console.log("SQL formatting issues found:"); } - console.log(Diff.createPatch(path, orig, formatted)); + console.log(createPatch(path, orig, formatted)); } } }