@autorest/typescript 6.0.33 → 6.0.34-alpha.20250127.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.
- package/dist/hlcSamples.ts.hbs +4 -6
- package/dist/rlcSamples.ts.hbs +4 -6
- package/dist/src/generators/samples/hlcSamples.ts.hbs +4 -6
- package/dist/src/generators/samples/rlcSamples.ts.hbs +4 -6
- package/package.json +2 -2
- package/src/generators/samples/hlcSamples.ts.hbs +4 -6
- package/src/generators/samples/rlcSamples.ts.hbs +4 -6
package/dist/hlcSamples.ts.hbs
CHANGED
|
@@ -10,9 +10,7 @@ import {
|
|
|
10
10
|
{{clientClassName}},
|
|
11
11
|
} from "{{clientPackageName}}";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
dotenv.config();
|
|
13
|
+
import "dotenv/config";
|
|
16
14
|
|
|
17
15
|
{{#each samples}}
|
|
18
16
|
/**
|
|
@@ -21,7 +19,7 @@ dotenv.config();
|
|
|
21
19
|
* @summary {{this.operationDescription}}
|
|
22
20
|
* x-ms-original-file: {{this.originalFileLocation}}
|
|
23
21
|
*/
|
|
24
|
-
async function {{this.sampleFunctionName}}() {
|
|
22
|
+
async function {{this.sampleFunctionName}}(): Promise<void> {
|
|
25
23
|
{{#each this.clientParamAssignments}}
|
|
26
24
|
{{this}}
|
|
27
25
|
{{/each}}
|
|
@@ -49,9 +47,9 @@ async function {{this.sampleFunctionName}}() {
|
|
|
49
47
|
|
|
50
48
|
{{/each}}
|
|
51
49
|
|
|
52
|
-
async function main() {
|
|
50
|
+
async function main(): Promise<void> {
|
|
53
51
|
{{#each samples}}
|
|
54
|
-
{{this.sampleFunctionName}}();
|
|
52
|
+
await {{this.sampleFunctionName}}();
|
|
55
53
|
{{/each}}
|
|
56
54
|
}
|
|
57
55
|
|
package/dist/rlcSamples.ts.hbs
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
{{#each importedTypes}}
|
|
4
4
|
{{this}}
|
|
5
5
|
{{/each}}
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
dotenv.config();
|
|
6
|
+
import "dotenv/config";
|
|
9
7
|
|
|
10
8
|
{{#each samples}}
|
|
11
9
|
/**
|
|
@@ -14,7 +12,7 @@ dotenv.config();
|
|
|
14
12
|
* @summary {{this.description}}
|
|
15
13
|
* x-ms-original-file: {{this.originalFileLocation}}
|
|
16
14
|
*/
|
|
17
|
-
async function {{name}}() {
|
|
15
|
+
async function {{name}}(): Promise<void> {
|
|
18
16
|
{{#each this.clientParamAssignments}}
|
|
19
17
|
{{this}}
|
|
20
18
|
{{/each}}
|
|
@@ -44,9 +42,9 @@ async function {{name}}() {
|
|
|
44
42
|
|
|
45
43
|
{{/each}}
|
|
46
44
|
|
|
47
|
-
async function main() {
|
|
45
|
+
async function main(): Promise<void> {
|
|
48
46
|
{{#each samples}}
|
|
49
|
-
{{this.name}}();
|
|
47
|
+
await {{this.name}}();
|
|
50
48
|
{{/each}}
|
|
51
49
|
}
|
|
52
50
|
|
|
@@ -10,9 +10,7 @@ import {
|
|
|
10
10
|
{{clientClassName}},
|
|
11
11
|
} from "{{clientPackageName}}";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
dotenv.config();
|
|
13
|
+
import "dotenv/config";
|
|
16
14
|
|
|
17
15
|
{{#each samples}}
|
|
18
16
|
/**
|
|
@@ -21,7 +19,7 @@ dotenv.config();
|
|
|
21
19
|
* @summary {{this.operationDescription}}
|
|
22
20
|
* x-ms-original-file: {{this.originalFileLocation}}
|
|
23
21
|
*/
|
|
24
|
-
async function {{this.sampleFunctionName}}() {
|
|
22
|
+
async function {{this.sampleFunctionName}}(): Promise<void> {
|
|
25
23
|
{{#each this.clientParamAssignments}}
|
|
26
24
|
{{this}}
|
|
27
25
|
{{/each}}
|
|
@@ -49,9 +47,9 @@ async function {{this.sampleFunctionName}}() {
|
|
|
49
47
|
|
|
50
48
|
{{/each}}
|
|
51
49
|
|
|
52
|
-
async function main() {
|
|
50
|
+
async function main(): Promise<void> {
|
|
53
51
|
{{#each samples}}
|
|
54
|
-
{{this.sampleFunctionName}}();
|
|
52
|
+
await {{this.sampleFunctionName}}();
|
|
55
53
|
{{/each}}
|
|
56
54
|
}
|
|
57
55
|
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
{{#each importedTypes}}
|
|
4
4
|
{{this}}
|
|
5
5
|
{{/each}}
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
dotenv.config();
|
|
6
|
+
import "dotenv/config";
|
|
9
7
|
|
|
10
8
|
{{#each samples}}
|
|
11
9
|
/**
|
|
@@ -14,7 +12,7 @@ dotenv.config();
|
|
|
14
12
|
* @summary {{this.description}}
|
|
15
13
|
* x-ms-original-file: {{this.originalFileLocation}}
|
|
16
14
|
*/
|
|
17
|
-
async function {{name}}() {
|
|
15
|
+
async function {{name}}(): Promise<void> {
|
|
18
16
|
{{#each this.clientParamAssignments}}
|
|
19
17
|
{{this}}
|
|
20
18
|
{{/each}}
|
|
@@ -44,9 +42,9 @@ async function {{name}}() {
|
|
|
44
42
|
|
|
45
43
|
{{/each}}
|
|
46
44
|
|
|
47
|
-
async function main() {
|
|
45
|
+
async function main(): Promise<void> {
|
|
48
46
|
{{#each samples}}
|
|
49
|
-
{{this.name}}();
|
|
47
|
+
await {{this.name}}();
|
|
50
48
|
{{/each}}
|
|
51
49
|
}
|
|
52
50
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autorest/typescript",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.34-alpha.20250127.1",
|
|
4
4
|
"browser": {
|
|
5
5
|
"./test-browser/utils/stream-helpers.js": "./test-browser/utils/stream-helpers.browser.js",
|
|
6
6
|
"./test-browser/utils/fileSystem.js": "./test-browser/utils/fileSystem.browser.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"source-map-support": "^0.5.16",
|
|
36
36
|
"ts-morph": "^23.0.0",
|
|
37
37
|
"@azure/core-auth": "^1.6.0",
|
|
38
|
-
"@azure-tools/rlc-common": "^0.38.
|
|
38
|
+
"@azure-tools/rlc-common": "^0.38.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@azure-tools/test-recorder": "^3.0.0",
|
|
@@ -10,9 +10,7 @@ import {
|
|
|
10
10
|
{{clientClassName}},
|
|
11
11
|
} from "{{clientPackageName}}";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
dotenv.config();
|
|
13
|
+
import "dotenv/config";
|
|
16
14
|
|
|
17
15
|
{{#each samples}}
|
|
18
16
|
/**
|
|
@@ -21,7 +19,7 @@ dotenv.config();
|
|
|
21
19
|
* @summary {{this.operationDescription}}
|
|
22
20
|
* x-ms-original-file: {{this.originalFileLocation}}
|
|
23
21
|
*/
|
|
24
|
-
async function {{this.sampleFunctionName}}() {
|
|
22
|
+
async function {{this.sampleFunctionName}}(): Promise<void> {
|
|
25
23
|
{{#each this.clientParamAssignments}}
|
|
26
24
|
{{this}}
|
|
27
25
|
{{/each}}
|
|
@@ -49,9 +47,9 @@ async function {{this.sampleFunctionName}}() {
|
|
|
49
47
|
|
|
50
48
|
{{/each}}
|
|
51
49
|
|
|
52
|
-
async function main() {
|
|
50
|
+
async function main(): Promise<void> {
|
|
53
51
|
{{#each samples}}
|
|
54
|
-
{{this.sampleFunctionName}}();
|
|
52
|
+
await {{this.sampleFunctionName}}();
|
|
55
53
|
{{/each}}
|
|
56
54
|
}
|
|
57
55
|
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
{{#each importedTypes}}
|
|
4
4
|
{{this}}
|
|
5
5
|
{{/each}}
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
dotenv.config();
|
|
6
|
+
import "dotenv/config";
|
|
9
7
|
|
|
10
8
|
{{#each samples}}
|
|
11
9
|
/**
|
|
@@ -14,7 +12,7 @@ dotenv.config();
|
|
|
14
12
|
* @summary {{this.description}}
|
|
15
13
|
* x-ms-original-file: {{this.originalFileLocation}}
|
|
16
14
|
*/
|
|
17
|
-
async function {{name}}() {
|
|
15
|
+
async function {{name}}(): Promise<void> {
|
|
18
16
|
{{#each this.clientParamAssignments}}
|
|
19
17
|
{{this}}
|
|
20
18
|
{{/each}}
|
|
@@ -44,9 +42,9 @@ async function {{name}}() {
|
|
|
44
42
|
|
|
45
43
|
{{/each}}
|
|
46
44
|
|
|
47
|
-
async function main() {
|
|
45
|
+
async function main(): Promise<void> {
|
|
48
46
|
{{#each samples}}
|
|
49
|
-
{{this.name}}();
|
|
47
|
+
await {{this.name}}();
|
|
50
48
|
{{/each}}
|
|
51
49
|
}
|
|
52
50
|
|