@azure-tools/typespec-azure-core 0.49.0-dev.0 → 0.49.0-dev.2
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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C,CAAC,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.49.0-dev.
|
|
3
|
+
"version": "0.49.0-dev.2",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Core library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
"@typespec/rest": "~0.62.0 || >=0.63.0-dev <0.63.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/node": "~22.7.
|
|
47
|
+
"@types/node": "~22.7.9",
|
|
48
48
|
"@typespec/compiler": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
49
49
|
"@typespec/http": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
50
50
|
"@typespec/library-linter": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
51
51
|
"@typespec/openapi": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
52
52
|
"@typespec/rest": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
53
53
|
"@typespec/versioning": "~0.62.0 || >=0.63.0-dev <0.63.0",
|
|
54
|
-
"@vitest/coverage-v8": "^2.1.
|
|
54
|
+
"@vitest/coverage-v8": "^2.1.5",
|
|
55
55
|
"@vitest/ui": "^2.1.2",
|
|
56
56
|
"c8": "^10.1.2",
|
|
57
57
|
"rimraf": "~6.0.1",
|
|
58
58
|
"typescript": "~5.6.3",
|
|
59
|
-
"vitest": "^2.1.
|
|
59
|
+
"vitest": "^2.1.5",
|
|
60
60
|
"@typespec/tspd": "~0.46.0"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {},
|