Skip to content

Commit

Permalink
fix: update runtime compat data (#165)
Browse files Browse the repository at this point in the history
Co-authored-by: ascorbic <[email protected]>
  • Loading branch information
github-actions[bot] and ascorbic authored Sep 17, 2024
1 parent 2e1de4b commit 3be5619
Show file tree
Hide file tree
Showing 7 changed files with 185 additions and 185 deletions.
60 changes: 30 additions & 30 deletions generator/runtimes/bun/data.json

Large diffs are not rendered by default.

104 changes: 52 additions & 52 deletions generator/runtimes/deno/data.json

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions generator/runtimes/edge-light/data.json

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions generator/runtimes/llrt/data.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions generator/runtimes/netlify/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -84340,25 +84340,25 @@
"result": true
},
{
"name": "api.SubtleCrypto.deriveKey.derivedKeyAlgorithm_option_hkdf",
"name": "api.SubtleCrypto.deriveKey.derivedKeyAlgorithm_option_hmac",
"info": {
"code": "(function () {\n if (!(\"crypto\" in self)) {\n return { result: false, message: \"crypto is not defined\" };\n }\n var instance = crypto.subtle || crypto.webkitSubtle;\n return instance\n .generateKey(\n {\n name: \"ECDH\",\n namedCurve: \"P-384\",\n },\n true,\n [\"deriveKey\"],\n )\n .then(function (keys) {\n return instance.deriveKey(\n {\n name: \"ECDH\",\n public: keys.publicKey,\n },\n keys.privateKey,\n {\n name: \"HKDF\",\n hash: \"SHA-256\",\n salt: new Uint8Array(),\n info: new Uint8Array(),\n },\n false,\n [\"deriveKey\"],\n );\n })\n .then(function () {\n return true;\n })\n .catch(function (e) {\n return { result: false, message: e.message };\n });\n})();\n",
"code": "(function () {\n if (!(\"crypto\" in self)) {\n return { result: false, message: \"crypto is not defined\" };\n }\n var instance = crypto.subtle || crypto.webkitSubtle;\n return instance\n .generateKey(\n {\n name: \"ECDH\",\n namedCurve: \"P-384\",\n },\n true,\n [\"deriveKey\"],\n )\n .then(function (keys) {\n return instance.deriveKey(\n {\n name: \"ECDH\",\n public: keys.publicKey,\n },\n keys.privateKey,\n {\n name: \"HMAC\",\n hash: \"SHA-512\",\n length: 256,\n },\n true,\n [\"sign\", \"verify\"],\n );\n })\n .then(function () {\n return true;\n })\n .catch(function (e) {\n return { result: false, message: e.message };\n });\n})();\n",
"exposure": "Window"
},
"result": true
},
{
"name": "api.SubtleCrypto.deriveKey.derivedKeyAlgorithm_option_hmac",
"name": "api.SubtleCrypto.deriveKey.derivedKeyAlgorithm_option_pbkdf2",
"info": {
"code": "(function () {\n if (!(\"crypto\" in self)) {\n return { result: false, message: \"crypto is not defined\" };\n }\n var instance = crypto.subtle || crypto.webkitSubtle;\n return instance\n .generateKey(\n {\n name: \"ECDH\",\n namedCurve: \"P-384\",\n },\n true,\n [\"deriveKey\"],\n )\n .then(function (keys) {\n return instance.deriveKey(\n {\n name: \"ECDH\",\n public: keys.publicKey,\n },\n keys.privateKey,\n {\n name: \"HMAC\",\n hash: \"SHA-512\",\n length: 256,\n },\n true,\n [\"sign\", \"verify\"],\n );\n })\n .then(function () {\n return true;\n })\n .catch(function (e) {\n return { result: false, message: e.message };\n });\n})();\n",
"code": "(function () {\n if (!(\"crypto\" in self)) {\n return { result: false, message: \"crypto is not defined\" };\n }\n var instance = crypto.subtle || crypto.webkitSubtle;\n return instance\n .generateKey(\n {\n name: \"ECDH\",\n namedCurve: \"P-384\",\n },\n true,\n [\"deriveKey\"],\n )\n .then(function (keys) {\n return instance.deriveKey(\n {\n name: \"ECDH\",\n public: keys.publicKey,\n },\n keys.privateKey,\n {\n name: \"PBKDF2\",\n salt: \"foobar\",\n iterations: 100000,\n hash: \"SHA-256\",\n },\n false,\n [\"deriveBits\", \"deriveKey\"],\n );\n })\n .then(function () {\n return true;\n })\n .catch(function (e) {\n return { result: false, message: e.message };\n });\n})();\n",
"exposure": "Window"
},
"result": true
},
{
"name": "api.SubtleCrypto.deriveKey.derivedKeyAlgorithm_option_pbkdf2",
"name": "api.SubtleCrypto.deriveKey.derivedKeyAlgorithm_option_hkdf",
"info": {
"code": "(function () {\n if (!(\"crypto\" in self)) {\n return { result: false, message: \"crypto is not defined\" };\n }\n var instance = crypto.subtle || crypto.webkitSubtle;\n return instance\n .generateKey(\n {\n name: \"ECDH\",\n namedCurve: \"P-384\",\n },\n true,\n [\"deriveKey\"],\n )\n .then(function (keys) {\n return instance.deriveKey(\n {\n name: \"ECDH\",\n public: keys.publicKey,\n },\n keys.privateKey,\n {\n name: \"PBKDF2\",\n salt: \"foobar\",\n iterations: 100000,\n hash: \"SHA-256\",\n },\n false,\n [\"deriveBits\", \"deriveKey\"],\n );\n })\n .then(function () {\n return true;\n })\n .catch(function (e) {\n return { result: false, message: e.message };\n });\n})();\n",
"code": "(function () {\n if (!(\"crypto\" in self)) {\n return { result: false, message: \"crypto is not defined\" };\n }\n var instance = crypto.subtle || crypto.webkitSubtle;\n return instance\n .generateKey(\n {\n name: \"ECDH\",\n namedCurve: \"P-384\",\n },\n true,\n [\"deriveKey\"],\n )\n .then(function (keys) {\n return instance.deriveKey(\n {\n name: \"ECDH\",\n public: keys.publicKey,\n },\n keys.privateKey,\n {\n name: \"HKDF\",\n hash: \"SHA-256\",\n salt: new Uint8Array(),\n info: new Uint8Array(),\n },\n false,\n [\"deriveKey\"],\n );\n })\n .then(function () {\n return true;\n })\n .catch(function (e) {\n return { result: false, message: e.message };\n });\n})();\n",
"exposure": "Window"
},
"result": true
Expand Down
20 changes: 10 additions & 10 deletions generator/runtimes/node/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -86861,17 +86861,17 @@
"result": true
},
{
"name": "api.ReadableStreamDefaultReader.cancel",
"name": "api.ReadableStream.values",
"info": {
"code": "(function () {\n if (!(\"fetch\" in self)) {\n return { result: false, message: \"fetch is not defined\" };\n }\n var streamPromise = fetch(\"/favicon/favicon.ico\")\n .then(function (response) {\n return response.body;\n })\n .catch(function () {\n // Browsers need a relative path for CORS, but JS runtimes need an absolute path to reference\n return fetch(\n \"https://mdn-bcd-collector.gooborg.com/favicon/favicon.ico\",\n ).then(function (response) {\n return response.body;\n });\n });\n if (!streamPromise) {\n return { result: false, message: \"streamPromise is falsy\" };\n }\n var promise = streamPromise.then(function (stream) {\n return stream.getReader();\n });\n if (!promise) {\n return { result: false, message: \"Promise variable is falsy\" };\n }\n return promise.then(function (instance) {\n return !!instance && \"cancel\" in instance;\n });\n})();\n",
"code": "(function () {\n if (!(\"fetch\" in self)) {\n return { result: false, message: \"fetch is not defined\" };\n }\n var promise = fetch(\"/favicon/favicon.ico\")\n .then(function (response) {\n return response.body;\n })\n .catch(function () {\n // Browsers need a relative path for CORS, but JS runtimes need an absolute path to reference\n return fetch(\n \"https://mdn-bcd-collector.gooborg.com/favicon/favicon.ico\",\n ).then(function (response) {\n return response.body;\n });\n });\n if (!promise) {\n return { result: false, message: \"Promise variable is falsy\" };\n }\n return promise.then(function (instance) {\n return !!instance && \"values\" in instance;\n });\n})();\n",
"exposure": "Window"
},
"result": true
},
{
"name": "api.ReadableStream.values",
"name": "api.ReadableStreamDefaultReader.cancel",
"info": {
"code": "(function () {\n if (!(\"fetch\" in self)) {\n return { result: false, message: \"fetch is not defined\" };\n }\n var promise = fetch(\"/favicon/favicon.ico\")\n .then(function (response) {\n return response.body;\n })\n .catch(function () {\n // Browsers need a relative path for CORS, but JS runtimes need an absolute path to reference\n return fetch(\n \"https://mdn-bcd-collector.gooborg.com/favicon/favicon.ico\",\n ).then(function (response) {\n return response.body;\n });\n });\n if (!promise) {\n return { result: false, message: \"Promise variable is falsy\" };\n }\n return promise.then(function (instance) {\n return !!instance && \"values\" in instance;\n });\n})();\n",
"code": "(function () {\n if (!(\"fetch\" in self)) {\n return { result: false, message: \"fetch is not defined\" };\n }\n var streamPromise = fetch(\"/favicon/favicon.ico\")\n .then(function (response) {\n return response.body;\n })\n .catch(function () {\n // Browsers need a relative path for CORS, but JS runtimes need an absolute path to reference\n return fetch(\n \"https://mdn-bcd-collector.gooborg.com/favicon/favicon.ico\",\n ).then(function (response) {\n return response.body;\n });\n });\n if (!streamPromise) {\n return { result: false, message: \"streamPromise is falsy\" };\n }\n var promise = streamPromise.then(function (stream) {\n return stream.getReader();\n });\n if (!promise) {\n return { result: false, message: \"Promise variable is falsy\" };\n }\n return promise.then(function (instance) {\n return !!instance && \"cancel\" in instance;\n });\n})();\n",
"exposure": "Window"
},
"result": true
Expand All @@ -86885,25 +86885,25 @@
"result": true
},
{
"name": "api.ReadableStreamDefaultReader.read",
"name": "api.ReadableStreamDefaultReader.releaseLock",
"info": {
"code": "(function () {\n if (!(\"fetch\" in self)) {\n return { result: false, message: \"fetch is not defined\" };\n }\n var streamPromise = fetch(\"/favicon/favicon.ico\")\n .then(function (response) {\n return response.body;\n })\n .catch(function () {\n // Browsers need a relative path for CORS, but JS runtimes need an absolute path to reference\n return fetch(\n \"https://mdn-bcd-collector.gooborg.com/favicon/favicon.ico\",\n ).then(function (response) {\n return response.body;\n });\n });\n if (!streamPromise) {\n return { result: false, message: \"streamPromise is falsy\" };\n }\n var promise = streamPromise.then(function (stream) {\n return stream.getReader();\n });\n if (!promise) {\n return { result: false, message: \"Promise variable is falsy\" };\n }\n return promise.then(function (instance) {\n return !!instance && \"read\" in instance;\n });\n})();\n",
"code": "(function () {\n if (!(\"fetch\" in self)) {\n return { result: false, message: \"fetch is not defined\" };\n }\n var streamPromise = fetch(\"/favicon/favicon.ico\")\n .then(function (response) {\n return response.body;\n })\n .catch(function () {\n // Browsers need a relative path for CORS, but JS runtimes need an absolute path to reference\n return fetch(\n \"https://mdn-bcd-collector.gooborg.com/favicon/favicon.ico\",\n ).then(function (response) {\n return response.body;\n });\n });\n if (!streamPromise) {\n return { result: false, message: \"streamPromise is falsy\" };\n }\n var promise = streamPromise.then(function (stream) {\n return stream.getReader();\n });\n if (!promise) {\n return { result: false, message: \"Promise variable is falsy\" };\n }\n return promise.then(function (instance) {\n return !!instance && \"releaseLock\" in instance;\n });\n})();\n",
"exposure": "Window"
},
"result": true
},
{
"name": "api.Response.Response.accept_readablestream",
"name": "api.ReadableStreamDefaultReader.read",
"info": {
"code": "(function () {\n if (!(\"Response\" in self)) {\n return { result: false, message: \"Response is not defined\" };\n }\n var instance = new Response(\"\");\n if (!(\"fetch\" in self)) {\n return { result: false, message: \"fetch is not defined\" };\n }\n var rsPromise = fetch(\"/favicon/favicon.ico\")\n .then(function (response) {\n return response.body;\n })\n .catch(function () {\n // Browsers need a relative path for CORS, but JS runtimes need an absolute path to reference\n return fetch(\n \"https://mdn-bcd-collector.gooborg.com/favicon/favicon.ico\",\n ).then(function (response) {\n return response.body;\n });\n });\n if (!rsPromise) {\n return { result: false, message: \"rsPromise is falsy\" };\n }\n return rsPromise.then(function (readableStream) {\n try {\n new Response(readableStream);\n return true;\n } catch (e) {\n return { result: false, message: e.message };\n }\n });\n})();\n",
"code": "(function () {\n if (!(\"fetch\" in self)) {\n return { result: false, message: \"fetch is not defined\" };\n }\n var streamPromise = fetch(\"/favicon/favicon.ico\")\n .then(function (response) {\n return response.body;\n })\n .catch(function () {\n // Browsers need a relative path for CORS, but JS runtimes need an absolute path to reference\n return fetch(\n \"https://mdn-bcd-collector.gooborg.com/favicon/favicon.ico\",\n ).then(function (response) {\n return response.body;\n });\n });\n if (!streamPromise) {\n return { result: false, message: \"streamPromise is falsy\" };\n }\n var promise = streamPromise.then(function (stream) {\n return stream.getReader();\n });\n if (!promise) {\n return { result: false, message: \"Promise variable is falsy\" };\n }\n return promise.then(function (instance) {\n return !!instance && \"read\" in instance;\n });\n})();\n",
"exposure": "Window"
},
"result": true
},
{
"name": "api.ReadableStreamDefaultReader.releaseLock",
"name": "api.Response.Response.accept_readablestream",
"info": {
"code": "(function () {\n if (!(\"fetch\" in self)) {\n return { result: false, message: \"fetch is not defined\" };\n }\n var streamPromise = fetch(\"/favicon/favicon.ico\")\n .then(function (response) {\n return response.body;\n })\n .catch(function () {\n // Browsers need a relative path for CORS, but JS runtimes need an absolute path to reference\n return fetch(\n \"https://mdn-bcd-collector.gooborg.com/favicon/favicon.ico\",\n ).then(function (response) {\n return response.body;\n });\n });\n if (!streamPromise) {\n return { result: false, message: \"streamPromise is falsy\" };\n }\n var promise = streamPromise.then(function (stream) {\n return stream.getReader();\n });\n if (!promise) {\n return { result: false, message: \"Promise variable is falsy\" };\n }\n return promise.then(function (instance) {\n return !!instance && \"releaseLock\" in instance;\n });\n})();\n",
"code": "(function () {\n if (!(\"Response\" in self)) {\n return { result: false, message: \"Response is not defined\" };\n }\n var instance = new Response(\"\");\n if (!(\"fetch\" in self)) {\n return { result: false, message: \"fetch is not defined\" };\n }\n var rsPromise = fetch(\"/favicon/favicon.ico\")\n .then(function (response) {\n return response.body;\n })\n .catch(function () {\n // Browsers need a relative path for CORS, but JS runtimes need an absolute path to reference\n return fetch(\n \"https://mdn-bcd-collector.gooborg.com/favicon/favicon.ico\",\n ).then(function (response) {\n return response.body;\n });\n });\n if (!rsPromise) {\n return { result: false, message: \"rsPromise is falsy\" };\n }\n return rsPromise.then(function (readableStream) {\n try {\n new Response(readableStream);\n return true;\n } catch (e) {\n return { result: false, message: e.message };\n }\n });\n})();\n",
"exposure": "Window"
},
"result": true
Expand Down
Loading

0 comments on commit 3be5619

Please sign in to comment.