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
415
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-48eeff467 to 0.0.0-492533f19

6

dist/utils/helpers.d.ts

@@ -1,5 +0,3 @@

/** normalises sep for windows, and encodes each segment */
export declare const encodeFilePath: (filePath: string, sep: string) => string;
/** reverses encodeFilePath for accessing from file system */
export declare const decodeFilePath: (filePath: string, sep: string) => string;
/** normalises sep for windows and prefix with `/` */
export declare const normalizeFilePath: (relativeFilepath: string) => string;
export declare const getContentType: (absFilePath: string) => string;

@@ -21,1 +21,5 @@ import { z } from "zod";

export type AssetConfig = z.infer<typeof AssetConfigSchema>;
export interface UnsafePerformanceTimer {
readonly timeOrigin: number;
now: () => number;
}
{
"name": "@cloudflare/workers-shared",
"version": "0.0.0-48eeff467",
"version": "0.0.0-492533f19",
"description": "Package that is used at Cloudflare to power some internal features of Cloudflare Workers.",

@@ -30,3 +30,3 @@ "keywords": [

"devDependencies": {
"@cloudflare/workers-types": "^4.20240909.0",
"@cloudflare/workers-types": "^4.20241106.0",
"@types/mime": "^3.0.4",

@@ -36,4 +36,5 @@ "concurrently": "^8.2.2",

"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",

@@ -49,3 +50,4 @@ "@cloudflare/workers-tsconfig": "0.0.0"

"workers-sdk": {
"prerelease": true
"prerelease": true,
"deploy": true
},

@@ -63,9 +65,9 @@ "scripts": {

"deploy": "pnpm run deploy:router-worker && pnpm run deploy:asset-worker",
"deploy:asset-worker": "CLOUDFLARE_API_TOKEN=$WORKERS_NEW_CLOUDFLARE_API_TOKEN wrangler versions upload --experimental-versions -c asset-worker/wrangler.toml",
"deploy:router-worker": "CLOUDFLARE_API_TOKEN=$WORKERS_DEPLOY_AND_CONFIG_CLOUDFLARE_API_TOKEN wrangler versions upload --experimental-versions -c router-worker/wrangler.toml",
"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"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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