@midscene/shared 0.28.3 → 0.28.4

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.
@@ -0,0 +1,2 @@
1
+ const AsyncLocalStorage = {};
2
+ export { AsyncLocalStorage };
@@ -0,0 +1 @@
1
+ export * from "./async-hooks.mjs";
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ AsyncLocalStorage: ()=>AsyncLocalStorage
28
+ });
29
+ const AsyncLocalStorage = {};
30
+ exports.AsyncLocalStorage = __webpack_exports__.AsyncLocalStorage;
31
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
32
+ "AsyncLocalStorage"
33
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
34
+ Object.defineProperty(exports, '__esModule', {
35
+ value: true
36
+ });
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __webpack_modules__ = {
3
+ "./async-hooks": function(module) {
4
+ module.exports = require("./async-hooks.js");
5
+ }
6
+ };
7
+ var __webpack_module_cache__ = {};
8
+ function __webpack_require__(moduleId) {
9
+ var cachedModule = __webpack_module_cache__[moduleId];
10
+ if (void 0 !== cachedModule) return cachedModule.exports;
11
+ var module = __webpack_module_cache__[moduleId] = {
12
+ exports: {}
13
+ };
14
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
15
+ return module.exports;
16
+ }
17
+ (()=>{
18
+ __webpack_require__.n = (module)=>{
19
+ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
20
+ __webpack_require__.d(getter, {
21
+ a: getter
22
+ });
23
+ return getter;
24
+ };
25
+ })();
26
+ (()=>{
27
+ __webpack_require__.d = (exports1, definition)=>{
28
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
29
+ enumerable: true,
30
+ get: definition[key]
31
+ });
32
+ };
33
+ })();
34
+ (()=>{
35
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
36
+ })();
37
+ (()=>{
38
+ __webpack_require__.r = (exports1)=>{
39
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
40
+ value: 'Module'
41
+ });
42
+ Object.defineProperty(exports1, '__esModule', {
43
+ value: true
44
+ });
45
+ };
46
+ })();
47
+ var __webpack_exports__ = {};
48
+ (()=>{
49
+ __webpack_require__.r(__webpack_exports__);
50
+ var _async_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./async-hooks");
51
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
52
+ for(var __WEBPACK_IMPORT_KEY__ in _async_hooks__WEBPACK_IMPORTED_MODULE_0__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
53
+ return _async_hooks__WEBPACK_IMPORTED_MODULE_0__[key];
54
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
55
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
56
+ })();
57
+ for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
58
+ Object.defineProperty(exports, '__esModule', {
59
+ value: true
60
+ });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Browser polyfill for Node.js async_hooks module
3
+ * Provides empty implementation for browser environments where async_hooks is not available
4
+ */
5
+ declare const AsyncLocalStorage: {};
6
+ export { AsyncLocalStorage };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Polyfills for Node.js modules in browser environments
3
+ */
4
+ export * from './async-hooks';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/shared",
3
- "version": "0.28.3",
3
+ "version": "0.28.4",
4
4
  "repository": "https://github.com/web-infra-dev/midscene",
5
5
  "homepage": "https://midscenejs.com/",
6
6
  "types": "./dist/types/index.d.ts",
@@ -42,6 +42,11 @@
42
42
  "import": "./dist/es/env/index.mjs",
43
43
  "require": "./dist/lib/env/index.js"
44
44
  },
45
+ "./polyfills": {
46
+ "types": "./dist/types/polyfills/index.d.ts",
47
+ "import": "./dist/es/polyfills/index.mjs",
48
+ "require": "./dist/lib/polyfills/index.js"
49
+ },
45
50
  "./*": {
46
51
  "types": "./dist/types/*.d.ts",
47
52
  "import": "./dist/es/*.mjs",
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Browser polyfill for Node.js async_hooks module
3
+ * Provides empty implementation for browser environments where async_hooks is not available
4
+ */
5
+ const AsyncLocalStorage = {};
6
+ export { AsyncLocalStorage };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Polyfills for Node.js modules in browser environments
3
+ */
4
+ export * from './async-hooks';