Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure-tools/rlc-common

Package Overview
Dependencies
Maintainers
0
Versions
390
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure-tools/rlc-common - npm Package Compare versions

Comparing version 0.36.0 to 0.37.0-alpha.20241227.1

18

.rush/temp/package-deps_build.json

@@ -6,8 +6,8 @@ {

"packages/rlc-common/.prettierrc": "83e03202b2f3ad5b8df166a965fea698eccb0f90",
"packages/rlc-common/CHANGELOG.md": "98d2a28b03cff48513e9aaa663ec20320fd1ca52",
"packages/rlc-common/CHANGELOG.md": "0e2be021ac0445aa2b3ee9b702ad564124fb5fb3",
"packages/rlc-common/CONTRIBUTING.md": "38ef379872af08f6935263aafac67abe9ce60a1c",
"packages/rlc-common/README.md": "cf3a9e48211f34b1cda27882d2f3cf07078f001e",
"packages/rlc-common/package.json": "b641b9cf9e1f135ad5d9f4c662b41dac6fbd7d6c",
"packages/rlc-common/package.json": "2d137031c3753005249958c22834431722aea0c7",
"packages/rlc-common/publishPackage.js": "3512e26d1199937b1962f3b4189aa9c506d9da1a",
"packages/rlc-common/src/buildClient.ts": "615d27248dc9d8828801bbdd8b902f0207fe5ffb",
"packages/rlc-common/src/buildClient.ts": "9d45a74b59ce04e373b6dd1420d497f39d5baa64",
"packages/rlc-common/src/buildClientDefinitions.ts": "17f0db9433f7dc72035629227b41bd3e3e867e71",

@@ -28,3 +28,3 @@ "packages/rlc-common/src/buildIndexFile.ts": "0e773cba366dba88e364ca4075e47a5950a8165e",

"packages/rlc-common/src/helpers/apiVersionUtil.ts": "8171c14a16d3cebbdd5ba5b647ad14aa308fb115",
"packages/rlc-common/src/helpers/importsUtil.ts": "86284b3a4ec195e9c97b3ee7df8562839ebbc951",
"packages/rlc-common/src/helpers/importsUtil.ts": "6bd50e5b8e5a4a7dfea641a08defbe241d4e484e",
"packages/rlc-common/src/helpers/nameConstructors.ts": "08e0f9e66d068dadb3ec238d901d19ce6644e68c",

@@ -43,3 +43,3 @@ "packages/rlc-common/src/helpers/nameUtils.ts": "9a02df4ee1b3ec8c706a9010d6ecf397e9f88b8d",

"packages/rlc-common/src/metadata/buildBrowserConfig.ts": "8aa97a77a03d3f3503c1959812600ab86080c75d",
"packages/rlc-common/src/metadata/buildESLintConfig.ts": "ff8b8c170bddba8293cf67b4c93bb69b8e98f11f",
"packages/rlc-common/src/metadata/buildESLintConfig.ts": "a466f48fdb603a36d259113482129fc0f44fc2af",
"packages/rlc-common/src/metadata/buildLicenseFile.ts": "93aede17cfd25fd7793180cab3a4398af90edc9e",

@@ -52,6 +52,6 @@ "packages/rlc-common/src/metadata/buildPackageFile.ts": "1409fcde8699eecb056e274d1e548ea9c4263a96",

"packages/rlc-common/src/metadata/buildVitestConfig.ts": "711bd015fc1c581740c2de74e7dace8f8b622840",
"packages/rlc-common/src/metadata/packageJson/azurePackageCommon.ts": "3b95e0296c5ca953b4c825dabe5988b4c32717a3",
"packages/rlc-common/src/metadata/packageJson/buildAzureMonorepoPackage.ts": "36e3786d6b54fc127715ee757bc0099622a1c8de",
"packages/rlc-common/src/metadata/packageJson/azurePackageCommon.ts": "4420f5eba64fd6c5d219921d1a927650011ce4ad",
"packages/rlc-common/src/metadata/packageJson/buildAzureMonorepoPackage.ts": "6ee6758f5217167cac431074a5581712c4091785",
"packages/rlc-common/src/metadata/packageJson/buildAzureStandalonePackage.ts": "1e1e51d7a91e6c170dbaaa03e8c63742b0562584",
"packages/rlc-common/src/metadata/packageJson/buildFlavorlessPackage.ts": "161e62c0655344bc5149f1267e825270553eb897",
"packages/rlc-common/src/metadata/packageJson/buildFlavorlessPackage.ts": "c29708b09a2e1f208c4044828b1674ea2543a8c3",
"packages/rlc-common/src/metadata/packageJson/packageCommon.ts": "561ad79ae6320186781c67e2f44fbcd94cdde720",

@@ -67,3 +67,3 @@ "packages/rlc-common/src/static/paginateContent.ts": "7662e30b3d45a8c812a20ea9e56bd57846b50ddc",

"packages/rlc-common/src/transformSampleGroups.ts": "1e808dd3ff3ba0a934cb68394ce9d3946616c1b5",
"packages/rlc-common/test/helpers/importsUtil.spec.ts": "878af744d2d51cc7c37661965a53b878d5f7c46f",
"packages/rlc-common/test/helpers/importsUtil.spec.ts": "da15f5841eb8227f98e9d8484bab7db864e61822",
"packages/rlc-common/test/helpers/nameUtils.spec.ts": "33ef9c79391097b8f5f70e6987a5877add0152c0",

@@ -70,0 +70,0 @@ "packages/rlc-common/test/helpers/typeUtil.spec.ts": "ddabcac40ae1c30c0088ca421c612c4f2a7b3a31",

@@ -0,1 +1,15 @@

## 0.37.0 (2024-12-27)
- [Feature] Sdk package methods adoption. Please refer to [#2943](https://github.com/Azure/autorest.typescript/pull/2943)
- Adopt to sdkPackage methods;
- Support client level path parameter in general;
- ContentType/accept header parameter logic change;
- ApiVersion and its policy related change;
- Adjust parameter order change aligned with spec in spread cases;
- The bytes type gets generated inconsistent as before;
- Replace core related dependencies in static helper.
- [Feature] Upgrade mocha to ^11.0.2 for generated packages. Please refer to [#2945](https://github.com/Azure/autorest.typescript/pull/2945)
- [Feature] use azsdkEslint.config helper in eslint.config.mjs. Please refer to [#2949](https://github.com/Azure/autorest.typescript/pull/2949)
- [Feature] Upgrade typespec http runtime version to v0.1.0 for unbranded client. Please refer to [#2947](https://github.com/Azure/autorest.typescript/pull/2947)
## 0.36.0 (2024-12-12)

@@ -2,0 +16,0 @@

@@ -221,6 +221,16 @@ // Copyright (c) Microsoft Corporation.

});
endpointUrl = `options.endpoint ?? options.baseUrl ?? \`${parsedEndpoint}\``;
if (model.options.flavor !== "azure") {
endpointUrl = `options.endpoint ?? \`${parsedEndpoint}\``;
}
else {
endpointUrl = `options.endpoint ?? options.baseUrl ?? \`${parsedEndpoint}\``;
}
}
else {
endpointUrl = `options.endpoint ?? options.baseUrl ?? "${endpoint}"`;
if (model.options.flavor !== "azure") {
endpointUrl = `options.endpoint ??"${endpoint}"`;
}
else {
endpointUrl = `options.endpoint ?? options.baseUrl ?? "${endpoint}"`;
}
}

@@ -227,0 +237,0 @@ if (!model.options.isModularLibrary && !clientPackageName.endsWith("-rest")) {

@@ -56,3 +56,3 @@ /**

specifier: "@typespec/ts-http-runtime",
version: "1.0.0-alpha.20240314.2"
version: "0.1.0"
}

@@ -59,0 +59,0 @@ };

@@ -6,4 +6,3 @@ // Copyright (c) Microsoft Corporation.

export default [
...azsdkEslint.configs.recommended,
export default azsdkEslint.config([
{

@@ -18,8 +17,7 @@ rules: {

}
];
]);
`;
const esLintConfigEsm = `import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
export default [
...azsdkEslint.configs.recommended,
export default azsdkEslint.config([
{

@@ -37,3 +35,3 @@ rules: {

}
];
]);
`;

@@ -40,0 +38,0 @@ export function buildEsLintConfig(model) {

@@ -69,3 +69,3 @@ // Copyright (c) Microsoft Corporation.

nyc: "^15.1.0",
mocha: "^10.0.0",
mocha: "^11.0.2",
"@types/mocha": "^10.0.0",

@@ -72,0 +72,0 @@ "@types/chai": "^4.2.8",

@@ -98,3 +98,3 @@ // Copyright (c) Microsoft Corporation.

dotenv: "^16.0.0",
mocha: "^10.0.0",
mocha: "^11.0.2",
"@types/mocha": "^10.0.0",

@@ -101,0 +101,0 @@ "@types/chai": "^4.2.8",

@@ -19,3 +19,3 @@ // Copyright (c) Microsoft Corporation.

...commonPackageDependencies,
"@typespec/ts-http-runtime": "1.0.0-alpha.20240314.2"
"@typespec/ts-http-runtime": "0.1.0"
}

@@ -22,0 +22,0 @@ };

@@ -1,1 +0,1 @@

{"name":"@azure-tools/rlc-common","version":"0.36.0","description":"","type":"module","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc \"src/**/*.ts\"","build":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"npm run unit-test","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --loader=ts-node/esm --experimental-specifier-resolution=node test/**/*.spec.ts"},"keywords":[],"author":"","license":"ISC","dependencies":{"ts-morph":"^23.0.0","lodash":"^4.17.21","handlebars":"^4.7.7"},"devDependencies":{"@types/node":"^18.0.0","eslint":"^8.9.0","prettier":"^3.1.0","typescript":"~5.6.2","rimraf":"^5.0.0","@types/lodash":"^4.14.182","fs-extra":"^10.0.0","@types/fs-extra":"^8.1.0","ts-node":"^10.7.0","mocha":"^10.2.0","chai":"^4.3.7","@types/chai":"^4.3.4","@types/mocha":"^10.0.1","@typescript-eslint/eslint-plugin":"^6.8.0","@typescript-eslint/parser":"^6.8.0","eslint-plugin-require-extensions":"0.1.3","cross-env":"7.0.3"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}
{"name":"@azure-tools/rlc-common","version":"0.37.0","description":"","type":"module","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc \"src/**/*.ts\"","build":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"npm run unit-test","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --loader=ts-node/esm --experimental-specifier-resolution=node test/**/*.spec.ts"},"keywords":[],"author":"","license":"ISC","dependencies":{"ts-morph":"^23.0.0","lodash":"^4.17.21","handlebars":"^4.7.7"},"devDependencies":{"@types/node":"^18.0.0","eslint":"^8.9.0","prettier":"^3.1.0","typescript":"~5.6.2","rimraf":"^5.0.0","@types/lodash":"^4.14.182","fs-extra":"^10.0.0","@types/fs-extra":"^8.1.0","ts-node":"^10.7.0","mocha":"^10.2.0","chai":"^4.3.7","@types/chai":"^4.3.4","@types/mocha":"^10.0.1","@typescript-eslint/eslint-plugin":"^6.8.0","@typescript-eslint/parser":"^6.8.0","eslint-plugin-require-extensions":"0.1.3","cross-env":"7.0.3"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}

@@ -229,6 +229,16 @@ "use strict";

});
endpointUrl = `options.endpoint ?? options.baseUrl ?? \`${parsedEndpoint}\``;
if (model.options.flavor !== "azure") {
endpointUrl = `options.endpoint ?? \`${parsedEndpoint}\``;
}
else {
endpointUrl = `options.endpoint ?? options.baseUrl ?? \`${parsedEndpoint}\``;
}
}
else {
endpointUrl = `options.endpoint ?? options.baseUrl ?? "${endpoint}"`;
if (model.options.flavor !== "azure") {
endpointUrl = `options.endpoint ??"${endpoint}"`;
}
else {
endpointUrl = `options.endpoint ?? options.baseUrl ?? "${endpoint}"`;
}
}

