@yqg/max-utils
Advanced tools
| import { IApi } from '@yqg/max'; | ||
| export default function withTmpPath(opts: { | ||
| api: IApi; | ||
| path: string; | ||
| noPluginDir?: boolean; | ||
| }): string; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const path_1 = require("path"); | ||
| const plugin_utils_1 = require("umi/plugin-utils"); | ||
| function withTmpPath(opts) { | ||
| return (0, plugin_utils_1.winPath)((0, path_1.join)(opts.api.paths.absTmpPath, opts.api.plugin.key && !opts.noPluginDir | ||
| ? `plugin-${opts.api.plugin.key}` | ||
| : '', opts.path)); | ||
| } | ||
| exports.default = withTmpPath; |
+1
-0
@@ -10,1 +10,2 @@ export * from '@umijs/utils'; | ||
| export { default as preprocess } from 'preprocess'; | ||
| export { default as withTmpPath } from './withTmpPath'; |
+3
-1
@@ -20,3 +20,3 @@ "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.preprocess = exports.dotenv = exports.sharp = exports.qiniu = exports.ora = exports.gitClient = exports.cliTable3 = void 0; | ||
| exports.withTmpPath = exports.preprocess = exports.dotenv = exports.sharp = exports.qiniu = exports.ora = exports.gitClient = exports.cliTable3 = void 0; | ||
| __exportStar(require("@umijs/utils"), exports); | ||
@@ -37,1 +37,3 @@ const cli_table3_1 = __importDefault(require("cli-table3")); | ||
| Object.defineProperty(exports, "preprocess", { enumerable: true, get: function () { return __importDefault(preprocess_1).default; } }); | ||
| var withTmpPath_1 = require("./withTmpPath"); | ||
| Object.defineProperty(exports, "withTmpPath", { enumerable: true, get: function () { return __importDefault(withTmpPath_1).default; } }); |
+1
-1
| { | ||
| "name": "@yqg/max-utils", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4-beta.0", | ||
| "description": "max-utils", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
3823
27.9%6
50%63
43.18%3
50%1
Infinity%