From c042ac375a0a073edcc0a9516cf63204c5120e29 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 12 Mar 2022 14:58:55 +0100 Subject: [PATCH] Update snazzy dependency Close #103 --- index.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index e259343..120715e 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ var Standard = require('standard') var format = require('util').format var loaderUtils = require('loader-utils') -var snazzy = require('snazzy') +var Snazzy = require('snazzy') var assign = require('object-assign') module.exports = function standardLoader (input, map) { @@ -41,7 +41,7 @@ module.exports = function standardLoader (input, map) { }, []) if (config.snazzy !== false) { - snazzy({ encoding: 'utf8' }) + new Snazzy({ encoding: 'utf8' }) .on('data', function (data) { emit(new StandardJSError(data)) }) diff --git a/package.json b/package.json index f812e08..6a95a76 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "dependencies": { "loader-utils": "^1.1.0", "object-assign": "^4.1.1", - "snazzy": "^8.0.0" + "snazzy": "^9.0.0" }, "peerDependencies": { "standard": "*"