@@ -235,0 +245,0 @@ if (!model.options.isModularLibrary && !clientPackageName.endsWith("-rest")) {

@@ -64,3 +64,3 @@ "use strict";

specifier: "@typespec/ts-http-runtime",
version: "1.0.0-alpha.20240314.2"
version: "0.1.0"
}

@@ -67,0 +67,0 @@ };

@@ -9,4 +9,3 @@ "use strict";

export default [
...azsdkEslint.configs.recommended,
export default azsdkEslint.config([
{

@@ -21,8 +20,7 @@ rules: {

}
];
]);
`;
const esLintConfigEsm = `import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
export default [
...azsdkEslint.configs.recommended,
export default azsdkEslint.config([
{

@@ -40,3 +38,3 @@ rules: {

}
];
]);
`;

@@ -43,0 +41,0 @@ function buildEsLintConfig(model) {

@@ -74,3 +74,3 @@ "use strict";

nyc: "^15.1.0",
mocha: "^10.0.0",
mocha: "^11.0.2",
"@types/mocha": "^10.0.0",

@@ -77,0 +77,0 @@ "@types/chai": "^4.2.8",

@@ -103,3 +103,3 @@ "use strict";

dotenv: "^16.0.0",
mocha: "^10.0.0",
mocha: "^11.0.2",
"@types/mocha": "^10.0.0",

@@ -106,0 +106,0 @@ "@types/chai": "^4.2.8",

@@ -22,3 +22,3 @@ "use strict";

...packageCommon_js_1.commonPackageDependencies,
"@typespec/ts-http-runtime": "1.0.0-alpha.20240314.2"
"@typespec/ts-http-runtime": "0.1.0"
}

@@ -25,0 +25,0 @@ };

@@ -1,1 +0,1 @@

{"name":"@azure-tools/rlc-common","version":"0.36.0","description":"","type":"commonjs","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc \"src/**/*.ts\"","build":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"npm run unit-test","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --loader=ts-node/esm --experimental-specifier-resolution=node test/**/*.spec.ts"},"keywords":[],"author":"","license":"ISC","dependencies":{"ts-morph":"^23.0.0","lodash":"^4.17.21","handlebars":"^4.7.7"},"devDependencies":{"@types/node":"^18.0.0","eslint":"^8.9.0","prettier":"^3.1.0","typescript":"~5.6.2","rimraf":"^5.0.0","@types/lodash":"^4.14.182","fs-extra":"^10.0.0","@types/fs-extra":"^8.1.0","ts-node":"^10.7.0","mocha":"^10.2.0","chai":"^4.3.7","@types/chai":"^4.3.4","@types/mocha":"^10.0.1","@typescript-eslint/eslint-plugin":"^6.8.0","@typescript-eslint/parser":"^6.8.0","eslint-plugin-require-extensions":"0.1.3","cross-env":"7.0.3"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}
{"name":"@azure-tools/rlc-common","version":"0.37.0","description":"","type":"commonjs","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc \"src/**/*.ts\"","build":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"npm run unit-test","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --loader=ts-node/esm --experimental-specifier-resolution=node test/**/*.spec.ts"},"keywords":[],"author":"","license":"ISC","dependencies":{"ts-morph":"^23.0.0","lodash":"^4.17.21","handlebars":"^4.7.7"},"devDependencies":{"@types/node":"^18.0.0","eslint":"^8.9.0","prettier":"^3.1.0","typescript":"~5.6.2","rimraf":"^5.0.0","@types/lodash":"^4.14.182","fs-extra":"^10.0.0","@types/fs-extra":"^8.1.0","ts-node":"^10.7.0","mocha":"^10.2.0","chai":"^4.3.7","@types/chai":"^4.3.4","@types/mocha":"^10.0.1","@typescript-eslint/eslint-plugin":"^6.8.0","@typescript-eslint/parser":"^6.8.0","eslint-plugin-require-extensions":"0.1.3","cross-env":"7.0.3"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}
{
"name": "@azure-tools/rlc-common",
"version": "0.36.0",
"version": "0.37.0-alpha.20241227.1",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",

@@ -342,6 +342,13 @@ // Copyright (c) Microsoft Corporation.

});
endpointUrl = `options.endpoint ?? options.baseUrl ?? \`${parsedEndpoint}\``;
if (model.options.flavor !== "azure") {
endpointUrl = `options.endpoint ?? \`${parsedEndpoint}\``;
} else {
endpointUrl = `options.endpoint ?? options.baseUrl ?? \`${parsedEndpoint}\``;
}
} else {
endpointUrl = `options.endpoint ?? options.baseUrl ?? "${endpoint}"`;
if (model.options.flavor !== "azure") {
endpointUrl = `options.endpoint ??"${endpoint}"`;
} else {
endpointUrl = `options.endpoint ?? options.baseUrl ?? "${endpoint}"`;
}
}

@@ -348,0 +355,0 @@

@@ -58,3 +58,3 @@ import { SourceFile } from "ts-morph";

specifier: "@typespec/ts-http-runtime",
version: "1.0.0-alpha.20240314.2"
version: "0.1.0"
}

