@web-widget/node 0.4.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node.cjs CHANGED
@@ -35,9 +35,13 @@ __export(src_exports, {
35
35
  module.exports = __toCommonJS(src_exports);
36
36
  var import_node_utils = require("@edge-runtime/node-utils");
37
37
  var import_primitives = __toESM(require("@edge-runtime/primitives"), 1);
38
+ var import_node_async_hooks = require("async_hooks");
38
39
  if (!Reflect.get(global, "DISABLE_INSTALL_MCA_SHIMS")) {
39
40
  Object.assign(global, import_primitives.default, { console });
40
41
  }
42
+ Object.assign(global, {
43
+ AsyncLocalStorage: import_node_async_hooks.AsyncLocalStorage
44
+ });
41
45
  var FetchEvent = class {
42
46
  constructor(request) {
43
47
  this.request = request;
package/dist/node.js CHANGED
@@ -6,9 +6,13 @@ import {
6
6
  toOutgoingHeaders
7
7
  } from "@edge-runtime/node-utils";
8
8
  import primitives from "@edge-runtime/primitives";
9
+ import { AsyncLocalStorage } from "node:async_hooks";
9
10
  if (!Reflect.get(global, "DISABLE_INSTALL_MCA_SHIMS")) {
10
11
  Object.assign(global, primitives, { console });
11
12
  }
13
+ Object.assign(global, {
14
+ AsyncLocalStorage
15
+ });
12
16
  var FetchEvent = class {
13
17
  constructor(request) {
14
18
  this.request = request;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web-widget/node",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {