From f5d7c661beb49e1a84e7eb718d7a87ba3d1dd98b Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 7 Sep 2023 11:17:12 -0700 Subject: [PATCH] [Refactor] switching to a maintained Object.assign package --- assert.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assert.js b/assert.js index b35cb21..f0f30e1 100644 --- a/assert.js +++ b/assert.js @@ -34,8 +34,8 @@ const AssertionError = require('./internal/assert/assertion_error'); const { inspect } = require('util/'); const { isPromise, isRegExp } = require('util/').types; -const objectAssign = Object.assign ? Object.assign : require('es6-object-assign').assign; -const objectIs = Object.is ? Object.is : require('object-is'); +const objectAssign = require('object.assign/polyfill')(); +const objectIs = require('object-is/polyfill')(); const RegExpPrototypeTest = require('call-bind/callBound')('RegExp.prototype.test'); diff --git a/package.json b/package.json index 6837a35..2ed507d 100644 --- a/package.json +++ b/package.json @@ -38,9 +38,9 @@ }, "dependencies": { "call-bind": "^1.0.2", - "es6-object-assign": "^1.1.0", "is-nan": "^1.2.1", "object-is": "^1.0.1", + "object.assign": "^4.1.4", "util": "^0.12.0" } }