From 2ed82fc7ee662193133c0980411d7675456f0db0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Balet?= Date: Tue, 5 Nov 2024 07:37:02 +0100 Subject: [PATCH] perf(loader): remove isObject --- package.json | 2 +- projects/multi-http-loader/package.json | 2 +- projects/multi-http-loader/src/lib/multi-http-loader.ts | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 99be91a..2ba9bed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-translate-multi-http-loader", - "version": "19.0.0", + "version": "19.0.1", "license": "MIT", "author": "Raphael Balet", "maintainers": [ diff --git a/projects/multi-http-loader/package.json b/projects/multi-http-loader/package.json index 86e6b64..6bb9a65 100644 --- a/projects/multi-http-loader/package.json +++ b/projects/multi-http-loader/package.json @@ -1,6 +1,6 @@ { "name": "ngx-translate-multi-http-loader", - "version": "19.0.0", + "version": "19.0.1", "license": "MIT", "author": { "name": "Raphaƫl Balet", diff --git a/projects/multi-http-loader/src/lib/multi-http-loader.ts b/projects/multi-http-loader/src/lib/multi-http-loader.ts index b2a26a7..f7a08bf 100644 --- a/projects/multi-http-loader/src/lib/multi-http-loader.ts +++ b/projects/multi-http-loader/src/lib/multi-http-loader.ts @@ -39,9 +39,4 @@ export class MultiTranslateHttpLoader implements TranslateLoader { map((response) => response.reduce((acc, curr) => mergeDeep(acc, curr), {})), ) } - - // @ToDo: Use it from ngx-translate once it gets exported: https://github.com/rbalet/ngx-translate-multi-http-loader/issues/35 - isObject(item: any): boolean { - return item && typeof item === 'object' && !Array.isArray(item) - } }