Skip to content

Commit

Permalink
chore(all): prepare release 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 30, 2015
1 parent 4111cfe commit 17ea5da
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-path",
"version": "0.4.1",
"version": "0.4.2",
"description": "Utilities for path manipulation.",
"keywords": [
"aurelia",
Expand Down
7 changes: 5 additions & 2 deletions dist/amd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ define(["exports"], function (exports) {
}

function join(path1, path2) {
var url1, url2, url3, i, ii;
var url1, url2, url3, i, ii, urlPrefix;

if (!path1) {
return path2;
Expand All @@ -50,6 +50,8 @@ define(["exports"], function (exports) {
return path1;
}

urlPrefix = path1.indexOf("/") === 0 ? "/" : "";

url1 = path1.split("/");
url2 = path2.split("/");
url3 = [];
Expand All @@ -74,6 +76,7 @@ define(["exports"], function (exports) {
}
}

return url3.join("/").replace(/\:\//g, "://");;
return urlPrefix + url3.join("/").replace(/\:\//g, "://");;
}
exports.__esModule = true;
});
9 changes: 6 additions & 3 deletions dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function relativeToFile(name, file) {
}

function join(path1, path2) {
var url1, url2, url3, i, ii;
var url1, url2, url3, i, ii, urlPrefix;

if (!path1) {
return path2;
Expand All @@ -49,6 +49,8 @@ function join(path1, path2) {
return path1;
}

urlPrefix = path1.indexOf("/") === 0 ? "/" : "";

url1 = path1.split("/");
url2 = path2.split("/");
url3 = [];
Expand All @@ -73,5 +75,6 @@ function join(path1, path2) {
}
}

return url3.join("/").replace(/\:\//g, "://");;
}
return urlPrefix + url3.join("/").replace(/\:\//g, "://");;
}
exports.__esModule = true;
6 changes: 4 additions & 2 deletions dist/es6/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function relativeToFile(name, file){
}

export function join(path1, path2) {
var url1, url2, url3, i, ii;
var url1, url2, url3, i, ii, urlPrefix;

if(!path1){
return path2;
Expand All @@ -54,6 +54,8 @@ export function join(path1, path2) {
if(!path2){
return path1;
}

urlPrefix = path1.indexOf('/') === 0 ? '/' : '';

url1 = path1.split('/');
url2 = path2.split('/');
Expand All @@ -79,5 +81,5 @@ export function join(path1, path2) {
}
}

return url3.join('/').replace(/\:\//g, '://');;
return urlPrefix + url3.join('/').replace(/\:\//g, '://');;
}
6 changes: 4 additions & 2 deletions dist/system/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ System.register([], function (_export) {
}

function join(path1, path2) {
var url1, url2, url3, i, ii;
var url1, url2, url3, i, ii, urlPrefix;

if (!path1) {
return path2;
Expand All @@ -52,6 +52,8 @@ System.register([], function (_export) {
return path1;
}

urlPrefix = path1.indexOf("/") === 0 ? "/" : "";

url1 = path1.split("/");
url2 = path2.split("/");
url3 = [];
Expand All @@ -76,7 +78,7 @@ System.register([], function (_export) {
}
}

return url3.join("/").replace(/\:\//g, "://");;
return urlPrefix + url3.join("/").replace(/\:\//g, "://");;
}
return {
setters: [],
Expand Down
8 changes: 8 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 0.4.2 (2015-01-30)


#### Bug Fixes

* **path:** joining an absolute path fragment with another incorrectly removes the first sla ([4111cfef](http://github.com/aurelia/path/commit/4111cfef9d00e4b6fbd2d04241d0e7c48526387c))


### 0.4.1 (2015-01-22)

* Update compiler.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-path",
"version": "0.4.1",
"version": "0.4.2",
"description": "Utilities for path manipulation.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 17ea5da

Please sign in to comment.