gulp-path-alias
Advanced tools
+12
-0
@@ -5,2 +5,14 @@ # Changelog | ||
| ### [1.1.3](https://github.com/CryUshio/gulp-path-alias/compare/v1.1.2...v1.1.3) (2021-01-08) | ||
| ### Features | ||
| * add test case ([2f07b6e](https://github.com/CryUshio/gulp-path-alias/commit/2f07b6e50fb35aa1c7094a707c57feb8dc3b14a7)) | ||
| ### Bug Fixes | ||
| * [#2](https://github.com/CryUshio/gulp-path-alias/issues/2) ([592cfed](https://github.com/CryUshio/gulp-path-alias/commit/592cfed485c391e7eb4a7b0780dee1b61ab4b1a0)) | ||
| ### [1.1.2](https://github.com/CryUshio/gulp-path-alias/compare/v1.1.1...v1.1.2) (2021-01-07) | ||
@@ -7,0 +19,0 @@ |
+4
-3
@@ -8,7 +8,8 @@ "use strict"; | ||
| const replacestream_1 = __importDefault(require("replacestream")); | ||
| const slash_1 = __importDefault(require("slash")); | ||
| const prefixPattenMap = { | ||
| js: `import\\s*[^'"]*\\(?|from|require\\s*\\(`, | ||
| // poster: wxml | ||
| xml: `src=|url=|poster=`, | ||
| css: `@import\\s*|url\\s*\\(`, | ||
| xml: `src=|url=|poster=|href=`, | ||
| css: `@import\\s*|url\\s*\\(` | ||
| }; | ||
@@ -22,3 +23,3 @@ const suffixPatten = `\\/|['"]|\\s*\\)`; | ||
| function relative(from, to) { | ||
| const relativePath = path_1.default.relative(from, to); | ||
| const relativePath = slash_1.default(path_1.default.relative(from, to)); | ||
| if (!relativePath) { | ||
@@ -25,0 +26,0 @@ return "."; |
+9
-2
| { | ||
| "name": "gulp-path-alias", | ||
| "version": "1.1.2", | ||
| "version": "1.1.3", | ||
| "description": "path alias", | ||
@@ -47,2 +47,7 @@ "main": "lib/index.js", | ||
| ], | ||
| "husky": { | ||
| "hooks": { | ||
| "pre-commit": "npm run test" | ||
| } | ||
| }, | ||
| "devDependencies": { | ||
@@ -56,2 +61,3 @@ "@types/node": "^14.14.19", | ||
| "gulp": "^4.0.2", | ||
| "husky": "^4.3.7", | ||
| "rimraf": "^3.0.2", | ||
@@ -62,4 +68,5 @@ "standard-version": "^9.1.0", | ||
| "dependencies": { | ||
| "replacestream": "^4.0.3" | ||
| "replacestream": "^4.0.3", | ||
| "slash": "^3.0.0" | ||
| } | ||
| } |
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
35059
1.76%134
0.75%2
100%11
10%+ Added
+ Added