resolve-pathname
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "resolve-pathname", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Resolve URL pathnames using JavaScript", | ||
@@ -8,3 +8,2 @@ "author": "Michael Jackson", | ||
"main": "lib", | ||
"browser": "umd/resolve-pathname.min.js", | ||
"files": [ | ||
@@ -27,20 +26,18 @@ "lib", | ||
"babel-core": "^6.5.2", | ||
"babel-eslint": "^5.0.0", | ||
"babel-eslint": "^7.0.0", | ||
"babel-loader": "^6.2.3", | ||
"babel-plugin-dev-expression": "^0.2.1", | ||
"babel-preset-es2015": "^6.5.0", | ||
"eslint": "2.2.0", | ||
"eslint-config-airbnb": "^6.0.2", | ||
"eslint-plugin-react": "^4.1.0", | ||
"eslint": "^3.2.2", | ||
"eslint-plugin-import": "^2.0.0", | ||
"expect": "^1.14.0", | ||
"gzip-size": "^3.0.0", | ||
"karma": "^0.13.21", | ||
"karma-browserstack-launcher": "^0.1.10", | ||
"karma-chrome-launcher": "^0.2.2", | ||
"karma-mocha": "^0.2.2", | ||
"karma-mocha-reporter": "^1.2.3", | ||
"karma": "^1.1.2", | ||
"karma-browserstack-launcher": "^1.0.0", | ||
"karma-chrome-launcher": "^2.0.0", | ||
"karma-mocha": "^1.0.1", | ||
"karma-mocha-reporter": "^2.0.3", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^1.7.0", | ||
"mocha": "^2.4.5", | ||
"pretty-bytes": "^3.0.1", | ||
"mocha": "^3.0.0", | ||
"pretty-bytes": "^4.0.2", | ||
"readline-sync": "^1.4.1", | ||
@@ -53,3 +50,8 @@ "rimraf": "^2.5.2", | ||
"url": "https://github.com/mjackson/resolve-pathname.git" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"es2015" | ||
] | ||
} | ||
} |
@@ -30,6 +30,6 @@ # resolve-pathname [![Travis][build-badge]][build] [![npm package][npm-badge]][npm] | ||
The UMD build is also available on [npmcdn](https://npmcdn.com): | ||
The UMD build is also available on [unpkg](https://unpkg.com): | ||
```html | ||
<script src="https://npmcdn.com/resolve-pathname/umd/resolve-pathname.min.js"></script> | ||
<script src="https://unpkg.com/resolve-pathname/umd/resolve-pathname.min.js"></script> | ||
``` | ||
@@ -36,0 +36,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.resolvePathname=e():t.resolvePathname=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e){"use strict";var r=function(t){return"/"===t.charAt(0)},n=function(t,e){for(var r=e,n=r+1,o=t.length;o>n;r+=1,n+=1)t[r]=t[n];t.pop()},o=function(t){var e=arguments.length<=1||void 0===arguments[1]?"":arguments[1],o=t&&t.split("/")||[],i=e&&e.split("/")||[],f=t&&r(t),s=e&&r(e),u=f||s;if(t&&r(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";var p=void 0;if(i.length){var a=i[i.length-1];p="."===a||".."===a||""===a}else p=!1;for(var c=0,l=i.length;l>=0;l--){var v=i[l];"."===v?n(i,l):".."===v?(n(i,l),c++):c&&(n(i,l),c--)}if(!u)for(;c--;c)i.unshift("..");!u||""===i[0]||i[0]&&r(i[0])||i.unshift("");var d=i.join("/");return p&&"/"!==d.substr(-1)&&(d+="/"),d};t.exports=o}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.resolvePathname=e():t.resolvePathname=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e){"use strict";var r=function(t){return"/"===t.charAt(0)},n=function(t,e){for(var r=e,n=r+1,o=t.length;n<o;r+=1,n+=1)t[r]=t[n];t.pop()},o=function(t){var e=arguments.length<=1||void 0===arguments[1]?"":arguments[1],o=t&&t.split("/")||[],i=e&&e.split("/")||[],f=t&&r(t),s=e&&r(e),u=f||s;if(t&&r(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";var p=void 0;if(i.length){var a=i[i.length-1];p="."===a||".."===a||""===a}else p=!1;for(var c=0,l=i.length;l>=0;l--){var v=i[l];"."===v?n(i,l):".."===v?(n(i,l),c++):c&&(n(i,l),c--)}if(!u)for(;c--;c)i.unshift("..");!u||""===i[0]||i[0]&&r(i[0])||i.unshift("");var d=i.join("/");return p&&"/"!==d.substr(-1)&&(d+="/"),d};t.exports=o}])}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21
17003