react-js-plugins 3.14.3 → 3.14.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.
Files changed (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,14 +1,21 @@
1
1
  import 'nprogress/nprogress.css';
2
+ import React from 'react';
2
3
  import { LazyLoader as _LazyLoader } from './chunkautils/chunk23111';
3
4
  import { initLicense, isLicensed, getLicenseInfo, _assertLicensed } from './chunkautils/chunkLicense';
4
5
  export { initLicense, isLicensed, getLicenseInfo };
6
+ // License is checked at render time (not at LazyLoader() call time).
7
+ // This is required because LazyLoader() is called during module evaluation
8
+ // (e.g. when defining routes), before initLicense() has had a chance to run.
5
9
  export var LazyLoader = function () {
6
10
  var args = [];
7
11
  for (var _i = 0; _i < arguments.length; _i++) {
8
12
  args[_i] = arguments[_i];
9
13
  }
10
- _assertLicensed();
11
- return _LazyLoader.apply(void 0, args);
14
+ var Inner = _LazyLoader.apply(void 0, args);
15
+ return (function (props) {
16
+ _assertLicensed();
17
+ return React.createElement(Inner, props);
18
+ });
12
19
  };
13
20
  import { _isNotEmpty, _isLeapYear, _isWeekend, _removeFalsy, _escapeHTML, _handleApi, _handleSafe, _clearRouteState, _UUID } from "./chunkautils/chunk22123";
14
21
  import { createAxiosInstance } from "./chunkautils/chunk83454";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-js-plugins",
3
- "version": "3.14.3",
3
+ "version": "3.14.4",
4
4
  "description": "A powerful and efficient React utility library designed to enhance application performance by streamlining and simplifying the management of complex asynchronous operations.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -48,7 +48,7 @@
48
48
  "devDependencies": {
49
49
  "@types/crypto-js": "^4.2.2",
50
50
  "@types/luxon": "^3.6.2",
51
- "@types/node": "^22.19.17",
51
+ "@types/node": "^22.13.10",
52
52
  "@types/nprogress": "^0.2.3",
53
53
  "@types/react": "^18.3.24",
54
54
  "tslib": "^2.6.3",