From 3a433eed572c529af9e616913bb85c60b4123a2e Mon Sep 17 00:00:00 2001 From: Michael Parry Date: Thu, 28 Mar 2024 06:59:38 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20use=20@jsverse/transloco-?= =?UTF-8?q?utils=20(#186)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __tests__/resolveConfig.spec.ts | 2 +- package-lock.json | 48 ++++++++++----------- package.json | 2 +- src/keys-detective/compare-keys-to-files.ts | 2 +- src/utils/resolve-config.ts | 2 +- src/webpack-plugin/generate-keys.ts | 2 +- 6 files changed, 29 insertions(+), 29 deletions(-) diff --git a/__tests__/resolveConfig.spec.ts b/__tests__/resolveConfig.spec.ts index 26b58c2..4d0e797 100644 --- a/__tests__/resolveConfig.spec.ts +++ b/__tests__/resolveConfig.spec.ts @@ -17,7 +17,7 @@ let mockedGloblConfig; mockResolveProjectBasePath(sourceRoot); -jest.unstable_mockModule('@ngneat/transloco-utils', () => ({ +jest.unstable_mockModule('@jsverse/transloco-utils', () => ({ getGlobalConfig: () => mockedGloblConfig, })); diff --git a/package-lock.json b/package-lock.json index 95f2188..4b353dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@angular/compiler": "17.2.0", - "@ngneat/transloco-utils": "5.0.0", + "@jsverse/transloco-utils": "7.0.0", "@phenomnomnominal/tsquery": "6.1.3", "chalk": "5.3.0", "cheerio": "1.0.0-rc.12", @@ -4493,28 +4493,10 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@leichtgewicht/ip-codec": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", - "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==", - "dev": true - }, - "node_modules/@ljharb/through": { - "version": "2.3.12", - "resolved": "https://registry.npmjs.org/@ljharb/through/-/through-2.3.12.tgz", - "integrity": "sha512-ajo/heTlG3QgC8EGP6APIejksVAYt4ayz4tqoP3MolFELzcH1x1fzwEYRJTPO0IELutZ5HQ0c26/GqAYy79u3g==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.5" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/@ngneat/transloco-utils": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@ngneat/transloco-utils/-/transloco-utils-5.0.0.tgz", - "integrity": "sha512-e0S+GWyBTmLix9KfYWW/rScYdqQz3z3znNSb+foaA5T3jWs4CPLVo+PV0No7kGjqom8Wy8H3lLvztfhHxYSLyA==", + "node_modules/@jsverse/transloco-utils": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@jsverse/transloco-utils/-/transloco-utils-7.0.0.tgz", + "integrity": "sha512-q4ApoRpt8LiaY3xiS7T1+R3WTQUQrmXcNShjStvLX1sygWL2gO/23jhJLodaGLUpEHjEv5HDq9sNeCo18rC/kA==", "dependencies": { "cosmiconfig": "^8.1.3", "tslib": "^2.3.0" @@ -4523,7 +4505,7 @@ "node": ">=16" } }, - "node_modules/@ngneat/transloco-utils/node_modules/cosmiconfig": { + "node_modules/@jsverse/transloco-utils/node_modules/cosmiconfig": { "version": "8.3.6", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", @@ -4548,6 +4530,24 @@ } } }, + "node_modules/@leichtgewicht/ip-codec": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", + "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==", + "dev": true + }, + "node_modules/@ljharb/through": { + "version": "2.3.12", + "resolved": "https://registry.npmjs.org/@ljharb/through/-/through-2.3.12.tgz", + "integrity": "sha512-ajo/heTlG3QgC8EGP6APIejksVAYt4ayz4tqoP3MolFELzcH1x1fzwEYRJTPO0IELutZ5HQ0c26/GqAYy79u3g==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.5" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/@ngtools/webpack": { "version": "17.2.0", "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-17.2.0.tgz", diff --git a/package.json b/package.json index 8656b03..8ebb2fa 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ }, "dependencies": { "@angular/compiler": "17.2.0", - "@ngneat/transloco-utils": "5.0.0", + "@jsverse/transloco-utils": "7.0.0", "@phenomnomnominal/tsquery": "6.1.3", "chalk": "5.3.0", "cheerio": "1.0.0-rc.12", diff --git a/src/keys-detective/compare-keys-to-files.ts b/src/keys-detective/compare-keys-to-files.ts index f3c3dc9..93904d2 100644 --- a/src/keys-detective/compare-keys-to-files.ts +++ b/src/keys-detective/compare-keys-to-files.ts @@ -1,4 +1,4 @@ -import { getGlobalConfig } from '@ngneat/transloco-utils'; +import { getGlobalConfig } from '@jsverse/transloco-utils'; import type { DiffDeleted, DiffNew } from 'deep-diff'; import df from 'deep-diff'; import { flatten } from 'flat'; diff --git a/src/utils/resolve-config.ts b/src/utils/resolve-config.ts index 51c358d..c09e3b0 100644 --- a/src/utils/resolve-config.ts +++ b/src/utils/resolve-config.ts @@ -1,7 +1,7 @@ import { getGlobalConfig, TranslocoGlobalConfig, -} from '@ngneat/transloco-utils'; +} from '@jsverse/transloco-utils'; import chalk from 'chalk'; import { existsSync } from 'fs'; diff --git a/src/webpack-plugin/generate-keys.ts b/src/webpack-plugin/generate-keys.ts index 893b824..ab5beb6 100644 --- a/src/webpack-plugin/generate-keys.ts +++ b/src/webpack-plugin/generate-keys.ts @@ -1,4 +1,4 @@ -import { TranslocoGlobalConfig } from '@ngneat/transloco-utils'; +import { TranslocoGlobalConfig } from '@jsverse/transloco-utils'; import { unflatten } from 'flat'; import { sync as globSync } from 'glob'; import { basename } from 'node:path';