@azure-tools/rlc-common
Advanced tools
Comparing version 0.33.0-alpha.20241017.1 to 0.33.0-alpha.20241018.1
@@ -28,4 +28,4 @@ { | ||
"packages/rlc-common/src/helpers/importsUtil.ts": "86284b3a4ec195e9c97b3ee7df8562839ebbc951", | ||
"packages/rlc-common/src/helpers/nameConstructors.ts": "fe0a70449d436d4592a823bfde2c222392b54b85", | ||
"packages/rlc-common/src/helpers/nameUtils.ts": "66d94e5e637411f1f8019734eef038aa46946774", | ||
"packages/rlc-common/src/helpers/nameConstructors.ts": "08e0f9e66d068dadb3ec238d901d19ce6644e68c", | ||
"packages/rlc-common/src/helpers/nameUtils.ts": "9a02df4ee1b3ec8c706a9010d6ecf397e9f88b8d", | ||
"packages/rlc-common/src/helpers/operationHelpers.ts": "3de0af2e566063c2c779b330138b7a02367d7e70", | ||
@@ -39,3 +39,3 @@ "packages/rlc-common/src/helpers/packageUtil.ts": "1a922f02d2838b8cbbf007d6ee43ed13bd0fd620", | ||
"packages/rlc-common/src/index.ts": "8deff693b281b7f4f65acd7f6d1c4e8c08af7280", | ||
"packages/rlc-common/src/interfaces.ts": "e95757ff2b6d714290ebfb8e2a70ffe1c0248849", | ||
"packages/rlc-common/src/interfaces.ts": "e786765fd6e2256e19c185e011c2a78de70d1769", | ||
"packages/rlc-common/src/metadata/buildApiExtractorConfig.ts": "9ac5dcfce2d31111812967e59b1f2d8fbd58f471", | ||
@@ -46,3 +46,3 @@ "packages/rlc-common/src/metadata/buildBrowserConfig.ts": "8aa97a77a03d3f3503c1959812600ab86080c75d", | ||
"packages/rlc-common/src/metadata/buildPackageFile.ts": "e26607379554662538b1bb27aa1971083374bc5c", | ||
"packages/rlc-common/src/metadata/buildReadmeFile.ts": "8366c61e781cd4589b1765708d538ecad9dacc32", | ||
"packages/rlc-common/src/metadata/buildReadmeFile.ts": "9f947ea770025a7a6f46ea99bf3c45b28dd4ea4a", | ||
"packages/rlc-common/src/metadata/buildRollupConfig.ts": "6d05e8cdab182f7529b725cdc70d7adfdeb108f1", | ||
@@ -49,0 +49,0 @@ "packages/rlc-common/src/metadata/buildSampleEnvFile.ts": "e55ac377ede580e7a708d9f780d793e3e7ee8bbf", |
@@ -49,8 +49,5 @@ // Copyright (c) Microsoft Corporation. | ||
const clientName = model.libraryName; | ||
let clientInterfaceName = clientName.endsWith("Client") | ||
const clientInterfaceName = clientName.endsWith("Client") | ||
? `${clientName}` | ||
: `${clientName}Client`; | ||
if (model.options?.isModularLibrary) { | ||
clientInterfaceName = `${clientName.replace("Client", "")}Context`; | ||
} | ||
return clientInterfaceName; | ||
@@ -57,0 +54,0 @@ } |
@@ -83,2 +83,3 @@ // Copyright (c) Microsoft Corporation. | ||
{ name: "arguments", reservedFor: [NameType.Parameter] }, | ||
{ name: "global", reservedFor: [...Newable] }, | ||
// reserve client for codegen | ||
@@ -85,0 +86,0 @@ { name: "client", reservedFor: [NameType.Parameter] }, |
@@ -8,2 +8,3 @@ // Copyright (c) Microsoft Corporation. | ||
import { isAzurePackage } from "../helpers/packageUtil.js"; | ||
import { getClientName } from "../helpers/nameConstructors.js"; | ||
const azureReadmeRLCTemplate = `# {{ clientDescriptiveName }} library for JavaScript | ||
@@ -354,8 +355,2 @@ | ||
} | ||
function getClientName(model) { | ||
const clientName = model.libraryName; | ||
return clientName.endsWith("Client") | ||
? `${clientName}` | ||
: `${clientName}Client`; | ||
} | ||
//# sourceMappingURL=buildReadmeFile.js.map |
@@ -59,10 +59,6 @@ "use strict"; | ||
function getClientName(model) { | ||
var _a; | ||
const clientName = model.libraryName; | ||
let clientInterfaceName = clientName.endsWith("Client") | ||
const clientInterfaceName = clientName.endsWith("Client") | ||
? `${clientName}` | ||
: `${clientName}Client`; | ||
if ((_a = model.options) === null || _a === void 0 ? void 0 : _a.isModularLibrary) { | ||
clientInterfaceName = `${clientName.replace("Client", "")}Context`; | ||
} | ||
return clientInterfaceName; | ||
@@ -69,0 +65,0 @@ } |
@@ -92,2 +92,3 @@ "use strict"; | ||
{ name: "arguments", reservedFor: [NameType.Parameter] }, | ||
{ name: "global", reservedFor: [...Newable] }, | ||
// reserve client for codegen | ||
@@ -94,0 +95,0 @@ { name: "client", reservedFor: [NameType.Parameter] }, |
@@ -11,2 +11,3 @@ "use strict"; | ||
const packageUtil_js_1 = require("../helpers/packageUtil.js"); | ||
const nameConstructors_js_1 = require("../helpers/nameConstructors.js"); | ||
const azureReadmeRLCTemplate = `# {{ clientDescriptiveName }} library for JavaScript | ||
@@ -297,3 +298,3 @@ | ||
const clientPackageName = packageDetails === null || packageDetails === void 0 ? void 0 : packageDetails.name; | ||
const clientClassName = getClientName(model); | ||
const clientClassName = (0, nameConstructors_js_1.getClientName)(model); | ||
const serviceName = getServiceName(model); | ||
@@ -357,8 +358,2 @@ let apiRefUrlQueryParameter = ""; | ||
} | ||
function getClientName(model) { | ||
const clientName = model.libraryName; | ||
return clientName.endsWith("Client") | ||
? `${clientName}` | ||
: `${clientName}Client`; | ||
} | ||
//# sourceMappingURL=buildReadmeFile.js.map |
{ | ||
"name": "@azure-tools/rlc-common", | ||
"version": "0.33.0-alpha.20241017.1", | ||
"version": "0.33.0-alpha.20241018.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -127,10 +127,6 @@ // Copyright (c) Microsoft Corporation. | ||
const clientName = model.libraryName; | ||
let clientInterfaceName = clientName.endsWith("Client") | ||
const clientInterfaceName = clientName.endsWith("Client") | ||
? `${clientName}` | ||
: `${clientName}Client`; | ||
if (model.options?.isModularLibrary) { | ||
clientInterfaceName = `${clientName.replace("Client", "")}Context`; | ||
} | ||
return clientInterfaceName; | ||
@@ -137,0 +133,0 @@ } |
@@ -90,2 +90,3 @@ // Copyright (c) Microsoft Corporation. | ||
{ name: "arguments", reservedFor: [NameType.Parameter] }, | ||
{ name: "global", reservedFor: [...Newable] }, | ||
// reserve client for codegen | ||
@@ -92,0 +93,0 @@ { name: "client", reservedFor: [NameType.Parameter] }, |
@@ -250,2 +250,3 @@ // Copyright (c) Microsoft Corporation. | ||
clearOutputFolder?: boolean; | ||
ignorePropertyNameNormalize?: boolean; | ||
} | ||
@@ -252,0 +253,0 @@ |
@@ -10,2 +10,3 @@ // Copyright (c) Microsoft Corporation. | ||
import { isAzurePackage } from "../helpers/packageUtil.js"; | ||
import { getClientName } from "../helpers/nameConstructors.js"; | ||
@@ -434,8 +435,1 @@ const azureReadmeRLCTemplate = `# {{ clientDescriptiveName }} library for JavaScript | ||
} | ||
function getClientName(model: RLCModel) { | ||
const clientName = model.libraryName; | ||
return clientName.endsWith("Client") | ||
? `${clientName}` | ||
: `${clientName}Client`; | ||
} |
@@ -203,2 +203,3 @@ export interface RLCModel { | ||
clearOutputFolder?: boolean; | ||
ignorePropertyNameNormalize?: boolean; | ||
} | ||
@@ -205,0 +206,0 @@ export interface ServiceInfo { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1228941
22290