@gisatcz/ptr-be-core 57.0.0 → 57.1.1
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.
|
@@ -33,11 +33,13 @@ export interface HasEdges {
|
|
|
33
33
|
/**
|
|
34
34
|
* Represents a node and its neighbouring nodes.
|
|
35
35
|
*
|
|
36
|
-
* @typeParam T - The type of the node
|
|
36
|
+
* @typeParam T - The type of the node.
|
|
37
|
+
* @typeParam U - The type of the neighbours.
|
|
37
38
|
* @property node - The main node, or `null` if not present.
|
|
38
39
|
* @property neighbours - An array of neighbouring nodes.
|
|
39
|
-
* @property edges - An array of edges connecting the node to its neighbours.
|
|
40
40
|
*/
|
|
41
|
-
export interface NodeWithNeighbours<T>
|
|
41
|
+
export interface NodeWithNeighbours<T, U> {
|
|
42
42
|
node: T;
|
|
43
|
+
neighbours: U[];
|
|
44
|
+
edges: GraphEdge[];
|
|
43
45
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gisatcz/ptr-be-core",
|
|
3
|
-
"version": "57.
|
|
3
|
+
"version": "57.1.1",
|
|
4
4
|
"description": "Shared core library for PTR BE services and SSR applications",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "https://github.com/Gisat/ptr-be-core.git"
|
|
8
|
-
},
|
|
9
5
|
"type": "module",
|
|
10
6
|
"files": [
|
|
11
7
|
"dist/"
|
|
@@ -25,47 +21,51 @@
|
|
|
25
21
|
},
|
|
26
22
|
"sideEffects": false,
|
|
27
23
|
"scripts": {
|
|
28
|
-
"yalc:publish": "yalc publish",
|
|
29
|
-
"yalc:publish:push": "yalc publish --push",
|
|
30
24
|
"dev": "npm run build:clean && rollup --config --watch",
|
|
31
|
-
"pack:check": "npm pack --dry-run",
|
|
32
|
-
"lint": "eslint",
|
|
33
|
-
"test": "vitest run --config vitest.config.ts",
|
|
34
25
|
"build:clean": "rm -rf dist .rollup.cache tsconfig.tsbuildinfo",
|
|
35
26
|
"build": "npm run build:clean && rollup --config",
|
|
36
|
-
"
|
|
27
|
+
"lint": "eslint",
|
|
28
|
+
"test": "vitest run --config vitest.config.ts",
|
|
29
|
+
"yalc:publish": "yalc publish",
|
|
30
|
+
"yalc:publish:push": "yalc publish --push",
|
|
31
|
+
"before:push": "npm run lint && npm run build && npm run test",
|
|
32
|
+
"pack:check": "npm pack --dry-run"
|
|
37
33
|
},
|
|
38
|
-
"author": "",
|
|
39
|
-
"license": "ISC",
|
|
40
34
|
"peerDependencies": {
|
|
41
35
|
"sqlite": "^5.1.1",
|
|
42
|
-
"sqlite3": "^
|
|
43
|
-
"lodash": "^4.
|
|
44
|
-
"luxon": "^3.
|
|
45
|
-
"pino": "^
|
|
36
|
+
"sqlite3": "^6.0.1",
|
|
37
|
+
"lodash": "^4.18.1",
|
|
38
|
+
"luxon": "^3.7.2",
|
|
39
|
+
"pino": "^10.3.1"
|
|
46
40
|
},
|
|
47
41
|
"devDependencies": {
|
|
42
|
+
"@types/lodash": "^4.17.24",
|
|
43
|
+
"@types/luxon": "^3.7.1",
|
|
44
|
+
"@types/node": "^25.6.0",
|
|
45
|
+
"vitest": "^4.1.4",
|
|
46
|
+
"vite": "^8.0.8",
|
|
47
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^8.58.2",
|
|
49
|
+
"@typescript-eslint/parser": "^8.58.2",
|
|
50
|
+
"typescript-eslint": "^8.58.2",
|
|
51
|
+
"eslint": "^10.2.0",
|
|
52
|
+
"eslint-plugin-node": "^11.1.0",
|
|
48
53
|
"@rollup/plugin-json": "^6.1.0",
|
|
49
54
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
50
55
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^8.53.1",
|
|
55
|
-
"@typescript-eslint/parser": "^8.53.1",
|
|
56
|
-
"eslint": "^9.39.2",
|
|
57
|
-
"eslint-plugin-node": "^11.1.0",
|
|
58
|
-
"rollup": "^4.56.0",
|
|
59
|
-
"rollup-plugin-dts": "^6.3.0",
|
|
60
|
-
"ts-node": "^10.9.2",
|
|
56
|
+
"rollup": "^4.60.1",
|
|
57
|
+
"rollup-plugin-dts": "^6.4.1",
|
|
58
|
+
"typescript": "^6.0.2",
|
|
61
59
|
"tsc-alias": "^1.8.16",
|
|
62
60
|
"tsconfig-paths": "^4.2.0",
|
|
63
61
|
"tslib": "^2.8.1",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
}
|
|
62
|
+
"ts-node": "^10.9.2",
|
|
63
|
+
"tsx": "^4.21.0"
|
|
64
|
+
},
|
|
65
|
+
"repository": {
|
|
66
|
+
"type": "git",
|
|
67
|
+
"url": "https://github.com/Gisat/ptr-be-core.git"
|
|
68
|
+
},
|
|
69
|
+
"author": "",
|
|
70
|
+
"license": "ISC"
|
|
71
71
|
}
|