From 72f5f097c57ada2d720f27fcd02f97525f7bd66a Mon Sep 17 00:00:00 2001 From: Przemyslaw Motacki Date: Tue, 4 Jul 2023 09:31:02 +0200 Subject: [PATCH] SNOW-855106: Use correct way to import a uuid library (#562) * SNOW-855106: Use correct way to import a uuid library --- lib/connection/connection.js | 2 +- lib/connection/statement.js | 2 +- lib/services/sf.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/connection/connection.js b/lib/connection/connection.js index 956f12b5c..8c5fa219b 100644 --- a/lib/connection/connection.js +++ b/lib/connection/connection.js @@ -1,7 +1,7 @@ /* * Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved. */ -const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); const Url = require('url'); const QueryString = require('querystring'); const GSErrors = require('../constants/gs_errors') diff --git a/lib/connection/statement.js b/lib/connection/statement.js index 0c7fec163..4ed59cf66 100644 --- a/lib/connection/statement.js +++ b/lib/connection/statement.js @@ -3,7 +3,7 @@ */ const async = require('async'); -const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); var Url = require('url'); var QueryString = require('querystring'); diff --git a/lib/services/sf.js b/lib/services/sf.js index 63b469e12..684e8cb27 100644 --- a/lib/services/sf.js +++ b/lib/services/sf.js @@ -45,7 +45,7 @@ */ const axios = require('axios'); -const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); const EventEmitter = require('events').EventEmitter; const Util = require('../util'); const Errors = require('../errors');