@umijs/utils 4.0.25 → 4.0.26
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/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/setNoDeprecation.d.ts +1 -0
- package/dist/setNoDeprecation.js +31 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,4 +39,5 @@ export * from './randomColor/randomColor';
|
|
|
39
39
|
export * as register from './register';
|
|
40
40
|
export * from './tryPaths';
|
|
41
41
|
export * from './winPath';
|
|
42
|
+
export * from './setNoDeprecation';
|
|
42
43
|
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, filesize, gzipSize, };
|
package/dist/index.js
CHANGED
|
@@ -98,6 +98,7 @@ __reExport(src_exports, require("./randomColor/randomColor"), module.exports);
|
|
|
98
98
|
var register = __toESM(require("./register"));
|
|
99
99
|
__reExport(src_exports, require("./tryPaths"), module.exports);
|
|
100
100
|
__reExport(src_exports, require("./winPath"), module.exports);
|
|
101
|
+
__reExport(src_exports, require("./setNoDeprecation"), module.exports);
|
|
101
102
|
// Annotate the CommonJS export names for ESM import in node:
|
|
102
103
|
0 && (module.exports = {
|
|
103
104
|
BaseGenerator,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function setNoDeprecation(): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
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/setNoDeprecation.ts
|
|
20
|
+
var setNoDeprecation_exports = {};
|
|
21
|
+
__export(setNoDeprecation_exports, {
|
|
22
|
+
setNoDeprecation: () => setNoDeprecation
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(setNoDeprecation_exports);
|
|
25
|
+
function setNoDeprecation() {
|
|
26
|
+
process.noDeprecation = "1";
|
|
27
|
+
}
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
setNoDeprecation
|
|
31
|
+
});
|