@interface-technologies/check-for-js-bundle-update-saga 4.0.0-alpha.1 → 4.0.0-alpha.2

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.
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.checkForJsBundleUpdateSaga = exports.reload = exports.getIndexHtml = void 0;
7
- const react_1 = __importDefault(require("react"));
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const moment_timezone_1 = __importDefault(require("moment-timezone"));
9
9
  const effects_1 = require("redux-saga/effects");
10
10
  const iti_react_1 = require("@interface-technologies/iti-react");
@@ -101,9 +101,7 @@ function* checkForJsBundleUpdateSaga({ delayDuration = defaultDelayDuration, onE
101
101
  // innerText doesn't work here for some reason
102
102
  const newJsBundleHash = (_c = hashEl.innerHTML) === null || _c === void 0 ? void 0 : _c.trim();
103
103
  if (jsBundleHash !== newJsBundleHash) {
104
- const content = (react_1.default.createElement("div", null,
105
- react_1.default.createElement("p", null, "Please save your work and refresh the page."),
106
- react_1.default.createElement("p", { className: "mb-0" }, "You may encounter errors if you do not refresh the page.")));
104
+ const content = ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("p", { children: "Please save your work and refresh the page." }, void 0), (0, jsx_runtime_1.jsx)("p", { className: "mb-0", children: "You may encounter errors if you do not refresh the page." }, void 0)] }, void 0));
107
105
  if (alertShownCount >= forceRefreshAfterAlertCount) {
108
106
  window.onbeforeunload = null;
109
107
  yield (0, effects_1.call)(reload);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interface-technologies/check-for-js-bundle-update-saga",
3
- "version": "4.0.0-alpha.1",
3
+ "version": "4.0.0-alpha.2",
4
4
  "description": "Redux saga for checking if a JavaScript app has been deployed.",
5
5
  "homepage": "https://github.com/srmagura/iti-react",
6
6
  "repository": {
@@ -22,8 +22,8 @@
22
22
  "redux-saga": "^1.1.3"
23
23
  },
24
24
  "devDependencies": {
25
- "@interface-technologies/iti-react": "4.0.0-alpha.1",
26
- "@interface-technologies/tsconfig": "4.0.0-alpha.1",
25
+ "@interface-technologies/iti-react": "4.0.0-alpha.2",
26
+ "@interface-technologies/tsconfig": "4.0.0-alpha.2",
27
27
  "@redux-saga/is": "^1.1.2",
28
28
  "@redux-saga/symbols": "^1.1.2",
29
29
  "@testing-library/react-hooks": "^7.0.2",
@@ -31,7 +31,7 @@
31
31
  "redux-saga-test-plan": "^4.0.4"
32
32
  },
33
33
  "peerDependencies": {
34
- "@interface-technologies/iti-react": "^4.0.0-alpha.1",
34
+ "@interface-technologies/iti-react": "^4.0.0-alpha.2",
35
35
  "@popperjs/core": "^2.10.2",
36
36
  "bootstrap": "^5.1.2",
37
37
  "react": "^17.0.2"