@edge-runtime/ponyfill
Advanced tools
Comparing version 1.1.0-beta.32 to 1.1.0-beta.33
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/ponyfill", | ||
"version": "1.1.0-beta.32", | ||
"version": "1.1.0-beta.33", | ||
"main": "src/index.js", | ||
@@ -31,3 +31,7 @@ "module": "dist/index.mjs", | ||
"@edge-runtime/jest-environment": "1.1.0-beta.32", | ||
"@edge-runtime/primitives": "1.1.0-beta.32" | ||
"@edge-runtime/primitives": "1.1.0-beta.33", | ||
"@edge-runtime/vm": "^1.1.0-beta.32", | ||
"acorn": "8.8.0", | ||
"acorn-loose": "8.3.0", | ||
"acorn-walk": "8.2.0" | ||
}, | ||
@@ -45,5 +49,5 @@ "files": [ | ||
"test": "pnpm test:edge && pnpm test:node", | ||
"test:edge": "EDGE_RUNTIME_EXISTS=true jest --env=@edge-runtime/jest-environment", | ||
"test:edge": "EDGE_RUNTIME_EXISTS=true jest --env=@edge-runtime/jest-environment --testPathIgnorePatterns='.node.test.ts$'", | ||
"test:node": "jest --env=node" | ||
} | ||
} |
module.exports = | ||
typeof EdgeRuntime === 'string' ? self : require('@edge-runtime/primitives') | ||
typeof EdgeRuntime === 'string' ? edge() : require('@edge-runtime/primitives') | ||
function edge() { | ||
return { | ||
AbortController, | ||
AbortSignal, | ||
Blob, | ||
Cache, | ||
CacheStorage, | ||
Crypto, | ||
CryptoKey, | ||
Event, | ||
EventTarget, | ||
FetchEvent, | ||
File, | ||
FormData, | ||
Headers, | ||
PromiseRejectionEvent, | ||
ReadableStream, | ||
ReadableStreamBYOBReader, | ||
ReadableStreamDefaultReader, | ||
Request, | ||
Response, | ||
SubtleCrypto, | ||
TextDecoder, | ||
TextEncoder, | ||
TransformStream, | ||
URL, | ||
URLPattern, | ||
URLSearchParams, | ||
WritableStream, | ||
WritableStreamDefaultWriter, | ||
atob, | ||
btoa, | ||
caches, | ||
console, | ||
crypto, | ||
fetch, | ||
structuredClone, | ||
} | ||
} |
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
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
18939
42
6