@dpuse/dpuse-shared 0.3.675 → 0.3.683

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
@@ -1,85 +1,108 @@
1
- # Data Positioning Shared Library
1
+ # DPUse Shared Library
2
2
 
3
- <span><!-- OWASP_BADGES_START -->
4
- [![OWASP](https://img.shields.io/badge/OWASP-passed-4CAF50)](https://dpuse.github.io/dpuse-shared/dependency-check-reports/dependency-check-report.html)
5
- <!-- OWASP_BADGES_END --></span>
6
-
7
- [![npm version](https://img.shields.io/npm/v/@dpuse/dpuse-shared.svg)](https://www.npmjs.com/package/@dpuse/dpuse-shared)
8
3
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
4
+ [![npm version](https://img.shields.io/npm/v/@dpuse/dpuse-shared.svg)](https://www.npmjs.com/package/@dpuse/dpuse-shared)
5
+ [![CodeQL](https://github.com/dpuse/dpuse-shared/actions/workflows/codeql.yml/badge.svg)](https://github.com/dpuse/dpuse-shared/actions/workflows/codeql.yml)
6
+ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=dpuse_dpuse-shared&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=dpuse_dpuse-shared)
7
+ [![CI](https://github.com/dpuse/dpuse-shared/actions/workflows/ci.yml/badge.svg)](https://github.com/dpuse/dpuse-shared/actions/workflows/ci.yml)
9
8
 
10
- A library containing common constants, types and utilities used across all Data Positioning projects.
9
+ ## Introduction
11
10
 
12
- ## Installation
11
+ @dpuse/dpuse-shared is the foundational library for the [DPUse](https://www.dpuse.app/) ecosystem. It provides the common constants, types, errors, and utilities that are shared across all DPUse modules — including the App, API, Engine, Connectors, Contexts, Presenters and Recipes.
13
12
 
14
- Install as a production dependency:
13
+ The library is written in TypeScript and designed to be consumed exclusively by TypeScript projects. All configuration types are schema-validated using [Valibot](https://valibot.dev/), giving consumers both compile-time safety and runtime validation from a single source of truth.
15
14
 
16
- ```bash
17
- npm install @dpuse/dpuse-shared
18
- ```
15
+ ## Table of Contents
19
16
 
20
- > See the Data Positioning security documentation for additional initialization requirements.
17
+ ## Prerequisites
21
18
 
22
- ## Declarations
19
+ The following are required to use this library:
23
20
 
24
- This package provides constants, errors, types/interfaces and utilities used by Data Positioning modules.
21
+ | Prerequisite | Version |
22
+ | --------------------------------------------- | :-----: |
23
+ | [Node.js](https://nodejs.org/) | ≥ 22.0 |
24
+ | [npm](https://www.npmjs.com/) | ≥ 11.0 |
25
+ | [TypeScript](https://www.typescriptlang.org/) | ≥ 6.0 |
25
26
 
26
- [Documentation](https://dpuse.github.io/dpuse-shared/docs/typedoc/index.html)
27
+ ## Installation
28
+
29
+ `@dpuse/dpuse-shared` is published to the [public npm registry](https://www.npmjs.com/package/@dpuse/dpuse-shared). Install it using your preferred package manager:
30
+
31
+ ```bash
32
+ # npm
33
+ npm install @dpuse/dpuse-shared
34
+
35
+ # yarn
36
+ yarn add @dpuse/dpuse-shared
27
37
 
28
- ### Modules
38
+ # pnpm
39
+ pnpm add @dpuse/dpuse-shared
40
+ ```
29
41
 
30
- The Data Positioning solution consists of the following modules. All modules, except `App`, extend the base type `Module`.
42
+ This package has no peer dependencies.
31
43
 
32
- | Type | Dynamic | Notes |
33
- | --------- | :-----: | --------------------------------------------------------------- |
34
- | App | | Implements the data positioning web application. |
35
- | Engine | ✔ | Implements the data positioning engine. |
36
- | Connector | ✔ | Implements a connector which handles one or more connections. |
37
- | Context | ✔ | Implements a context which defines one or more models. |
38
- | Presenter | ✔ | Implements a presenter which renders one or more presentations. |
39
- | Tool | ✔ | Implements... |
44
+ ## Usage
40
45
 
41
- ### Components
46
+ This package uses [sub-path exports](https://nodejs.org/api/packages.html#subpath-exports). Import only the entry points you need:
42
47
 
43
- Each module implements a set of components. All module component types extend the base component types.
48
+ ```ts
49
+ import { getComponentStatus } from '@dpuse/dpuse-shared/component';
50
+ import type { ConnectorConfig } from '@dpuse/dpuse-shared/component/module/connector';
51
+ import { ConnectorError, serialiseError } from '@dpuse/dpuse-shared/errors';
52
+ import { formatNumberAsDuration } from '@dpuse/dpuse-shared/utilities';
53
+
54
+ try {
55
+ // The locator argument follows the convention 'project.file.function'
56
+ throw new ConnectorError('Connection failed.', 'connector.connection.read');
57
+ } catch (error) {
58
+ const serialised = serialiseError(error);
59
+ }
60
+ ```
44
61
 
45
- | Types | Notes |
46
- | ------------------------------- | ------------------------------------------------------------ |
47
- | [Component](./src/component.ts) | The Component type serves as a base type for all components. |
48
- | ComponentReference | |
49
- | ComponentStatus | |
50
- | ComponentStatusId | |
51
- | ComponentTypeId | |
52
- | ComponentStatusColorId | |
62
+ ## Architecture
53
63
 
54
- #### Connector Module Components
64
+ ### Domain Model
55
65
 
56
- | Item | Notes |
57
- | --------------------------------------- | ----------------------------------------------------------------- |
58
- | [Connector Types](./src/connector.ts) | Connector types. The Connector type extends the Component type. |
59
- | [Connection Types](./src/connection.ts) | Connection types. The Connection type extends the Component type. |
66
+ `Component` is the foundational base type for all DPUse domain objects. All component types extend `ComponentConfig` and are logically grouped in the following hierarchy. `Module` is a component type whose implementations are dynamically loaded by the host modules (App and API):
60
67
 
61
- #### Context Module Components
68
+ ```
69
+ Component
70
+ ├── Module
71
+ │ ├── Connector
72
+ │ │ └── Connection
73
+ │ ├── Context
74
+ │ │ └── Model
75
+ │ │ ├── Dimension
76
+ │ │ │ └── DimensionHierarchy
77
+ │ │ ├── Entity
78
+ │ │ │ ├── DataItem
79
+ │ │ │ ├── Event
80
+ │ │ │ └── PrimaryMeasure
81
+ │ │ └── SecondaryMeasure
82
+ │ ├── Engine
83
+ │ ├── Presenter
84
+ │ │ └── Presentation
85
+ │ ├── Recipe
86
+ │ └── Tool
87
+ ├── DataView
88
+ ├── Dimension
89
+ └── EventQuery
90
+ ```
62
91
 
63
- | Item | Notes |
64
- | ---------------------------------------- | ------------------------------------------------------------------- |
65
- | [Context Types](./src/context.ts) | Context types. The Context type extends the Component type. |
66
- | [Data View Types](./src/dataView.ts) | DataView types. The DataView type extends the Component type. |
67
- | [Dimension Types](./src/dimension.ts) | Dimension types. The Dimension type extends the Component type. |
68
- | [Engine Types](./src/dimension.ts) | Engine types. |
69
- | [Event Query Types](./src/eventQuery.ts) | Event Query types. The Event Query type extends the Component type. |
92
+ ### Cross-cutting Concerns
70
93
 
71
- #### Engine Module Components
94
+ The following are shared across all modules and are not part of the domain model:
72
95
 
73
- | Item | Notes |
74
- | ---------------------------------- | ------------- |
75
- | [Engine Types](./src/dimension.ts) | Engine types. |
96
+ | Concern | Description |
97
+ | --------- | -------------------------------------------------------------------------------------------------------------------------------- |
98
+ | Errors | A typed error hierarchy with serialisation and deserialisation support for transporting errors across API and worker boundaries. |
99
+ | Utilities | Common conversion, extraction, formatting and lookup functions. |
100
+ | Encoding | Encoding configuration and format support. |
101
+ | Locale | Locale identifiers and label types used for internationalisation. |
76
102
 
77
- #### Presenter Module Components
103
+ ## API Reference
78
104
 
79
- | Item | Notes |
80
- | ------------------------------------------- | --------------------------------------------------------------------- |
81
- | [Presenter Types](./src/presenter.ts) | Presenter types. The Presenter type extends the Component type. |
82
- | [Presentation Types](./src/presentation.ts) | Presentation types. The Presentation type extends the Component type. |
105
+ This package provides constants, errors, types/interfaces and utilities used by Data Positioning modules.
83
106
 
84
107
  ### Composables
85
108
 
@@ -89,45 +112,37 @@ Each module implements a set of components. All module component types extend th
89
112
 
90
113
  ### Utilities
91
114
 
92
- ## Usage
93
-
94
- Import the library in your TypeScript project:
95
-
96
- ```ts
97
- import { type ConnectorConfig, getComponentStatus } from '@dpuse/dpuse-shared';
115
+ Implements the common Data Positioning repository management command set. For more information see [@dpuse/dpuse-development](https://github.com/dpuse/dpuse-development).
98
116
 
99
- // Example type usage.
100
- let connectorConfig: ConnectorConfig;
117
+ ## Contributing
101
118
 
102
- // Example function usage.
103
- getComponentStatus('alpha');
104
- ```
119
+ ## Changelog
105
120
 
106
- Implements the common Data Positioning repository management command set. For more information see [@dpuse/dpuse-development](https://github.com/dpuse/dpuse-development).
121
+ ## Project Health
107
122
 
108
- ## Bundle Analysis Reports
123
+ ### Bundle Analysis Reports
109
124
 
110
125
  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`.
111
126
 
112
127
  [View the Bundle Analysis Report](https://dpuse.github.io/dpuse-shared/stats.html)
113
128
 
114
- ## Dependency Check Report
129
+ ### Dependency Check Report
115
130
 
116
- 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.
117
-
118
- [View the OWASP Dependency Check Report](https://dpuse.github.io/dpuse-shared/dependency-check-reports/dependency-check-report.html)
119
-
120
- ## Dependency Licenses
131
+ ### Dependency Licenses
121
132
 
122
133
  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 uploaded 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.
123
134
 
124
135
  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.
125
136
 
126
137
  <!-- DEPENDENCY_LICENSES_START -->
127
- |Name|Type|Installed|Latest|Latest Released|Deps|Document|
128
- |:-|:-|:-:|:-:|:-|-:|:-|
138
+
139
+ | Name | Version | License(s) | Document |
140
+ | ---- | :-----: | ---------- | -------- |
129
141
 
130
142
  <!-- DEPENDENCY_LICENSES_END -->
143
+ <!-- DEPENDENCY_TREE_START -->
144
+
145
+ <!-- DEPENDENCY_TREE_END -->
131
146
 
132
147
  **Installed dependencies are kept up-to-date with latest releases.**
133
148
 
@@ -1,5 +1,5 @@
1
1
  import "./dpuse-shared-locale.es.js";
2
- import { n as e } from "./componentConfig.schema-DTtYL9IP.js";
2
+ import { n as e } from "./componentConfig.schema-C75xefrQ.js";
3
3
  //#region src/component/index.ts
4
4
  var t = [
5
5
  {
@@ -1,6 +1,6 @@
1
1
  import { createLabelMap as e, resolveLabel as t } from "./dpuse-shared-locale.es.js";
2
- import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, o as l, p as u, s as d, u as f } from "./componentConfig.schema-DTtYL9IP.js";
3
- import { t as p } from "./moduleConfig.schema-CMPetJQa.js";
2
+ import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, o as l, p as u, s as d, u as f } from "./componentConfig.schema-C75xefrQ.js";
3
+ import { t as p } from "./moduleConfig.schema-DGEZc-oy.js";
4
4
  //#region src/component/module/connector/connectorConfig.schema.ts
5
5
  var m = n([
6
6
  "application",
@@ -1,5 +1,5 @@
1
- import { a as e, c as t, d as n, o as r, r as i, t as a, u as o } from "./componentConfig.schema-DTtYL9IP.js";
2
- import { t as s } from "./moduleConfig.schema-CMPetJQa.js";
1
+ import { a as e, c as t, d as n, o as r, r as i, t as a, u as o } from "./componentConfig.schema-C75xefrQ.js";
2
+ import { t as s } from "./moduleConfig.schema-DGEZc-oy.js";
3
3
  //#region src/component/module/context/contextConfig.schema.ts
4
4
  var c = n({
5
5
  ...a,
@@ -1,5 +1,5 @@
1
- import { a as e, c as t, d as n, o as r, r as i } from "./componentConfig.schema-DTtYL9IP.js";
2
- import { t as a } from "./moduleConfig.schema-CMPetJQa.js";
1
+ import { a as e, c as t, d as n, o as r, r as i } from "./componentConfig.schema-C75xefrQ.js";
2
+ import { t as a } from "./moduleConfig.schema-DGEZc-oy.js";
3
3
  //#region src/component/module/presenter/presenterConfig.schema.ts
4
4
  var o = e([
5
5
  "list",
@@ -1,12 +1,10 @@
1
- //#region src/component/module/tool/index.ts
2
- var e = "https://engine-eu.dpuse.app/tools";
3
- async function t(t, n) {
4
- let r = `dpuse-tool-${n}`, i = t.find((e) => e.id === r);
5
- if (!i) throw Error(`Connector could not load unknown tool '${n}'.`);
1
+ async function e(e, t) {
2
+ let n = `dpuse-tool-${t}`, r = e.find((e) => e.id === n);
3
+ if (!r) throw Error(`Connector could not load unknown tool '${t}'.`);
6
4
  return new (await (import(
7
5
  /* @vite-ignore */
8
- `${e}/${n}_v${i.version}/${r}.es.js`
6
+ `https://engine-eu.dpuse.app/tools/${t}_v${r.version}/${n}.es.js`
9
7
  ))).Tool();
10
8
  }
11
9
  //#endregion
12
- export { t as loadTool };
10
+ export { e as loadTool };
@@ -27,13 +27,13 @@ var e = 2048, t = class extends Error {
27
27
  }
28
28
  };
29
29
  async function s(e, t, n) {
30
- let r = ` - ${e.statusText}`, i = `${t} Response status '${e.status}${e.statusText ? r : ""}' received.`, a;
30
+ let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
31
31
  try {
32
32
  a = await e.text();
33
33
  } catch (e) {
34
34
  a = `<body unavailable: ${u(e).message}>`;
35
35
  }
36
- return new o(i, n, { body: m(a) });
36
+ return new o(i, n, { body: h(a) });
37
37
  }
38
38
  function c(e) {
39
39
  return e.map((e) => e.message).join(" ");
@@ -59,84 +59,36 @@ function d(e) {
59
59
  let t = /* @__PURE__ */ new Set(), n = [], r = u(e);
60
60
  for (; r != null && !t.has(r);) {
61
61
  t.add(r);
62
- let e;
63
- switch (r.name) {
64
- case "APIError": {
65
- let t = r;
66
- e = {
67
- data: t.data,
68
- locator: t.locator,
69
- message: r.message,
70
- name: "APIError",
71
- stack: r.stack
72
- }, r = r.cause == null ? null : u(r.cause);
73
- break;
74
- }
75
- case "AppError": {
76
- let t = r;
77
- e = {
78
- data: t.data,
79
- locator: t.locator,
80
- message: r.message,
81
- name: "AppError",
82
- stack: r.stack
83
- }, r = r.cause == null ? null : u(r.cause);
84
- break;
85
- }
86
- case "ConnectorError": {
87
- let t = r;
88
- e = {
89
- data: t.data,
90
- locator: t.locator,
91
- message: r.message,
92
- name: "ConnectorError",
93
- stack: r.stack
94
- }, r = r.cause == null ? null : u(r.cause);
95
- break;
96
- }
97
- case "EngineError": {
98
- let t = r;
99
- e = {
100
- data: t.data,
101
- locator: t.locator,
102
- message: r.message,
103
- name: "EngineError",
104
- stack: r.stack
105
- }, r = r.cause == null ? null : u(r.cause);
106
- break;
107
- }
108
- case "FetchError": {
109
- let t = r;
110
- e = {
111
- data: t.data,
112
- locator: t.locator,
113
- message: r.message,
114
- name: "FetchError",
115
- stack: r.stack
116
- }, r = r.cause == null ? null : u(r.cause);
117
- break;
118
- }
119
- default:
120
- let { cause: t, ...n } = Object.fromEntries(Object.entries(r));
121
- r.name ? (e = {
122
- data: n,
123
- locator: "",
124
- message: r.message,
125
- name: r.name,
126
- stack: r.stack
127
- }, r = r.cause == null ? null : u(r.cause)) : (e = {
128
- data: n,
129
- locator: "",
130
- message: p(r),
131
- name: "Error",
132
- stack: void 0
133
- }, r = null);
134
- }
135
- /(?:\.{3}|[.!?])$/.test(e.message) || (e.message += "."), n.push(e);
62
+ let [e, i] = f(r);
63
+ /(?:\.{3}|[.!?])$/.test(e.message) || (e.message += "."), n.push(e), r = i;
136
64
  }
137
65
  return n;
138
66
  }
139
67
  function f(e) {
68
+ let n = e.cause == null ? null : u(e.cause);
69
+ if (e instanceof t) return [{
70
+ data: e.data,
71
+ locator: e.locator,
72
+ message: e.message,
73
+ name: e.name,
74
+ stack: e.stack
75
+ }, n];
76
+ let r = Object.fromEntries(Object.entries(e).filter(([e]) => e !== "cause"));
77
+ return e.name ? [{
78
+ data: r,
79
+ locator: "",
80
+ message: e.message,
81
+ name: e.name,
82
+ stack: e.stack
83
+ }, n] : [{
84
+ data: r,
85
+ locator: "",
86
+ message: m(e),
87
+ name: "Error",
88
+ stack: void 0
89
+ }, null];
90
+ }
91
+ function p(e) {
140
92
  if (e.length === 0) return;
141
93
  let t;
142
94
  for (let s of e.toReversed()) {
@@ -165,7 +117,7 @@ function f(e) {
165
117
  }
166
118
  return t;
167
119
  }
168
- function p(e) {
120
+ function m(e) {
169
121
  let t;
170
122
  try {
171
123
  t = JSON.stringify(e);
@@ -174,8 +126,8 @@ function p(e) {
174
126
  }
175
127
  return t === "" && (t = "Unknown error"), t;
176
128
  }
177
- function m(t) {
129
+ function h(t) {
178
130
  if (!(t == null || t === "")) return t.length > e ? `${t.slice(0, e)}... [truncated]` : t;
179
131
  }
180
132
  //#endregion
181
- export { r as APIError, n as AppError, a as ConnectorError, t as DPUseError, i as EngineError, o as FetchError, s as buildFetchError, c as concatenateSerialisedErrorMessages, l as ignoreErrors, u as normalizeToError, d as serialiseError, f as unserialiseError };
133
+ export { r as APIError, n as AppError, a as ConnectorError, t as DPUseError, i as EngineError, o as FetchError, s as buildFetchError, c as concatenateSerialisedErrorMessages, l as ignoreErrors, u as normalizeToError, d as serialiseError, p as unserialiseError };
@@ -35,7 +35,7 @@ function i(e) {
35
35
  }
36
36
  function a(n, r = 2, i = r, a = e) {
37
37
  if (n == null) return "";
38
- let o = `${a}decimal${r}.${i}`, s = t.get(o);
38
+ let o = `${a}decimal${String(r)}.${String(i)}`, s = t.get(o);
39
39
  return s || (s = new Intl.NumberFormat(a, {
40
40
  localeMatcher: "best fit",
41
41
  maximumFractionDigits: r,
@@ -1,4 +1,4 @@
1
- import { a as e, d as t, m as n, t as r } from "./componentConfig.schema-DTtYL9IP.js";
1
+ import { a as e, d as t, m as n, t as r } from "./componentConfig.schema-C75xefrQ.js";
2
2
  //#region src/component/module/moduleConfig.schema.ts
3
3
  var i = e([
4
4
  "app",
@@ -0,0 +1,2 @@
1
+ declare const _default: import('eslint/config').Config[];
2
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import { InferOutput } from 'valibot';
2
2
  import { Component } from '../..';
3
- import { EngineConnectorActionOptions } from '../../../engine';
3
+ import { EngineConnectorActionOptions } from '../engine';
4
4
  import { ToolConfig } from '../tool';
5
5
  import { ConnectionDescriptionConfig, ConnectionNodeConfig, ObjectColumnConfig } from '../../connection';
6
6
  import { connectorCategoryConfigSchema, connectorConfigSchema, connectorOperationNameSchema } from './connectorConfig.schema';
@@ -1,5 +1,5 @@
1
1
  import { InferOutput } from 'valibot';
2
- import { EngineContextActionOptions } from '../../../engine';
2
+ import { EngineContextActionOptions } from '../engine';
3
3
  import { Component, ComponentConfig, ComponentReference } from '../..';
4
4
  import { contextConfigSchema, contextOperationNameSchema } from './contextConfig.schema';
5
5
  export { contextConfigSchema } from './contextConfig.schema';
@@ -1,8 +1,8 @@
1
- import { ComponentConfig } from '../component';
2
- import { EncodingTypeConfig } from '../encoding';
3
- import { LocalisedConfig } from '../locale';
4
- import { ModuleConfig } from '../component/module';
5
- import { ToolConfig } from '../component/module/tool';
1
+ import { ComponentConfig } from '../..';
2
+ import { EncodingTypeConfig } from '../../../encoding';
3
+ import { LocalisedConfig } from '../../../locale';
4
+ import { ModuleConfig } from '..';
5
+ import { ToolConfig } from '../tool';
6
6
  export interface EngineRuntime {
7
7
  getEncodingTypeConfigs: (localeId: string) => EncodingTypeConfig[];
8
8
  invokeWorker(errorEventCallback: (errorEvent: ErrorEvent) => void): EngineWorker;
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "0.3.675",
3
+ "version": "0.3.683",
4
+ "private": false,
4
5
  "description": "Common constants, types and utilities used across all DPUse projects.",
5
6
  "license": "MIT",
6
7
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",
7
- "private": false,
8
8
  "type": "module",
9
+ "sideEffects": false,
9
10
  "homepage": "https://www.dpuse.app",
11
+ "bugs": {
12
+ "url": "https://github.com/dpuse/dpuse-shared/issues"
13
+ },
10
14
  "repository": {
11
15
  "type": "git",
12
- "url": "git+https://github.com/data-positioning/dpuse-shared.git"
13
- },
14
- "bugs": {
15
- "url": "https://github.com/data-positioning/dpuse-shared/issues"
16
+ "url": "git+https://github.com/dpuse/dpuse-shared.git"
16
17
  },
17
18
  "module": "./dist/dpuse-shared.es.js",
18
19
  "types": "./dist/types/src/index.d.ts",
@@ -77,6 +78,10 @@
77
78
  "import": "./dist/dpuse-shared-componentModuleContextModelSecondaryMeasure.es.js",
78
79
  "types": "./dist/types/src/component/module/context/model/secondaryMeasure/index.d.ts"
79
80
  },
81
+ "./component/module/engine": {
82
+ "import": "./dist/dpuse-shared-componentModuleEngine.es.js",
83
+ "types": "./dist/types/src/component/module/engine/index.d.ts"
84
+ },
80
85
  "./component/module/presenter": {
81
86
  "import": "./dist/dpuse-shared-componentModulePresenter.es.js",
82
87
  "types": "./dist/types/src/component/module/presenter/index.d.ts"
@@ -93,10 +98,6 @@
93
98
  "import": "./dist/dpuse-shared-encoding.es.js",
94
99
  "types": "./dist/types/src/encoding/index.d.ts"
95
100
  },
96
- "./engine": {
97
- "import": "./dist/dpuse-shared-engine.es.js",
98
- "types": "./dist/types/src/engine/index.d.ts"
99
- },
100
101
  "./errors": {
101
102
  "import": "./dist/dpuse-shared-errors.es.js",
102
103
  "types": "./dist/types/src/errors/index.d.ts"
@@ -110,63 +111,55 @@
110
111
  "types": "./dist/types/src/utilities/index.d.ts"
111
112
  }
112
113
  },
113
- "sideEffects": false,
114
114
  "files": [
115
115
  "dist"
116
116
  ],
117
+ "engines": {
118
+ "node": ">=22.0.0",
119
+ "npm": ">=11.0.0"
120
+ },
117
121
  "prettier": "@dpuse/dpuse-development/prettierrc",
118
- "devDependencies": {
119
- "@dpuse/dpuse-development": "^0.3.500",
120
- "@dpuse/eslint-config-dpuse": "^1.0.69",
121
- "@types/node": "^25.7.0",
122
- "@typescript-eslint/eslint-plugin": "^8.59.3",
123
- "@typescript-eslint/parser": "^8.59.3",
124
- "eslint": "^10.3.0",
125
- "eslint-import-resolver-typescript": "^4.4.4",
126
- "eslint-plugin-import-x": "^4.16.2",
127
- "eslint-plugin-security": "^4.0.0",
128
- "eslint-plugin-sonarjs": "^4.0.3",
129
- "eslint-plugin-unicorn": "^64.0.0",
130
- "file-type": "^22.0.1",
131
- "jiti": "^2.7.0",
132
- "license-downloader": "^2.0.0",
133
- "license-report": "^6.8.2",
134
- "license-report-check": "^1.0.0",
135
- "license-report-recursive": "^6.8.4",
136
- "md-to-pdf": "^5.2.5",
137
- "npm-check-updates": "^22.2.0",
138
- "owasp-dependency-check": "^1.0.1",
139
- "prettier": "^3.8.3",
140
- "rollup-plugin-visualizer": "^7.0.1",
141
- "sonda": "^0.11.1",
142
- "type-fest": "^5.6.0",
143
- "typedoc": "^0.28.19",
144
- "typedoc-github-theme": "^0.4.0",
145
- "typedoc-material-theme": "^1.4.1",
146
- "typescript": "^6.0.3",
147
- "valibot": "^1.4.0",
148
- "vite": "^8.0.13",
149
- "vite-plugin-dts": "^5.0.0",
150
- "vitest": "^4.1.6"
122
+ "allowScripts": {
123
+ "fsevents@2.3.3": true,
124
+ "unrs-resolver@1.11.1": true
151
125
  },
152
126
  "scripts": {
153
- "audit": "op run --env-file=.env -- node -e \"import('@dpuse/dpuse-development').then(m => m.auditDependencies())\"",
127
+ "audit": "node -e \"import('@dpuse/dpuse-development').then(m => m.auditDependencies())\"",
154
128
  "build": "node -e \"import('@dpuse/dpuse-development').then(m => m.buildProject())\"",
155
- "check": "node -e \"import('@dpuse/dpuse-development').then(m => m.checkDependencies())\"",
156
- "document": "op run --env-file=.env -- node -e \"import('@dpuse/dpuse-development').then(m => m.documentDependencies(['MIT']))\"",
129
+ "check": "node -e \"import('@dpuse/dpuse-development').then(m => m.checkConfigFiles())\" && node -e \"import('@dpuse/dpuse-development').then(m => m.checkDependencies())\"",
130
+ "document": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentDependencies(['MIT']))\"",
157
131
  "format": "node -e \"import('@dpuse/dpuse-development').then(m => m.formatCode())\"",
158
132
  "lint": "node -e \"import('@dpuse/dpuse-development').then(m => m.lintCode())\"",
159
- "release": "op run --env-file=.env -- node -e \"import('@dpuse/dpuse-development').then(m => m.releaseProject())\"",
133
+ "release": "npm run build && npm run sync && gh release create \"v$(npm pkg get version | tr -d '\"')\" --generate-notes --latest",
160
134
  "sync": "node -e \"import('@dpuse/dpuse-development').then(m => m.syncProjectWithGitHub())\"",
161
- "test": "node -e \"import('@dpuse/dpuse-development').then(m => m.testProject())\"",
162
- "update": "node -e \"import('@dpuse/dpuse-development').then(m => m.updateDPUseDependencies(['development', 'eslint']))\"",
163
- "_readmeToPDF": "md-to-pdf README.md",
164
- "_td": "npx typedoc --options docs/typedoc.json",
165
- "_td:github": "npx typedoc --options docs/typedoc.json --plugin typedoc-github-theme",
166
- "_td:material": "npx typedoc --options docs/typedoc.json --plugin typedoc-material-theme --themeColor '#cb9820'"
135
+ "test": "node -e \"import('@dpuse/dpuse-development').then(m => m.testProject())\""
167
136
  },
168
- "engines": {
169
- "node": ">=22.0.0",
170
- "npm": ">=11.0.0"
137
+ "devDependencies": {
138
+ "@dpuse/dpuse-development": "^0.3.549",
139
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
140
+ "@types/eslint-plugin-security": "^3.0.1",
141
+ "@types/node": "^26.0.0",
142
+ "eslint": "^10.5.0",
143
+ "eslint-config-prettier": "^10.1.8",
144
+ "eslint-import-resolver-typescript": "^4.4.5",
145
+ "eslint-plugin-import-x": "^4.17.0",
146
+ "eslint-plugin-regexp": "^3.1.0",
147
+ "eslint-plugin-security": "^4.0.1",
148
+ "eslint-plugin-sonarjs": "^4.1.0",
149
+ "eslint-plugin-unicorn": "^68.0.0",
150
+ "file-type": "^22.0.1",
151
+ "jiti": "^2.7.0",
152
+ "license-checker-rseidelsohn": "^5.0.1",
153
+ "npm-check-updates": "^22.2.7",
154
+ "prettier": "^3.8.4",
155
+ "rollup-plugin-visualizer": "^7.0.1",
156
+ "sonda": "^0.13.1",
157
+ "type-fest": "^5.7.0",
158
+ "typescript": "^6.0.3",
159
+ "typescript-eslint": "^8.62.0",
160
+ "valibot": "^1.4.1",
161
+ "vite": "^8.1.0",
162
+ "vite-plugin-dts": "^5.0.3",
163
+ "vitest": "^4.1.9"
171
164
  }
172
165
  }
package/README.pdf DELETED
Binary file