Closed nmrgt closed 2 months ago
The changes primarily involve restructuring and updating various dependencies and imports across the project. Key updates include the removal of certain cryptographic and UUID functionalities and introducing standardized modules for these tasks. New functionalities for hashing, encryption, and UUID generation have been centralized into specific utility files. Additionally, several methods and class properties have been updated to handle asynchronous operations, improving consistency and efficiency within the codebase.
File Path | Change Summary |
---|---|
api/src/deps.ts | Removed and added exports of cryptographic and utility functions |
api/src/etl/cli.ts | Removed getSourceAction function |
api/src/etl/helpers/index.ts | Removed export of randomString.ts |
api/src/etl/providers/FileManager.ts | Updated imports, added async functions, and improved hash and UUID generation |
api/src/etl/providers/FileManager.unit.spec.ts | Updated hash function import and usage |
api/src/lib/crypto/index.ts | Introduced new cryptographic functions like createHash , bcrypt_hash , and createSignatory |
api/src/lib/uuid/index.ts | Introduced new v4 function for UUID generation using crypto.randomUUID() |
api/src/pdc/providers/normalization/providers/NormalizationProvider.unit.spec.ts | Replaced randomUUID with uuidV4 for generating unique identifiers |
api/src/pdc/providers/seed/carpools.ts | Updated import of v4 UUID function |
api/src/pdc/providers/test/helpers.ts | Updated import for v4 UUID function |
api/src/pdc/proxy/middlewares/cache/transformers.ts | Updated getKey function to return a Promise<CacheKey> and updated hash generation |
api/src/pdc/proxy/middlewares/cacheMiddleware.ts | Updated to await getKey function within cacheMiddleware |
api/src/pdc/services/acquisition/actions/ProcessJourneyAction.ts | Updated import of v4 UUID function and replaced randomUUID() with v4() |
...CrosscheckRepositoryProvider.ts | Updated import for v4 and adjusted tripId to allow null values |
...RegisterCeeAction.integration.spec.ts | Introduced createSignatory function for authorization |
...RegisterCeeAction.ts | Updated to use createSignatory for signing application data |
...Certificate/ServiceProvider.ts | Reordered and added new imports, adjusted order of initialization bindings |
...SimulateOnFutureAction.ts | Updated import for v4 UUID function |
.../policies/*.unit.spec.ts | Updated import for v4 UUID function in multiple policy unit test files |
🐰✨ A codebase fresh with winds of change,
Cryptic whispers now rearrange.
Hashes hum and UUIDs sing,
In files new and shimmering.
Async flows in harmony,
Coding tales of bright journey free.
🌟📜
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Refactor
Bug Fixes
Tests