@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-models",
3
- "version": "4.497.0",
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.497.0",
42
+ "@mittwald/api-client": "^4.498.0",
43
43
  "another-deep-freeze": "1.0.0",
44
- "context": "^3.0.33",
44
+ "context": "^4.0.17",
45
45
  "dinero.js": "^1.9.1",
46
- "object-code": "^1.3.4",
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": "5172e20f968da51696b0e915d7920c2232a010a8"
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,10 +0,0 @@
1
- const target = {};
2
- // @ts-expect-error use type-guard first
3
- void target.url;
4
- if (target.type === "redirect") {
5
- void target.url;
6
- }
7
- if (target.type === "appInstallation") {
8
- void target.appInstallation.id;
9
- }
10
- export {};
@@ -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 {};