From 85aa32ae1a7975b9c4fd6472e5973b3f03dfa784 Mon Sep 17 00:00:00 2001 From: Chris deWolf <30628193+ChrisdeWolf@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:26:22 -0600 Subject: [PATCH] Fix deprecation warnings (#96) * resolve moderate severity npm audit warning with tough-cookie override, fix deprecation warning message for tests by updating Buffer, add package-lock to .gitignore * remove override from package.json --- .gitignore | 3 ++- src-test/smith_test.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ed8c35a..1d897c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /node_modules /src-test/actual_files -/scratch \ No newline at end of file +/scratch +package-lock.json \ No newline at end of file diff --git a/src-test/smith_test.js b/src-test/smith_test.js index 453e623..8c949f0 100644 --- a/src-test/smith_test.js +++ b/src-test/smith_test.js @@ -199,7 +199,7 @@ describe('An empty array', function () { it('has no errors', spritesmithUtils.assertNoError()); it('renders an empty spritesheet', function () { - assert.deepEqual(this.result.image, new Buffer(0)); + assert.deepEqual(this.result.image, Buffer.alloc(0)); }); it('returns an empty coordinate mapping', function () { assert.deepEqual(this.result.coordinates, {});