@dpuse/dpuse-shared 0.3.594 → 0.3.597
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
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
<span><!-- OWASP_BADGES_START -->
|
|
4
4
|
[](https://dpuse.github.io/dpuse-shared/dependency-check-reports/dependency-check-report.html)
|
|
5
|
+
|
|
5
6
|
<!-- OWASP_BADGES_END --></span>
|
|
7
|
+
|
|
6
8
|
[](https://www.npmjs.com/package/@dpuse/dpuse-shared)
|
|
7
9
|
[](./LICENSE)
|
|
8
10
|
|
|
@@ -22,7 +24,7 @@ npm install @dpuse/dpuse-shared
|
|
|
22
24
|
|
|
23
25
|
This package provides constants, errors, types/interfaces and utilities used by Data Positioning modules.
|
|
24
26
|
|
|
25
|
-
[Documentation](https://
|
|
27
|
+
[Documentation](https://dpuse.github.io/dpuse-shared/docs/typedoc/index.html)
|
|
26
28
|
|
|
27
29
|
### Modules
|
|
28
30
|
|
|
@@ -102,19 +104,19 @@ let connectorConfig: ConnectorConfig;
|
|
|
102
104
|
getComponentStatus('alpha');
|
|
103
105
|
```
|
|
104
106
|
|
|
105
|
-
Implements the common Data Positioning repository management command set. For more information see [@dpuse/dpuse-development](https://github.com/
|
|
107
|
+
Implements the common Data Positioning repository management command set. For more information see [@dpuse/dpuse-development](https://github.com/dpuse/dpuse-development).
|
|
106
108
|
|
|
107
109
|
## Bundle Analysis Reports
|
|
108
110
|
|
|
109
111
|
The Bundle Analysis Report provides a detailed breakdown of the bundle's composition and module sizes, helping to identify which modules contribute most to the final build. It is generated automatically on each release using the npm package `rollup-plugin-visualizer`.
|
|
110
112
|
|
|
111
|
-
[View the Bundle Analysis Report](https://
|
|
113
|
+
[View the Bundle Analysis Report](https://dpuse.github.io/dpuse-shared/stats.html)
|
|
112
114
|
|
|
113
115
|
## Dependency Check Report
|
|
114
116
|
|
|
115
117
|
The OWASP Dependency Check Report identifies known vulnerabilities in project dependencies. It is generated automatically on each release using the npm package [owasp-dependency-check](https://dependency-check.github.io/DependencyCheck/index.html). We also rely on GitHub Dependabot to continuously check for vulnerabilities across all dependencies.
|
|
116
118
|
|
|
117
|
-
[View the OWASP Dependency Check Report](https://
|
|
119
|
+
[View the OWASP Dependency Check Report](https://dpuse.github.io/dpuse-shared/dependency-check-reports/dependency-check-report.html)
|
|
118
120
|
|
|
119
121
|
## Dependency Licenses
|
|
120
122
|
|
|
@@ -123,8 +125,9 @@ The following table lists top-level production and peer dependencies. All these
|
|
|
123
125
|
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.
|
|
124
126
|
|
|
125
127
|
<!-- DEPENDENCY_LICENSES_START -->
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
|
|
129
|
+
| Name | Type | Installed | Latest | Latest Released | Deps | Document |
|
|
130
|
+
| :--- | :--- | :-------: | :----: | :-------------- | ---: | :------- |
|
|
128
131
|
|
|
129
132
|
<!-- DEPENDENCY_LICENSES_END -->
|
|
130
133
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./componentConfig.schema-Csigo0y4.js";
|
|
2
|
-
import
|
|
2
|
+
import "./dpuse-shared-locale.es.js";
|
|
3
3
|
//#region src/component/index.ts
|
|
4
|
-
var
|
|
4
|
+
var t = [
|
|
5
5
|
{
|
|
6
6
|
id: "alpha",
|
|
7
7
|
color: "red",
|
|
@@ -48,13 +48,13 @@ var n = [
|
|
|
48
48
|
labels: { "en-gb": "under-review" }
|
|
49
49
|
}
|
|
50
50
|
];
|
|
51
|
-
function
|
|
52
|
-
let
|
|
53
|
-
if (
|
|
54
|
-
let e =
|
|
51
|
+
function n(e, n = "en") {
|
|
52
|
+
let r = t.find((t) => t.id === e);
|
|
53
|
+
if (r) {
|
|
54
|
+
let e = r.labels[n] ?? r.labels.en ?? r.id;
|
|
55
55
|
return {
|
|
56
|
-
id:
|
|
57
|
-
color:
|
|
56
|
+
id: r.id,
|
|
57
|
+
color: r.color,
|
|
58
58
|
label: e
|
|
59
59
|
};
|
|
60
60
|
}
|
|
@@ -65,4 +65,4 @@ function r(e, r = t) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
export { e as componentConfigSchema,
|
|
68
|
+
export { e as componentConfigSchema, n as getComponentStatus };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, o as c, p as l, s as u, u as d } from "./componentConfig.schema-Csigo0y4.js";
|
|
2
2
|
import { t as f } from "./moduleConfig.schema-WvtAJjAG.js";
|
|
3
|
-
import {
|
|
3
|
+
import { createLabelMap as p, resolveLabel as m } from "./dpuse-shared-locale.es.js";
|
|
4
4
|
//#region src/component/connector/connectorConfig.schema.ts
|
|
5
|
-
var
|
|
5
|
+
var h = r({
|
|
6
6
|
authMethodId: a([
|
|
7
7
|
"apiKey",
|
|
8
8
|
"disabled",
|
|
@@ -15,12 +15,12 @@ var g = r({
|
|
|
15
15
|
label: l(e),
|
|
16
16
|
maxConnectionCount: d(n()),
|
|
17
17
|
params: l(u(s(i(), i())))
|
|
18
|
-
}),
|
|
18
|
+
}), g = a([
|
|
19
19
|
"application",
|
|
20
20
|
"curatedDataset",
|
|
21
21
|
"database",
|
|
22
22
|
"fileStore"
|
|
23
|
-
]),
|
|
23
|
+
]), _ = a([
|
|
24
24
|
"abortOperation",
|
|
25
25
|
"auditObjectContent",
|
|
26
26
|
"authenticateConnection",
|
|
@@ -36,26 +36,26 @@ var g = r({
|
|
|
36
36
|
"retrieveChunks",
|
|
37
37
|
"retrieveRecords",
|
|
38
38
|
"upsertRecords"
|
|
39
|
-
]),
|
|
39
|
+
]), v = a([
|
|
40
40
|
"bidirectional",
|
|
41
41
|
"destination",
|
|
42
42
|
"source",
|
|
43
43
|
"unknown"
|
|
44
|
-
]),
|
|
44
|
+
]), y = r({
|
|
45
45
|
id: i(),
|
|
46
46
|
label: c
|
|
47
|
-
}),
|
|
47
|
+
}), b = r({
|
|
48
48
|
...f,
|
|
49
49
|
typeId: o("connector"),
|
|
50
|
-
category: d(
|
|
51
|
-
categoryId:
|
|
52
|
-
implementations: s(i(),
|
|
53
|
-
operations: u(
|
|
54
|
-
usageId:
|
|
50
|
+
category: d(y),
|
|
51
|
+
categoryId: g,
|
|
52
|
+
implementations: s(i(), h),
|
|
53
|
+
operations: u(_),
|
|
54
|
+
usageId: v,
|
|
55
55
|
vendorAccountURL: d(i()),
|
|
56
56
|
vendorDocumentationURL: d(i()),
|
|
57
57
|
vendorHomeURL: d(i())
|
|
58
|
-
}),
|
|
58
|
+
}), x = [
|
|
59
59
|
{
|
|
60
60
|
id: "application",
|
|
61
61
|
label: { "en-gb": "Application" }
|
|
@@ -72,10 +72,10 @@ var g = r({
|
|
|
72
72
|
id: "fileStore",
|
|
73
73
|
label: { "en-gb": "File Store" }
|
|
74
74
|
}
|
|
75
|
-
],
|
|
76
|
-
let n =
|
|
75
|
+
], S = (e, t = "en") => {
|
|
76
|
+
let n = x.find((t) => t.id === e);
|
|
77
77
|
if (n) {
|
|
78
|
-
let e =
|
|
78
|
+
let e = m(p(n.label), t);
|
|
79
79
|
return {
|
|
80
80
|
id: n.id,
|
|
81
81
|
label: e ?? n.id
|
|
@@ -87,4 +87,4 @@ var g = r({
|
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
//#endregion
|
|
90
|
-
export {
|
|
90
|
+
export { b as connectorConfigSchema, S as constructConnectorCategoryConfig };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region src/locale/index.ts
|
|
2
|
-
var e = "en
|
|
3
|
-
let
|
|
4
|
-
if (
|
|
5
|
-
if (
|
|
2
|
+
var e = "en", t = (e) => new Map(Object.entries(e)), n = (e, t, n = "en") => {
|
|
3
|
+
let r = e.get(t);
|
|
4
|
+
if (r !== void 0) return r;
|
|
5
|
+
if (n !== t) return e.get(n);
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
8
8
|
export { e as DEFAULT_LOCALE_CODE, t as createLabelMap, n as resolveLabel };
|
|
@@ -5,7 +5,7 @@ declare const DEFAULT_LOCALE_CODE: LocaleCode;
|
|
|
5
5
|
/**
|
|
6
6
|
* Locale codes.
|
|
7
7
|
*/
|
|
8
|
-
type LocaleCode = 'en' | '
|
|
8
|
+
type LocaleCode = 'en' | 'es';
|
|
9
9
|
/**
|
|
10
10
|
* Localised string.
|
|
11
11
|
*/
|
|
@@ -21,6 +21,6 @@ declare const createLabelMap: (labels: Record<string, string>) => LocaleLabelMap
|
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
|
-
declare const resolveLabel: (labels: LocaleLabelMap, localeId: string, fallbackLocaleId?: "en
|
|
24
|
+
declare const resolveLabel: (labels: LocaleLabelMap, localeId: string, fallbackLocaleId?: "en") => string | undefined;
|
|
25
25
|
export { createLabelMap, DEFAULT_LOCALE_CODE, resolveLabel };
|
|
26
26
|
export type { LocaleCode, LocaleLabelMap, LocalisedString };
|
package/package.json
CHANGED