New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cloudflare/unenv-preset

Package Overview
Dependencies
Maintainers
35
Versions
337
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/unenv-preset - npm Package Compare versions

Comparing version

to
0.0.0-2138fef92

dist/runtime/node/async_hooks.d.ts

19

package.json
{
"name": "@cloudflare/unenv-preset",
"version": "0.0.0-1f3af77c7",
"version": "0.0.0-2138fef92",
"description": "cloudflare preset for unenv",

@@ -28,11 +28,10 @@ "keywords": [

"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
},
"./runtime/*": {
"types": "./dist/runtime/*.d.ts",
"import": "./dist/runtime/*.mjs"
}
"./*": {
"types": "./dist/runtime/*.d.mts",
"default": "./dist/runtime/*.mjs"
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",

@@ -43,3 +42,3 @@ "files": [

"devDependencies": {
"@types/node-unenv": "npm:@types/node@^22.10.5",
"@types/node-unenv": "npm:@types/node@^22.13.1",
"typescript": "^5.7.2",

@@ -49,6 +48,6 @@ "unbuild": "^3.2.0",

"vitest": "~3.0.5",
"wrangler": "0.0.0-1f3af77c7"
"wrangler": "0.0.0-2138fef92"
},
"peerDependencies": {
"unenv": "2.0.0-rc.1",
"unenv": "2.0.0-rc.8",
"workerd": "^1.20250124.0"

@@ -55,0 +54,0 @@ },

@@ -5,2 +5,4 @@ # @cloudflare/unenv-preset

unenv provides polyfills to add [Node.js](https://nodejs.org/) compatibility for any JavaScript runtime, including browsers and edge workers.
## Usage

@@ -13,5 +15,8 @@

const { env } = defineEnv({
nodeCompat: true,
presets: [cloudflare],
});
const { alias, inject, external, polyfill } = env;
```
See the unenv [README](https://github.com/unjs/unenv/blob/main/README.md) for more details.

Sorry, the diff of this file is not supported yet