@azure-tools/typespec-azure-core 0.48.0 → 0.49.0-dev.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"require-key-visibility.d.ts","sourceRoot":"","sources":["../../../src/rules/require-key-visibility.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB;;
|
|
1
|
+
{"version":3,"file":"require-key-visibility.d.ts","sourceRoot":"","sources":["../../../src/rules/require-key-visibility.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB;;EA6B/B,CAAC"}
|
|
@@ -15,6 +15,7 @@ export const requireKeyVisibility = createRule({
|
|
|
15
15
|
!isExcludedCoreType(context.program, model) &&
|
|
16
16
|
model.name !== "object") {
|
|
17
17
|
for (const [name, prop] of model.properties) {
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
18
19
|
if (isKey(context.program, prop) && !getVisibility(context.program, prop)) {
|
|
19
20
|
context.reportDiagnostic({
|
|
20
21
|
target: prop,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"require-key-visibility.js","sourceRoot":"","sources":["../../../src/rules/require-key-visibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE1F,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC;IAC7C,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,6DAA6D;IAC1E,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE;QACR,OAAO,EAAE,YAAY,CAAA,qBAAqB,MAAM,iGAAiG;KAClJ;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,KAAK,EAAE,CAAC,KAAY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C,aAAa,CAAC,KAAK,CAAC;oBACrB,CAAC,kBAAkB,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC;oBAC3C,KAAK,CAAC,IAAI,KAAK,QAAQ,EACvB,CAAC;oBACD,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;wBAC5C,4DAA4D;wBAC5D,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;4BAC1E,OAAO,CAAC,gBAAgB,CAAC;gCACvB,MAAM,EAAE,IAAI;gCACZ,MAAM,EAAE,EAAE,IAAI,EAAE;6BACjB,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Core library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -39,26 +39,27 @@
|
|
|
39
39
|
"!dist/test/**"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@typespec/compiler": "~0.62.0",
|
|
43
|
-
"@typespec/http": "~0.62.0",
|
|
44
|
-
"@typespec/rest": "~0.62.0"
|
|
42
|
+
"@typespec/compiler": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
43
|
+
"@typespec/http": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
44
|
+
"@typespec/rest": "~0.62.0 || >=0.63.0-dev <0.63.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "~22.7.5",
|
|
48
|
+
"@typespec/compiler": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
49
|
+
"@typespec/http": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
50
|
+
"@typespec/library-linter": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
51
|
+
"@typespec/openapi": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
52
|
+
"@typespec/rest": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
53
|
+
"@typespec/versioning": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
48
54
|
"@vitest/coverage-v8": "^2.1.2",
|
|
49
55
|
"@vitest/ui": "^2.1.2",
|
|
50
56
|
"c8": "^10.1.2",
|
|
51
57
|
"rimraf": "~6.0.1",
|
|
52
58
|
"typescript": "~5.6.3",
|
|
53
59
|
"vitest": "^2.1.2",
|
|
54
|
-
"@typespec/
|
|
55
|
-
"@typespec/http": "~0.62.0",
|
|
56
|
-
"@typespec/library-linter": "~0.62.0",
|
|
57
|
-
"@typespec/rest": "~0.62.0",
|
|
58
|
-
"@typespec/openapi": "~0.62.0",
|
|
59
|
-
"@typespec/tspd": "~0.46.0",
|
|
60
|
-
"@typespec/versioning": "~0.62.0"
|
|
60
|
+
"@typespec/tspd": "~0.46.0"
|
|
61
61
|
},
|
|
62
|
+
"dependencies": {},
|
|
62
63
|
"scripts": {
|
|
63
64
|
"clean": "rimraf ./dist ./temp",
|
|
64
65
|
"build": "npm run gen-extern-signature && tsc -p . && npm run lint-typespec-library",
|