path-ends-with
Advanced tools
Comparing version 0.2.2 to 0.2.3
10
index.js
@@ -7,4 +7,4 @@ 'use strict'; | ||
var path = require('path'); | ||
var endsWith = require('ends-with'); | ||
var normalize = require('normalize-path'); | ||
@@ -15,8 +15,8 @@ /** | ||
* @param {String} `filepath` | ||
* @param {String} `str` | ||
* @param {String} `string` | ||
* @return {Boolean} | ||
*/ | ||
module.exports = function(fp, string) { | ||
return endsWith(path.normalize(fp), path.normalize(string)); | ||
}; | ||
module.exports = function(fp, str) { | ||
return endsWith(normalize(fp, false), normalize(str, false)); | ||
}; |
{ | ||
"name": "path-ends-with", | ||
"description": "Return `true` if a file path ends with the given string/suffix.", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"homepage": "https://github.com/jonschlinkert/path-ends-with", | ||
@@ -12,3 +12,5 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"license": "MIT", | ||
"files": ["index.js"], | ||
"files": [ | ||
"index.js" | ||
], | ||
"main": "index.js", | ||
@@ -23,3 +25,4 @@ "engines": { | ||
"dependencies": { | ||
"ends-with": "^0.2.0" | ||
"ends-with": "^0.2.0", | ||
"normalize-path": "^2.0.0" | ||
}, | ||
@@ -67,2 +70,2 @@ "devDependencies": { | ||
} | ||
} | ||
} |
@@ -85,2 +85,2 @@ # path-ends-with [![NPM version](https://badge.fury.io/js/path-ends-with.svg)](http://badge.fury.io/js/path-ends-with) [![Build Status](https://travis-ci.org/jonschlinkert/path-ends-with.svg)](https://travis-ci.org/jonschlinkert/path-ends-with) | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 04, 2015._ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 10, 2015._ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6308
16
0
2
+ Addednormalize-path@^2.0.0
+ Addednormalize-path@2.1.1(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)