Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

gulp-path-alias

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-path-alias - npm Package Compare versions

Comparing version
1.1.2
to
1.1.3
+12
-0
CHANGELOG.md

@@ -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 ".";

{
"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"
}
}