@autorest/typescript 6.0.18 → 6.0.19
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/restLevelClient/transforms/transformOptions.d.ts.map +1 -1
- package/dist/src/restLevelClient/transforms/transformOptions.js +2 -2
- package/dist/src/restLevelClient/transforms/transformOptions.js.map +1 -1
- package/package.json +3 -3
- package/src/restLevelClient/transforms/transformOptions.ts +4 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformOptions.d.ts","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"transformOptions.d.ts","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,UAAU,CA2C7D"}
|
|
@@ -5,8 +5,8 @@ const autorestSession_1 = require("../../autorestSession");
|
|
|
5
5
|
const schemaHelpers_1 = require("../../utils/schemaHelpers");
|
|
6
6
|
function transformOptions(model) {
|
|
7
7
|
var _a;
|
|
8
|
-
const { rlcShortcut, multiClient, batch, packageDetails, generateMetadata, generateSample, generateTest, azureOutputDirectory, azureSdkForJs, dependencyInfo, productDocLink, azureArm, flavor
|
|
9
|
-
const options = {};
|
|
8
|
+
const { rlcShortcut, multiClient, batch, packageDetails, generateMetadata, generateSample, generateTest, azureOutputDirectory, azureSdkForJs, dependencyInfo, productDocLink, azureArm, flavor } = (0, autorestSession_1.getAutorestOptions)();
|
|
9
|
+
const options = { moduleKind: "cjs" };
|
|
10
10
|
options.includeShortcuts = rlcShortcut;
|
|
11
11
|
options.multiClient = multiClient;
|
|
12
12
|
options.batch = batch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformOptions.js","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformOptions.ts"],"names":[],"mappings":";;;AAEA,2DAA2D;AAC3D,6DAAqE;AAErE,SAAgB,gBAAgB,CAAC,KAAgB;;IAC/C,MAAM,EACJ,WAAW,EACX,WAAW,EACX,KAAK,EACL,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,cAAc,EACd,QAAQ,EACR,MAAM,
|
|
1
|
+
{"version":3,"file":"transformOptions.js","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformOptions.ts"],"names":[],"mappings":";;;AAEA,2DAA2D;AAC3D,6DAAqE;AAErE,SAAgB,gBAAgB,CAAC,KAAgB;;IAC/C,MAAM,EACJ,WAAW,EACX,WAAW,EACX,KAAK,EACL,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,cAAc,EACd,QAAQ,EACR,MAAM,EACP,GAAG,IAAA,oCAAkB,GAAE,CAAC;IACzB,MAAM,OAAO,GAAe,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;IAClD,OAAO,CAAC,gBAAgB,GAAG,WAAW,CAAC;IACvC,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;IAClC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;IACtB,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;IACxC,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC5C,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;IACxC,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC;IACpC,OAAO,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACpD,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;IACtC,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;IACxC,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;IACxC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC5B,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,WAAW,GAAG;QACpB,KAAK,EAAE,MAAA,KAAK,CAAC,IAAI,CAAC,KAAK,mCAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI;QACtD,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW;KACpC,CAAC;IACF,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,GACjE,IAAA,wCAAwB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3C,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;IACxC,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC5C,OAAO,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;IAC1D,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAC/B,mDAAmD;IACnD,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IACpC,OAAO,OAAO,CAAC;AACjB,CAAC;AA3CD,4CA2CC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autorest/typescript",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.19",
|
|
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": "^15.1.0",
|
|
37
37
|
"@azure/core-auth": "^1.6.0",
|
|
38
|
-
"@azure-tools/rlc-common": "^0.
|
|
38
|
+
"@azure-tools/rlc-common": "^0.26.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@azure-tools/test-recorder": "^3.0.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"node-cmd": "^3.0.0",
|
|
70
70
|
"npm-run-all": "^4.1.5",
|
|
71
71
|
"path-browserify": "^1.0.1",
|
|
72
|
-
"puppeteer": "^
|
|
72
|
+
"puppeteer": "^22.2.0",
|
|
73
73
|
"rimraf": "^5.0.0",
|
|
74
74
|
"sinon": "^10.0.0",
|
|
75
75
|
"source-map-loader": "^1.0.0",
|
|
@@ -17,9 +17,9 @@ export function transformOptions(model: CodeModel): RLCOptions {
|
|
|
17
17
|
dependencyInfo,
|
|
18
18
|
productDocLink,
|
|
19
19
|
azureArm,
|
|
20
|
-
flavor
|
|
20
|
+
flavor
|
|
21
21
|
} = getAutorestOptions();
|
|
22
|
-
const options: RLCOptions = {};
|
|
22
|
+
const options: RLCOptions = { moduleKind: "cjs" };
|
|
23
23
|
options.includeShortcuts = rlcShortcut;
|
|
24
24
|
options.multiClient = multiClient;
|
|
25
25
|
options.batch = batch;
|
|
@@ -37,11 +37,8 @@ export function transformOptions(model: CodeModel): RLCOptions {
|
|
|
37
37
|
title: model.info.title ?? model.language.default.name,
|
|
38
38
|
description: model.info.description
|
|
39
39
|
};
|
|
40
|
-
const {
|
|
41
|
-
|
|
42
|
-
credentialScopes,
|
|
43
|
-
credentialKeyHeaderName
|
|
44
|
-
} = getSecurityInfoFromModel(model.security);
|
|
40
|
+
const { addCredentials, credentialScopes, credentialKeyHeaderName } =
|
|
41
|
+
getSecurityInfoFromModel(model.security);
|
|
45
42
|
options.addCredentials = addCredentials;
|
|
46
43
|
options.credentialScopes = credentialScopes;
|
|
47
44
|
options.credentialKeyHeaderName = credentialKeyHeaderName;
|