@0xchain/web-worker 1.1.0-beta.61 → 1.1.0-beta.62

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.
@@ -436,7 +436,7 @@ var hasRequiredReact_development;
436
436
  function requireReact_development() {
437
437
  if (hasRequiredReact_development) return react_development.exports;
438
438
  hasRequiredReact_development = 1;
439
- (function(module, exports$1) {
439
+ (function(module, exports) {
440
440
  "production" !== process.env.NODE_ENV && (function() {
441
441
  function defineDeprecationWarning(methodName, info) {
442
442
  Object.defineProperty(Component.prototype, methodName, {
@@ -979,7 +979,7 @@ function requireReact_development() {
979
979
  return resolveDispatcher().useMemoCache(size);
980
980
  }
981
981
  });
982
- exports$1.Children = {
982
+ exports.Children = {
983
983
  map: mapChildren,
984
984
  forEach: function(children, forEachFunc, forEachContext) {
985
985
  mapChildren(
@@ -1010,15 +1010,15 @@ function requireReact_development() {
1010
1010
  return children;
1011
1011
  }
1012
1012
  };
1013
- exports$1.Component = Component;
1014
- exports$1.Fragment = REACT_FRAGMENT_TYPE;
1015
- exports$1.Profiler = REACT_PROFILER_TYPE;
1016
- exports$1.PureComponent = PureComponent;
1017
- exports$1.StrictMode = REACT_STRICT_MODE_TYPE;
1018
- exports$1.Suspense = REACT_SUSPENSE_TYPE;
1019
- exports$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1020
- exports$1.__COMPILER_RUNTIME = deprecatedAPIs;
1021
- exports$1.act = function(callback) {
1013
+ exports.Component = Component;
1014
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1015
+ exports.Profiler = REACT_PROFILER_TYPE;
1016
+ exports.PureComponent = PureComponent;
1017
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
1018
+ exports.Suspense = REACT_SUSPENSE_TYPE;
1019
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1020
+ exports.__COMPILER_RUNTIME = deprecatedAPIs;
1021
+ exports.act = function(callback) {
1022
1022
  var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1023
1023
  actScopeDepth++;
1024
1024
  var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
@@ -1095,16 +1095,16 @@ function requireReact_development() {
1095
1095
  }
1096
1096
  };
1097
1097
  };
1098
- exports$1.cache = function(fn) {
1098
+ exports.cache = function(fn) {
1099
1099
  return function() {
1100
1100
  return fn.apply(null, arguments);
1101
1101
  };
1102
1102
  };
1103
- exports$1.captureOwnerStack = function() {
1103
+ exports.captureOwnerStack = function() {
1104
1104
  var getCurrentStack = ReactSharedInternals.getCurrentStack;
1105
1105
  return null === getCurrentStack ? null : getCurrentStack();
1106
1106
  };
1107
- exports$1.cloneElement = function(element, config, children) {
1107
+ exports.cloneElement = function(element, config, children) {
1108
1108
  if (null === element || void 0 === element)
1109
1109
  throw Error(
1110
1110
  "The argument must be a React element, but you passed " + element + "."
@@ -1149,7 +1149,7 @@ function requireReact_development() {
1149
1149
  owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
1150
1150
  return props;
1151
1151
  };
1152
- exports$1.createContext = function(defaultValue) {
1152
+ exports.createContext = function(defaultValue) {
1153
1153
  defaultValue = {
1154
1154
  $$typeof: REACT_CONTEXT_TYPE,
1155
1155
  _currentValue: defaultValue,
@@ -1167,7 +1167,7 @@ function requireReact_development() {
1167
1167
  defaultValue._currentRenderer2 = null;
1168
1168
  return defaultValue;
1169
1169
  };
1170
- exports$1.createElement = function(type, config, children) {
1170
+ exports.createElement = function(type, config, children) {
1171
1171
  for (var i = 2; i < arguments.length; i++) {
1172
1172
  var node = arguments[i];
1173
1173
  isValidElement(node) && node._store && (node._store.validated = 1);
@@ -1206,12 +1206,12 @@ function requireReact_development() {
1206
1206
  propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1207
1207
  );
1208
1208
  };
1209
- exports$1.createRef = function() {
1209
+ exports.createRef = function() {
1210
1210
  var refObject = { current: null };
1211
1211
  Object.seal(refObject);
1212
1212
  return refObject;
1213
1213
  };
1214
- exports$1.forwardRef = function(render) {
1214
+ exports.forwardRef = function(render) {
1215
1215
  null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1216
1216
  "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1217
1217
  ) : "function" !== typeof render ? console.error(
@@ -1238,15 +1238,15 @@ function requireReact_development() {
1238
1238
  });
1239
1239
  return elementType;
1240
1240
  };
1241
- exports$1.isValidElement = isValidElement;
1242
- exports$1.lazy = function(ctor) {
1241
+ exports.isValidElement = isValidElement;
1242
+ exports.lazy = function(ctor) {
1243
1243
  return {
1244
1244
  $$typeof: REACT_LAZY_TYPE,
1245
1245
  _payload: { _status: -1, _result: ctor },
1246
1246
  _init: lazyInitializer
1247
1247
  };
1248
1248
  };
1249
- exports$1.memo = function(type, compare) {
1249
+ exports.memo = function(type, compare) {
1250
1250
  null == type && console.error(
1251
1251
  "memo: The first argument must be a component. Instead received: %s",
1252
1252
  null === type ? "null" : typeof type
@@ -1270,7 +1270,7 @@ function requireReact_development() {
1270
1270
  });
1271
1271
  return compare;
1272
1272
  };
1273
- exports$1.startTransition = function(scope) {
1273
+ exports.startTransition = function(scope) {
1274
1274
  var prevTransition = ReactSharedInternals.T, currentTransition = {};
1275
1275
  ReactSharedInternals.T = currentTransition;
1276
1276
  currentTransition._updatedFibers = /* @__PURE__ */ new Set();
@@ -1286,36 +1286,36 @@ function requireReact_development() {
1286
1286
  )), ReactSharedInternals.T = prevTransition;
1287
1287
  }
1288
1288
  };
1289
- exports$1.unstable_useCacheRefresh = function() {
1289
+ exports.unstable_useCacheRefresh = function() {
1290
1290
  return resolveDispatcher().useCacheRefresh();
1291
1291
  };
1292
- exports$1.use = function(usable) {
1292
+ exports.use = function(usable) {
1293
1293
  return resolveDispatcher().use(usable);
1294
1294
  };
1295
- exports$1.useActionState = function(action, initialState, permalink) {
1295
+ exports.useActionState = function(action, initialState, permalink) {
1296
1296
  return resolveDispatcher().useActionState(
1297
1297
  action,
1298
1298
  initialState,
1299
1299
  permalink
1300
1300
  );
1301
1301
  };
1302
- exports$1.useCallback = function(callback, deps) {
1302
+ exports.useCallback = function(callback, deps) {
1303
1303
  return resolveDispatcher().useCallback(callback, deps);
1304
1304
  };
1305
- exports$1.useContext = function(Context) {
1305
+ exports.useContext = function(Context) {
1306
1306
  var dispatcher = resolveDispatcher();
1307
1307
  Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1308
1308
  "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1309
1309
  );
1310
1310
  return dispatcher.useContext(Context);
1311
1311
  };
1312
- exports$1.useDebugValue = function(value, formatterFn) {
1312
+ exports.useDebugValue = function(value, formatterFn) {
1313
1313
  return resolveDispatcher().useDebugValue(value, formatterFn);
1314
1314
  };
1315
- exports$1.useDeferredValue = function(value, initialValue) {
1315
+ exports.useDeferredValue = function(value, initialValue) {
1316
1316
  return resolveDispatcher().useDeferredValue(value, initialValue);
1317
1317
  };
1318
- exports$1.useEffect = function(create, createDeps, update) {
1318
+ exports.useEffect = function(create, createDeps, update) {
1319
1319
  null == create && console.warn(
1320
1320
  "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1321
1321
  );
@@ -1326,50 +1326,50 @@ function requireReact_development() {
1326
1326
  );
1327
1327
  return dispatcher.useEffect(create, createDeps);
1328
1328
  };
1329
- exports$1.useId = function() {
1329
+ exports.useId = function() {
1330
1330
  return resolveDispatcher().useId();
1331
1331
  };
1332
- exports$1.useImperativeHandle = function(ref, create, deps) {
1332
+ exports.useImperativeHandle = function(ref, create, deps) {
1333
1333
  return resolveDispatcher().useImperativeHandle(ref, create, deps);
1334
1334
  };
1335
- exports$1.useInsertionEffect = function(create, deps) {
1335
+ exports.useInsertionEffect = function(create, deps) {
1336
1336
  null == create && console.warn(
1337
1337
  "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1338
1338
  );
1339
1339
  return resolveDispatcher().useInsertionEffect(create, deps);
1340
1340
  };
1341
- exports$1.useLayoutEffect = function(create, deps) {
1341
+ exports.useLayoutEffect = function(create, deps) {
1342
1342
  null == create && console.warn(
1343
1343
  "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1344
1344
  );
1345
1345
  return resolveDispatcher().useLayoutEffect(create, deps);
1346
1346
  };
1347
- exports$1.useMemo = function(create, deps) {
1347
+ exports.useMemo = function(create, deps) {
1348
1348
  return resolveDispatcher().useMemo(create, deps);
1349
1349
  };
1350
- exports$1.useOptimistic = function(passthrough, reducer) {
1350
+ exports.useOptimistic = function(passthrough, reducer) {
1351
1351
  return resolveDispatcher().useOptimistic(passthrough, reducer);
1352
1352
  };
1353
- exports$1.useReducer = function(reducer, initialArg, init) {
1353
+ exports.useReducer = function(reducer, initialArg, init) {
1354
1354
  return resolveDispatcher().useReducer(reducer, initialArg, init);
1355
1355
  };
1356
- exports$1.useRef = function(initialValue) {
1356
+ exports.useRef = function(initialValue) {
1357
1357
  return resolveDispatcher().useRef(initialValue);
1358
1358
  };
1359
- exports$1.useState = function(initialState) {
1359
+ exports.useState = function(initialState) {
1360
1360
  return resolveDispatcher().useState(initialState);
1361
1361
  };
1362
- exports$1.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1362
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1363
1363
  return resolveDispatcher().useSyncExternalStore(
1364
1364
  subscribe,
1365
1365
  getSnapshot,
1366
1366
  getServerSnapshot
1367
1367
  );
1368
1368
  };
1369
- exports$1.useTransition = function() {
1369
+ exports.useTransition = function() {
1370
1370
  return resolveDispatcher().useTransition();
1371
1371
  };
1372
- exports$1.version = "19.1.1";
1372
+ exports.version = "19.1.1";
1373
1373
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1374
1374
  })();
1375
1375
  })(react_development, react_development.exports);
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ function WebWorkerProvider({ children }) {
14
14
  useEffect(() => {
15
15
  const worker2 = new Worker(new URL(
16
16
  /* @vite-ignore */
17
- "./assets/webWorker-s4Vz6nbm.js",
17
+ "./assets/webWorker-s8xhXmSY.js",
18
18
  import.meta.url
19
19
  ), { type: "module" });
20
20
  worker2.postMessage({ type: "INIT", data: { url: process.env.NEXT_PUBLIC_WS_URL, debug: false } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xchain/web-worker",
3
- "version": "1.1.0-beta.61",
3
+ "version": "1.1.0-beta.62",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -32,8 +32,8 @@
32
32
  "!**/*.tsbuildinfo"
33
33
  ],
34
34
  "dependencies": {
35
- "@0xchain/logger": "1.1.0-beta.61",
36
- "@0xchain/web-socket": "1.1.0-beta.61"
35
+ "@0xchain/logger": "1.1.0-beta.62",
36
+ "@0xchain/web-socket": "1.1.0-beta.62"
37
37
  },
38
38
  "nx": {
39
39
  "tags": [