@typespec/rest 0.52.0-dev.2 → 0.52.0-dev.3
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/dist/src/lib.d.ts +1 -1
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/testing/index.d.ts.map +1 -1
- package/dist/src/testing/index.js +2 -4
- package/dist/src/testing/index.js.map +1 -1
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/vitest.config.js +14 -0
- package/dist/vitest.config.js.map +1 -0
- package/package.json +6 -7
package/dist/src/lib.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare const restLib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
|
20
20
|
"shared-route-unspecified-action-name": {
|
|
21
21
|
readonly default: import("@typespec/compiler").CallableMessage<["decoratorName"]>;
|
|
22
22
|
};
|
|
23
|
-
}, Record<string, any
|
|
23
|
+
}, Record<string, any>, never>;
|
|
24
24
|
declare const reportDiagnostic: <C extends "not-key-type" | "resource-missing-key" | "resource-missing-error" | "duplicate-key" | "duplicate-parent-key" | "invalid-action-name" | "shared-route-unspecified-action-name", M extends keyof {
|
|
25
25
|
"not-key-type": {
|
|
26
26
|
readonly default: "Cannot copy keys from a non-key type (KeysOf<T> or ParentKeysOf<T>)";
|
package/dist/src/lib.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAkDA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAkDA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;8BAAuC,CAAC;AACrD,QAAA,MAAQ,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAAE,iBAAiB,0BAAY,CAAC;AAE1E,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,eAAe,EAAE,mBAG5B,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createTestLibrary } from "@typespec/compiler/testing";
|
|
3
|
-
import { fileURLToPath } from "url";
|
|
1
|
+
import { createTestLibrary, findTestPackageRoot, } from "@typespec/compiler/testing";
|
|
4
2
|
export const RestTestLibrary = createTestLibrary({
|
|
5
3
|
name: "@typespec/rest",
|
|
6
|
-
packageRoot:
|
|
4
|
+
packageRoot: await findTestPackageRoot(import.meta.url),
|
|
7
5
|
});
|
|
8
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,GAEpB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,MAAM,eAAe,GAAwB,iBAAiB,CAAC;IACpE,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,MAAM,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;CACxD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":";AAEA,wBAWG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineConfig } from "vitest/config";
|
|
2
|
+
export default defineConfig({
|
|
3
|
+
test: {
|
|
4
|
+
environment: "node",
|
|
5
|
+
isolate: false,
|
|
6
|
+
coverage: {
|
|
7
|
+
reporter: ["cobertura", "json", "text"],
|
|
8
|
+
},
|
|
9
|
+
outputFile: {
|
|
10
|
+
junit: "./test-results.xml",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=vitest.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.js","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAe,YAAY,CAAC;IAC1B,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE;YACR,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC;SACxC;QACD,UAAU,EAAE;YACV,KAAK,EAAE,oBAAoB;SAC5B;KACF;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/rest",
|
|
3
|
-
"version": "0.52.0-dev.
|
|
3
|
+
"version": "0.52.0-dev.3",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec REST protocol binding",
|
|
6
6
|
"homepage": "https://microsoft.github.io/typespec",
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"@typespec/http": "~0.51.0 || >=0.52.0-dev <0.52.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/mocha": "~10.0.6",
|
|
46
45
|
"@types/node": "~18.11.9",
|
|
47
46
|
"@typespec/compiler": "~0.51.0 || >=0.52.0-dev <0.52.0",
|
|
48
47
|
"@typespec/http": "~0.51.0 || >=0.52.0-dev <0.52.0",
|
|
@@ -51,9 +50,8 @@
|
|
|
51
50
|
"@typespec/eslint-plugin": "~0.51.0 || >=0.52.0-dev <0.52.0",
|
|
52
51
|
"@typespec/tspd": "~0.46.0 || >=0.47.0-dev <0.47.0",
|
|
53
52
|
"eslint": "^8.55.0",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"mocha-multi-reporters": "~1.5.1",
|
|
53
|
+
"vitest": "^1.1.0",
|
|
54
|
+
"@vitest/coverage-v8": "^1.1.0",
|
|
57
55
|
"c8": "~8.0.1",
|
|
58
56
|
"rimraf": "~5.0.1",
|
|
59
57
|
"typescript": "~5.3.3"
|
|
@@ -64,8 +62,9 @@
|
|
|
64
62
|
"build": "tsc -p . && npm run lint-typespec-library",
|
|
65
63
|
"watch": "tsc -p . --watch",
|
|
66
64
|
"lint-typespec-library": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
|
|
67
|
-
"test": "
|
|
68
|
-
"test
|
|
65
|
+
"test": "vitest run",
|
|
66
|
+
"test:watch": "vitest -w",
|
|
67
|
+
"test-official": "vitest run --coverage --reporter=junit --reporter=default --no-file-parallelism",
|
|
69
68
|
"lint": "eslint . --ext .ts --max-warnings=0",
|
|
70
69
|
"lint:fix": "eslint . --fix --ext .ts",
|
|
71
70
|
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/libraries/rest/reference"
|