Skip to content

Commit 33afbf8

Browse files
committed
Fix CI
1 parent 03d625e commit 33afbf8

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/p2pcf/utils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Encoding/decoding utilities with zero external dependencies
44
*/
55

6+
import { randomUUID } from 'crypto';
7+
68
/**
79
* Convert hex string to Uint8Array
810
*/
@@ -170,8 +172,8 @@ export function bytesToString(bytes: Uint8Array): string {
170172
*/
171173
export function generateUUID(): string {
172174
// Use crypto.randomUUID if available
173-
if (typeof crypto !== 'undefined' && crypto.randomUUID) {
174-
return crypto.randomUUID();
175+
if (typeof crypto !== 'undefined' && (crypto as any).randomUUID) {
176+
return (crypto as any).randomUUID();
175177
}
176178

177179
// Fallback UUID generation

webpack.main.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ export const mainConfig: Configuration = {
1717
resolve: {
1818
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.json'],
1919
},
20+
externals: {
21+
'@aws-sdk/client-s3': 'commonjs2 @aws-sdk/client-s3',
22+
},
2023
};

0 commit comments

Comments
 (0)