@umijs/max 4.3.19 → 4.3.21

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/max",
3
- "version": "4.3.19",
3
+ "version": "4.3.21",
4
4
  "description": "@umijs/max",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/max#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -32,9 +32,9 @@
32
32
  "antd": "^4.20.6",
33
33
  "eslint": "8.35.0",
34
34
  "stylelint": "14.8.2",
35
- "@umijs/lint": "4.3.19",
36
- "@umijs/plugins": "4.3.19",
37
- "umi": "4.3.19"
35
+ "@umijs/lint": "4.3.21",
36
+ "@umijs/plugins": "4.3.21",
37
+ "umi": "4.3.21"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
package/dist/cli.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/dist/cli.js DELETED
@@ -1,31 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from))
10
- if (!__hasOwnProp.call(to, key) && key !== except)
11
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- }
13
- return to;
14
- };
15
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
- // If the importer is in node compatibility mode or this is not an ESM
17
- // file that has been converted to a CommonJS file using a Babel-
18
- // compatible transform (i.e. "__esModule" has not been set), then set
19
- // "default" to the CommonJS "module.exports" for node compatibility.
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
- mod
22
- ));
23
-
24
- // src/cli.ts
25
- var import_umi = require("umi");
26
- (0, import_umi.run)({
27
- presets: [require.resolve("./preset")]
28
- }).catch((e) => {
29
- console.error(e);
30
- process.exit(1);
31
- });
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from 'umi';
package/dist/index.js DELETED
@@ -1,19 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/index.ts
17
- var src_exports = {};
18
- module.exports = __toCommonJS(src_exports);
19
- __reExport(src_exports, require("umi"), module.exports);
@@ -1,3 +0,0 @@
1
- import { IApi } from 'umi';
2
- declare const _default: (api: IApi) => void;
3
- export default _default;
@@ -1,35 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/plugins/maxAlias.ts
20
- var maxAlias_exports = {};
21
- __export(maxAlias_exports, {
22
- default: () => maxAlias_default
23
- });
24
- module.exports = __toCommonJS(maxAlias_exports);
25
- var maxAlias_default = (api) => {
26
- api.modifyConfig((memo) => {
27
- memo.alias = {
28
- ...memo.alias,
29
- "@umijs/max": "@@/exports"
30
- };
31
- return memo;
32
- });
33
- };
34
- // Annotate the CommonJS export names for ESM import in node:
35
- 0 && (module.exports = {});
@@ -1,3 +0,0 @@
1
- import { IApi } from 'umi';
2
- declare const _default: (api: IApi) => void;
3
- export default _default;
@@ -1,34 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/plugins/maxAppData.ts
20
- var maxAppData_exports = {};
21
- __export(maxAppData_exports, {
22
- default: () => maxAppData_default
23
- });
24
- module.exports = __toCommonJS(maxAppData_exports);
25
- var maxAppData_default = (api) => {
26
- api.modifyAppData((memo) => {
27
- memo.umi.name = "Umi Max";
28
- memo.umi.importSource = "@umijs/max";
29
- memo.umi.cliName = "max";
30
- return memo;
31
- });
32
- };
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {});
@@ -1,3 +0,0 @@
1
- import { IApi } from 'umi';
2
- declare const _default: (api: IApi) => void;
3
- export default _default;
@@ -1,37 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/plugins/maxChecker.ts
20
- var maxChecker_exports = {};
21
- __export(maxChecker_exports, {
22
- default: () => maxChecker_default
23
- });
24
- module.exports = __toCommonJS(maxChecker_exports);
25
- var maxChecker_default = (api) => {
26
- api.onCheckPkgJSON(({ current }) => {
27
- var _a, _b;
28
- const hasUmi = ((_a = current.dependencies) == null ? void 0 : _a["umi"]) || ((_b = current.devDependencies) == null ? void 0 : _b["umi"]);
29
- if (hasUmi) {
30
- throw new Error(
31
- `You are using ${api.appData.umi.importSource}, please remove umi from your dependencies in package.json.`
32
- );
33
- }
34
- });
35
- };
36
- // Annotate the CommonJS export names for ESM import in node:
37
- 0 && (module.exports = {});
package/dist/preset.d.ts DELETED
@@ -1,4 +0,0 @@
1
- declare const _default: () => {
2
- plugins: string[];
3
- };
4
- export default _default;
package/dist/preset.js DELETED
@@ -1,61 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/preset.ts
30
- var preset_exports = {};
31
- __export(preset_exports, {
32
- default: () => preset_default
33
- });
34
- module.exports = __toCommonJS(preset_exports);
35
- var preset_default = () => {
36
- return {
37
- plugins: [
38
- require.resolve("@umijs/plugins/dist/access"),
39
- require.resolve("@umijs/plugins/dist/analytics"),
40
- require.resolve("@umijs/plugins/dist/antd"),
41
- require.resolve("@umijs/plugins/dist/dva"),
42
- require.resolve("@umijs/plugins/dist/initial-state"),
43
- require.resolve("@umijs/plugins/dist/layout"),
44
- require.resolve("@umijs/plugins/dist/locale"),
45
- require.resolve("@umijs/plugins/dist/mf"),
46
- require.resolve("@umijs/plugins/dist/model"),
47
- require.resolve("@umijs/plugins/dist/moment2dayjs"),
48
- require.resolve("@umijs/plugins/dist/qiankun"),
49
- require.resolve("@umijs/plugins/dist/react-query"),
50
- require.resolve("@umijs/plugins/dist/request"),
51
- require.resolve("@umijs/plugins/dist/styled-components"),
52
- require.resolve("@umijs/plugins/dist/tailwindcss"),
53
- require.resolve("@umijs/plugins/dist/valtio"),
54
- require.resolve("./plugins/maxAlias"),
55
- require.resolve("./plugins/maxAppData"),
56
- require.resolve("./plugins/maxChecker")
57
- ]
58
- };
59
- };
60
- // Annotate the CommonJS export names for ESM import in node:
61
- 0 && (module.exports = {});