Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed May 29, 2023
1 parent 9b2e2fa commit 0137969
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 38 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -64,7 +64,7 @@
"@babel/plugin-proposal-object-rest-spread": "7.14.7",
"@babel/preset-flow": "7.14.5",
"@babel/preset-react": "7.14.5",
"@edge-runtime/jest-environment": "2.2.0-beta.12",
"@edge-runtime/jest-environment": "2.2.0-beta.13",
"@fullhuman/postcss-purgecss": "1.3.0",
"@mdx-js/loader": "2.2.1",
"@mdx-js/react": "2.2.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/next/package.json
Expand Up @@ -134,7 +134,7 @@
"@capsizecss/metrics": "1.1.0",
"@edge-runtime/cookies": "3.2.0-beta.1",
"@edge-runtime/ponyfill": "2.3.0-beta.0",
"@edge-runtime/primitives": "2.2.0-beta.10",
"@edge-runtime/primitives": "2.2.0-beta.11",
"@hapi/accept": "5.0.2",
"@jest/transform": "29.5.0",
"@jest/types": "29.5.0",
Expand Down Expand Up @@ -221,7 +221,7 @@
"debug": "4.1.1",
"devalue": "2.0.1",
"domain-browser": "4.19.0",
"edge-runtime": "2.3.0-beta.11",
"edge-runtime": "2.3.0-beta.12",
"events": "3.3.0",
"find-cache-dir": "3.3.1",
"find-up": "4.1.0",
Expand Down
6 changes: 0 additions & 6 deletions packages/next/src/compiled/@edge-runtime/primitives/blob.js
Expand Up @@ -44,12 +44,6 @@ var init_define_process = __esm({
var require_Blob = __commonJS({
"../../node_modules/.pnpm/blob-polyfill@7.0.20220408/node_modules/blob-polyfill/Blob.js"(exports) {
init_define_process();
(() => {
try {
global.Blob = void 0;
} catch {
}
})();
(function(global2) {
(function(factory) {
if (typeof define === "function" && define.amd) {
Expand Down

Large diffs are not rendered by default.

27 changes: 21 additions & 6 deletions packages/next/src/compiled/@edge-runtime/primitives/load.js
Expand Up @@ -149,12 +149,27 @@ function load(scopedContext = {}) {
URLSearchParams: urlImpl.URLSearchParams,
URLPattern: urlImpl.URLPattern
});
const blobImpl = requireWithFakeGlobalScope({
context,
id: "blob.js",
sourceCode: require("./blob.js.text.js"),
scopedContext: { ...streamsImpl, ...scopedContext }
});
const blobImpl = (() => {
if (typeof scopedContext.Blob === "function") {
return { Blob: scopedContext.Blob };
}
if (typeof Blob === "function") {
return { Blob };
}
const global = {
...streamsImpl,
...scopedContext
};
const globalGlobal = { ...global, Blob: void 0 };
Object.setPrototypeOf(globalGlobal, globalThis);
global.global = globalGlobal;
return requireWithFakeGlobalScope({
context,
id: "blob.js",
sourceCode: require("./blob.js.text.js"),
scopedContext: global
});
})();
assign(context, {
Blob: blobImpl.Blob
});
Expand Down
@@ -1 +1 @@
{"name":"@edge-runtime/primitives","version":"2.2.0-beta.10","main":"./index.js","license":"MPL-2.0"}
{"name":"@edge-runtime/primitives","version":"2.2.0-beta.11","main":"./index.js","license":"MPL-2.0"}
2 changes: 1 addition & 1 deletion packages/next/src/compiled/edge-runtime/index.js

Large diffs are not rendered by default.

39 changes: 19 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0137969

Please sign in to comment.