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

path-parse

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

path-parse - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

index.js
'use strict';
var path = require('path'),
util = require('util');
var path = require('path');

@@ -32,3 +31,3 @@ // Regex to split a windows path into three parts: [*, device, slash,

win32.parse = function(pathString) {
if (!util.isString(pathString)) {
if (typeof pathString !== 'string') {
throw new TypeError(

@@ -52,2 +51,3 @@ "Parameter 'pathString' must be a string, not " + typeof pathString

// Split a filename into [root, dir, basename, ext], unix version

@@ -66,3 +66,3 @@ // 'root' is just a slash, or nothing.

posix.parse = function(pathString) {
if (!util.isString(pathString)) {
if (typeof pathString !== 'string') {
throw new TypeError(

@@ -69,0 +69,0 @@ "Parameter 'pathString' must be a string, not " + typeof pathString

{
"name": "path-parse",
"version": "1.0.1",
"version": "1.0.2",
"description": "Node.js 0.11.15 path.parse() ponyfill",

@@ -5,0 +5,0 @@ "main": "index.js",

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