Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cloudflare/workers-shared

Package Overview
Dependencies
Maintainers
35
Versions
416
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/workers-shared - npm Package Compare versions

Comparing version 0.0.0-6c057d10b to 0.0.0-6cf64de0c

dist/asset-worker.mjs

32

package.json
{
"name": "@cloudflare/workers-shared",
"version": "0.0.0-6c057d10b",
"version": "0.0.0-6cf64de0c",
"description": "Package that is used at Cloudflare to power some internal features of Cloudflare Workers.",

@@ -21,12 +21,19 @@ "keywords": [

"author": "wrangler@cloudflare.com",
"types": "./dist",
"files": [
"dist"
],
"dependencies": {
"mime": "^3.0.0",
"zod": "^3.22.3"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20241022.0",
"@types/mime": "^3.0.4",
"concurrently": "^8.2.2",
"esbuild": "0.17.19",
"rimraf": "^6.0.1",
"typescript": "^5.5.4",
"vitest": "2.0.5",
"toucan-js": "^3.3.1",
"typescript": "~5.6.3",
"vitest": "~2.1.3",
"@cloudflare/eslint-config-worker": "1.1.0",

@@ -42,8 +49,9 @@ "@cloudflare/workers-tsconfig": "0.0.0"

"workers-sdk": {
"prerelease": true
"prerelease": true,
"deploy": true
},
"scripts": {
"build": "pnpm run clean && pnpm run bundle:asset-worker:prod && pnpm run bundle:router-worker:prod",
"bundle:asset-worker": "esbuild asset-server-worker/src/index.ts --format=esm --bundle --outfile=dist/asset-server-worker.mjs --sourcemap=external --external:cloudflare:*",
"bundle:asset-worker:prod": "pnpm run bundle:asset-worker --minify",
"build": "pnpm run clean && pnpm run bundle:asset-worker:prod && pnpm run bundle:router-worker:prod && pnpm run types:emit",
"bundle:asset-worker": "esbuild asset-worker/src/index.ts --format=esm --bundle --outfile=dist/asset-worker.mjs --sourcemap=external --external:cloudflare:*",
"bundle:asset-worker:prod": "pnpm run bundle:asset-worker --minify && node -r esbuild-register scripts/copy-config-file.ts",
"bundle:router-worker": "esbuild router-worker/src/index.ts --format=esm --bundle --outfile=dist/router-worker.mjs --sourcemap=external",

@@ -53,8 +61,12 @@ "bundle:router-worker:prod": "pnpm run bundle:router-worker --minify",

"check:type": "pnpm run check:type:tests && tsc",
"check:type:tests": "tsc -p ./asset-server-worker/tests/tsconfig.json",
"check:type:tests": "tsc -p ./asset-worker/tests/tsconfig.json",
"clean": "rimraf dist",
"deploy": "pnpm run deploy:router-worker && pnpm run deploy:asset-worker",
"deploy:asset-worker": "CLOUDFLARE_API_TOKEN=$WORKERS_DEPLOY_AND_CONFIG_CLOUDFLARE_API_TOKEN pnpx wrangler versions upload --experimental-versions -c asset-worker/wrangler.toml",
"deploy:router-worker": "CLOUDFLARE_API_TOKEN=$WORKERS_DEPLOY_AND_CONFIG_CLOUDFLARE_API_TOKEN pnpx wrangler versions upload --experimental-versions -c router-worker/wrangler.toml",
"dev": "pnpm run clean && concurrently -n bundle:asset-worker,bundle:router-worker -c blue,magenta \"pnpm run bundle:asset-worker --watch\" \"pnpm run bundle:router-worker --watch\"",
"test": "vitest",
"test:ci": "pnpm run test"
"test:ci": "vitest run",
"types:emit": "tsc index.ts --declaration --emitDeclarationOnly --declarationDir ./dist"
}
}

@@ -5,5 +5,5 @@ # `@cloudflare/workers-shared`

## `asset-server`
## `asset-worker`
The Asset Server Worker.
The Asset Worker.

@@ -14,3 +14,3 @@ For more details please refer to the dedicated README file.

Router Worker.
The Router Worker.

@@ -17,0 +17,0 @@ For more details please refer to the dedicated README file.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc