@dpuse/dpuse-shared 0.3.653 → 0.3.655

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.
@@ -3,7 +3,10 @@ var e = "https://engine-eu.dpuse.app/tools";
3
3
  async function t(t, n) {
4
4
  let r = `dpuse-tool-${n}`, i = t.find((e) => e.id === r);
5
5
  if (!i) throw Error(`Connector could not load unknown tool '${n}'.`);
6
- return new (await (import(`${e}/${n}_v${i.version}/${r}.es.js`))).Tool();
6
+ return new (await (import(
7
+ /* @vite-ignore */
8
+ `${e}/${n}_v${i.version}/${r}.es.js`
9
+ ))).Tool();
7
10
  }
8
11
  //#endregion
9
12
  export { t as loadTool };
@@ -15,14 +15,16 @@ function r(e, t) {
15
15
  return {
16
16
  ...e,
17
17
  label: e.label[t] ?? e.id,
18
- description: e.description[t] ?? e.id
18
+ description: e.description[t] ?? e.id,
19
+ verb: e.verb?.[t] ?? void 0
19
20
  };
20
21
  }
21
22
  function i(e, t) {
22
23
  return e.map((e) => ({
23
24
  ...e,
24
25
  label: e.label[t] ?? e.id,
25
- description: e.description[t] ?? e.id
26
+ description: e.description[t] ?? e.id,
27
+ verb: e.verb?.[t] ?? void 0
26
28
  }));
27
29
  }
28
30
  function a(e, t, n = "en") {
@@ -2,14 +2,16 @@ 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 LocalisedConfig<T> = Omit<T, 'label' | 'description'> & {
5
+ export type LocalisedConfig<T> = Omit<T, 'label' | 'description' | 'verb'> & {
6
6
  label: string;
7
7
  description: string;
8
+ verb: string | undefined;
8
9
  };
9
10
  interface UnlocalisedConfig {
10
11
  id: string;
11
12
  label: LocaleLabel;
12
13
  description: LocaleLabel;
14
+ verb: LocaleLabel | undefined;
13
15
  }
14
16
  export declare const DEFAULT_LOCALE_ID: LocaleId;
15
17
  export declare const SUPPORTED_LANGUAGES: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "0.3.653",
3
+ "version": "0.3.655",
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,7 +116,7 @@
116
116
  ],
117
117
  "prettier": "@dpuse/dpuse-development/prettierrc",
118
118
  "devDependencies": {
119
- "@dpuse/dpuse-development": "^0.3.496",
119
+ "@dpuse/dpuse-development": "^0.3.497",
120
120
  "@dpuse/eslint-config-dpuse": "^1.0.55",
121
121
  "@types/node": "^25.6.0",
122
122
  "@typescript-eslint/eslint-plugin": "^8.59.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.3",
137
+ "npm-check-updates": "^22.0.1",
138
138
  "owasp-dependency-check": "^1.0.1",
139
139
  "prettier": "^3.8.3",
140
140
  "rollup-plugin-visualizer": "^7.0.1",
@@ -145,7 +145,7 @@
145
145
  "typedoc-material-theme": "^1.4.1",
146
146
  "typescript": "^5.9.3",
147
147
  "valibot": "^1.3.1",
148
- "vite": "^8.0.9",
148
+ "vite": "^8.0.10",
149
149
  "vite-plugin-dts": "^4.5.4",
150
150
  "vitest": "^4.1.5"
151
151
  },