Socket
Socket
Sign inDemoInstall

path-parse

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc