From 6aabf41436b0d911c56c8607be1af1d3e0a2aecb Mon Sep 17 00:00:00 2001 From: Pierluigi Viti Date: Fri, 24 Jan 2025 11:51:01 +0100 Subject: [PATCH] fix: fix deprecated packages --- gen/templates/spec.tpl | 6 +- package.json | 3 +- pnpm-lock.yaml | 301 +++++++++--------- specs/jsonapi.spec.ts | 6 +- specs/resources/addresses.spec.ts | 6 +- specs/resources/adjustments.spec.ts | 6 +- specs/resources/adyen_gateways.spec.ts | 6 +- specs/resources/adyen_payments.spec.ts | 6 +- specs/resources/applications.spec.ts | 6 +- specs/resources/attachments.spec.ts | 6 +- specs/resources/authorizations.spec.ts | 6 +- specs/resources/avalara_accounts.spec.ts | 6 +- specs/resources/axerve_gateways.spec.ts | 6 +- specs/resources/axerve_payments.spec.ts | 6 +- specs/resources/bing_geocoders.spec.ts | 6 +- specs/resources/braintree_gateways.spec.ts | 6 +- specs/resources/braintree_payments.spec.ts | 6 +- specs/resources/bundles.spec.ts | 6 +- .../resources/buy_x_pay_y_promotions.spec.ts | 6 +- specs/resources/captures.spec.ts | 6 +- specs/resources/carrier_accounts.spec.ts | 6 +- specs/resources/checkout_com_gateways.spec.ts | 6 +- specs/resources/checkout_com_payments.spec.ts | 6 +- specs/resources/cleanups.spec.ts | 6 +- .../coupon_codes_promotion_rules.spec.ts | 6 +- specs/resources/coupon_recipients.spec.ts | 6 +- specs/resources/coupons.spec.ts | 6 +- .../resources/custom_promotion_rules.spec.ts | 6 +- specs/resources/customer_addresses.spec.ts | 6 +- specs/resources/customer_groups.spec.ts | 6 +- .../customer_password_resets.spec.ts | 6 +- .../customer_payment_sources.spec.ts | 6 +- .../resources/customer_subscriptions.spec.ts | 6 +- specs/resources/customers.spec.ts | 6 +- specs/resources/delivery_lead_times.spec.ts | 6 +- specs/resources/discount_engine_items.spec.ts | 6 +- specs/resources/discount_engines.spec.ts | 6 +- specs/resources/event_callbacks.spec.ts | 6 +- specs/resources/events.spec.ts | 6 +- specs/resources/exports.spec.ts | 6 +- specs/resources/external_gateways.spec.ts | 6 +- specs/resources/external_payments.spec.ts | 6 +- specs/resources/external_promotions.spec.ts | 6 +- .../external_tax_calculators.spec.ts | 6 +- .../resources/fixed_amount_promotions.spec.ts | 6 +- .../resources/fixed_price_promotions.spec.ts | 6 +- specs/resources/flex_promotions.spec.ts | 6 +- specs/resources/free_gift_promotions.spec.ts | 6 +- .../free_shipping_promotions.spec.ts | 6 +- specs/resources/geocoders.spec.ts | 6 +- specs/resources/gift_card_recipients.spec.ts | 6 +- specs/resources/gift_cards.spec.ts | 6 +- specs/resources/google_geocoders.spec.ts | 6 +- specs/resources/imports.spec.ts | 6 +- .../resources/in_stock_subscriptions.spec.ts | 6 +- specs/resources/inventory_models.spec.ts | 6 +- .../inventory_return_locations.spec.ts | 6 +- .../inventory_stock_locations.spec.ts | 6 +- specs/resources/klarna_gateways.spec.ts | 6 +- specs/resources/klarna_payments.spec.ts | 6 +- specs/resources/line_item_options.spec.ts | 6 +- specs/resources/line_items.spec.ts | 6 +- specs/resources/links.spec.ts | 6 +- specs/resources/manual_gateways.spec.ts | 6 +- .../resources/manual_tax_calculators.spec.ts | 6 +- specs/resources/markets.spec.ts | 6 +- specs/resources/merchants.spec.ts | 6 +- specs/resources/notifications.spec.ts | 6 +- .../order_amount_promotion_rules.spec.ts | 6 +- specs/resources/order_copies.spec.ts | 6 +- specs/resources/order_factories.spec.ts | 6 +- .../order_subscription_items.spec.ts | 6 +- specs/resources/order_subscriptions.spec.ts | 6 +- specs/resources/orders.spec.ts | 6 +- specs/resources/organizations.spec.ts | 6 +- specs/resources/packages.spec.ts | 6 +- specs/resources/parcel_line_items.spec.ts | 6 +- specs/resources/parcels.spec.ts | 6 +- specs/resources/payment_gateways.spec.ts | 6 +- specs/resources/payment_methods.spec.ts | 6 +- specs/resources/payment_options.spec.ts | 6 +- specs/resources/paypal_gateways.spec.ts | 6 +- specs/resources/paypal_payments.spec.ts | 6 +- .../percentage_discount_promotions.spec.ts | 6 +- specs/resources/price_frequency_tiers.spec.ts | 6 +- specs/resources/price_list_schedulers.spec.ts | 6 +- specs/resources/price_lists.spec.ts | 6 +- specs/resources/price_tiers.spec.ts | 6 +- specs/resources/price_volume_tiers.spec.ts | 6 +- specs/resources/prices.spec.ts | 6 +- specs/resources/promotion_rules.spec.ts | 6 +- specs/resources/promotions.spec.ts | 6 +- .../resources/recurring_order_copies.spec.ts | 6 +- specs/resources/refunds.spec.ts | 6 +- specs/resources/reserved_stocks.spec.ts | 6 +- specs/resources/resource_errors.spec.ts | 6 +- specs/resources/return_line_items.spec.ts | 6 +- specs/resources/returns.spec.ts | 6 +- specs/resources/satispay_gateways.spec.ts | 6 +- specs/resources/satispay_payments.spec.ts | 6 +- specs/resources/shipments.spec.ts | 6 +- specs/resources/shipping_categories.spec.ts | 6 +- specs/resources/shipping_method_tiers.spec.ts | 6 +- specs/resources/shipping_methods.spec.ts | 6 +- specs/resources/shipping_weight_tiers.spec.ts | 6 +- specs/resources/shipping_zones.spec.ts | 6 +- specs/resources/sku_list_items.spec.ts | 6 +- .../sku_list_promotion_rules.spec.ts | 6 +- specs/resources/sku_lists.spec.ts | 6 +- specs/resources/sku_options.spec.ts | 6 +- specs/resources/skus.spec.ts | 6 +- specs/resources/stock_items.spec.ts | 6 +- specs/resources/stock_line_items.spec.ts | 6 +- specs/resources/stock_locations.spec.ts | 6 +- specs/resources/stock_reservations.spec.ts | 6 +- specs/resources/stock_transfers.spec.ts | 6 +- specs/resources/stores.spec.ts | 6 +- specs/resources/stripe_gateways.spec.ts | 6 +- specs/resources/stripe_payments.spec.ts | 6 +- specs/resources/subscription_models.spec.ts | 6 +- specs/resources/tags.spec.ts | 6 +- specs/resources/talon_one_accounts.spec.ts | 6 +- specs/resources/tax_calculators.spec.ts | 6 +- specs/resources/tax_categories.spec.ts | 6 +- specs/resources/tax_rules.spec.ts | 6 +- specs/resources/taxjar_accounts.spec.ts | 6 +- specs/resources/transactions.spec.ts | 6 +- specs/resources/versions.spec.ts | 6 +- specs/resources/voids.spec.ts | 6 +- specs/resources/webhooks.spec.ts | 6 +- specs/resources/wire_transfers.spec.ts | 6 +- test/common.ts | 5 +- 132 files changed, 540 insertions(+), 543 deletions(-) diff --git a/gen/templates/spec.tpl b/gen/templates/spec.tpl index ba301b5b..9f71e505 100644 --- a/gen/templates/spec.tpl +++ b/gen/templates/spec.tpl @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ##__RESOURCE_MODEL__## } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -170,10 +170,10 @@ describe('##__RESOURCE_CLASS__## resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/package.json b/package.json index f1fc595a..83a0d113 100644 --- a/package.json +++ b/package.json @@ -40,13 +40,12 @@ "@semantic-release/git": "^10.0.1", "@types/debug": "^4.1.12", "@types/jest": "^29.5.14", - "@types/node": "^22.10.7", + "@types/node": "^22.10.10", "dotenv": "^16.4.7", "eslint": "^8.57.1", "jest": "^29.7.0", "json-typescript": "^1.1.2", "jsonapi-typescript": "^0.1.3", - "lodash.isequal": "^4.5.0", "semantic-release": "^24.2.1", "tsup": "^8.3.5", "tsx": "^4.19.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 75ac429d..f8353e90 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,8 +36,8 @@ importers: specifier: ^29.5.14 version: 29.5.14 '@types/node': - specifier: ^22.10.7 - version: 22.10.7 + specifier: ^22.10.10 + version: 22.10.10 dotenv: specifier: ^16.4.7 version: 16.4.7 @@ -46,16 +46,13 @@ importers: version: 8.57.1 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@22.10.7) + version: 29.7.0(@types/node@22.10.10) json-typescript: specifier: ^1.1.2 version: 1.1.2 jsonapi-typescript: specifier: ^0.1.3 version: 0.1.3 - lodash.isequal: - specifier: ^4.5.0 - version: 4.5.0 semantic-release: specifier: ^24.2.1 version: 24.2.1(typescript@5.7.3) @@ -1175,98 +1172,98 @@ packages: resolution: {integrity: sha512-c83qWb22rNRuB0UaVCI0uRPNRr8Z0FWnEIvT47jiHAmOIUHbBOg5XvV7pM5x+rKn9HRpjxquDbXYSXr3fAKFcw==} engines: {node: '>=12'} - '@rollup/rollup-android-arm-eabi@4.30.1': - resolution: {integrity: sha512-pSWY+EVt3rJ9fQ3IqlrEUtXh3cGqGtPDH1FQlNZehO2yYxCHEX1SPsz1M//NXwYfbTlcKr9WObLnJX9FsS9K1Q==} + '@rollup/rollup-android-arm-eabi@4.32.0': + resolution: {integrity: sha512-G2fUQQANtBPsNwiVFg4zKiPQyjVKZCUdQUol53R8E71J7AsheRMV/Yv/nB8giOcOVqP7//eB5xPqieBYZe9bGg==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.30.1': - resolution: {integrity: sha512-/NA2qXxE3D/BRjOJM8wQblmArQq1YoBVJjrjoTSBS09jgUisq7bqxNHJ8kjCHeV21W/9WDGwJEWSN0KQ2mtD/w==} + '@rollup/rollup-android-arm64@4.32.0': + resolution: {integrity: sha512-qhFwQ+ljoymC+j5lXRv8DlaJYY/+8vyvYmVx074zrLsu5ZGWYsJNLjPPVJJjhZQpyAKUGPydOq9hRLLNvh1s3A==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.30.1': - resolution: {integrity: sha512-r7FQIXD7gB0WJ5mokTUgUWPl0eYIH0wnxqeSAhuIwvnnpjdVB8cRRClyKLQr7lgzjctkbp5KmswWszlwYln03Q==} + '@rollup/rollup-darwin-arm64@4.32.0': + resolution: {integrity: sha512-44n/X3lAlWsEY6vF8CzgCx+LQaoqWGN7TzUfbJDiTIOjJm4+L2Yq+r5a8ytQRGyPqgJDs3Rgyo8eVL7n9iW6AQ==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.30.1': - resolution: {integrity: sha512-x78BavIwSH6sqfP2xeI1hd1GpHL8J4W2BXcVM/5KYKoAD3nNsfitQhvWSw+TFtQTLZ9OmlF+FEInEHyubut2OA==} + '@rollup/rollup-darwin-x64@4.32.0': + resolution: {integrity: sha512-F9ct0+ZX5Np6+ZDztxiGCIvlCaW87HBdHcozUfsHnj1WCUTBUubAoanhHUfnUHZABlElyRikI0mgcw/qdEm2VQ==} cpu: [x64] os: [darwin] - '@rollup/rollup-freebsd-arm64@4.30.1': - resolution: {integrity: sha512-HYTlUAjbO1z8ywxsDFWADfTRfTIIy/oUlfIDmlHYmjUP2QRDTzBuWXc9O4CXM+bo9qfiCclmHk1x4ogBjOUpUQ==} + '@rollup/rollup-freebsd-arm64@4.32.0': + resolution: {integrity: sha512-JpsGxLBB2EFXBsTLHfkZDsXSpSmKD3VxXCgBQtlPcuAqB8TlqtLcbeMhxXQkCDv1avgwNjF8uEIbq5p+Cee0PA==} cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.30.1': - resolution: {integrity: sha512-1MEdGqogQLccphhX5myCJqeGNYTNcmTyaic9S7CG3JhwuIByJ7J05vGbZxsizQthP1xpVx7kd3o31eOogfEirw==} + '@rollup/rollup-freebsd-x64@4.32.0': + resolution: {integrity: sha512-wegiyBT6rawdpvnD9lmbOpx5Sph+yVZKHbhnSP9MqUEDX08G4UzMU+D87jrazGE7lRSyTRs6NEYHtzfkJ3FjjQ==} cpu: [x64] os: [freebsd] - '@rollup/rollup-linux-arm-gnueabihf@4.30.1': - resolution: {integrity: sha512-PaMRNBSqCx7K3Wc9QZkFx5+CX27WFpAMxJNiYGAXfmMIKC7jstlr32UhTgK6T07OtqR+wYlWm9IxzennjnvdJg==} + '@rollup/rollup-linux-arm-gnueabihf@4.32.0': + resolution: {integrity: sha512-3pA7xecItbgOs1A5H58dDvOUEboG5UfpTq3WzAdF54acBbUM+olDJAPkgj1GRJ4ZqE12DZ9/hNS2QZk166v92A==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.30.1': - resolution: {integrity: sha512-B8Rcyj9AV7ZlEFqvB5BubG5iO6ANDsRKlhIxySXcF1axXYUyqwBok+XZPgIYGBgs7LDXfWfifxhw0Ik57T0Yug==} + '@rollup/rollup-linux-arm-musleabihf@4.32.0': + resolution: {integrity: sha512-Y7XUZEVISGyge51QbYyYAEHwpGgmRrAxQXO3siyYo2kmaj72USSG8LtlQQgAtlGfxYiOwu+2BdbPjzEpcOpRmQ==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.30.1': - resolution: {integrity: sha512-hqVyueGxAj3cBKrAI4aFHLV+h0Lv5VgWZs9CUGqr1z0fZtlADVV1YPOij6AhcK5An33EXaxnDLmJdQikcn5NEw==} + '@rollup/rollup-linux-arm64-gnu@4.32.0': + resolution: {integrity: sha512-r7/OTF5MqeBrZo5omPXcTnjvv1GsrdH8a8RerARvDFiDwFpDVDnJyByYM/nX+mvks8XXsgPUxkwe/ltaX2VH7w==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.30.1': - resolution: {integrity: sha512-i4Ab2vnvS1AE1PyOIGp2kXni69gU2DAUVt6FSXeIqUCPIR3ZlheMW3oP2JkukDfu3PsexYRbOiJrY+yVNSk9oA==} + '@rollup/rollup-linux-arm64-musl@4.32.0': + resolution: {integrity: sha512-HJbifC9vex9NqnlodV2BHVFNuzKL5OnsV2dvTw6e1dpZKkNjPG6WUq+nhEYV6Hv2Bv++BXkwcyoGlXnPrjAKXw==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-loongarch64-gnu@4.30.1': - resolution: {integrity: sha512-fARcF5g296snX0oLGkVxPmysetwUk2zmHcca+e9ObOovBR++9ZPOhqFUM61UUZ2EYpXVPN1redgqVoBB34nTpQ==} + '@rollup/rollup-linux-loongarch64-gnu@4.32.0': + resolution: {integrity: sha512-VAEzZTD63YglFlWwRj3taofmkV1V3xhebDXffon7msNz4b14xKsz7utO6F8F4cqt8K/ktTl9rm88yryvDpsfOw==} cpu: [loong64] os: [linux] - '@rollup/rollup-linux-powerpc64le-gnu@4.30.1': - resolution: {integrity: sha512-GLrZraoO3wVT4uFXh67ElpwQY0DIygxdv0BNW9Hkm3X34wu+BkqrDrkcsIapAY+N2ATEbvak0XQ9gxZtCIA5Rw==} + '@rollup/rollup-linux-powerpc64le-gnu@4.32.0': + resolution: {integrity: sha512-Sts5DST1jXAc9YH/iik1C9QRsLcCoOScf3dfbY5i4kH9RJpKxiTBXqm7qU5O6zTXBTEZry69bGszr3SMgYmMcQ==} cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.30.1': - resolution: {integrity: sha512-0WKLaAUUHKBtll0wvOmh6yh3S0wSU9+yas923JIChfxOaaBarmb/lBKPF0w/+jTVozFnOXJeRGZ8NvOxvk/jcw==} + '@rollup/rollup-linux-riscv64-gnu@4.32.0': + resolution: {integrity: sha512-qhlXeV9AqxIyY9/R1h1hBD6eMvQCO34ZmdYvry/K+/MBs6d1nRFLm6BOiITLVI+nFAAB9kUB6sdJRKyVHXnqZw==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.30.1': - resolution: {integrity: sha512-GWFs97Ruxo5Bt+cvVTQkOJ6TIx0xJDD/bMAOXWJg8TCSTEK8RnFeOeiFTxKniTc4vMIaWvCplMAFBt9miGxgkA==} + '@rollup/rollup-linux-s390x-gnu@4.32.0': + resolution: {integrity: sha512-8ZGN7ExnV0qjXa155Rsfi6H8M4iBBwNLBM9lcVS+4NcSzOFaNqmt7djlox8pN1lWrRPMRRQ8NeDlozIGx3Omsw==} cpu: [s390x] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.30.1': - resolution: {integrity: sha512-UtgGb7QGgXDIO+tqqJ5oZRGHsDLO8SlpE4MhqpY9Llpzi5rJMvrK6ZGhsRCST2abZdBqIBeXW6WPD5fGK5SDwg==} + '@rollup/rollup-linux-x64-gnu@4.32.0': + resolution: {integrity: sha512-VDzNHtLLI5s7xd/VubyS10mq6TxvZBp+4NRWoW+Hi3tgV05RtVm4qK99+dClwTN1McA6PHwob6DEJ6PlXbY83A==} cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.30.1': - resolution: {integrity: sha512-V9U8Ey2UqmQsBT+xTOeMzPzwDzyXmnAoO4edZhL7INkwQcaW1Ckv3WJX3qrrp/VHaDkEWIBWhRwP47r8cdrOow==} + '@rollup/rollup-linux-x64-musl@4.32.0': + resolution: {integrity: sha512-qcb9qYDlkxz9DxJo7SDhWxTWV1gFuwznjbTiov289pASxlfGbaOD54mgbs9+z94VwrXtKTu+2RqwlSTbiOqxGg==} cpu: [x64] os: [linux] - '@rollup/rollup-win32-arm64-msvc@4.30.1': - resolution: {integrity: sha512-WabtHWiPaFF47W3PkHnjbmWawnX/aE57K47ZDT1BXTS5GgrBUEpvOzq0FI0V/UYzQJgdb8XlhVNH8/fwV8xDjw==} + '@rollup/rollup-win32-arm64-msvc@4.32.0': + resolution: {integrity: sha512-pFDdotFDMXW2AXVbfdUEfidPAk/OtwE/Hd4eYMTNVVaCQ6Yl8et0meDaKNL63L44Haxv4UExpv9ydSf3aSayDg==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.30.1': - resolution: {integrity: sha512-pxHAU+Zv39hLUTdQQHUVHf4P+0C47y/ZloorHpzs2SXMRqeAWmGghzAhfOlzFHHwjvgokdFAhC4V+6kC1lRRfw==} + '@rollup/rollup-win32-ia32-msvc@4.32.0': + resolution: {integrity: sha512-/TG7WfrCAjeRNDvI4+0AAMoHxea/USWhAzf9PVDFHbcqrQ7hMMKp4jZIy4VEjk72AAfN5k4TiSMRXRKf/0akSw==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.30.1': - resolution: {integrity: sha512-D6qjsXGcvhTjv0kI4fU8tUuBDF/Ueee4SVX79VfNDXZa64TfCW1Slkb6Z7O1p7vflqZjcmOVdZlqf8gvJxc6og==} + '@rollup/rollup-win32-x64-msvc@4.32.0': + resolution: {integrity: sha512-5hqO5S3PTEO2E5VjCePxv40gIgyS2KvO7E7/vvC/NbIW4SIRamkMr1hqj+5Y67fbBWv/bQLB6KelBQmXlyCjWA==} cpu: [x64] os: [win32] @@ -1380,8 +1377,8 @@ packages: '@types/ms@2.1.0': resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} - '@types/node@22.10.7': - resolution: {integrity: sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg==} + '@types/node@22.10.10': + resolution: {integrity: sha512-X47y/mPNzxviAGY5TcYPtYL8JsY3kAq2n8fMmKoRCxq/c4v4pyGNCzM2R6+M5/umG4ZfHuT+sgqDYqWc9rJ6ww==} '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -1487,8 +1484,8 @@ packages: resolution: {integrity: sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==} engines: {node: ^18.18.0 || >=20.0.0} - '@ungap/structured-clone@1.2.1': - resolution: {integrity: sha512-fEzPV3hSkSMltkw152tJKNARhOupqbH96MZWyRjNaYZOMIzbrTeQDG+MTc6Mr2pgzFQzFxAfmhGDNP5QK++2ZA==} + '@ungap/structured-clone@1.3.0': + resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==} acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} @@ -1590,6 +1587,10 @@ packages: resolution: {integrity: sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==} engines: {node: '>= 0.4'} + async-function@1.0.0: + resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==} + engines: {node: '>= 0.4'} + available-typed-arrays@1.0.7: resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} engines: {node: '>= 0.4'} @@ -1705,8 +1706,8 @@ packages: resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} engines: {node: '>=10'} - caniuse-lite@1.0.30001692: - resolution: {integrity: sha512-A95VKan0kdtrsnMubMKxEKUKImOPSuCpYgxSQBo036P5YYgVIcOYJEgt/txJWqObiRQeISNCfef9nvlQ0vbV7A==} + caniuse-lite@1.0.30001695: + resolution: {integrity: sha512-vHyLade6wTgI2u1ec3WQBxv+2BrTERV28UXQu9LO6lZ9pYeMk34vjXFLOxo1A4UBA8XTL4njRQZdno/yYaSmWw==} chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} @@ -1943,8 +1944,8 @@ packages: eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - electron-to-chromium@1.5.83: - resolution: {integrity: sha512-LcUDPqSt+V0QmI47XLzZrz5OqILSMGsPFkDYus22rIbgorSvBYEFqq854ltTmUdHkY92FSdAAvsh4jWEULMdfQ==} + electron-to-chromium@1.5.87: + resolution: {integrity: sha512-mPFwmEWmRivw2F8x3w3l2m6htAUN97Gy0kwpO++2m9iT1Gt8RCFVUfv9U/sIbHJ6rY4P6/ooqFL/eL7ock+pPg==} emittery@0.13.1: resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} @@ -2108,8 +2109,8 @@ packages: peerDependencies: eslint: '>=7.0.0' - eslint-plugin-prettier@5.2.2: - resolution: {integrity: sha512-1yI3/hf35wmlq66C8yOyrujQnel+v5l1Vop5Cl2I6ylyNTT1JbuUUnV3/41PzwTzcyDp/oF0jWE3HXvcH5AQOQ==} + eslint-plugin-prettier@5.2.3: + resolution: {integrity: sha512-qJ+y0FfCp/mQYQ/vWQ3s7eUlFEL4PyKfAJxsnYTJ4YT73nsJBWqmEpFryxV9OeUiqmsTsYJ5Y+KDNaeP31wrRw==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: '@types/eslint': '>=8.0.0' @@ -2339,8 +2340,8 @@ packages: resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==} engines: {node: '>= 0.4'} - get-tsconfig@4.8.1: - resolution: {integrity: sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==} + get-tsconfig@4.10.0: + resolution: {integrity: sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==} git-log-parser@1.2.1: resolution: {integrity: sha512-PI+sPDvHXNPl5WNOErAK05s3j0lgwUzMN6o8cyQrDaKfT3qd7TmNJKeXX+SknI5I0QhG5fVPAEwSY4tRGDtYoQ==} @@ -2529,8 +2530,8 @@ packages: is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} - is-async-function@2.1.0: - resolution: {integrity: sha512-GExz9MtyhlZyXYLxzlJRj5WUCE661zhDa1Yna52CN57AJsymh+DvXXjyveSioqSRdxvUrdKdvqB1b5cVKsNpWQ==} + is-async-function@2.1.1: + resolution: {integrity: sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==} engines: {node: '>= 0.4'} is-bigint@1.1.0: @@ -2946,9 +2947,6 @@ packages: lodash.escaperegexp@4.1.2: resolution: {integrity: sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==} - lodash.isequal@4.5.0: - resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} - lodash.isplainobject@4.0.6: resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==} @@ -3519,8 +3517,8 @@ packages: deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true - rollup@4.30.1: - resolution: {integrity: sha512-mlJ4glW020fPuLi7DkM/lN97mYEZGWeqBnrljzN0gs7GLctqX3lNWxKQ7Gl712UAX+6fog/L3jh4gb7R6aVi3w==} + rollup@4.32.0: + resolution: {integrity: sha512-JmrhfQR31Q4AuNBjjAX4s+a/Pu/Q8Q9iwjWBsjRH1q52SPFE2NqRMK6fUZKKnvKO6id+h7JIRf0oYsph53eATg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -3878,8 +3876,8 @@ packages: resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==} engines: {node: '>=12.20'} - type-fest@4.32.0: - resolution: {integrity: sha512-rfgpoi08xagF3JSdtJlCwMq9DGNDE0IMh3Mkpc1wUypg9vPi786AiqeBBKcqvIkq42azsBM85N490fyZjeUftw==} + type-fest@4.33.0: + resolution: {integrity: sha512-s6zVrxuyKbbAsSAD5ZPTB77q4YIdRctkTbJ2/Dqlinwz+8ooH2gd+YA7VA6Pa93KML9GockVvoxjZ2vHP+mu8g==} engines: {node: '>=16'} typed-array-buffer@1.0.3: @@ -4831,7 +4829,7 @@ snapshots: eslint-config-prettier: 9.1.0(eslint@8.57.1) eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.3))(eslint@8.57.1) eslint-plugin-n: 16.6.2(eslint@8.57.1) - eslint-plugin-prettier: 5.2.2(eslint-config-prettier@9.1.0(eslint@8.57.1))(eslint@8.57.1)(prettier@3.4.2) + eslint-plugin-prettier: 5.2.3(eslint-config-prettier@9.1.0(eslint@8.57.1))(eslint@8.57.1)(prettier@3.4.2) eslint-plugin-promise: 6.6.0(eslint@8.57.1) prettier: 3.4.2 typescript: 5.7.3 @@ -5047,7 +5045,7 @@ snapshots: '@jest/console@29.7.0': dependencies: '@jest/types': 29.6.3 - '@types/node': 22.10.7 + '@types/node': 22.10.10 chalk: 4.1.2 jest-message-util: 29.7.0 jest-util: 29.7.0 @@ -5060,14 +5058,14 @@ snapshots: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 22.10.7 + '@types/node': 22.10.10 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.9.0 exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@22.10.7) + jest-config: 29.7.0(@types/node@22.10.10) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -5092,7 +5090,7 @@ snapshots: dependencies: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 22.10.7 + '@types/node': 22.10.10 jest-mock: 29.7.0 '@jest/expect-utils@29.7.0': @@ -5110,7 +5108,7 @@ snapshots: dependencies: '@jest/types': 29.6.3 '@sinonjs/fake-timers': 10.3.0 - '@types/node': 22.10.7 + '@types/node': 22.10.10 jest-message-util: 29.7.0 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -5132,7 +5130,7 @@ snapshots: '@jest/transform': 29.7.0 '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.25 - '@types/node': 22.10.7 + '@types/node': 22.10.10 chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit: 0.1.2 @@ -5202,7 +5200,7 @@ snapshots: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 22.10.7 + '@types/node': 22.10.10 '@types/yargs': 17.0.33 chalk: 4.1.2 @@ -5311,61 +5309,61 @@ snapshots: '@pnpm/network.ca-file': 1.0.2 config-chain: 1.1.13 - '@rollup/rollup-android-arm-eabi@4.30.1': + '@rollup/rollup-android-arm-eabi@4.32.0': optional: true - '@rollup/rollup-android-arm64@4.30.1': + '@rollup/rollup-android-arm64@4.32.0': optional: true - '@rollup/rollup-darwin-arm64@4.30.1': + '@rollup/rollup-darwin-arm64@4.32.0': optional: true - '@rollup/rollup-darwin-x64@4.30.1': + '@rollup/rollup-darwin-x64@4.32.0': optional: true - '@rollup/rollup-freebsd-arm64@4.30.1': + '@rollup/rollup-freebsd-arm64@4.32.0': optional: true - '@rollup/rollup-freebsd-x64@4.30.1': + '@rollup/rollup-freebsd-x64@4.32.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.30.1': + '@rollup/rollup-linux-arm-gnueabihf@4.32.0': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.30.1': + '@rollup/rollup-linux-arm-musleabihf@4.32.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.30.1': + '@rollup/rollup-linux-arm64-gnu@4.32.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.30.1': + '@rollup/rollup-linux-arm64-musl@4.32.0': optional: true - '@rollup/rollup-linux-loongarch64-gnu@4.30.1': + '@rollup/rollup-linux-loongarch64-gnu@4.32.0': optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.30.1': + '@rollup/rollup-linux-powerpc64le-gnu@4.32.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.30.1': + '@rollup/rollup-linux-riscv64-gnu@4.32.0': optional: true - '@rollup/rollup-linux-s390x-gnu@4.30.1': + '@rollup/rollup-linux-s390x-gnu@4.32.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.30.1': + '@rollup/rollup-linux-x64-gnu@4.32.0': optional: true - '@rollup/rollup-linux-x64-musl@4.30.1': + '@rollup/rollup-linux-x64-musl@4.32.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.30.1': + '@rollup/rollup-win32-arm64-msvc@4.32.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.30.1': + '@rollup/rollup-win32-ia32-msvc@4.32.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.30.1': + '@rollup/rollup-win32-x64-msvc@4.32.0': optional: true '@rtsao/scc@1.1.0': {} @@ -5512,7 +5510,7 @@ snapshots: '@types/graceful-fs@4.1.9': dependencies: - '@types/node': 22.10.7 + '@types/node': 22.10.10 '@types/istanbul-lib-coverage@2.0.6': {} @@ -5533,7 +5531,7 @@ snapshots: '@types/ms@2.1.0': {} - '@types/node@22.10.7': + '@types/node@22.10.10': dependencies: undici-types: 6.20.0 @@ -5670,7 +5668,7 @@ snapshots: '@typescript-eslint/types': 7.18.0 eslint-visitor-keys: 3.4.3 - '@ungap/structured-clone@1.2.1': {} + '@ungap/structured-clone@1.3.0': {} acorn-jsx@5.3.2(acorn@8.14.0): dependencies: @@ -5785,6 +5783,8 @@ snapshots: get-intrinsic: 1.2.7 is-array-buffer: 3.0.5 + async-function@1.0.0: {} + available-typed-arrays@1.0.7: dependencies: possible-typed-array-names: 1.0.0 @@ -5889,8 +5889,8 @@ snapshots: browserslist@4.24.4: dependencies: - caniuse-lite: 1.0.30001692 - electron-to-chromium: 1.5.83 + caniuse-lite: 1.0.30001695 + electron-to-chromium: 1.5.87 node-releases: 2.0.19 update-browserslist-db: 1.1.2(browserslist@4.24.4) @@ -5936,7 +5936,7 @@ snapshots: camelcase@6.3.0: {} - caniuse-lite@1.0.30001692: {} + caniuse-lite@1.0.30001695: {} chalk@2.4.2: dependencies: @@ -6063,13 +6063,13 @@ snapshots: optionalDependencies: typescript: 5.7.3 - create-jest@29.7.0(@types/node@22.10.7): + create-jest@29.7.0(@types/node@22.10.10): dependencies: '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@22.10.7) + jest-config: 29.7.0(@types/node@22.10.10) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -6168,7 +6168,7 @@ snapshots: eastasianwidth@0.2.0: {} - electron-to-chromium@1.5.83: {} + electron-to-chromium@1.5.87: {} emittery@0.13.1: {} @@ -6424,7 +6424,7 @@ snapshots: builtins: 5.1.0 eslint: 8.57.1 eslint-plugin-es-x: 7.8.0(eslint@8.57.1) - get-tsconfig: 4.8.1 + get-tsconfig: 4.10.0 globals: 13.24.0 ignore: 5.3.2 is-builtin-module: 3.2.1 @@ -6433,7 +6433,7 @@ snapshots: resolve: 1.22.10 semver: 7.6.3 - eslint-plugin-prettier@5.2.2(eslint-config-prettier@9.1.0(eslint@8.57.1))(eslint@8.57.1)(prettier@3.4.2): + eslint-plugin-prettier@5.2.3(eslint-config-prettier@9.1.0(eslint@8.57.1))(eslint@8.57.1)(prettier@3.4.2): dependencies: eslint: 8.57.1 prettier: 3.4.2 @@ -6462,7 +6462,7 @@ snapshots: '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 - '@ungap/structured-clone': 1.2.1 + '@ungap/structured-clone': 1.3.0 ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.6 @@ -6721,7 +6721,7 @@ snapshots: es-errors: 1.3.0 get-intrinsic: 1.2.7 - get-tsconfig@4.8.1: + get-tsconfig@4.10.0: dependencies: resolve-pkg-maps: 1.0.0 @@ -6921,8 +6921,9 @@ snapshots: is-arrayish@0.2.1: {} - is-async-function@2.1.0: + is-async-function@2.1.1: dependencies: + async-function: 1.0.0 call-bound: 1.0.3 get-proto: 1.0.1 has-tostringtag: 1.0.2 @@ -7116,7 +7117,7 @@ snapshots: '@jest/expect': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 22.10.7 + '@types/node': 22.10.10 chalk: 4.1.2 co: 4.6.0 dedent: 1.5.3 @@ -7136,16 +7137,16 @@ snapshots: - babel-plugin-macros - supports-color - jest-cli@29.7.0(@types/node@22.10.7): + jest-cli@29.7.0(@types/node@22.10.10): dependencies: '@jest/core': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@22.10.7) + create-jest: 29.7.0(@types/node@22.10.10) exit: 0.1.2 import-local: 3.2.0 - jest-config: 29.7.0(@types/node@22.10.7) + jest-config: 29.7.0(@types/node@22.10.10) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -7155,7 +7156,7 @@ snapshots: - supports-color - ts-node - jest-config@29.7.0(@types/node@22.10.7): + jest-config@29.7.0(@types/node@22.10.10): dependencies: '@babel/core': 7.26.0 '@jest/test-sequencer': 29.7.0 @@ -7180,7 +7181,7 @@ snapshots: slash: 3.0.0 strip-json-comments: 3.1.1 optionalDependencies: - '@types/node': 22.10.7 + '@types/node': 22.10.10 transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -7209,7 +7210,7 @@ snapshots: '@jest/environment': 29.7.0 '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 22.10.7 + '@types/node': 22.10.10 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -7219,7 +7220,7 @@ snapshots: dependencies: '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.9 - '@types/node': 22.10.7 + '@types/node': 22.10.10 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -7258,7 +7259,7 @@ snapshots: jest-mock@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 22.10.7 + '@types/node': 22.10.10 jest-util: 29.7.0 jest-pnp-resolver@1.2.3(jest-resolve@29.7.0): @@ -7293,7 +7294,7 @@ snapshots: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 22.10.7 + '@types/node': 22.10.10 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11 @@ -7321,7 +7322,7 @@ snapshots: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 22.10.7 + '@types/node': 22.10.10 chalk: 4.1.2 cjs-module-lexer: 1.4.1 collect-v8-coverage: 1.0.2 @@ -7367,7 +7368,7 @@ snapshots: jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 22.10.7 + '@types/node': 22.10.10 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -7386,7 +7387,7 @@ snapshots: dependencies: '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 22.10.7 + '@types/node': 22.10.10 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -7395,17 +7396,17 @@ snapshots: jest-worker@29.7.0: dependencies: - '@types/node': 22.10.7 + '@types/node': 22.10.10 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 - jest@29.7.0(@types/node@22.10.7): + jest@29.7.0(@types/node@22.10.10): dependencies: '@jest/core': 29.7.0 '@jest/types': 29.6.3 import-local: 3.2.0 - jest-cli: 29.7.0(@types/node@22.10.7) + jest-cli: 29.7.0(@types/node@22.10.10) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -7504,8 +7505,6 @@ snapshots: lodash.escaperegexp@4.1.2: {} - lodash.isequal@4.5.0: {} - lodash.isplainobject@4.0.6: {} lodash.isstring@4.0.1: {} @@ -7756,7 +7755,7 @@ snapshots: dependencies: '@babel/code-frame': 7.26.2 index-to-position: 0.1.2 - type-fest: 4.32.0 + type-fest: 4.33.0 parse-ms@4.0.0: {} @@ -7863,14 +7862,14 @@ snapshots: dependencies: find-up-simple: 1.0.0 read-pkg: 9.0.1 - type-fest: 4.32.0 + type-fest: 4.33.0 read-pkg@9.0.1: dependencies: '@types/normalize-package-data': 2.4.4 normalize-package-data: 6.0.2 parse-json: 8.1.0 - type-fest: 4.32.0 + type-fest: 4.33.0 unicorn-magic: 0.1.0 readable-stream@2.3.8: @@ -7962,29 +7961,29 @@ snapshots: dependencies: glob: 7.2.3 - rollup@4.30.1: + rollup@4.32.0: dependencies: '@types/estree': 1.0.6 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.30.1 - '@rollup/rollup-android-arm64': 4.30.1 - '@rollup/rollup-darwin-arm64': 4.30.1 - '@rollup/rollup-darwin-x64': 4.30.1 - '@rollup/rollup-freebsd-arm64': 4.30.1 - '@rollup/rollup-freebsd-x64': 4.30.1 - '@rollup/rollup-linux-arm-gnueabihf': 4.30.1 - '@rollup/rollup-linux-arm-musleabihf': 4.30.1 - '@rollup/rollup-linux-arm64-gnu': 4.30.1 - '@rollup/rollup-linux-arm64-musl': 4.30.1 - '@rollup/rollup-linux-loongarch64-gnu': 4.30.1 - '@rollup/rollup-linux-powerpc64le-gnu': 4.30.1 - '@rollup/rollup-linux-riscv64-gnu': 4.30.1 - '@rollup/rollup-linux-s390x-gnu': 4.30.1 - '@rollup/rollup-linux-x64-gnu': 4.30.1 - '@rollup/rollup-linux-x64-musl': 4.30.1 - '@rollup/rollup-win32-arm64-msvc': 4.30.1 - '@rollup/rollup-win32-ia32-msvc': 4.30.1 - '@rollup/rollup-win32-x64-msvc': 4.30.1 + '@rollup/rollup-android-arm-eabi': 4.32.0 + '@rollup/rollup-android-arm64': 4.32.0 + '@rollup/rollup-darwin-arm64': 4.32.0 + '@rollup/rollup-darwin-x64': 4.32.0 + '@rollup/rollup-freebsd-arm64': 4.32.0 + '@rollup/rollup-freebsd-x64': 4.32.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.32.0 + '@rollup/rollup-linux-arm-musleabihf': 4.32.0 + '@rollup/rollup-linux-arm64-gnu': 4.32.0 + '@rollup/rollup-linux-arm64-musl': 4.32.0 + '@rollup/rollup-linux-loongarch64-gnu': 4.32.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.32.0 + '@rollup/rollup-linux-riscv64-gnu': 4.32.0 + '@rollup/rollup-linux-s390x-gnu': 4.32.0 + '@rollup/rollup-linux-x64-gnu': 4.32.0 + '@rollup/rollup-linux-x64-musl': 4.32.0 + '@rollup/rollup-win32-arm64-msvc': 4.32.0 + '@rollup/rollup-win32-ia32-msvc': 4.32.0 + '@rollup/rollup-win32-x64-msvc': 4.32.0 fsevents: 2.3.3 run-parallel@1.2.0: @@ -8362,7 +8361,7 @@ snapshots: picocolors: 1.1.1 postcss-load-config: 6.0.1(tsx@4.19.2)(yaml@2.4.5) resolve-from: 5.0.0 - rollup: 4.30.1 + rollup: 4.32.0 source-map: 0.8.0-beta.0 sucrase: 3.35.0 tinyexec: 0.3.2 @@ -8379,7 +8378,7 @@ snapshots: tsx@4.19.2: dependencies: esbuild: 0.23.1 - get-tsconfig: 4.8.1 + get-tsconfig: 4.10.0 optionalDependencies: fsevents: 2.3.3 @@ -8397,7 +8396,7 @@ snapshots: type-fest@2.19.0: {} - type-fest@4.32.0: {} + type-fest@4.33.0: {} typed-array-buffer@1.0.3: dependencies: @@ -8521,7 +8520,7 @@ snapshots: call-bound: 1.0.3 function.prototype.name: 1.1.8 has-tostringtag: 1.0.2 - is-async-function: 2.1.0 + is-async-function: 2.1.1 is-date-object: 1.1.0 is-finalizationregistry: 1.1.1 is-generator-function: 1.1.0 diff --git a/specs/jsonapi.spec.ts b/specs/jsonapi.spec.ts index a1e5d1c9..a658d2eb 100644 --- a/specs/jsonapi.spec.ts +++ b/specs/jsonapi.spec.ts @@ -3,7 +3,7 @@ import { CommerceLayerClient } from '../src' import { getClient, TestData } from '../test/common' import { normalize, denormalize } from '../src/jsonapi' import { ResourceTypeLock } from '../src/api' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' let cl: CommerceLayerClient @@ -52,7 +52,7 @@ describe('SDK:jsonapi suite', () => { const normalized = normalize(resource) - expect(isEqual(normalized, expected)).toBeTruthy() + expect(isDeepStrictEqual(normalized, expected)).toBeTruthy() }) @@ -97,7 +97,7 @@ describe('SDK:jsonapi suite', () => { const denormalized = denormalize(jsonApi) - expect(isEqual(expected, denormalized)).toBeTruthy() + expect(isDeepStrictEqual(expected, denormalized)).toBeTruthy() }) diff --git a/specs/resources/addresses.spec.ts b/specs/resources/addresses.spec.ts index 0bed1d8a..5f6f2498 100644 --- a/specs/resources/addresses.spec.ts +++ b/specs/resources/addresses.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Address } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -159,10 +159,10 @@ describe('Addresses resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/adjustments.spec.ts b/specs/resources/adjustments.spec.ts index c04c5b0d..ee61610a 100644 --- a/specs/resources/adjustments.spec.ts +++ b/specs/resources/adjustments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Adjustment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('Adjustments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/adyen_gateways.spec.ts b/specs/resources/adyen_gateways.spec.ts index 3f748866..9f494bf7 100644 --- a/specs/resources/adyen_gateways.spec.ts +++ b/specs/resources/adyen_gateways.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, AdyenGateway } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -157,10 +157,10 @@ describe('AdyenGateways resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/adyen_payments.spec.ts b/specs/resources/adyen_payments.spec.ts index 500b474b..481aaaa8 100644 --- a/specs/resources/adyen_payments.spec.ts +++ b/specs/resources/adyen_payments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, AdyenPayment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('AdyenPayments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/applications.spec.ts b/specs/resources/applications.spec.ts index f7f81aae..347ed596 100644 --- a/specs/resources/applications.spec.ts +++ b/specs/resources/applications.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Application } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -59,10 +59,10 @@ describe('Applications resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/attachments.spec.ts b/specs/resources/attachments.spec.ts index 69e10434..37c91ab1 100644 --- a/specs/resources/attachments.spec.ts +++ b/specs/resources/attachments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Attachment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('Attachments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/authorizations.spec.ts b/specs/resources/authorizations.spec.ts index 955a7752..9a41435a 100644 --- a/specs/resources/authorizations.spec.ts +++ b/specs/resources/authorizations.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Authorization } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -105,10 +105,10 @@ describe('Authorizations resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/avalara_accounts.spec.ts b/specs/resources/avalara_accounts.spec.ts index 1902ec67..3a883990 100644 --- a/specs/resources/avalara_accounts.spec.ts +++ b/specs/resources/avalara_accounts.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, AvalaraAccount } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -157,10 +157,10 @@ describe('AvalaraAccounts resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/axerve_gateways.spec.ts b/specs/resources/axerve_gateways.spec.ts index 8b1af8d9..ea6c6ab4 100644 --- a/specs/resources/axerve_gateways.spec.ts +++ b/specs/resources/axerve_gateways.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, AxerveGateway } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('AxerveGateways resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/axerve_payments.spec.ts b/specs/resources/axerve_payments.spec.ts index 66e752b7..a838e844 100644 --- a/specs/resources/axerve_payments.spec.ts +++ b/specs/resources/axerve_payments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, AxervePayment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('AxervePayments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/bing_geocoders.spec.ts b/specs/resources/bing_geocoders.spec.ts index cbb78e9e..b36394f6 100644 --- a/specs/resources/bing_geocoders.spec.ts +++ b/specs/resources/bing_geocoders.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, BingGeocoder } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('BingGeocoders resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/braintree_gateways.spec.ts b/specs/resources/braintree_gateways.spec.ts index 325e5c5c..ca7d312b 100644 --- a/specs/resources/braintree_gateways.spec.ts +++ b/specs/resources/braintree_gateways.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, BraintreeGateway } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -158,10 +158,10 @@ describe('BraintreeGateways resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/braintree_payments.spec.ts b/specs/resources/braintree_payments.spec.ts index 89973569..563c49ac 100644 --- a/specs/resources/braintree_payments.spec.ts +++ b/specs/resources/braintree_payments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, BraintreePayment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('BraintreePayments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/bundles.spec.ts b/specs/resources/bundles.spec.ts index 236bec52..bc590bc3 100644 --- a/specs/resources/bundles.spec.ts +++ b/specs/resources/bundles.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Bundle } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -157,10 +157,10 @@ describe('Bundles resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/buy_x_pay_y_promotions.spec.ts b/specs/resources/buy_x_pay_y_promotions.spec.ts index d0f8ea39..958469f9 100644 --- a/specs/resources/buy_x_pay_y_promotions.spec.ts +++ b/specs/resources/buy_x_pay_y_promotions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, BuyXPayYPromotion } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -164,10 +164,10 @@ describe('BuyXPayYPromotions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/captures.spec.ts b/specs/resources/captures.spec.ts index 74a91f14..094dbf6c 100644 --- a/specs/resources/captures.spec.ts +++ b/specs/resources/captures.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Capture } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -105,10 +105,10 @@ describe('Captures resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/carrier_accounts.spec.ts b/specs/resources/carrier_accounts.spec.ts index df60c20f..3b630ddf 100644 --- a/specs/resources/carrier_accounts.spec.ts +++ b/specs/resources/carrier_accounts.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, CarrierAccount } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('CarrierAccounts resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/checkout_com_gateways.spec.ts b/specs/resources/checkout_com_gateways.spec.ts index 2580a74c..f641ea1d 100644 --- a/specs/resources/checkout_com_gateways.spec.ts +++ b/specs/resources/checkout_com_gateways.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, CheckoutComGateway } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('CheckoutComGateways resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/checkout_com_payments.spec.ts b/specs/resources/checkout_com_payments.spec.ts index f6de9483..82f4a477 100644 --- a/specs/resources/checkout_com_payments.spec.ts +++ b/specs/resources/checkout_com_payments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, CheckoutComPayment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('CheckoutComPayments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/cleanups.spec.ts b/specs/resources/cleanups.spec.ts index fd4aff73..886f4b6e 100644 --- a/specs/resources/cleanups.spec.ts +++ b/specs/resources/cleanups.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Cleanup } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('Cleanups resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/coupon_codes_promotion_rules.spec.ts b/specs/resources/coupon_codes_promotion_rules.spec.ts index caa8b565..595c7cf6 100644 --- a/specs/resources/coupon_codes_promotion_rules.spec.ts +++ b/specs/resources/coupon_codes_promotion_rules.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, CouponCodesPromotionRule } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('CouponCodesPromotionRules resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/coupon_recipients.spec.ts b/specs/resources/coupon_recipients.spec.ts index 6bcd5a76..eb6710bb 100644 --- a/specs/resources/coupon_recipients.spec.ts +++ b/specs/resources/coupon_recipients.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, CouponRecipient } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('CouponRecipients resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/coupons.spec.ts b/specs/resources/coupons.spec.ts index 5c94b0fc..69e8cbf9 100644 --- a/specs/resources/coupons.spec.ts +++ b/specs/resources/coupons.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Coupon } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('Coupons resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/custom_promotion_rules.spec.ts b/specs/resources/custom_promotion_rules.spec.ts index d6625a40..35123949 100644 --- a/specs/resources/custom_promotion_rules.spec.ts +++ b/specs/resources/custom_promotion_rules.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, CustomPromotionRule } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('CustomPromotionRules resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/customer_addresses.spec.ts b/specs/resources/customer_addresses.spec.ts index 5184e249..c080ce21 100644 --- a/specs/resources/customer_addresses.spec.ts +++ b/specs/resources/customer_addresses.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, CustomerAddress } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('CustomerAddresses resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/customer_groups.spec.ts b/specs/resources/customer_groups.spec.ts index d2985bfc..09e959fd 100644 --- a/specs/resources/customer_groups.spec.ts +++ b/specs/resources/customer_groups.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, CustomerGroup } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('CustomerGroups resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/customer_password_resets.spec.ts b/specs/resources/customer_password_resets.spec.ts index 34cc0e3f..18f4cede 100644 --- a/specs/resources/customer_password_resets.spec.ts +++ b/specs/resources/customer_password_resets.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, CustomerPasswordReset } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('CustomerPasswordResets resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/customer_payment_sources.spec.ts b/specs/resources/customer_payment_sources.spec.ts index 8eb69ee4..1814c6e7 100644 --- a/specs/resources/customer_payment_sources.spec.ts +++ b/specs/resources/customer_payment_sources.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, CustomerPaymentSource } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('CustomerPaymentSources resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/customer_subscriptions.spec.ts b/specs/resources/customer_subscriptions.spec.ts index 4f083e03..7de31b99 100644 --- a/specs/resources/customer_subscriptions.spec.ts +++ b/specs/resources/customer_subscriptions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, CustomerSubscription } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('CustomerSubscriptions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/customers.spec.ts b/specs/resources/customers.spec.ts index 1044caaa..b06b10b6 100644 --- a/specs/resources/customers.spec.ts +++ b/specs/resources/customers.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Customer } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('Customers resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/delivery_lead_times.spec.ts b/specs/resources/delivery_lead_times.spec.ts index c4c756cf..ca305b8c 100644 --- a/specs/resources/delivery_lead_times.spec.ts +++ b/specs/resources/delivery_lead_times.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, DeliveryLeadTime } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('DeliveryLeadTimes resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/discount_engine_items.spec.ts b/specs/resources/discount_engine_items.spec.ts index 7d775f2a..81928f72 100644 --- a/specs/resources/discount_engine_items.spec.ts +++ b/specs/resources/discount_engine_items.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, DiscountEngineItem } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('DiscountEngineItems resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/discount_engines.spec.ts b/specs/resources/discount_engines.spec.ts index d11ba716..d417cce3 100644 --- a/specs/resources/discount_engines.spec.ts +++ b/specs/resources/discount_engines.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, DiscountEngine } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('DiscountEngines resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/event_callbacks.spec.ts b/specs/resources/event_callbacks.spec.ts index 6c705432..c135f234 100644 --- a/specs/resources/event_callbacks.spec.ts +++ b/specs/resources/event_callbacks.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, EventCallback } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('EventCallbacks resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/events.spec.ts b/specs/resources/events.spec.ts index ce2b401f..81c2712b 100644 --- a/specs/resources/events.spec.ts +++ b/specs/resources/events.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Event } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -105,10 +105,10 @@ describe('Events resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/exports.spec.ts b/specs/resources/exports.spec.ts index 803936e3..e6ccc83a 100644 --- a/specs/resources/exports.spec.ts +++ b/specs/resources/exports.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Export } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('Exports resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/external_gateways.spec.ts b/specs/resources/external_gateways.spec.ts index f74f614b..c58a8c41 100644 --- a/specs/resources/external_gateways.spec.ts +++ b/specs/resources/external_gateways.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ExternalGateway } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('ExternalGateways resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/external_payments.spec.ts b/specs/resources/external_payments.spec.ts index 32dbb607..aab8cafe 100644 --- a/specs/resources/external_payments.spec.ts +++ b/specs/resources/external_payments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ExternalPayment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('ExternalPayments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/external_promotions.spec.ts b/specs/resources/external_promotions.spec.ts index 1bf18f44..8172ebc2 100644 --- a/specs/resources/external_promotions.spec.ts +++ b/specs/resources/external_promotions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ExternalPromotion } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -163,10 +163,10 @@ describe('ExternalPromotions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/external_tax_calculators.spec.ts b/specs/resources/external_tax_calculators.spec.ts index ccd44df3..9ee6788e 100644 --- a/specs/resources/external_tax_calculators.spec.ts +++ b/specs/resources/external_tax_calculators.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ExternalTaxCalculator } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('ExternalTaxCalculators resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/fixed_amount_promotions.spec.ts b/specs/resources/fixed_amount_promotions.spec.ts index f391cdcf..3d9b4fd5 100644 --- a/specs/resources/fixed_amount_promotions.spec.ts +++ b/specs/resources/fixed_amount_promotions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, FixedAmountPromotion } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -163,10 +163,10 @@ describe('FixedAmountPromotions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/fixed_price_promotions.spec.ts b/specs/resources/fixed_price_promotions.spec.ts index 456acf51..985855c4 100644 --- a/specs/resources/fixed_price_promotions.spec.ts +++ b/specs/resources/fixed_price_promotions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, FixedPricePromotion } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -163,10 +163,10 @@ describe('FixedPricePromotions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/flex_promotions.spec.ts b/specs/resources/flex_promotions.spec.ts index 540a76c1..eac2a567 100644 --- a/specs/resources/flex_promotions.spec.ts +++ b/specs/resources/flex_promotions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, FlexPromotion } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -158,10 +158,10 @@ describe('FlexPromotions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/free_gift_promotions.spec.ts b/specs/resources/free_gift_promotions.spec.ts index 6ce581c1..877b041b 100644 --- a/specs/resources/free_gift_promotions.spec.ts +++ b/specs/resources/free_gift_promotions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, FreeGiftPromotion } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -162,10 +162,10 @@ describe('FreeGiftPromotions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/free_shipping_promotions.spec.ts b/specs/resources/free_shipping_promotions.spec.ts index af703354..709e48ed 100644 --- a/specs/resources/free_shipping_promotions.spec.ts +++ b/specs/resources/free_shipping_promotions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, FreeShippingPromotion } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -162,10 +162,10 @@ describe('FreeShippingPromotions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/geocoders.spec.ts b/specs/resources/geocoders.spec.ts index 3637fbb3..5288b7dd 100644 --- a/specs/resources/geocoders.spec.ts +++ b/specs/resources/geocoders.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Geocoder } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('Geocoders resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/gift_card_recipients.spec.ts b/specs/resources/gift_card_recipients.spec.ts index 715841b9..9bcb0ee4 100644 --- a/specs/resources/gift_card_recipients.spec.ts +++ b/specs/resources/gift_card_recipients.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, GiftCardRecipient } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('GiftCardRecipients resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/gift_cards.spec.ts b/specs/resources/gift_cards.spec.ts index ca922c20..05e93eab 100644 --- a/specs/resources/gift_cards.spec.ts +++ b/specs/resources/gift_cards.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, GiftCard } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('GiftCards resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/google_geocoders.spec.ts b/specs/resources/google_geocoders.spec.ts index 2777f2da..86fd7992 100644 --- a/specs/resources/google_geocoders.spec.ts +++ b/specs/resources/google_geocoders.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, GoogleGeocoder } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('GoogleGeocoders resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/imports.spec.ts b/specs/resources/imports.spec.ts index cdadc3e1..685aff83 100644 --- a/specs/resources/imports.spec.ts +++ b/specs/resources/imports.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Import } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('Imports resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/in_stock_subscriptions.spec.ts b/specs/resources/in_stock_subscriptions.spec.ts index 5daf8f3b..54f5dd6b 100644 --- a/specs/resources/in_stock_subscriptions.spec.ts +++ b/specs/resources/in_stock_subscriptions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, InStockSubscription } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('InStockSubscriptions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/inventory_models.spec.ts b/specs/resources/inventory_models.spec.ts index 47d161ef..b7fef3e1 100644 --- a/specs/resources/inventory_models.spec.ts +++ b/specs/resources/inventory_models.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, InventoryModel } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('InventoryModels resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/inventory_return_locations.spec.ts b/specs/resources/inventory_return_locations.spec.ts index 97c7a11d..f5b71808 100644 --- a/specs/resources/inventory_return_locations.spec.ts +++ b/specs/resources/inventory_return_locations.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, InventoryReturnLocation } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('InventoryReturnLocations resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/inventory_stock_locations.spec.ts b/specs/resources/inventory_stock_locations.spec.ts index 4aee7354..5e3f37f2 100644 --- a/specs/resources/inventory_stock_locations.spec.ts +++ b/specs/resources/inventory_stock_locations.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, InventoryStockLocation } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('InventoryStockLocations resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/klarna_gateways.spec.ts b/specs/resources/klarna_gateways.spec.ts index 756f1def..a3476225 100644 --- a/specs/resources/klarna_gateways.spec.ts +++ b/specs/resources/klarna_gateways.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, KlarnaGateway } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -157,10 +157,10 @@ describe('KlarnaGateways resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/klarna_payments.spec.ts b/specs/resources/klarna_payments.spec.ts index 81b58079..679c0f7d 100644 --- a/specs/resources/klarna_payments.spec.ts +++ b/specs/resources/klarna_payments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, KlarnaPayment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('KlarnaPayments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/line_item_options.spec.ts b/specs/resources/line_item_options.spec.ts index b7f27181..38743665 100644 --- a/specs/resources/line_item_options.spec.ts +++ b/specs/resources/line_item_options.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, LineItemOption } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -157,10 +157,10 @@ describe('LineItemOptions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/line_items.spec.ts b/specs/resources/line_items.spec.ts index ecfd0451..b47322e4 100644 --- a/specs/resources/line_items.spec.ts +++ b/specs/resources/line_items.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, LineItem } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('LineItems resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/links.spec.ts b/specs/resources/links.spec.ts index bbefe3b1..48a3def9 100644 --- a/specs/resources/links.spec.ts +++ b/specs/resources/links.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Link } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('Links resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/manual_gateways.spec.ts b/specs/resources/manual_gateways.spec.ts index 1a090ec0..53fb793b 100644 --- a/specs/resources/manual_gateways.spec.ts +++ b/specs/resources/manual_gateways.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ManualGateway } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('ManualGateways resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/manual_tax_calculators.spec.ts b/specs/resources/manual_tax_calculators.spec.ts index 9f74674b..d58f0682 100644 --- a/specs/resources/manual_tax_calculators.spec.ts +++ b/specs/resources/manual_tax_calculators.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ManualTaxCalculator } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('ManualTaxCalculators resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/markets.spec.ts b/specs/resources/markets.spec.ts index 0da89dca..376a43e3 100644 --- a/specs/resources/markets.spec.ts +++ b/specs/resources/markets.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Market } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -160,10 +160,10 @@ describe('Markets resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/merchants.spec.ts b/specs/resources/merchants.spec.ts index da296e04..a6b32937 100644 --- a/specs/resources/merchants.spec.ts +++ b/specs/resources/merchants.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Merchant } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('Merchants resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/notifications.spec.ts b/specs/resources/notifications.spec.ts index 6d8f1aab..c0c40182 100644 --- a/specs/resources/notifications.spec.ts +++ b/specs/resources/notifications.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Notification } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('Notifications resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/order_amount_promotion_rules.spec.ts b/specs/resources/order_amount_promotion_rules.spec.ts index f55b0537..b3257b97 100644 --- a/specs/resources/order_amount_promotion_rules.spec.ts +++ b/specs/resources/order_amount_promotion_rules.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, OrderAmountPromotionRule } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('OrderAmountPromotionRules resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/order_copies.spec.ts b/specs/resources/order_copies.spec.ts index 7774f100..4c216af4 100644 --- a/specs/resources/order_copies.spec.ts +++ b/specs/resources/order_copies.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, OrderCopy } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('OrderCopies resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/order_factories.spec.ts b/specs/resources/order_factories.spec.ts index 9e5d0d95..1d0b2234 100644 --- a/specs/resources/order_factories.spec.ts +++ b/specs/resources/order_factories.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, OrderFactory } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('OrderFactories resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/order_subscription_items.spec.ts b/specs/resources/order_subscription_items.spec.ts index 6a0931f9..7896933f 100644 --- a/specs/resources/order_subscription_items.spec.ts +++ b/specs/resources/order_subscription_items.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, OrderSubscriptionItem } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -158,10 +158,10 @@ describe('OrderSubscriptionItems resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/order_subscriptions.spec.ts b/specs/resources/order_subscriptions.spec.ts index 9e14da6b..50f03c14 100644 --- a/specs/resources/order_subscriptions.spec.ts +++ b/specs/resources/order_subscriptions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, OrderSubscription } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('OrderSubscriptions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/orders.spec.ts b/specs/resources/orders.spec.ts index 27e9bbcd..d88df606 100644 --- a/specs/resources/orders.spec.ts +++ b/specs/resources/orders.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Order } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -160,10 +160,10 @@ describe('Orders resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/organizations.spec.ts b/specs/resources/organizations.spec.ts index ef85d727..993456d7 100644 --- a/specs/resources/organizations.spec.ts +++ b/specs/resources/organizations.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Organization } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -59,10 +59,10 @@ describe('Organizations resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/packages.spec.ts b/specs/resources/packages.spec.ts index 30399831..38bca118 100644 --- a/specs/resources/packages.spec.ts +++ b/specs/resources/packages.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Package } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -158,10 +158,10 @@ describe('Packages resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/parcel_line_items.spec.ts b/specs/resources/parcel_line_items.spec.ts index 4d24fe37..75f1799d 100644 --- a/specs/resources/parcel_line_items.spec.ts +++ b/specs/resources/parcel_line_items.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ParcelLineItem } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('ParcelLineItems resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/parcels.spec.ts b/specs/resources/parcels.spec.ts index 4edfaabd..dcab46ee 100644 --- a/specs/resources/parcels.spec.ts +++ b/specs/resources/parcels.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Parcel } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('Parcels resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/payment_gateways.spec.ts b/specs/resources/payment_gateways.spec.ts index ffe31fd6..f70d3740 100644 --- a/specs/resources/payment_gateways.spec.ts +++ b/specs/resources/payment_gateways.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PaymentGateway } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('PaymentGateways resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/payment_methods.spec.ts b/specs/resources/payment_methods.spec.ts index afd18f4b..d411ea78 100644 --- a/specs/resources/payment_methods.spec.ts +++ b/specs/resources/payment_methods.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PaymentMethod } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -157,10 +157,10 @@ describe('PaymentMethods resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/payment_options.spec.ts b/specs/resources/payment_options.spec.ts index c8f5233e..26becf51 100644 --- a/specs/resources/payment_options.spec.ts +++ b/specs/resources/payment_options.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PaymentOption } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('PaymentOptions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/paypal_gateways.spec.ts b/specs/resources/paypal_gateways.spec.ts index ba715517..c758f448 100644 --- a/specs/resources/paypal_gateways.spec.ts +++ b/specs/resources/paypal_gateways.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PaypalGateway } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('PaypalGateways resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/paypal_payments.spec.ts b/specs/resources/paypal_payments.spec.ts index b7d3a0b7..9319fd8d 100644 --- a/specs/resources/paypal_payments.spec.ts +++ b/specs/resources/paypal_payments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PaypalPayment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('PaypalPayments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/percentage_discount_promotions.spec.ts b/specs/resources/percentage_discount_promotions.spec.ts index 95a134f6..8f2dfa9d 100644 --- a/specs/resources/percentage_discount_promotions.spec.ts +++ b/specs/resources/percentage_discount_promotions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PercentageDiscountPromotion } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -163,10 +163,10 @@ describe('PercentageDiscountPromotions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/price_frequency_tiers.spec.ts b/specs/resources/price_frequency_tiers.spec.ts index eca71a7a..a5192b8e 100644 --- a/specs/resources/price_frequency_tiers.spec.ts +++ b/specs/resources/price_frequency_tiers.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PriceFrequencyTier } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('PriceFrequencyTiers resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/price_list_schedulers.spec.ts b/specs/resources/price_list_schedulers.spec.ts index 768810ae..a1213922 100644 --- a/specs/resources/price_list_schedulers.spec.ts +++ b/specs/resources/price_list_schedulers.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PriceListScheduler } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -157,10 +157,10 @@ describe('PriceListSchedulers resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/price_lists.spec.ts b/specs/resources/price_lists.spec.ts index 01992a0e..45d62367 100644 --- a/specs/resources/price_lists.spec.ts +++ b/specs/resources/price_lists.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PriceList } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('PriceLists resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/price_tiers.spec.ts b/specs/resources/price_tiers.spec.ts index d5e10d5a..d30a8417 100644 --- a/specs/resources/price_tiers.spec.ts +++ b/specs/resources/price_tiers.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PriceTier } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('PriceTiers resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/price_volume_tiers.spec.ts b/specs/resources/price_volume_tiers.spec.ts index 7bc64fcf..b2520727 100644 --- a/specs/resources/price_volume_tiers.spec.ts +++ b/specs/resources/price_volume_tiers.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PriceVolumeTier } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('PriceVolumeTiers resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/prices.spec.ts b/specs/resources/prices.spec.ts index 9c5e2519..5a0b890c 100644 --- a/specs/resources/prices.spec.ts +++ b/specs/resources/prices.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Price } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('Prices resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/promotion_rules.spec.ts b/specs/resources/promotion_rules.spec.ts index 0aa5fb35..bcd04f2e 100644 --- a/specs/resources/promotion_rules.spec.ts +++ b/specs/resources/promotion_rules.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, PromotionRule } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('PromotionRules resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/promotions.spec.ts b/specs/resources/promotions.spec.ts index 8e02651a..4071f57d 100644 --- a/specs/resources/promotions.spec.ts +++ b/specs/resources/promotions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Promotion } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('Promotions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/recurring_order_copies.spec.ts b/specs/resources/recurring_order_copies.spec.ts index 2af2eb67..9211ba2c 100644 --- a/specs/resources/recurring_order_copies.spec.ts +++ b/specs/resources/recurring_order_copies.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, RecurringOrderCopy } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('RecurringOrderCopies resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/refunds.spec.ts b/specs/resources/refunds.spec.ts index 66e2bcbb..fbc4c8b9 100644 --- a/specs/resources/refunds.spec.ts +++ b/specs/resources/refunds.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Refund } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -105,10 +105,10 @@ describe('Refunds resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/reserved_stocks.spec.ts b/specs/resources/reserved_stocks.spec.ts index cdadca25..a8e4bd05 100644 --- a/specs/resources/reserved_stocks.spec.ts +++ b/specs/resources/reserved_stocks.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ReservedStock } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('ReservedStocks resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/resource_errors.spec.ts b/specs/resources/resource_errors.spec.ts index 809a339d..b94532de 100644 --- a/specs/resources/resource_errors.spec.ts +++ b/specs/resources/resource_errors.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ResourceError } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('ResourceErrors resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/return_line_items.spec.ts b/specs/resources/return_line_items.spec.ts index dbcfc6c3..dd51f22d 100644 --- a/specs/resources/return_line_items.spec.ts +++ b/specs/resources/return_line_items.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ReturnLineItem } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('ReturnLineItems resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/returns.spec.ts b/specs/resources/returns.spec.ts index d70e5f71..92cfdfda 100644 --- a/specs/resources/returns.spec.ts +++ b/specs/resources/returns.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Return } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('Returns resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/satispay_gateways.spec.ts b/specs/resources/satispay_gateways.spec.ts index 4d376108..4ac9600a 100644 --- a/specs/resources/satispay_gateways.spec.ts +++ b/specs/resources/satispay_gateways.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, SatispayGateway } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('SatispayGateways resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/satispay_payments.spec.ts b/specs/resources/satispay_payments.spec.ts index 67a5b954..50fbd94f 100644 --- a/specs/resources/satispay_payments.spec.ts +++ b/specs/resources/satispay_payments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, SatispayPayment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('SatispayPayments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/shipments.spec.ts b/specs/resources/shipments.spec.ts index 95a66370..8dac6e06 100644 --- a/specs/resources/shipments.spec.ts +++ b/specs/resources/shipments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Shipment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -158,10 +158,10 @@ describe('Shipments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/shipping_categories.spec.ts b/specs/resources/shipping_categories.spec.ts index 6d600987..72d5ec64 100644 --- a/specs/resources/shipping_categories.spec.ts +++ b/specs/resources/shipping_categories.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ShippingCategory } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('ShippingCategories resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/shipping_method_tiers.spec.ts b/specs/resources/shipping_method_tiers.spec.ts index b754a7ae..8ad1378b 100644 --- a/specs/resources/shipping_method_tiers.spec.ts +++ b/specs/resources/shipping_method_tiers.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ShippingMethodTier } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('ShippingMethodTiers resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/shipping_methods.spec.ts b/specs/resources/shipping_methods.spec.ts index 4c588c55..26b1a259 100644 --- a/specs/resources/shipping_methods.spec.ts +++ b/specs/resources/shipping_methods.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ShippingMethod } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -159,10 +159,10 @@ describe('ShippingMethods resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/shipping_weight_tiers.spec.ts b/specs/resources/shipping_weight_tiers.spec.ts index 357a1fd7..64394cac 100644 --- a/specs/resources/shipping_weight_tiers.spec.ts +++ b/specs/resources/shipping_weight_tiers.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ShippingWeightTier } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('ShippingWeightTiers resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/shipping_zones.spec.ts b/specs/resources/shipping_zones.spec.ts index 5973f1a1..08b4b7fb 100644 --- a/specs/resources/shipping_zones.spec.ts +++ b/specs/resources/shipping_zones.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, ShippingZone } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('ShippingZones resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/sku_list_items.spec.ts b/specs/resources/sku_list_items.spec.ts index a7ec7759..9e3e2e41 100644 --- a/specs/resources/sku_list_items.spec.ts +++ b/specs/resources/sku_list_items.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, SkuListItem } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('SkuListItems resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/sku_list_promotion_rules.spec.ts b/specs/resources/sku_list_promotion_rules.spec.ts index 4ebb734c..7ddc8906 100644 --- a/specs/resources/sku_list_promotion_rules.spec.ts +++ b/specs/resources/sku_list_promotion_rules.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, SkuListPromotionRule } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('SkuListPromotionRules resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/sku_lists.spec.ts b/specs/resources/sku_lists.spec.ts index 72d8e517..da9aeba5 100644 --- a/specs/resources/sku_lists.spec.ts +++ b/specs/resources/sku_lists.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, SkuList } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('SkuLists resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/sku_options.spec.ts b/specs/resources/sku_options.spec.ts index 5a5cf673..7f635443 100644 --- a/specs/resources/sku_options.spec.ts +++ b/specs/resources/sku_options.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, SkuOption } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('SkuOptions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/skus.spec.ts b/specs/resources/skus.spec.ts index 6a3b0592..c39d947e 100644 --- a/specs/resources/skus.spec.ts +++ b/specs/resources/skus.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Sku } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('Skus resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/stock_items.spec.ts b/specs/resources/stock_items.spec.ts index 63eb9928..a102613d 100644 --- a/specs/resources/stock_items.spec.ts +++ b/specs/resources/stock_items.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, StockItem } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('StockItems resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/stock_line_items.spec.ts b/specs/resources/stock_line_items.spec.ts index da43f7e1..10f4e679 100644 --- a/specs/resources/stock_line_items.spec.ts +++ b/specs/resources/stock_line_items.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, StockLineItem } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -157,10 +157,10 @@ describe('StockLineItems resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/stock_locations.spec.ts b/specs/resources/stock_locations.spec.ts index 851a36c7..a3e20ee7 100644 --- a/specs/resources/stock_locations.spec.ts +++ b/specs/resources/stock_locations.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, StockLocation } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('StockLocations resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/stock_reservations.spec.ts b/specs/resources/stock_reservations.spec.ts index ee119b0b..9faa6fef 100644 --- a/specs/resources/stock_reservations.spec.ts +++ b/specs/resources/stock_reservations.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, StockReservation } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('StockReservations resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/stock_transfers.spec.ts b/specs/resources/stock_transfers.spec.ts index c33df346..a51230cd 100644 --- a/specs/resources/stock_transfers.spec.ts +++ b/specs/resources/stock_transfers.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, StockTransfer } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -158,10 +158,10 @@ describe('StockTransfers resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/stores.spec.ts b/specs/resources/stores.spec.ts index 49e1d5a7..7afe5313 100644 --- a/specs/resources/stores.spec.ts +++ b/specs/resources/stores.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Store } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -156,10 +156,10 @@ describe('Stores resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/stripe_gateways.spec.ts b/specs/resources/stripe_gateways.spec.ts index 5d48c6f5..15ca4b95 100644 --- a/specs/resources/stripe_gateways.spec.ts +++ b/specs/resources/stripe_gateways.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, StripeGateway } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('StripeGateways resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/stripe_payments.spec.ts b/specs/resources/stripe_payments.spec.ts index 49019611..517a5c39 100644 --- a/specs/resources/stripe_payments.spec.ts +++ b/specs/resources/stripe_payments.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, StripePayment } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('StripePayments resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/subscription_models.spec.ts b/specs/resources/subscription_models.spec.ts index 04fafb42..301f8143 100644 --- a/specs/resources/subscription_models.spec.ts +++ b/specs/resources/subscription_models.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, SubscriptionModel } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('SubscriptionModels resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/tags.spec.ts b/specs/resources/tags.spec.ts index eb29dfb8..842200a6 100644 --- a/specs/resources/tags.spec.ts +++ b/specs/resources/tags.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Tag } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('Tags resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/talon_one_accounts.spec.ts b/specs/resources/talon_one_accounts.spec.ts index 82280b91..5e2dcbd1 100644 --- a/specs/resources/talon_one_accounts.spec.ts +++ b/specs/resources/talon_one_accounts.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, TalonOneAccount } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('TalonOneAccounts resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/tax_calculators.spec.ts b/specs/resources/tax_calculators.spec.ts index a18034bb..5eb7df47 100644 --- a/specs/resources/tax_calculators.spec.ts +++ b/specs/resources/tax_calculators.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, TaxCalculator } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('TaxCalculators resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/tax_categories.spec.ts b/specs/resources/tax_categories.spec.ts index 59c8c859..98b39d38 100644 --- a/specs/resources/tax_categories.spec.ts +++ b/specs/resources/tax_categories.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, TaxCategory } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('TaxCategories resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/tax_rules.spec.ts b/specs/resources/tax_rules.spec.ts index 299e7b57..3a720cf3 100644 --- a/specs/resources/tax_rules.spec.ts +++ b/specs/resources/tax_rules.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, TaxRule } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('TaxRules resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/taxjar_accounts.spec.ts b/specs/resources/taxjar_accounts.spec.ts index 9c00c73c..5b89483e 100644 --- a/specs/resources/taxjar_accounts.spec.ts +++ b/specs/resources/taxjar_accounts.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, TaxjarAccount } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -155,10 +155,10 @@ describe('TaxjarAccounts resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/transactions.spec.ts b/specs/resources/transactions.spec.ts index e3eda33c..852c8ce0 100644 --- a/specs/resources/transactions.spec.ts +++ b/specs/resources/transactions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Transaction } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('Transactions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/versions.spec.ts b/specs/resources/versions.spec.ts index 44dcff3c..c88be068 100644 --- a/specs/resources/versions.spec.ts +++ b/specs/resources/versions.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Version } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -81,10 +81,10 @@ describe('Versions resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/voids.spec.ts b/specs/resources/voids.spec.ts index 997080c2..de20681b 100644 --- a/specs/resources/voids.spec.ts +++ b/specs/resources/voids.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Void } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -105,10 +105,10 @@ describe('Voids resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/webhooks.spec.ts b/specs/resources/webhooks.spec.ts index 3ee72f06..aae2f5b4 100644 --- a/specs/resources/webhooks.spec.ts +++ b/specs/resources/webhooks.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, Webhook } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -154,10 +154,10 @@ describe('Webhooks resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/specs/resources/wire_transfers.spec.ts b/specs/resources/wire_transfers.spec.ts index c1059cb6..70b3ee69 100644 --- a/specs/resources/wire_transfers.spec.ts +++ b/specs/resources/wire_transfers.spec.ts @@ -4,7 +4,7 @@ **/ import { CommerceLayerClient, WireTransfer } from '../../src' -import isEqual from 'lodash.isequal' +import { isDeepStrictEqual } from 'node:util' // eslint-disable-next-line @typescript-eslint/no-unused-vars import { getClient, TestData, CommonData, handleError, interceptRequest, checkCommon, checkCommonData, checkCommonParamsList, checkCommonParams, currentAccessToken, randomValue } from '../../test/common' @@ -153,10 +153,10 @@ describe('WireTransfers resource', () => { it(resourceType + '.relationship', async () => { const relId = cl[resourcePath].relationship(TestData.id) - expect(isEqual(relId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relId, { id: TestData.id, type: resourceType})) const relResId = cl[resourcePath].relationship({ id: TestData.id, type: resourceType }) - expect(isEqual(relResId, { id: TestData.id, type: resourceType})) + expect(isDeepStrictEqual(relResId, { id: TestData.id, type: resourceType})) }) /* spec.relationship.stop */ diff --git a/test/common.ts b/test/common.ts index d9f4971c..369f477a 100644 --- a/test/common.ts +++ b/test/common.ts @@ -2,8 +2,7 @@ import getToken from './token' import CommerceLayer, { CommerceLayerClient, CommerceLayerConfig, QueryParamsList, QueryParamsRetrieve, RequestObj } from '../src' import dotenv from 'dotenv' -import { inspect } from 'util' -import isEqual from 'lodash.isequal' +import { inspect, isDeepStrictEqual } from 'util' import { RequestConfig } from '../src/client' import { Resource } from '../src/resource' @@ -166,7 +165,7 @@ const checkCommonData = (data: any, type: string, attributes: any, id?: string) ...data.data.attributes, ...relationships } - expect(isEqual(received, attributes)).toBeTruthy() + expect(isDeepStrictEqual(received, attributes)).toBeTruthy() } const checkParam = (url: string | URL, name: string, value: string | number | boolean) => {