@modern-js/utils 3.11.0 → 3.11.1

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.
@@ -52,17 +52,16 @@ function isRegExp(obj) {
52
52
  return '[object RegExp]' === Object.prototype.toString.call(obj);
53
53
  }
54
54
  const isEmpty = (o)=>0 === Object.entries(o).length && o.constructor === Object;
55
- __webpack_require__.d(__webpack_exports__, {
56
- isArray: ()=>isArray,
57
- isFunction: ()=>isFunction,
58
- isObject: ()=>isObject,
59
- isPlainObject: ()=>isPlainObject,
60
- isPromise: ()=>isPromise,
61
- isRegExp: ()=>isRegExp,
62
- isString: ()=>isString,
63
- isUndefined: ()=>isUndefined
64
- }, {
65
- isEmpty: isEmpty
55
+ __webpack_require__.d(__webpack_exports__, {}, {
56
+ isArray: isArray,
57
+ isEmpty: isEmpty,
58
+ isFunction: isFunction,
59
+ isObject: isObject,
60
+ isPlainObject: isPlainObject,
61
+ isPromise: isPromise,
62
+ isRegExp: isRegExp,
63
+ isString: isString,
64
+ isUndefined: isUndefined
66
65
  });
67
66
  exports.isArray = __webpack_exports__.isArray;
68
67
  exports.isEmpty = __webpack_exports__.isEmpty;
@@ -42,10 +42,10 @@ function isVersionAtLeast20() {
42
42
  const versionArr = nodeVersion.split('.').map(Number);
43
43
  return versionArr[0] >= 20;
44
44
  }
45
- __webpack_require__.d(__webpack_exports__, {
46
- isVersionAtLeast18: ()=>isVersionAtLeast18,
47
- isVersionAtLeast20: ()=>isVersionAtLeast20,
48
- isVersionAtLeast22: ()=>isVersionAtLeast22
45
+ __webpack_require__.d(__webpack_exports__, {}, {
46
+ isVersionAtLeast18: isVersionAtLeast18,
47
+ isVersionAtLeast20: isVersionAtLeast20,
48
+ isVersionAtLeast22: isVersionAtLeast22
49
49
  });
50
50
  exports.isVersionAtLeast18 = __webpack_exports__.isVersionAtLeast18;
51
51
  exports.isVersionAtLeast20 = __webpack_exports__.isVersionAtLeast20;
@@ -1,5 +1,5 @@
1
1
  import { lodash } from "../compiled.mjs";
2
- const { cloneDeep: cloneDeep } = lodash;
2
+ const { cloneDeep } = lodash;
3
3
  function filterRoutesForServer(routes) {
4
4
  const clonedRoutes = cloneDeep(routes);
5
5
  const newRoutes = clonedRoutes.map((route)=>{
@@ -2,7 +2,7 @@ import { createRequire } from "node:module";
2
2
  import { Import } from "./import.mjs";
3
3
  import { __webpack_require__ } from "./rslib-runtime~1.mjs";
4
4
  import signale from "../compiled/signale/index.js";
5
- const { Signale: Signale } = signale;
5
+ const { Signale } = signale;
6
6
  const getNodeRequire = ()=>{
7
7
  if ('object' == typeof __webpack_require__.g && 'function' == typeof __webpack_require__.g.require) return __webpack_require__.g.require;
8
8
  if ('object' == typeof globalThis && 'function' == typeof globalThis.require) return globalThis.require;
@@ -4,6 +4,6 @@ const lazy = (moduleName, getRequireFn)=>{
4
4
  return importLazyLocal(moduleName);
5
5
  };
6
6
  const Import = {
7
- lazy: lazy
7
+ lazy
8
8
  };
9
9
  export { Import, lazy as lazyImport };
@@ -1,6 +1,6 @@
1
1
  import "node:module";
2
2
  import { lodash } from "../compiled.mjs";
3
- const { cloneDeep: cloneDeep } = lodash;
3
+ const { cloneDeep } = lodash;
4
4
  function filterRoutesForServer(routes) {
5
5
  const clonedRoutes = cloneDeep(routes);
6
6
  const newRoutes = clonedRoutes.map((route)=>{
@@ -2,7 +2,7 @@ import "node:module";
2
2
  import { createRequire } from "node:module";
3
3
  import { Import } from "./import.mjs";
4
4
  import signale from "../compiled/signale/index.js";
5
- const { Signale: Signale } = signale;
5
+ const { Signale } = signale;
6
6
  const getNodeRequire = ()=>{
7
7
  if ('object' == typeof global && 'function' == typeof global.require) return global.require;
8
8
  if ('object' == typeof globalThis && 'function' == typeof globalThis.require) return globalThis.require;
@@ -5,6 +5,6 @@ const lazy = (moduleName, getRequireFn)=>{
5
5
  return importLazyLocal(moduleName);
6
6
  };
7
7
  const Import = {
8
- lazy: lazy
8
+ lazy
9
9
  };
10
10
  export { Import, lazy as lazyImport };
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.11.0",
18
+ "version": "3.11.1",
19
19
  "types": "./dist/types/index.d.ts",
20
20
  "main": "./dist/cjs/index.js",
21
21
  "module": "./dist/esm/index.mjs",
@@ -143,11 +143,11 @@
143
143
  },
144
144
  "devDependencies": {
145
145
  "@types/node": "^20",
146
- "happy-dom": "^21.0.0",
146
+ "happy-dom": "^21.0.4",
147
147
  "typescript": "^5",
148
- "@modern-js/rslib": "3.11.0",
149
- "@scripts/rstest-config": "2.66.4",
150
- "@modern-js/types": "3.11.0"
148
+ "@modern-js/rslib": "3.11.1",
149
+ "@modern-js/types": "3.11.1",
150
+ "@scripts/rstest-config": "2.66.5"
151
151
  },
152
152
  "peerDependencies": {
153
153
  "react": "^19.3.1",