@modern-js/utils 2.5.1-alpha.0 → 2.5.1-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/is/index.d.ts +0 -7
- package/dist/is/index.js +0 -6
- package/package.json +2 -2
package/dist/is/index.d.ts
CHANGED
@@ -40,13 +40,6 @@ export declare const isUseSSRBundle: (config: any) => boolean;
|
|
40
40
|
|
41
41
|
export declare const isServiceWorker: (config: any) => boolean;
|
42
42
|
export declare const isFastRefresh: () => boolean;
|
43
|
-
export declare const isRouterV5: (config: {
|
44
|
-
runtime?: {
|
45
|
-
router?: {
|
46
|
-
mode?: string;
|
47
|
-
} | boolean;
|
48
|
-
};
|
49
|
-
}) => boolean;
|
50
43
|
export * from './node-env';
|
51
44
|
export * from './platform';
|
52
45
|
export * from './type';
|
package/dist/is/index.js
CHANGED
@@ -27,7 +27,6 @@ __export(is_exports, {
|
|
27
27
|
isDepExists: () => isDepExists,
|
28
28
|
isEmpty: () => isEmpty,
|
29
29
|
isFastRefresh: () => isFastRefresh,
|
30
|
-
isRouterV5: () => isRouterV5,
|
31
30
|
isSSR: () => isSSR,
|
32
31
|
isServiceWorker: () => isServiceWorker,
|
33
32
|
isTypescript: () => isTypescript,
|
@@ -83,16 +82,11 @@ const isServiceWorker = (config) => {
|
|
83
82
|
return false;
|
84
83
|
};
|
85
84
|
const isFastRefresh = () => (0, import_node_env.isDev)() && process.env.FAST_REFRESH !== "false";
|
86
|
-
const isRouterV5 = (config) => {
|
87
|
-
var _a, _b, _c;
|
88
|
-
return typeof ((_a = config.runtime) == null ? void 0 : _a.router) !== "boolean" && ((_c = (_b = config == null ? void 0 : config.runtime) == null ? void 0 : _b.router) == null ? void 0 : _c.mode) === "react-router-5";
|
89
|
-
};
|
90
85
|
// Annotate the CommonJS export names for ESM import in node:
|
91
86
|
0 && (module.exports = {
|
92
87
|
isDepExists,
|
93
88
|
isEmpty,
|
94
89
|
isFastRefresh,
|
95
|
-
isRouterV5,
|
96
90
|
isSSR,
|
97
91
|
isServiceWorker,
|
98
92
|
isTypescript,
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "2.5.1-alpha.
|
14
|
+
"version": "2.5.1-alpha.1",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/index.d.ts",
|
17
17
|
"main": "./dist/index.js",
|
@@ -128,7 +128,7 @@
|
|
128
128
|
"lodash": "^4.17.21"
|
129
129
|
},
|
130
130
|
"devDependencies": {
|
131
|
-
"@modern-js/types": "2.5.0",
|
131
|
+
"@modern-js/types": "2.5.1-alpha.0",
|
132
132
|
"@scripts/build": "2.5.0",
|
133
133
|
"@scripts/jest-config": "2.5.0",
|
134
134
|
"@types/jest": "^27",
|