Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wanlwanl committed Jun 17, 2024
1 parent 7a25304 commit 7785995
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion tools/js-sdk-release-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"build": "rimraf dist && tsc -p .",
"prepack": "npm run build",
"test": "vitest --run",
"test:watch": "vitest"
"test:watch": "vitest",
"test:ci": "node dist/changelogToolCli.js src/test/testCases/ci/arm-networkanalytics"
},
"bin": {
"changelog-tool": "./dist/changelogToolCli.js",
Expand Down
12 changes: 6 additions & 6 deletions tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ const findAddedOperation = (metaDataOld: TSExportedMetaData, metaDataNew: TSExpo
Object.keys(metaDataNew.operationInterface).forEach(newOperationGroup => {
const oldOperationGroup = oldSdkType === newSdkType ? newOperationGroup : newToOldMap[newOperationGroup];
const newInterfaceMethodNames = getAllMethodNameInInterface(metaDataNew.operationInterface[newOperationGroup]);
const oldInterfaceNameMethods = getAllMethodNameInInterface(metaDataOld.operationInterface[oldOperationGroup]);
const oldInterfaceMethodNames = getAllMethodNameInInterface(metaDataOld.operationInterface[oldOperationGroup]);
newInterfaceMethodNames
.filter(newOpName => !oldInterfaceNameMethods.includes(newOpName))
.filter(newOpName => !oldInterfaceMethodNames.includes(newOpName))
.forEach(newOpName => { addOperation.push('Added operation ' + newOperationGroup + '.' + newOpName); });
return true;
return;
});
return addOperation;
};
Expand Down Expand Up @@ -475,9 +475,9 @@ const findRemovedOperation = (metaDataOld: TSExportedMetaData, metaDataNew: TSEx

Object.keys(metaDataOld.operationInterface).forEach(oldOperationGroup => {
const newOperationGroup = oldSdkType === newSdkType ? oldOperationGroup : oldToNew[oldOperationGroup];
const newInterfaceMethodNames = getAllMethodNameInInterface(metaDataOld.operationInterface[oldOperationGroup]);
const oldInterfaceNameMethods = getAllMethodNameInInterface(metaDataNew.operationInterface[newOperationGroup]);
oldInterfaceNameMethods
const newInterfaceMethodNames = getAllMethodNameInInterface(metaDataNew.operationInterface[newOperationGroup]);
const oldInterfaceMethodNames = getAllMethodNameInInterface(metaDataOld.operationInterface[oldOperationGroup]);
oldInterfaceMethodNames
.filter(oldOpName => !newInterfaceMethodNames.includes(oldOpName))
.forEach(oldOpName => { removedOperation.push('Removed operation ' + oldOperationGroup + '.' + oldOpName); });
return true;
Expand Down

0 comments on commit 7785995

Please sign in to comment.