prostgles-client 4.0.98 → 4.0.99

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.
@@ -20,9 +20,8 @@ exports.getReact = getReact;
20
20
  (0, exports.getReact)();
21
21
  const { useEffect = alertNoReact, useCallback = alertNoReact, useRef, useState = alertNoReactT } = (_a = React) !== null && _a !== void 0 ? _a : {};
22
22
  const getIO = (throwError = false) => {
23
- var _a;
24
23
  try {
25
- const io = (_a = require("socket.io-client")) === null || _a === void 0 ? void 0 : _a.default;
24
+ const io = require("socket.io-client");
26
25
  return io;
27
26
  }
28
27
  catch (err) {
@@ -19,7 +19,7 @@ const { useEffect = alertNoReact, useCallback = alertNoReact, useRef, useState =
19
19
  type IO = typeof import("socket.io-client").default;
20
20
  export const getIO = (throwError = false) => {
21
21
  try {
22
- const io = require("socket.io-client")?.default as IO;
22
+ const io = require("socket.io-client") as IO;
23
23
  return io;
24
24
  } catch(err){
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prostgles-client",
3
- "version": "4.0.98",
3
+ "version": "4.0.99",
4
4
  "description": "Reactive client for Postgres",
5
5
  "main": "dist/prostgles-full.js",
6
6
  "types": "dist/prostgles-full.d.ts",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "..": {
19
19
  "name": "prostgles-client",
20
- "version": "4.0.97",
20
+ "version": "4.0.98",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "prostgles-types": "^4.0.73"