@@ -61,0 +61,0 @@ } as Imports;

@@ -9,4 +9,3 @@ // Copyright (c) Microsoft Corporation.

export default [
...azsdkEslint.configs.recommended,
export default azsdkEslint.config([
{

@@ -21,3 +20,3 @@ rules: {

}
];
]);
`;

@@ -27,4 +26,3 @@

export default [
...azsdkEslint.configs.recommended,
export default azsdkEslint.config([
{

@@ -42,3 +40,3 @@ rules: {

}
];
]);
`;

@@ -45,0 +43,0 @@

@@ -99,3 +99,3 @@ // Copyright (c) Microsoft Corporation.

nyc: "^15.1.0",
mocha: "^10.0.0",
mocha: "^11.0.2",
"@types/mocha": "^10.0.0",

@@ -102,0 +102,0 @@ "@types/chai": "^4.2.8",

@@ -135,3 +135,3 @@ // Copyright (c) Microsoft Corporation.

dotenv: "^16.0.0",
mocha: "^10.0.0",
mocha: "^11.0.2",
"@types/mocha": "^10.0.0",

@@ -138,0 +138,0 @@ "@types/chai": "^4.2.8",

@@ -27,3 +27,3 @@ // Copyright (c) Microsoft Corporation.

...commonPackageDependencies,
"@typespec/ts-http-runtime": "1.0.0-alpha.20240314.2"
"@typespec/ts-http-runtime": "0.1.0"
}

@@ -30,0 +30,0 @@ };

@@ -24,3 +24,3 @@ import { expect } from "chai";

specifier: "@typespec/ts-http-runtime",
version: "1.0.0-alpha.20240314.2"
version: "0.1.0"
});

@@ -27,0 +27,0 @@ expect(imports.restClient).to.be.undefined;

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc