@umijs/utils 4.0.0-canary.20220713.1 → 4.0.0-canary.20220718.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.
Files changed (38) hide show
  1. package/dist/BaseGenerator/BaseGenerator.d.ts +1 -0
  2. package/dist/BaseGenerator/BaseGenerator.d.ts.map +1 -0
  3. package/dist/BaseGenerator/generateFile.d.ts +1 -0
  4. package/dist/BaseGenerator/generateFile.d.ts.map +1 -0
  5. package/dist/Generator/Generator.d.ts +1 -0
  6. package/dist/Generator/Generator.d.ts.map +1 -0
  7. package/dist/getCorejsVersion.d.ts +1 -0
  8. package/dist/getCorejsVersion.d.ts.map +1 -0
  9. package/dist/getGitInfo.d.ts +1 -0
  10. package/dist/getGitInfo.d.ts.map +1 -0
  11. package/dist/importLazy.d.ts +1 -0
  12. package/dist/importLazy.d.ts.map +1 -0
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/installDeps.d.ts +1 -0
  16. package/dist/installDeps.d.ts.map +1 -0
  17. package/dist/isLocalDev.d.ts +1 -0
  18. package/dist/isLocalDev.d.ts.map +1 -0
  19. package/dist/isStyleFile.d.ts +1 -0
  20. package/dist/isStyleFile.d.ts.map +1 -0
  21. package/dist/logger.d.ts +1 -0
  22. package/dist/logger.d.ts.map +1 -0
  23. package/dist/npmClient.d.ts +1 -0
  24. package/dist/npmClient.d.ts.map +1 -0
  25. package/dist/printHelp.d.ts +1 -0
  26. package/dist/printHelp.d.ts.map +1 -0
  27. package/dist/printHelp.js +4 -3
  28. package/dist/randomColor/randomColor.d.ts +1 -0
  29. package/dist/randomColor/randomColor.d.ts.map +1 -0
  30. package/dist/register.d.ts +1 -0
  31. package/dist/register.d.ts.map +1 -0
  32. package/dist/tryPaths.d.ts +1 -0
  33. package/dist/tryPaths.d.ts.map +1 -0
  34. package/dist/updatePackageJSON.d.ts +1 -0
  35. package/dist/updatePackageJSON.d.ts.map +1 -0
  36. package/dist/winPath.d.ts +1 -0
  37. package/dist/winPath.d.ts.map +1 -0
  38. package/package.json +1 -1
@@ -17,3 +17,4 @@ export default class BaseGenerator extends Generator {
17
17
  writing(): Promise<void>;
18
18
  }
19
19
  export {};
20
+ //# sourceMappingURL=BaseGenerator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseGenerator.d.ts","sourceRoot":"","sources":["../../src/BaseGenerator/BaseGenerator.ts"],"names":[],"mappings":"AAGA,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAC7C,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;CACpC;AAED,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;gBAEtB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,KAAK;IAQ7D,SAAS;IAIH,OAAO;CAyBd"}
@@ -7,3 +7,4 @@ declare const generateFile: ({ path, target, baseDir, data, questions, }: {
7
7
  questions?: prompts.PromptObject<string>[] | undefined;
8
8
  }) => Promise<void>;
9
9
  export default generateFile;
10
+ //# sourceMappingURL=generateFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateFile.d.ts","sourceRoot":"","sources":["../../src/BaseGenerator/generateFile.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAG7C,QAAA,MAAM,YAAY;UAOV,MAAM;YACJ,MAAM;;WAEP,GAAG;;mBAYX,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -23,3 +23,4 @@ declare class Generator {
23
23
  }): void;
24
24
  }
25
25
  export default Generator;
26
+ //# sourceMappingURL=Generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Generator.d.ts","sourceRoot":"","sources":["../../src/Generator/Generator.ts"],"names":[],"mappings":"AAOA,OAAO,OAAO,MAAM,6BAA6B,CAAC;AAElD,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC;CACzB;AAED,cAAM,SAAS;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC;gBAED,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK;IAM9B,GAAG;IAMT,SAAS;IAIH,OAAO;IAEb,OAAO,CAAC,IAAI,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;IAUvE,aAAa,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;CAuBtE;AAED,eAAe,SAAS,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const getCorejsVersion: (pkgPath: string) => any;
2
+ //# sourceMappingURL=getCorejsVersion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCorejsVersion.d.ts","sourceRoot":"","sources":["../src/getCorejsVersion.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,YAAa,MAAM,QAK/C,CAAC"}
@@ -4,3 +4,4 @@ export interface IGitInfo {
4
4
  }
