From f3948550b89d7a8f6760256ffccbd472af33d72c Mon Sep 17 00:00:00 2001 From: MO Date: Sun, 25 Jul 2021 21:54:19 +0800 Subject: [PATCH] feat: init --- lib/index.js | 2 +- lib/locate.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 07e9035..7bc38a1 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,6 +1,6 @@ const jsonService = require( 'vscode-json-languageservice' ) const chalk = require( 'chalk' ) -const { locate } = require( './locate' ) +const locate = require( './locate' ) const jsonServiceHandle = jsonService.getLanguageService( {} ) diff --git a/lib/locate.js b/lib/locate.js index 79a557b..897b478 100644 --- a/lib/locate.js +++ b/lib/locate.js @@ -166,4 +166,4 @@ function isNearErrorLine( line, locations ) { return locations.some( l => ( Math.abs( l.line - line ) <= 2 ) ) } -exports.locate = locate +module.exports = locate