@dpuse/dpuse-shared 0.3.643 → 0.3.644
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -4
- package/dist/types/src/locale/index.d.ts +3 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
<span><!-- OWASP_BADGES_START -->
|
|
4
4
|
[](https://dpuse.github.io/dpuse-shared/dependency-check-reports/dependency-check-report.html)
|
|
5
|
-
|
|
6
5
|
<!-- OWASP_BADGES_END --></span>
|
|
7
6
|
|
|
8
7
|
[](https://www.npmjs.com/package/@dpuse/dpuse-shared)
|
|
@@ -125,9 +124,8 @@ The following table lists top-level production and peer dependencies. All these
|
|
|
125
124
|
The following table lists top-level production and peer dependencies. All these dependencies (including transitive ones) have been recursively verified to use Apache-2.0, BSD-2-Clause, CC0-1.0, or MIT—commercially friendly licenses with minimal restrictions. Developers cloning this repository should independently verify dev and optional dependencies; users of the published library are covered by these checks. We do not include unlicensed dependencies. Used to support development activity and not released as part of the production release. Check if you clone. We use the `npm` packages [license-report](https://www.npmjs.com/package/license-report), [license-report-check](https://www.npmjs.com/package/license-report-check) and [license-report-recursive](https://www.npmjs.com/package/license-report-recursive) to identify dependency licenses.
|
|
126
125
|
|
|
127
126
|
<!-- DEPENDENCY_LICENSES_START -->
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
| :--- | :--- | :-------: | :----: | :-------------- | ---: | :------- |
|
|
127
|
+
|Name|Type|Installed|Latest|Latest Released|Deps|Document|
|
|
128
|
+
|:-|:-|:-:|:-:|:-|-:|:-|
|
|
131
129
|
|
|
132
130
|
<!-- DEPENDENCY_LICENSES_END -->
|
|
133
131
|
|
|
@@ -2,7 +2,7 @@ export type FlagId = 'es' | 'gb';
|
|
|
2
2
|
export type LocaleId = 'en' | 'es';
|
|
3
3
|
export type LocaleLabel = Partial<Record<LocaleId, string>>;
|
|
4
4
|
export type LocaleLabelMap = ReadonlyMap<string, string>;
|
|
5
|
-
export type
|
|
5
|
+
export type Localised<T> = Omit<T, 'label' | 'description'> & {
|
|
6
6
|
label: string;
|
|
7
7
|
description: string;
|
|
8
8
|
};
|
|
@@ -18,7 +18,7 @@ export declare const SUPPORTED_LANGUAGES: {
|
|
|
18
18
|
label: string;
|
|
19
19
|
}[];
|
|
20
20
|
export declare function createLabelMap(labels: Record<string, string>): LocaleLabelMap;
|
|
21
|
-
export declare function localiseConfig<T extends UnlocalisedConfig>(config: T, localeId: LocaleId): T
|
|
22
|
-
export declare function localiseConfigs<T extends UnlocalisedConfig>(configs: T[], localeId: LocaleId): T[];
|
|
21
|
+
export declare function localiseConfig<T extends UnlocalisedConfig>(config: T, localeId: LocaleId): Localised<T>;
|
|
22
|
+
export declare function localiseConfigs<T extends UnlocalisedConfig>(configs: T[], localeId: LocaleId): Localised<T>[];
|
|
23
23
|
export declare function resolveLabel(labels: LocaleLabelMap, localeId: string, fallbackLocaleId?: LocaleId): string | undefined;
|
|
24
24
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.644",
|
|
4
4
|
"description": "Common constants, types and utilities used across all DPUse projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
@@ -116,11 +116,11 @@
|
|
|
116
116
|
],
|
|
117
117
|
"prettier": "@dpuse/dpuse-development/prettierrc",
|
|
118
118
|
"devDependencies": {
|
|
119
|
-
"@dpuse/dpuse-development": "^0.3.
|
|
119
|
+
"@dpuse/dpuse-development": "^0.3.496",
|
|
120
120
|
"@dpuse/eslint-config-dpuse": "^1.0.55",
|
|
121
121
|
"@types/node": "^25.6.0",
|
|
122
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
123
|
-
"@typescript-eslint/parser": "^8.
|
|
122
|
+
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
123
|
+
"@typescript-eslint/parser": "^8.59.0",
|
|
124
124
|
"eslint": "^9.39.4",
|
|
125
125
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
126
126
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"license-report-check": "^1.0.0",
|
|
135
135
|
"license-report-recursive": "^6.8.4",
|
|
136
136
|
"md-to-pdf": "^5.2.5",
|
|
137
|
-
"npm-check-updates": "^21.0.
|
|
137
|
+
"npm-check-updates": "^21.0.3",
|
|
138
138
|
"owasp-dependency-check": "^1.0.1",
|
|
139
139
|
"prettier": "^3.8.3",
|
|
140
140
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"valibot": "^1.3.1",
|
|
148
148
|
"vite": "^8.0.9",
|
|
149
149
|
"vite-plugin-dts": "^4.5.4",
|
|
150
|
-
"vitest": "^4.1.
|
|
150
|
+
"vitest": "^4.1.5"
|
|
151
151
|
},
|
|
152
152
|
"scripts": {
|
|
153
153
|
"audit": "op run --env-file=.env -- node -e \"import('@dpuse/dpuse-development').then(m => m.auditDependencies())\"",
|