aboutsummaryrefslogtreecommitdiff
path: root/node_modules/remove-trailing-separator
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/remove-trailing-separator')
-rw-r--r--node_modules/remove-trailing-separator/history.md6
-rw-r--r--node_modules/remove-trailing-separator/index.js2
-rw-r--r--node_modules/remove-trailing-separator/package.json2
-rw-r--r--node_modules/remove-trailing-separator/readme.md6
4 files changed, 10 insertions, 6 deletions
diff --git a/node_modules/remove-trailing-separator/history.md b/node_modules/remove-trailing-separator/history.md
index a9ca22235..d379cccc2 100644
--- a/node_modules/remove-trailing-separator/history.md
+++ b/node_modules/remove-trailing-separator/history.md
@@ -1,9 +1,13 @@
## History
+### 1.0.2 - 07th Jun 2017
+
+- [8e13ecb](https://github.com/darsain/remove-trailing-separator/commit/8e13ecbfd7b9f5fdf97c5d5ff923e4718b874e31) ES5 compatibility
+
### 1.0.1 - 25th Sep 2016
- [b78606d](https://github.com/darsain/remove-trailing-separator/commit/af90b4e153a4527894741af6c7005acaeb78606d) Remove backslash only on win32 systems
### 1.0.0 - 24th Sep 2016
-Initial release. \ No newline at end of file
+Initial release.
diff --git a/node_modules/remove-trailing-separator/index.js b/node_modules/remove-trailing-separator/index.js
index 1ed8e932d..9f0de5334 100644
--- a/node_modules/remove-trailing-separator/index.js
+++ b/node_modules/remove-trailing-separator/index.js
@@ -1,4 +1,4 @@
-const isWin = process.platform === 'win32';
+var isWin = process.platform === 'win32';
module.exports = function (str) {
while (endsInSeparator(str)) {
diff --git a/node_modules/remove-trailing-separator/package.json b/node_modules/remove-trailing-separator/package.json
index 70d945551..8d4125de3 100644
--- a/node_modules/remove-trailing-separator/package.json
+++ b/node_modules/remove-trailing-separator/package.json
@@ -1,6 +1,6 @@
{
"name": "remove-trailing-separator",
- "version": "1.0.1",
+ "version": "1.0.2",
"description": "Removes separators from the end of the string.",
"main": "index.js",
"files": [
diff --git a/node_modules/remove-trailing-separator/readme.md b/node_modules/remove-trailing-separator/readme.md
index 8c643d49f..612fe3de4 100644
--- a/node_modules/remove-trailing-separator/readme.md
+++ b/node_modules/remove-trailing-separator/readme.md
@@ -28,8 +28,8 @@ removeTrailingSeparator('') // ''
## Backslash, or win32 separator
-`\` is considered a separator only on WIN32 systems. All UNIX compliant systems
-see backslash as a valid file name character, so it would break UNIX compliance
+`\` is considered a separator only on WIN32 systems. All POSIX compliant systems
+see backslash as a valid file name character, so it would break POSIX compliance
to remove it there.
In practice, this means that this code will return different things depending on
@@ -48,4 +48,4 @@ removeTrailingSeparator('\\foo\\')
[appveyor-url]: https://ci.appveyor.com/project/darsain/remove-trailing-separator/branch/master
[appveyor-img]: https://ci.appveyor.com/api/projects/status/wvg9a93rrq95n2xl/branch/master?svg=true
[coveralls-url]: https://coveralls.io/github/darsain/remove-trailing-separator?branch=master
-[coveralls-img]: https://coveralls.io/repos/github/darsain/remove-trailing-separator/badge.svg?branch=master \ No newline at end of file
+[coveralls-img]: https://coveralls.io/repos/github/darsain/remove-trailing-separator/badge.svg?branch=master