Comparing version 1.0.1 to 1.0.2
'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", |
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
7993
143