5
5
  declare const getGitInfo: () => Promise<IGitInfo>;
6
6
  export default getGitInfo;
7
+ //# sourceMappingURL=getGitInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGitInfo.d.ts","sourceRoot":"","sources":["../src/getGitInfo.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,UAAU,QAAa,QAAQ,QAAQ,CAa5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -4,3 +4,4 @@
4
4
  * 2. https://github.com/microsoft/rushstack/blob/90301e9/libraries/node-core-library/src/Import.ts#L175
5
5
  */
6
6
  export declare function importLazy(moduleName: string, requireFn?: (id: string) => unknown): any;
7
+ //# sourceMappingURL=importLazy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"importLazy.d.ts","sourceRoot":"","sources":["../src/importLazy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,wBAAgB,UAAU,CACxB,UAAU,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,GAClC,GAAG,CAKL"}
package/dist/index.d.ts CHANGED
@@ -37,3 +37,4 @@ export * as register from './register';
37
37
  export * from './tryPaths';
38
38
  export * from './winPath';
39
39
  export { address, axios, chalk, cheerio, chokidar, crossSpawn, debug, deepmerge, execa, fsExtra, glob, Generator, BaseGenerator, generateFile, installDeps, lodash, logger, Mustache, pkgUp, portfinder, prompts, resolve, rimraf, semver, stripAnsi, updatePackageJSON, yParser, getGitInfo, printHelp, };
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,OAAO,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,OAAO,EACL,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,UAAU,EACV,KAAK,EACL,SAAS,EACT,KAAK,EACL,OAAO,EACP,IAAI,EACJ,SAAS,EACT,aAAa,EACb,YAAY,EACZ,WAAW,EAEX,MAAM,EACN,MAAM,EACN,QAAQ,EACR,KAAK,EACL,UAAU,EACV,OAAO,EACP,OAAO,EACP,MAAM,EACN,MAAM,EACN,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,SAAS,GACV,CAAC"}
@@ -7,3 +7,4 @@ declare function installDeps({ opts, cwd, }: {
7
7
  cwd?: string;
8
8
  }): void;
9
9
  export default installDeps;
10
+ //# sourceMappingURL=installDeps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installDeps.d.ts","sourceRoot":"","sources":["../src/installDeps.ts"],"names":[],"mappings":"AAIA,UAAU,YAAY;IACpB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,GAAmB,GACpB,EAAE;IACD,IAAI,EAAE,YAAY,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,QAyCA;AACD,eAAe,WAAW,CAAC"}
@@ -2,3 +2,4 @@
2
2
  * Check whether it is development in local
3
3
  */
4
4
  export declare const isLocalDev: () => string | false;
5
+ //# sourceMappingURL=isLocalDev.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isLocalDev.d.ts","sourceRoot":"","sources":["../src/isLocalDev.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,UAAU,sBAGtB,CAAC"}
@@ -3,3 +3,4 @@ export declare const isStyleFile: ({ filename, ext, }: {
3
3
  filename?: string | undefined;
4
4
  ext?: string | undefined;
5
5
  }) => boolean;
6
+ //# sourceMappingURL=isStyleFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isStyleFile.d.ts","sourceRoot":"","sources":["../src/isStyleFile.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,UAOhC,CAAC;AAEF,eAAO,MAAM,WAAW;;;aAQvB,CAAC"}
package/dist/logger.d.ts CHANGED
@@ -17,3 +17,4 @@ export declare function event(...message: any[]): void;
17
17
  export declare function debug(...message: any[]): void;
18
18
  export declare function fatal(...message: any[]): void;
19
19
  export declare function getLatestLogFilePath(): string | null;
20
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,QAAQ;;;;;;;;;CASpB,CAAC;AAuCF,wBAAgB,IAAI,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGrC;AAED,wBAAgB,KAAK,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGtC;AAED,wBAAgB,IAAI,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGrC;AAED,wBAAgB,KAAK,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGtC;AAED,wBAAgB,IAAI,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGrC;AAED,wBAAgB,KAAK,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGtC;AAED,wBAAgB,KAAK,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAKtC;AAED,wBAAgB,KAAK,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGtC;AAED,wBAAgB,oBAAoB,kBAEnC"}
@@ -14,3 +14,4 @@ export declare const installWithNpmClient: ({ npmClient, cwd, }: {
14
14
  npmClient: NpmClient;
15
15
  cwd?: string | undefined;
16
16
  }) => void;
