File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/angular-mcp-server/src/lib/tools/ds/component-contract/builder Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { buildComponentContract } from './utils/build-contract.js';
77import { generateContractSummary } from '../shared/utils/contract-file-ops.js' ;
88import { ContractResult } from './models/types.js' ;
99import { resolveCrossPlatformPath } from '../../shared/utils/cross-platform-path.js' ;
10+ import { createHash } from 'node:crypto' ;
1011
1112interface BuildComponentContractOptions extends BaseHandlerOptions {
1213 saveLocation : string ;
@@ -52,10 +53,7 @@ export const buildComponentContractHandler = createHandler<
5253 ) ;
5354
5455 const contractString = JSON . stringify ( contract , null , 2 ) ;
55- const hash = require ( 'node:crypto' )
56- . createHash ( 'sha256' )
57- . update ( contractString )
58- . digest ( 'hex' ) ;
56+ const hash = createHash ( 'sha256' ) . update ( contractString ) . digest ( 'hex' ) ;
5957
6058 const effectiveSaveLocation = resolveCrossPlatformPath ( cwd , saveLocation ) ;
6159
You can’t perform that action at this time.
0 commit comments