@cloudflare/vite-plugin
Advanced tools
Sorry, the diff of this file is not supported yet
+113
| import { parseArgs } from "node:util"; | ||
| import { createServer } from "vite"; | ||
| //#region src/cf-vite.ts | ||
| /** | ||
| * `cf-vite` delegate binary entry point for `@cloudflare/vite-plugin`. | ||
| * | ||
| * EXPERIMENTAL / internal: spawned by Cloudflare's "cf-dev" parent | ||
| * process, not invoked directly by end users. Contract may change. | ||
| * | ||
| * Usage: `<pkgRoot>/bin/cf-vite <verb> [flags...]`. `dev` is the only | ||
| * verb today; future verbs follow the same shape. Unknown/missing verbs | ||
| * exit 2 (also the parent's version-detection signal). | ||
| * | ||
| * Spawn contract for `dev`: parent uses `stdio: "inherit"` and forwards | ||
| * SIGINT/SIGTERM. Accepted flags mirror the sibling `cf-wrangler` | ||
| * delegate (`--config`, `--mode`, `--port`, `--host`, `--local`) so the | ||
| * parent can drive either impl interchangeably; everything else lives in | ||
| * the user's `vite.config.ts` / `wrangler.jsonc`. `cf-vite` boots Vite | ||
| * via `createServer()` against the user's own config (expected to | ||
| * include `cloudflare()`); flags are bridged to it as documented inline. | ||
| * | ||
| * Exit codes: 0 graceful, 2 unknown verb / parse error, 130 SIGINT, | ||
| * 143 SIGTERM. | ||
| */ | ||
| var ArgParseError = class extends Error { | ||
| constructor(message) { | ||
| super(message); | ||
| this.name = "ArgParseError"; | ||
| } | ||
| }; | ||
| /** Strict argv parser; mirrors `cf-wrangler`'s flags (unknown → throw). */ | ||
| function parseArgs$1(argv) { | ||
| let parsed; | ||
| try { | ||
| parsed = parseArgs({ | ||
| args: argv, | ||
| options: { | ||
| config: { type: "string" }, | ||
| mode: { type: "string" }, | ||
| host: { type: "string" }, | ||
| port: { type: "string" }, | ||
| local: { type: "boolean" } | ||
| }, | ||
| strict: true, | ||
| allowPositionals: false | ||
| }); | ||
| } catch (err) { | ||
| throw new ArgParseError(err instanceof Error ? err.message : String(err)); | ||
| } | ||
| const out = {}; | ||
| if (parsed.values.config !== void 0) out.config = parsed.values.config; | ||
| if (parsed.values.mode !== void 0) out.mode = parsed.values.mode; | ||
| if (parsed.values.host !== void 0) out.host = parsed.values.host; | ||
| if (parsed.values.port !== void 0) { | ||
| const raw = parsed.values.port; | ||
| const n = Number(raw); | ||
| if (!Number.isInteger(n) || n < 0 || n > 65535) throw new ArgParseError(`--port expects an integer between 0 and 65535, got "${raw}"`); | ||
| out.port = n; | ||
| } | ||
| if (parsed.values.local !== void 0) out.local = parsed.values.local; | ||
| return out; | ||
| } | ||
| async function main() { | ||
| const verb = process.argv[2]; | ||
| const userArgv = process.argv.slice(3); | ||
| if (verb !== "dev") { | ||
| process.stderr.write(`Error: unknown subcommand "${verb ?? ""}".\nUsage: cf-vite dev [args]\n`); | ||
| return 2; | ||
| } | ||
| let args; | ||
| try { | ||
| args = parseArgs$1(userArgv); | ||
| } catch (err) { | ||
| if (err instanceof ArgParseError) { | ||
| process.stderr.write(`Error: ${err.message}\n`); | ||
| return 2; | ||
| } | ||
| throw err; | ||
| } | ||
| if (args.config !== void 0) process.env.CLOUDFLARE_VITE_WRANGLER_CONFIG_PATH = args.config; | ||
| if (args.local) process.env.CLOUDFLARE_VITE_FORCE_LOCAL = "true"; | ||
| const serverOptions = {}; | ||
| if (args.port !== void 0) serverOptions.port = args.port; | ||
| if (args.host !== void 0) serverOptions.host = args.host; | ||
| const inlineConfig = { server: serverOptions }; | ||
| if (args.mode !== void 0) inlineConfig.mode = args.mode; | ||
| const server = await createServer(inlineConfig); | ||
| await server.listen(); | ||
| server.printUrls(); | ||
| server.bindCLIShortcuts({ print: true }); | ||
| let closing = false; | ||
| const shutdown = (signal) => { | ||
| if (closing) return; | ||
| closing = true; | ||
| (async () => { | ||
| try { | ||
| await server.close(); | ||
| process.exit(0); | ||
| } catch { | ||
| process.exit(signal === "SIGINT" ? 130 : 143); | ||
| } | ||
| })(); | ||
| }; | ||
| process.on("SIGINT", () => shutdown("SIGINT")); | ||
| process.on("SIGTERM", () => shutdown("SIGTERM")); | ||
| return new Promise(() => {}); | ||
| } | ||
| const exitCode = await main(); | ||
| process.exit(exitCode); | ||
| //#endregion | ||
| export { }; |
| //#region package.json | ||
| var package_default = { | ||
| name: "@cloudflare/vite-plugin", | ||
| version: "1.39.2", | ||
| description: "Cloudflare plugin for Vite", | ||
| keywords: [ | ||
| "cloudflare", | ||
| "cloudflare-workers", | ||
| "vite", | ||
| "vite-plugin", | ||
| "workers" | ||
| ], | ||
| homepage: "https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare#readme", | ||
| bugs: { "url": "https://github.com/cloudflare/workers-sdk/issues" }, | ||
| license: "MIT", | ||
| repository: { | ||
| "type": "git", | ||
| "url": "https://github.com/cloudflare/workers-sdk.git", | ||
| "directory": "packages/vite-plugin-cloudflare" | ||
| }, | ||
| bin: { "cf-vite": "./bin/cf-vite" }, | ||
| files: ["bin", "dist"], | ||
| type: "module", | ||
| sideEffects: false, | ||
| main: "./dist/index.mjs", | ||
| types: "./dist/index.d.mts", | ||
| exports: { ".": { | ||
| "types": "./dist/index.d.mts", | ||
| "import": "./dist/index.mjs" | ||
| } }, | ||
| publishConfig: { "access": "public" }, | ||
| scripts: { | ||
| "build": "tsdown", | ||
| "check:type": "tsc --build", | ||
| "dev": "tsdown --watch", | ||
| "test": "vitest run", | ||
| "test:ci": "pnpm test", | ||
| "test:e2e": "vitest run -c e2e/vitest.config.ts", | ||
| "test:watch": "vitest" | ||
| }, | ||
| dependencies: { | ||
| "@cloudflare/unenv-preset": "workspace:*", | ||
| "miniflare": "workspace:*", | ||
| "unenv": "2.0.0-rc.24", | ||
| "wrangler": "workspace:*", | ||
| "ws": "catalog:default" | ||
| }, | ||
| devDependencies: { | ||
| "@cloudflare/containers-shared": "workspace:*", | ||
| "@cloudflare/mock-npm-registry": "workspace:*", | ||
| "@cloudflare/workers-shared": "workspace:*", | ||
| "@cloudflare/workers-tsconfig": "workspace:*", | ||
| "@cloudflare/workers-types": "catalog:default", | ||
| "@cloudflare/workers-utils": "workspace:*", | ||
| "@remix-run/node-fetch-server": "^0.8.0", | ||
| "@types/node": "catalog:default", | ||
| "@types/semver": "^7.5.1", | ||
| "@types/ws": "^8.5.13", | ||
| "defu": "^6.1.4", | ||
| "get-port": "^7.1.0", | ||
| "magic-string": "^0.30.12", | ||
| "mlly": "^1.7.4", | ||
| "open": "catalog:default", | ||
| "picocolors": "^1.1.1", | ||
| "qr": "^0.6.0", | ||
| "semver": "^7.7.1", | ||
| "tinyglobby": "catalog:default", | ||
| "tree-kill": "catalog:default", | ||
| "tsdown": "0.16.3", | ||
| "typescript": "catalog:default", | ||
| "vite": "catalog:default", | ||
| "vite-legacy": "npm:vite@7.1.12", | ||
| "vitest": "catalog:default" | ||
| }, | ||
| peerDependencies: { | ||
| "vite": "^6.1.0 || ^7.0.0 || ^8.0.0", | ||
| "wrangler": "workspace:^" | ||
| }, | ||
| "workers-sdk": { "prerelease": true } | ||
| }; | ||
| //#endregion | ||
| export { package_default as default }; | ||
| //# sourceMappingURL=package-CKVuH4BM.mjs.map |
| {"version":3,"file":"package-CKVuH4BM.mjs","names":[],"sources":["../package.json"],"sourcesContent":["{\n\t\"name\": \"@cloudflare/vite-plugin\",\n\t\"version\": \"1.39.2\",\n\t\"description\": \"Cloudflare plugin for Vite\",\n\t\"keywords\": [\n\t\t\"cloudflare\",\n\t\t\"cloudflare-workers\",\n\t\t\"vite\",\n\t\t\"vite-plugin\",\n\t\t\"workers\"\n\t],\n\t\"homepage\": \"https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare#readme\",\n\t\"bugs\": {\n\t\t\"url\": \"https://github.com/cloudflare/workers-sdk/issues\"\n\t},\n\t\"license\": \"MIT\",\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"https://github.com/cloudflare/workers-sdk.git\",\n\t\t\"directory\": \"packages/vite-plugin-cloudflare\"\n\t},\n\t\"bin\": {\n\t\t\"cf-vite\": \"./bin/cf-vite\"\n\t},\n\t\"files\": [\n\t\t\"bin\",\n\t\t\"dist\"\n\t],\n\t\"type\": \"module\",\n\t\"sideEffects\": false,\n\t\"main\": \"./dist/index.mjs\",\n\t\"types\": \"./dist/index.d.mts\",\n\t\"exports\": {\n\t\t\".\": {\n\t\t\t\"types\": \"./dist/index.d.mts\",\n\t\t\t\"import\": \"./dist/index.mjs\"\n\t\t}\n\t},\n\t\"publishConfig\": {\n\t\t\"access\": \"public\"\n\t},\n\t\"scripts\": {\n\t\t\"build\": \"tsdown\",\n\t\t\"check:type\": \"tsc --build\",\n\t\t\"dev\": \"tsdown --watch\",\n\t\t\"test\": \"vitest run\",\n\t\t\"test:ci\": \"pnpm test\",\n\t\t\"test:e2e\": \"vitest run -c e2e/vitest.config.ts\",\n\t\t\"test:watch\": \"vitest\"\n\t},\n\t\"dependencies\": {\n\t\t\"@cloudflare/unenv-preset\": \"workspace:*\",\n\t\t\"miniflare\": \"workspace:*\",\n\t\t\"unenv\": \"2.0.0-rc.24\",\n\t\t\"wrangler\": \"workspace:*\",\n\t\t\"ws\": \"catalog:default\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@cloudflare/containers-shared\": \"workspace:*\",\n\t\t\"@cloudflare/mock-npm-registry\": \"workspace:*\",\n\t\t\"@cloudflare/workers-shared\": \"workspace:*\",\n\t\t\"@cloudflare/workers-tsconfig\": \"workspace:*\",\n\t\t\"@cloudflare/workers-types\": \"catalog:default\",\n\t\t\"@cloudflare/workers-utils\": \"workspace:*\",\n\t\t\"@remix-run/node-fetch-server\": \"^0.8.0\",\n\t\t\"@types/node\": \"catalog:default\",\n\t\t\"@types/semver\": \"^7.5.1\",\n\t\t\"@types/ws\": \"^8.5.13\",\n\t\t\"defu\": \"^6.1.4\",\n\t\t\"get-port\": \"^7.1.0\",\n\t\t\"magic-string\": \"^0.30.12\",\n\t\t\"mlly\": \"^1.7.4\",\n\t\t\"open\": \"catalog:default\",\n\t\t\"picocolors\": \"^1.1.1\",\n\t\t\"qr\": \"^0.6.0\",\n\t\t\"semver\": \"^7.7.1\",\n\t\t\"tinyglobby\": \"catalog:default\",\n\t\t\"tree-kill\": \"catalog:default\",\n\t\t\"tsdown\": \"0.16.3\",\n\t\t\"typescript\": \"catalog:default\",\n\t\t\"vite\": \"catalog:default\",\n\t\t\"vite-legacy\": \"npm:vite@7.1.12\",\n\t\t\"vitest\": \"catalog:default\"\n\t},\n\t\"peerDependencies\": {\n\t\t\"vite\": \"^6.1.0 || ^7.0.0 || ^8.0.0\",\n\t\t\"wrangler\": \"workspace:^\"\n\t},\n\t\"workers-sdk\": {\n\t\t\"prerelease\": true\n\t}\n}\n"],"mappings":";sBAAA;OACS;UACG;cACI;WACH;EACX;EACA;EACA;EACA;EACA;EACA;WACW;OACJ,EACP,OAAO,oDACP;UACU;aACG;EACb,QAAQ;EACR,OAAO;EACP,aAAa;EACb;MACM,EACN,WAAW,iBACX;QACQ,CACR,OACA,OACA;OACO;cACO;OACP;QACC;UACE,EACV,KAAK;EACJ,SAAS;EACT,UAAU;EACV,EACD;gBACgB,EAChB,UAAU,UACV;UACU;EACV,SAAS;EACT,cAAc;EACd,OAAO;EACP,QAAQ;EACR,WAAW;EACX,YAAY;EACZ,cAAc;EACd;eACe;EACf,4BAA4B;EAC5B,aAAa;EACb,SAAS;EACT,YAAY;EACZ,MAAM;EACN;kBACkB;EAClB,iCAAiC;EACjC,iCAAiC;EACjC,8BAA8B;EAC9B,gCAAgC;EAChC,6BAA6B;EAC7B,6BAA6B;EAC7B,gCAAgC;EAChC,eAAe;EACf,iBAAiB;EACjB,aAAa;EACb,QAAQ;EACR,YAAY;EACZ,gBAAgB;EAChB,QAAQ;EACR,QAAQ;EACR,cAAc;EACd,MAAM;EACN,UAAU;EACV,cAAc;EACd,aAAa;EACb,UAAU;EACV,cAAc;EACd,QAAQ;EACR,eAAe;EACf,UAAU;EACV;mBACmB;EACnB,QAAQ;EACR,YAAY;EACZ;CACD,eAAe,EACd,cAAc,MACd;CACD"} |
+17
-13
| { | ||
| "name": "@cloudflare/vite-plugin", | ||
| "version": "1.39.1", | ||
| "version": "1.39.2", | ||
| "description": "Cloudflare plugin for Vite", | ||
@@ -22,3 +22,7 @@ "keywords": [ | ||
| }, | ||
| "bin": { | ||
| "cf-vite": "./bin/cf-vite" | ||
| }, | ||
| "files": [ | ||
| "bin", | ||
| "dist" | ||
@@ -43,9 +47,9 @@ ], | ||
| "@cloudflare/unenv-preset": "2.16.1", | ||
| "miniflare": "4.20260529.0", | ||
| "wrangler": "4.96.0" | ||
| "miniflare": "4.20260601.0", | ||
| "wrangler": "4.97.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@cloudflare/workers-types": "^4.20260529.1", | ||
| "@cloudflare/workers-types": "^4.20260601.1", | ||
| "@remix-run/node-fetch-server": "^0.8.0", | ||
| "@types/node": "^22.10.1", | ||
| "@types/node": "22.15.17", | ||
| "@types/semver": "^7.5.1", | ||
@@ -57,11 +61,11 @@ "@types/ws": "^8.5.13", | ||
| "mlly": "^1.7.4", | ||
| "open": "^11.0.0", | ||
| "open": "11.0.0", | ||
| "picocolors": "^1.1.1", | ||
| "qr": "^0.6.0", | ||
| "semver": "^7.7.1", | ||
| "tinyglobby": "^0.2.12", | ||
| "tree-kill": "^1.2.2", | ||
| "tinyglobby": "0.2.16", | ||
| "tree-kill": "1.2.2", | ||
| "tsdown": "0.16.3", | ||
| "typescript": "~5.8.3", | ||
| "vite": "^8.0.12", | ||
| "typescript": "5.8.3", | ||
| "vite": "8.0.13", | ||
| "vite-legacy": "npm:vite@7.1.12", | ||
@@ -71,9 +75,9 @@ "vitest": "4.1.0", | ||
| "@cloudflare/mock-npm-registry": "0.0.0", | ||
| "@cloudflare/workers-shared": "0.19.6", | ||
| "@cloudflare/workers-tsconfig": "0.0.0", | ||
| "@cloudflare/workers-utils": "0.22.0", | ||
| "@cloudflare/workers-shared": "0.19.6" | ||
| "@cloudflare/workers-utils": "0.22.1" | ||
| }, | ||
| "peerDependencies": { | ||
| "vite": "^6.1.0 || ^7.0.0 || ^8.0.0", | ||
| "wrangler": "^4.96.0" | ||
| "wrangler": "^4.97.0" | ||
| }, | ||
@@ -80,0 +84,0 @@ "workers-sdk": { |
| //#region package.json | ||
| var package_default = { | ||
| name: "@cloudflare/vite-plugin", | ||
| version: "1.39.1", | ||
| description: "Cloudflare plugin for Vite", | ||
| keywords: [ | ||
| "cloudflare", | ||
| "cloudflare-workers", | ||
| "vite", | ||
| "vite-plugin", | ||
| "workers" | ||
| ], | ||
| homepage: "https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare#readme", | ||
| bugs: { "url": "https://github.com/cloudflare/workers-sdk/issues" }, | ||
| license: "MIT", | ||
| repository: { | ||
| "type": "git", | ||
| "url": "https://github.com/cloudflare/workers-sdk.git", | ||
| "directory": "packages/vite-plugin-cloudflare" | ||
| }, | ||
| files: ["dist"], | ||
| type: "module", | ||
| sideEffects: false, | ||
| main: "./dist/index.mjs", | ||
| types: "./dist/index.d.mts", | ||
| exports: { ".": { | ||
| "types": "./dist/index.d.mts", | ||
| "import": "./dist/index.mjs" | ||
| } }, | ||
| publishConfig: { "access": "public" }, | ||
| scripts: { | ||
| "build": "tsdown", | ||
| "check:type": "tsc --build", | ||
| "dev": "tsdown --watch", | ||
| "test": "vitest run", | ||
| "test:ci": "pnpm test", | ||
| "test:e2e": "vitest run -c e2e/vitest.config.ts", | ||
| "test:watch": "vitest" | ||
| }, | ||
| dependencies: { | ||
| "@cloudflare/unenv-preset": "workspace:*", | ||
| "miniflare": "workspace:*", | ||
| "unenv": "2.0.0-rc.24", | ||
| "wrangler": "workspace:*", | ||
| "ws": "catalog:default" | ||
| }, | ||
| devDependencies: { | ||
| "@cloudflare/containers-shared": "workspace:*", | ||
| "@cloudflare/mock-npm-registry": "workspace:*", | ||
| "@cloudflare/workers-shared": "workspace:*", | ||
| "@cloudflare/workers-tsconfig": "workspace:*", | ||
| "@cloudflare/workers-types": "catalog:default", | ||
| "@cloudflare/workers-utils": "workspace:*", | ||
| "@remix-run/node-fetch-server": "^0.8.0", | ||
| "@types/node": "catalog:default", | ||
| "@types/semver": "^7.5.1", | ||
| "@types/ws": "^8.5.13", | ||
| "defu": "^6.1.4", | ||
| "get-port": "^7.1.0", | ||
| "magic-string": "^0.30.12", | ||
| "mlly": "^1.7.4", | ||
| "open": "catalog:default", | ||
| "picocolors": "^1.1.1", | ||
| "qr": "^0.6.0", | ||
| "semver": "^7.7.1", | ||
| "tinyglobby": "catalog:default", | ||
| "tree-kill": "catalog:default", | ||
| "tsdown": "0.16.3", | ||
| "typescript": "catalog:default", | ||
| "vite": "catalog:default", | ||
| "vite-legacy": "npm:vite@7.1.12", | ||
| "vitest": "catalog:default" | ||
| }, | ||
| peerDependencies: { | ||
| "vite": "^6.1.0 || ^7.0.0 || ^8.0.0", | ||
| "wrangler": "workspace:^" | ||
| }, | ||
| "workers-sdk": { "prerelease": true } | ||
| }; | ||
| //#endregion | ||
| export { package_default as default }; | ||
| //# sourceMappingURL=package-CtWVkw4A.mjs.map |
| {"version":3,"file":"package-CtWVkw4A.mjs","names":[],"sources":["../package.json"],"sourcesContent":["{\n\t\"name\": \"@cloudflare/vite-plugin\",\n\t\"version\": \"1.39.1\",\n\t\"description\": \"Cloudflare plugin for Vite\",\n\t\"keywords\": [\n\t\t\"cloudflare\",\n\t\t\"cloudflare-workers\",\n\t\t\"vite\",\n\t\t\"vite-plugin\",\n\t\t\"workers\"\n\t],\n\t\"homepage\": \"https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare#readme\",\n\t\"bugs\": {\n\t\t\"url\": \"https://github.com/cloudflare/workers-sdk/issues\"\n\t},\n\t\"license\": \"MIT\",\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"https://github.com/cloudflare/workers-sdk.git\",\n\t\t\"directory\": \"packages/vite-plugin-cloudflare\"\n\t},\n\t\"files\": [\n\t\t\"dist\"\n\t],\n\t\"type\": \"module\",\n\t\"sideEffects\": false,\n\t\"main\": \"./dist/index.mjs\",\n\t\"types\": \"./dist/index.d.mts\",\n\t\"exports\": {\n\t\t\".\": {\n\t\t\t\"types\": \"./dist/index.d.mts\",\n\t\t\t\"import\": \"./dist/index.mjs\"\n\t\t}\n\t},\n\t\"publishConfig\": {\n\t\t\"access\": \"public\"\n\t},\n\t\"scripts\": {\n\t\t\"build\": \"tsdown\",\n\t\t\"check:type\": \"tsc --build\",\n\t\t\"dev\": \"tsdown --watch\",\n\t\t\"test\": \"vitest run\",\n\t\t\"test:ci\": \"pnpm test\",\n\t\t\"test:e2e\": \"vitest run -c e2e/vitest.config.ts\",\n\t\t\"test:watch\": \"vitest\"\n\t},\n\t\"dependencies\": {\n\t\t\"@cloudflare/unenv-preset\": \"workspace:*\",\n\t\t\"miniflare\": \"workspace:*\",\n\t\t\"unenv\": \"2.0.0-rc.24\",\n\t\t\"wrangler\": \"workspace:*\",\n\t\t\"ws\": \"catalog:default\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@cloudflare/containers-shared\": \"workspace:*\",\n\t\t\"@cloudflare/mock-npm-registry\": \"workspace:*\",\n\t\t\"@cloudflare/workers-shared\": \"workspace:*\",\n\t\t\"@cloudflare/workers-tsconfig\": \"workspace:*\",\n\t\t\"@cloudflare/workers-types\": \"catalog:default\",\n\t\t\"@cloudflare/workers-utils\": \"workspace:*\",\n\t\t\"@remix-run/node-fetch-server\": \"^0.8.0\",\n\t\t\"@types/node\": \"catalog:default\",\n\t\t\"@types/semver\": \"^7.5.1\",\n\t\t\"@types/ws\": \"^8.5.13\",\n\t\t\"defu\": \"^6.1.4\",\n\t\t\"get-port\": \"^7.1.0\",\n\t\t\"magic-string\": \"^0.30.12\",\n\t\t\"mlly\": \"^1.7.4\",\n\t\t\"open\": \"catalog:default\",\n\t\t\"picocolors\": \"^1.1.1\",\n\t\t\"qr\": \"^0.6.0\",\n\t\t\"semver\": \"^7.7.1\",\n\t\t\"tinyglobby\": \"catalog:default\",\n\t\t\"tree-kill\": \"catalog:default\",\n\t\t\"tsdown\": \"0.16.3\",\n\t\t\"typescript\": \"catalog:default\",\n\t\t\"vite\": \"catalog:default\",\n\t\t\"vite-legacy\": \"npm:vite@7.1.12\",\n\t\t\"vitest\": \"catalog:default\"\n\t},\n\t\"peerDependencies\": {\n\t\t\"vite\": \"^6.1.0 || ^7.0.0 || ^8.0.0\",\n\t\t\"wrangler\": \"workspace:^\"\n\t},\n\t\"workers-sdk\": {\n\t\t\"prerelease\": true\n\t}\n}\n"],"mappings":";sBAAA;OACS;UACG;cACI;WACH;EACX;EACA;EACA;EACA;EACA;EACA;WACW;OACJ,EACP,OAAO,oDACP;UACU;aACG;EACb,QAAQ;EACR,OAAO;EACP,aAAa;EACb;QACQ,CACR,OACA;OACO;cACO;OACP;QACC;UACE,EACV,KAAK;EACJ,SAAS;EACT,UAAU;EACV,EACD;gBACgB,EAChB,UAAU,UACV;UACU;EACV,SAAS;EACT,cAAc;EACd,OAAO;EACP,QAAQ;EACR,WAAW;EACX,YAAY;EACZ,cAAc;EACd;eACe;EACf,4BAA4B;EAC5B,aAAa;EACb,SAAS;EACT,YAAY;EACZ,MAAM;EACN;kBACkB;EAClB,iCAAiC;EACjC,iCAAiC;EACjC,8BAA8B;EAC9B,gCAAgC;EAChC,6BAA6B;EAC7B,6BAA6B;EAC7B,gCAAgC;EAChC,eAAe;EACf,iBAAiB;EACjB,aAAa;EACb,QAAQ;EACR,YAAY;EACZ,gBAAgB;EAChB,QAAQ;EACR,QAAQ;EACR,cAAc;EACd,MAAM;EACN,UAAU;EACV,cAAc;EACd,aAAa;EACb,UAAU;EACV,cAAc;EACd,QAAQ;EACR,eAAe;EACf,UAAU;EACV;mBACmB;EACnB,QAAQ;EACR,YAAY;EACZ;CACD,eAAe,EACd,cAAc,MACd;CACD"} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
6918487
0.57%16
14.29%72546
0.51%6
50%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated