Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

resolve-pathname

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolve-pathname - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

lib/index.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _invariant = require('invariant');

@@ -54,2 +50,2 @@

exports.default = resolvePathname;
module.exports = resolvePathname;

2

package.json
{
"name": "resolve-pathname",
"version": "1.0.1",
"version": "1.0.2",
"description": "Resolve URL pathnames using JavaScript",

@@ -5,0 +5,0 @@ "author": "Michael Jackson",

@@ -27,3 +27,3 @@ # resolve-pathname [![Travis][build-badge]][build] [![npm package][npm-badge]][npm]

// not using an ES6 transpiler
var resolvePathname = require('resolve-pathname').resolvePathname
var resolvePathname = require('resolve-pathname')
```

@@ -30,0 +30,0 @@

@@ -59,6 +59,2 @@ (function webpackUniversalModuleDefinition(root, factory) {

Object.defineProperty(exports, "__esModule", {
value: true
});
var _invariant = __webpack_require__(1);

@@ -111,3 +107,3 @@

exports.default = resolvePathname;
module.exports = resolvePathname;

@@ -114,0 +110,0 @@ /***/ },

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.resolvePathname=t():e.resolvePathname=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=n(o),u=function(e){return"/"===e.charAt(0)},f=function(e){return"/"===e.charAt(e.length-1)},a=function(e){var t=arguments.length<=1||void 0===arguments[1]?"/":arguments[1];if(!e)return t;if(u(e))return-1!==e.indexOf("..")?(0,i["default"])(!1):void 0,e;for(var r=u(t)?"/":"",n=t+(f(t)?"":"/../")+e,o=n.split("/").filter(function(e){return!!e}),a=0,c=o.length-1;c>=0;c--)".."===o[c]?(o.splice(c,1),a++):a&&(o.splice(c,1),a--);return 0!==a?(0,i["default"])(!1):void 0,r+o.join("/")};t["default"]=a},function(e,t,r){"use strict";var n=function(e,t,r,n,o,i,u,f){if(!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,i,u,f],d=0;a=new Error(t.replace(/%s/g,function(){return c[d++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}};e.exports=n}])});
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.resolvePathname=r():e.resolvePathname=r()}(this,function(){return function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var t={};return r.m=e,r.c=t,r.p="",r(0)}([function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}var o=t(1),i=n(o),f=function(e){return"/"===e.charAt(0)},u=function(e){return"/"===e.charAt(e.length-1)},a=function(e){var r=arguments.length<=1||void 0===arguments[1]?"/":arguments[1];if(!e)return r;if(f(e))return-1!==e.indexOf("..")?(0,i["default"])(!1):void 0,e;for(var t=f(r)?"/":"",n=r+(u(r)?"":"/../")+e,o=n.split("/").filter(function(e){return!!e}),a=0,c=o.length-1;c>=0;c--)".."===o[c]?(o.splice(c,1),a++):a&&(o.splice(c,1),a--);return 0!==a?(0,i["default"])(!1):void 0,t+o.join("/")};e.exports=a},function(e,r,t){"use strict";var n=function(e,r,t,n,o,i,f,u){if(!e){var a;if(void 0===r)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[t,n,o,i,f,u],s=0;a=new Error(r.replace(/%s/g,function(){return c[s++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}};e.exports=n}])});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc