Skip to content

Commit 1da5730

Browse files
committed
re-generate baselines
1 parent 3419dc7 commit 1da5730

3,525 files changed

Lines changed: 142854 additions & 147899 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/autorest.typescript/test/integration/generated/additionalProperties/rollup.config.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ function ignoreNiseSinonEval(warning) {
2525
return (
2626
warning.code === "EVAL" &&
2727
warning.id &&
28-
(warning.id.includes("node_modules/nise") ||
29-
warning.id.includes("node_modules/sinon")) === true
28+
(warning.id.includes("node_modules/nise") ||
29+
warning.id.includes("node_modules/sinon")) === true
3030
);
3131
}
3232

3333
function ignoreChaiCircularDependency(warning) {
3434
return (
3535
warning.code === "CIRCULAR_DEPENDENCY" &&
36-
warning.importer && warning.importer.includes("node_modules/chai") === true
36+
warning.importer &&
37+
warning.importer.includes("node_modules/chai") === true
3738
);
3839
}
3940

@@ -58,43 +59,43 @@ function makeBrowserTestConfig() {
5859
const config = {
5960
input: {
6061
include: ["dist-esm/test/**/*.spec.js"],
61-
exclude: ["dist-esm/test/**/node/**"]
62+
exclude: ["dist-esm/test/**/node/**"],
6263
},
6364
output: {
6465
file: `dist-test/index.browser.js`,
6566
format: "umd",
66-
sourcemap: true
67+
sourcemap: true,
6768
},
6869
preserveSymlinks: false,
6970
plugins: [
7071
multiEntry({ exports: false }),
7172
nodeResolve({
72-
mainFields: ["module", "browser"]
73+
mainFields: ["module", "browser"],
7374
}),
7475
cjs(),
7576
json(),
76-
sourcemaps()
77+
sourcemaps(),
7778
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
7879
],
7980
onwarn: makeOnWarnForTesting(),
8081
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
8182
// rollup started respecting the "sideEffects" field in package.json. Since
8283
// our package.json sets "sideEffects=false", this also applies to test
8384
// code, which causes all tests to be removed by tree-shaking.
84-
treeshake: false
85+
treeshake: false,
8586
};
8687

8788
return config;
8889
}
8990

9091
const defaultConfigurationOptions = {
91-
disableBrowserBundle: false
92+
disableBrowserBundle: false,
9293
};
9394

9495
export function makeConfig(pkg, options) {
9596
options = {
9697
...defaultConfigurationOptions,
97-
...(options || {})
98+
...(options || {}),
9899
};
99100

100101
const baseConfig = {
@@ -103,11 +104,11 @@ export function makeConfig(pkg, options) {
103104
external: [
104105
...nodeBuiltins,
105106
...Object.keys(pkg.dependencies),
106-
...Object.keys(pkg.devDependencies)
107+
...Object.keys(pkg.devDependencies),
107108
],
108109
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
109110
preserveSymlinks: false,
110-
plugins: [sourcemaps(), nodeResolve()]
111+
plugins: [sourcemaps(), nodeResolve()],
111112
};
112113

113114
const config = [baseConfig];

packages/autorest.typescript/test/integration/generated/additionalProperties/src/additionalPropertiesClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class AdditionalPropertiesClient extends coreClient.ServiceClient {
2424
options = {};
2525
}
2626
const defaults: AdditionalPropertiesClientOptionalParams = {
27-
requestContentType: "application/json; charset=utf-8"
27+
requestContentType: "application/json; charset=utf-8",
2828
};
2929

3030
const packageDetails = `azsdk-js-additional-properties/1.0.0-preview1`;
@@ -37,9 +37,9 @@ export class AdditionalPropertiesClient extends coreClient.ServiceClient {
3737
...defaults,
3838
...options,
3939
userAgentOptions: {
40-
userAgentPrefix
40+
userAgentPrefix,
4141
},
42-
endpoint: options.endpoint ?? options.baseUri ?? "http://localhost:3000"
42+
endpoint: options.endpoint ?? options.baseUri ?? "http://localhost:3000",
4343
};
4444
super(optionsWithDefaults);
4545

packages/autorest.typescript/test/integration/generated/additionalProperties/src/models/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ export interface PetsCreateAPInPropertiesWithAPStringOptionalParams
105105
extends coreClient.OperationOptions {}
106106

107107
/** Contains response data for the createAPInPropertiesWithAPString operation. */
108-
export type PetsCreateAPInPropertiesWithAPStringResponse = PetAPInPropertiesWithAPString;
108+
export type PetsCreateAPInPropertiesWithAPStringResponse =
109+
PetAPInPropertiesWithAPString;
109110

110111
/** Optional parameters. */
111112
export interface AdditionalPropertiesClientOptionalParams

packages/autorest.typescript/test/integration/generated/additionalProperties/src/models/mappers.ts

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@ export const PetAPTrue: coreClient.CompositeMapper = {
1818
serializedName: "id",
1919
required: true,
2020
type: {
21-
name: "Number"
22-
}
21+
name: "Number",
22+
},
2323
},
2424
name: {
2525
serializedName: "name",
2626
type: {
27-
name: "String"
28-
}
27+
name: "String",
28+
},
2929
},
3030
status: {
3131
serializedName: "status",
3232
readOnly: true,
3333
type: {
34-
name: "Boolean"
35-
}
36-
}
37-
}
38-
}
34+
name: "Boolean",
35+
},
36+
},
37+
},
38+
},
3939
};
4040

4141
export const ErrorModel: coreClient.CompositeMapper = {
@@ -46,17 +46,17 @@ export const ErrorModel: coreClient.CompositeMapper = {
4646
status: {
4747
serializedName: "status",
4848
type: {
49-
name: "Number"
50-
}
49+
name: "Number",
50+
},
5151
},
5252
message: {
5353
serializedName: "message",
5454
type: {
55-
name: "String"
56-
}
57-
}
58-
}
59-
}
55+
name: "String",
56+
},
57+
},
58+
},
59+
},
6060
};
6161

6262
export const PetAPObject: coreClient.CompositeMapper = {
@@ -69,24 +69,24 @@ export const PetAPObject: coreClient.CompositeMapper = {
6969
serializedName: "id",
7070
required: true,
7171
type: {
72-
name: "Number"
73-
}
72+
name: "Number",
73+
},
7474
},
7575
name: {
7676
serializedName: "name",
7777
type: {
78-
name: "String"
79-
}
78+
name: "String",
79+
},
8080
},
8181
status: {
8282
serializedName: "status",
8383
readOnly: true,
8484
type: {
85-
name: "Boolean"
86-
}
87-
}
88-
}
89-
}
85+
name: "Boolean",
86+
},
87+
},
88+
},
89+
},
9090
};
9191

9292
export const PetAPString: coreClient.CompositeMapper = {
@@ -99,24 +99,24 @@ export const PetAPString: coreClient.CompositeMapper = {
9999
serializedName: "id",
100100
required: true,
101101
type: {
102-
name: "Number"
103-
}
102+
name: "Number",
103+
},
104104
},
105105
name: {
106106
serializedName: "name",
107107
type: {
108-
name: "String"
109-
}
108+
name: "String",
109+
},
110110
},
111111
status: {
112112
serializedName: "status",
113113
readOnly: true,
114114
type: {
115-
name: "Boolean"
116-
}
117-
}
118-
}
119-
}
115+
name: "Boolean",
116+
},
117+
},
118+
},
119+
},
120120
};
121121

122122
export const PetAPInProperties: coreClient.CompositeMapper = {
@@ -128,31 +128,31 @@ export const PetAPInProperties: coreClient.CompositeMapper = {
128128
serializedName: "id",
129129
required: true,
130130
type: {
131-
name: "Number"
132-
}
131+
name: "Number",
132+
},
133133
},
134134
name: {
135135
serializedName: "name",
136136
type: {
137-
name: "String"
138-
}
137+
name: "String",
138+
},
139139
},
140140
status: {
141141
serializedName: "status",
142142
readOnly: true,
143143
type: {
144-
name: "Boolean"
145-
}
144+
name: "Boolean",
145+
},
146146
},
147147
additionalProperties: {
148148
serializedName: "additionalProperties",
149149
type: {
150150
name: "Dictionary",
151-
value: { type: { name: "Number" } }
152-
}
153-
}
154-
}
155-
}
151+
value: { type: { name: "Number" } },
152+
},
153+
},
154+
},
155+
},
156156
};
157157

158158
export const PetAPInPropertiesWithAPString: coreClient.CompositeMapper = {
@@ -165,38 +165,38 @@ export const PetAPInPropertiesWithAPString: coreClient.CompositeMapper = {
165165
serializedName: "id",
166166
required: true,
167167
type: {
168-
name: "Number"
169-
}
168+
name: "Number",
169+
},
170170
},
171171
name: {
172172
serializedName: "name",
173173
type: {
174-
name: "String"
175-
}
174+
name: "String",
175+
},
176176
},
177177
status: {
178178
serializedName: "status",
179179
readOnly: true,
180180
type: {
181-
name: "Boolean"
182-
}
181+
name: "Boolean",
182+
},
183183
},
184184
odataLocation: {
185185
serializedName: "@odata\\.location",
186186
required: true,
187187
type: {
188-
name: "String"
189-
}
188+
name: "String",
189+
},
190190
},
191191
additionalProperties: {
192192
serializedName: "additionalProperties",
193193
type: {
194194
name: "Dictionary",
195-
value: { type: { name: "Number" } }
196-
}
197-
}
198-
}
199-
}
195+
value: { type: { name: "Number" } },
196+
},
197+
},
198+
},
199+
},
200200
};
201201

202202
export const CatAPTrue: coreClient.CompositeMapper = {
@@ -209,9 +209,9 @@ export const CatAPTrue: coreClient.CompositeMapper = {
209209
friendly: {
210210
serializedName: "friendly",
211211
type: {
212-
name: "Boolean"
213-
}
214-
}
215-
}
216-
}
212+
name: "Boolean",
213+
},
214+
},
215+
},
216+
},
217217
};

0 commit comments

Comments
 (0)