@cloudflare/workers-shared
Advanced tools
Comparing version 0.0.0-48eeff467 to 0.0.0-492533f19
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1042479
628
10
3