@mittwald/api-models 4.497.0 → 4.498.0
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/package.json +6 -7
- package/dist/esm/domain/IngressPath/IngressPath.test.js +0 -16
- package/dist/esm/domain/IngressTarget/IngressTarget.test-types.js +0 -10
- package/dist/esm/react/provideReact.test-types.js +0 -21
- package/dist/types/domain/IngressPath/IngressPath.test.d.ts +0 -1
- package/dist/types/domain/IngressTarget/IngressTarget.test-types.d.ts +0 -1
- package/dist/types/react/provideReact.test-types.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/api-models",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.498.0",
|
|
4
4
|
"author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Collection of domain models for coherent interaction with the API",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "run build:clean && run tsc",
|
|
34
|
+
"build": "run build:clean && run tsc --project tsconfig.build.json",
|
|
35
35
|
"build:clean": "rimraf dist",
|
|
36
36
|
"lint": "run eslint .",
|
|
37
37
|
"test": "",
|
|
@@ -39,13 +39,12 @@
|
|
|
39
39
|
"test:unit": "node --experimental-vm-modules $(yarn bin jest)"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@mittwald/api-client": "^4.
|
|
42
|
+
"@mittwald/api-client": "^4.498.0",
|
|
43
43
|
"another-deep-freeze": "1.0.0",
|
|
44
|
-
"context": "^
|
|
44
|
+
"context": "^4.0.17",
|
|
45
45
|
"dinero.js": "^1.9.1",
|
|
46
|
-
"object-code": "^
|
|
46
|
+
"object-code": "^2.0.0",
|
|
47
47
|
"polytype": "^0.17.0",
|
|
48
|
-
"tsd": "^0.31.2",
|
|
49
48
|
"type-fest": "^4.30.0"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
@@ -87,5 +86,5 @@
|
|
|
87
86
|
"optional": true
|
|
88
87
|
}
|
|
89
88
|
},
|
|
90
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "921f7cf94b66b91338f1400f91064782464c7bb9"
|
|
91
90
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IngressPath } from "./IngressPath.js";
|
|
2
|
-
import { IngressDetailed } from "../Ingress/index.js";
|
|
3
|
-
const ingressData = {
|
|
4
|
-
id: "abc",
|
|
5
|
-
paths: [],
|
|
6
|
-
};
|
|
7
|
-
const corruptIngressTargetData = {};
|
|
8
|
-
const ingressPathData = {
|
|
9
|
-
path: "/",
|
|
10
|
-
target: corruptIngressTargetData,
|
|
11
|
-
};
|
|
12
|
-
test("Creating IngressPath with corrupt IngressTarget throws error", () => {
|
|
13
|
-
expect(() => {
|
|
14
|
-
new IngressPath(new IngressDetailed(ingressData), ingressPathData);
|
|
15
|
-
}).toThrowError("Ingress IngressDetailed@abc has no default path.");
|
|
16
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { provideReact } from "./provideReact.js";
|
|
2
|
-
import { expectType } from "tsd";
|
|
3
|
-
const reactProvided = provideReact(async (ignoredP1, ignoredP2) => Promise.resolve("foo"));
|
|
4
|
-
function ignoredTestReturnTypesOfProvideReact() {
|
|
5
|
-
const usedValue = reactProvided.use("foo");
|
|
6
|
-
const asAsyncResource = reactProvided.asResource("foo");
|
|
7
|
-
expectType(usedValue);
|
|
8
|
-
expectType(asAsyncResource.use());
|
|
9
|
-
}
|
|
10
|
-
function ignoredTestParameterTypesOfProvideReact() {
|
|
11
|
-
reactProvided.use("foo", true);
|
|
12
|
-
reactProvided.asResource("foo", true);
|
|
13
|
-
reactProvided.use("foo");
|
|
14
|
-
reactProvided.asResource("foo");
|
|
15
|
-
// @ts-expect-error Not assignable
|
|
16
|
-
reactProvided.asResource(42);
|
|
17
|
-
// @ts-expect-error Not assignable
|
|
18
|
-
reactProvided.asResource("foo", 42);
|
|
19
|
-
// @ts-expect-error Not assignable
|
|
20
|
-
reactProvided.asResource("foo", true, 42);
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|