@@ -35,2 +35,8 @@ "use strict"; | ||
| if (pTargetsHash !== hash) { | ||
| if (specs_1.isFutureVersion(wpcVersion)) { | ||
| console.error(chalk_1.default `[airpack]: {red Target "${target}" has changed since the version of "${wpc}@${wpcVersion}"}`); | ||
| console.error(chalk_1.default `[airpack]: {gray Did you use the latest version of airpack? If so, please go to}`); | ||
| console.error(chalk_1.default `[airpack]: {gray https://github.com/arzyu/airpack/issues to report this error.}`); | ||
| process.exit(); | ||
| } | ||
| console.error(chalk_1.default `[airpack]: {red Hash not matched to the target "${target}"}`); | ||
@@ -37,0 +43,0 @@ console.error(chalk_1.default `[airpack]: {green ${pTargetsHash}} {gray <-} {red ${hash}}`); |
+1
-0
| import { Target } from "./adapter"; | ||
| export declare const getMinVersion: () => string; | ||
| export declare const getFutureVersionsRange: () => string; | ||
| export declare const isFutureVersion: (version: string) => boolean; | ||
| export declare const getMatchedFiles: (version: string) => string[]; | ||
| export declare const getMatchedTargets: (version: string) => Target[]; | ||
| export declare const getMatchedHashes: (version: string) => string[]; |
+6
-1
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.getMatchedHashes = exports.getMatchedTargets = exports.getMatchedFiles = exports.getFutureVersionsRange = exports.getMinVersion = void 0; | ||
| exports.getMatchedHashes = exports.getMatchedTargets = exports.getMatchedFiles = exports.isFutureVersion = exports.getFutureVersionsRange = exports.getMinVersion = void 0; | ||
| const semver_1 = require("semver"); | ||
@@ -48,2 +48,7 @@ const files = { | ||
| exports.getFutureVersionsRange = getFutureVersionsRange; | ||
| const isFutureVersion = (version) => { | ||
| const futureRange = exports.getFutureVersionsRange(); | ||
| return semver_1.satisfies(version, futureRange); | ||
| }; | ||
| exports.isFutureVersion = isFutureVersion; | ||
| const getMatchedFiles = (version) => { | ||
@@ -50,0 +55,0 @@ const matchedRange = Object.keys(files).find(range => semver_1.satisfies(version, range)); |
+4
-3
| { | ||
| "name": "airpack", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "description": "Solution for modular webpack configuration. Give webpack the ability to read configs from dependencies, and merge them in a more appropriate way.", | ||
@@ -23,3 +23,3 @@ "bin": { | ||
| "postbuild": "chmod +x dist/airpack.js", | ||
| "prepare": "rm -rf dist && npm run build" | ||
| "prepare": "rimraf dist && npm run build" | ||
| }, | ||
@@ -43,3 +43,3 @@ "dependencies": { | ||
| "@types/babel__template": "^7.4.0", | ||
| "@types/babel__traverse": "^7.14.0", | ||
| "@types/babel__traverse": "^7.14.2", | ||
| "@types/interpret": "^1.1.1", | ||
@@ -49,2 +49,3 @@ "@types/pacote": "^11.1.0", | ||
| "pacote": "^11.3.5", | ||
| "rimraf": "^3.0.2", | ||
| "ts-node": "^10.0.0", | ||
@@ -51,0 +52,0 @@ "typescript": "^4.3.4" |
+1
-1
| # airpack | ||
| >Support `webpack-cli` version `>= 3.0.0` | ||
|    | ||
@@ -5,0 +5,0 @@ airpack is a wrapper for webpack-cli. Designed to allow you to use webpack more elegantly. |
+2
-2
| # airpack | ||
|    | ||
| >[Readme in English](https://github.com/arzyu/airpack/blob/master/README.en.md), Translated by Google, [require improvements](https://github.com/arzyu/airpack/issues/5). | ||
| >支持 `webpack-cli` 版本 `>= 3.0.0` | ||
| airpack 是一个 webpack-cli 的包装器。旨在让你更优雅的使用 webpack。 | ||
@@ -8,0 +8,0 @@ |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
41391
2.97%579
2.12%10
11.11%