17
+ //# sourceMappingURL=npmClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npmClient.d.ts","sourceRoot":"","sources":["../src/npmClient.ts"],"names":[],"mappings":"AAGA,oBAAY,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAClE,eAAO,MAAM,UAAU,UAA0C,CAAC;AAClE,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AACD,eAAO,MAAM,YAAY,SAAU;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,KAAG,SAqBpD,CAAC;AAEF,eAAO,MAAM,oBAAoB;eAIpB,SAAS;;MAElB,IASH,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export declare function exit(): void;
2
2
  export declare function runtime(e: Error): void;
3
+ //# sourceMappingURL=printHelp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"printHelp.d.ts","sourceRoot":"","sources":["../src/printHelp.ts"],"names":[],"mappings":"AAKA,wBAAgB,IAAI,SAUnB;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,QAG/B"}
package/dist/printHelp.js CHANGED
@@ -25,7 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.runtime = exports.exit = void 0;
27
27
  const logger = __importStar(require("./logger"));
28
- const FEEDBACK_MESSAGE = '如果你需要进交流群,请访问 https://fb.umijs.org';
28
+ // TODO: 先注释,因为这里要考虑比如 @alipay/bigfish 不应该走这个提示
29
+ // const FEEDBACK_MESSAGE = '如果你需要进交流群,请访问 https://fb.umijs.org';
29
30
  function exit() {
30
31
  const loggerPath = logger.getLatestLogFilePath();
31
32
  if (loggerPath) {
@@ -33,11 +34,11 @@ function exit() {
33
34
  logger.fatal(loggerPath);
34
35
  }
35
36
  logger.fatal('Consider reporting a GitHub issue on https://github.com/umijs/umi/issues');
36
- logger.fatal(FEEDBACK_MESSAGE);
37
+ // logger.fatal(FEEDBACK_MESSAGE);
37
38
  }
38
39
  exports.exit = exit;
39
40
  function runtime(e) {
40
41
  logger.error(e);
41
- logger.fatal(FEEDBACK_MESSAGE);
42
+ // logger.fatal(FEEDBACK_MESSAGE);
42
43
  }
43
44
  exports.runtime = runtime;
@@ -4,3 +4,4 @@ export declare function randomColor(saturation?: number, value?: number): color<
4
4
  s: number;
5
5
  v: number;
6
6
  }>;
7
+ //# sourceMappingURL=randomColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"randomColor.d.ts","sourceRoot":"","sources":["../../src/randomColor/randomColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,sBAAsB,CAAC;AAKzC,wBAAgB,WAAW,CAAC,UAAU,GAAE,MAAY,EAAE,KAAK,GAAE,MAAa;;;;GASzE"}
@@ -5,3 +5,4 @@ export declare function register(opts: {
5
5
  export declare function getFiles(): string[];
6
6
  export declare function clearFiles(): void;
7
7
  export declare function restore(): void;
8
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AA8BA,wBAAgB,QAAQ,CAAC,IAAI,EAAE;IAAE,WAAW,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,QAanE;AAED,wBAAgB,QAAQ,aAEvB;AAED,wBAAgB,UAAU,SAEzB;AAED,wBAAgB,OAAO,SAGtB"}
@@ -1 +1,2 @@
1
1
  export declare function tryPaths(paths: string[]): string | undefined;
2
+ //# sourceMappingURL=tryPaths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tryPaths.d.ts","sourceRoot":"","sources":["../src/tryPaths.ts"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,sBAIvC"}
@@ -3,3 +3,4 @@ declare function updatePackageJSON({ opts, cwd, }: {
3
3
  cwd?: string;
4
4
  }): void;
5
5
  export default updatePackageJSON;
6
+ //# sourceMappingURL=updatePackageJSON.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updatePackageJSON.d.ts","sourceRoot":"","sources":["../src/updatePackageJSON.ts"],"names":[],"mappings":"AAKA,iBAAS,iBAAiB,CAAC,EACzB,IAAI,EACJ,GAAmB,GACpB,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,QAYA;AACD,eAAe,iBAAiB,CAAC"}
package/dist/winPath.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export declare function winPath(path: string): string;
2
+ //# sourceMappingURL=winPath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"winPath.d.ts","sourceRoot":"","sources":["../src/winPath.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,UAMnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/utils",
3
- "version": "4.0.0-canary.20220713.1",
3
+ "version": "4.0.0-canary.20220718.1",
4
4
  "homepage": "https://github.com/umijs/umi/tree/master/packages/utils#readme",
5
5
  "bugs": "https://github.com/umijs/umi/issues",
6
6
  "repository": {