diff --git a/dapp-factory/pipeline/web3_pipeline.ts b/dapp-factory/pipeline/web3_pipeline.ts index 2d730f87..e1b3ec89 100644 --- a/dapp-factory/pipeline/web3_pipeline.ts +++ b/dapp-factory/pipeline/web3_pipeline.ts @@ -1,5 +1,6 @@ import * as fs from 'fs'; import * as path from 'path'; +import * as crypto from 'crypto'; import { PromptEnforcer, executeStageWithPrompt } from './prompt_enforcer'; /** @@ -27,7 +28,6 @@ export class Web3Pipeline { // Generate run ID if not provided const timestamp = new Date().toISOString().replace(/[:.]/g, '-'); - const crypto = await import('crypto'); const ideaHash = crypto .createHash('md5') .update(config.idea) diff --git a/package-lock.json b/package-lock.json index 0393acab..3428c672 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4239,9 +4239,9 @@ } }, "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", + "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", "dev": true, "license": "ISC" },