Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: add polyfil for crypto.randomuuid #368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions 2 dist/legacy/assets/proxy-agent-C54PwHVe.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions 2 dist/legacy/assets/proxy-agent-i1y8grEI.js

This file was deleted.

2 changes: 1 addition & 1 deletion 2 dist/legacy/setup-cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2 dist/legacy/setup-cpp.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2 dist/modern/setup-cpp.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2 dist/modern/setup-cpp.mjs.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions 1 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
"patha": "^0.4.1",
"prettier": "3.5.3",
"prettier-config-atomic": "^4.0.0",
"randomuuid-polyfill": "^1.0.2",
"readme-md-generator": "^1.0.0",
"retry-as-promised": "^7.1.1",
"rollup": "^4.34.9",
Expand Down
8 changes: 8 additions & 0 deletions 8 pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions 4 src/llvm/llvm_brew_installer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { warning } from "ci-log"
import { info } from "ci-log"
import { addPath } from "envosman"
import { installBrewPack } from "setup-brew"
import { rcOptions } from "../cli-options.ts"
Expand All @@ -12,7 +12,7 @@ export async function trySetupLLVMBrew(version: string, _setupDir: string, _arch
try {
return await setupLLVMBrew(version, _setupDir, _arch)
} catch (err) {
warning(`Failed to install llvm via brew: ${err}`)
info(`Failed to install llvm via brew: ${err}`)
return undefined
}
}
Expand Down
6 changes: 6 additions & 0 deletions 6 src/utils/compat/crypto/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// eslint-disable-next-line node/no-deprecated-api
export * from "crypto"
import * as crypto from "crypto"
export default crypto

export { randomUUID } from "randomuuid-polyfill"
3 changes: 3 additions & 0 deletions 3 src/utils/compat/crypto/type.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module "randomuuid-polyfill" {
export function randomUUID(): string
}
1 change: 1 addition & 0 deletions 1 vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const viteConfig = defineConfig({
"util/types": "util.types/index.js",
"timers/promises": "timers-browserify",
diagnostics_channel: "diagnostics_channel/index.js",
crypto: "./src/utils/compat/crypto/index.ts",
}
: {}),
},
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.