From c669ff77501aa9596f25262bef9f1934d2fbb52b Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 6 Sep 2023 21:35:19 -0700 Subject: [PATCH] [Deps] update `es-abstract`, `object.entries` --- implementation.js | 4 ++-- lib/helpers.js | 6 +++--- lib/map-helpers.js | 16 ++++++++-------- lib/map-iterator.js | 6 +++--- lib/validation.js | 4 ++-- package.json | 4 ++-- shim.js | 4 ++-- test/tests.js | 2 +- 8 files changed, 23 insertions(+), 23 deletions(-) diff --git a/implementation.js b/implementation.js index 777a66d..0292c92 100644 --- a/implementation.js +++ b/implementation.js @@ -4,8 +4,8 @@ var define = require('define-properties'); var callBound = require('call-bind/callBound'); var GetIntrinsic = require('get-intrinsic'); var SLOT = require('internal-slot'); -var SameValue = require('es-abstract/2022/SameValue'); -var SameValueZero = require('es-abstract/2022/SameValueZero'); +var SameValue = require('es-abstract/2023/SameValue'); +var SameValueZero = require('es-abstract/2023/SameValueZero'); var MapEntry = require('./lib/map-entry'); var MapIterator = require('./lib/map-iterator'); diff --git a/lib/helpers.js b/lib/helpers.js index 64ae60d..22c92f6 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -5,9 +5,9 @@ var GetIntrinsic = require('get-intrinsic'); var SLOT = require('internal-slot'); var entries = require('object.entries'); var forEach = require('for-each'); -var CreateMethodProperty = require('es-abstract/2022/CreateMethodProperty'); -var OrdinaryObjectCreate = require('es-abstract/2022/OrdinaryObjectCreate'); -var Type = require('es-abstract/2022/Type'); +var CreateMethodProperty = require('es-abstract/2023/CreateMethodProperty'); +var OrdinaryObjectCreate = require('es-abstract/2023/OrdinaryObjectCreate'); +var Type = require('es-abstract/2023/Type'); var $ObjectCreate = GetIntrinsic('%Object.create%', true); diff --git a/lib/map-helpers.js b/lib/map-helpers.js index e8e02ae..7e078f8 100644 --- a/lib/map-helpers.js +++ b/lib/map-helpers.js @@ -1,12 +1,12 @@ 'use strict'; -var Call = require('es-abstract/2022/Call'); -var IsArray = require('es-abstract/2022/IsArray'); -var IsCallable = require('es-abstract/2022/IsCallable'); -var IteratorClose = require('es-abstract/2022/IteratorClose'); -var IteratorStep = require('es-abstract/2022/IteratorStep'); -var ToString = require('es-abstract/2022/ToString'); -var Type = require('es-abstract/2022/Type'); +var Call = require('es-abstract/2023/Call'); +var IsArray = require('es-abstract/2023/IsArray'); +var IsCallable = require('es-abstract/2023/IsCallable'); +var IteratorClose = require('es-abstract/2023/IteratorClose'); +var IteratorStep = require('es-abstract/2023/IteratorStep'); +var ToString = require('es-abstract/2023/ToString'); +var Type = require('es-abstract/2023/Type'); var GetIterator = require('es-get-iterator'); var MapIterator = require('./map-iterator'); @@ -38,7 +38,7 @@ var forEach = function forEach(map, fn, context) { exports.forEach = forEach; exports.addIterableToMap = function addIterableToMap(map, iterable) { - if (IsArray(iterable) || Type(iterable) === 'String') { + if (IsArray(iterable) || typeof iterable === 'string') { for (var i = 0; i < iterable.length; i++) { var entry = iterable[i]; if (Type(entry) !== 'Object') { diff --git a/lib/map-iterator.js b/lib/map-iterator.js index 3d9ebda..31e1117 100644 --- a/lib/map-iterator.js +++ b/lib/map-iterator.js @@ -4,9 +4,9 @@ var SLOT = require('internal-slot'); var setToStringTag = require('es-set-tostringtag'); var GetIntrinsic = require('get-intrinsic'); -var CreateIterResultObject = require('es-abstract/2022/CreateIterResultObject'); -var CreateMethodProperty = require('es-abstract/2022/CreateMethodProperty'); -var OrdinaryObjectCreate = require('es-abstract/2022/OrdinaryObjectCreate'); +var CreateIterResultObject = require('es-abstract/2023/CreateIterResultObject'); +var CreateMethodProperty = require('es-abstract/2023/CreateMethodProperty'); +var OrdinaryObjectCreate = require('es-abstract/2023/OrdinaryObjectCreate'); var requireMapSlot = require('./validation').requireMapSlot; var addIterator = require('./helpers').addIterator; diff --git a/lib/validation.js b/lib/validation.js index dec8952..ba9955a 100644 --- a/lib/validation.js +++ b/lib/validation.js @@ -1,8 +1,8 @@ 'use strict'; var SLOT = require('internal-slot'); -var ToString = require('es-abstract/2022/ToString'); -var Type = require('es-abstract/2022/Type'); +var ToString = require('es-abstract/2023/ToString'); +var Type = require('es-abstract/2023/Type'); var isMap = function isMap(map) { return SLOT.has(map, '[[es6map]]'); diff --git a/package.json b/package.json index f7f0742..887f280 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", - "es-abstract": "^1.21.2", + "es-abstract": "^1.22.1", "es-get-iterator": "^1.1.3", "es-set-tostringtag": "^2.0.1", "for-each": "^0.3.3", @@ -80,7 +80,7 @@ "globalthis": "^1.0.3", "has-symbols": "^1.0.3", "internal-slot": "^1.0.5", - "object.entries": "^1.1.6" + "object.entries": "^1.1.7" }, "auto-changelog": { "output": "CHANGELOG.md", diff --git a/shim.js b/shim.js index 4be7a21..a38de26 100644 --- a/shim.js +++ b/shim.js @@ -7,8 +7,8 @@ var getPolyfill = require('./polyfill'); var support = require('./lib/support'); var addIterableToMap = require('./lib/map-helpers').addIterableToMap; -var OrdinarySetPrototypeOf = require('es-abstract/2022/OrdinarySetPrototypeOf'); -var Call = require('es-abstract/2022/Call'); +var OrdinarySetPrototypeOf = require('es-abstract/2023/OrdinarySetPrototypeOf'); +var Call = require('es-abstract/2023/Call'); var force = function () { return true; diff --git a/test/tests.js b/test/tests.js index c6f7c89..bb3b21c 100644 --- a/test/tests.js +++ b/test/tests.js @@ -1,6 +1,6 @@ 'use strict'; -var HasOwnProperty = require('es-abstract/2022/HasOwnProperty'); +var HasOwnProperty = require('es-abstract/2023/HasOwnProperty'); var isEnumerable = Object.prototype.propertyIsEnumerable; var functionsHaveNames = require('functions-have-names')(); var define = require('define-properties');