Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ This plugin does not have any dependencies beyond Moment.js itself, and may be u

---

## About This Fork

The files test/vendor/jquery.js and test/vender/moment.js contain vulnerabilities that are reported by <a href="https://owasp.org/www-project-dependency-check/">OWASP Dependency-Check</a>. Actually, the test folder is useless in the npm lib (good to develop, but not on build).

There is a <a href="https://github.com/jsmreese/moment-duration-format/pull/136">pull request</a> on the <a href="https://github.com/jsmreese/moment-duration-format.git">origin project</a>. Unfortunately, the origin project is not under-maintained.

Therefore, I created this fork to add the file .npmignore and ignore the test folder from npm registry.

---

## Formatting Numbers and Testing

Where it is available and functional, this plugin uses either `Intl.NumberFormat#format` or `Number#toLocaleString` to render formatted numerical output. Unfortunately, many environments do not fully implement the full suite of options in their respective specs, and some provide a buggy implementation.
Expand Down
12 changes: 6 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "moment-duration-format",
"version": "2.3.2",
"description": "A moment.js plugin for formatting durations.",
"name": "kp-moment-duration-format",
"version": "2.3.2-kp",
"description": "This is a fork of the project jsmreese/moment-duration-format. A moment.js plugin for formatting durations.",
"main": "lib/moment-duration-format.js",
"repository": {
"type": "git",
"url": "git://github.com/jsmreese/moment-duration-format.git"
"url": "https://github.com/albertwangnz/kp-moment-duration-format.git"
},
"authors": [
"John Madhavan-Reese <jsmreese@gmail.com>"
"Albert Wang <albertylw@gmail.com>"
],
"keywords": [
"moment",
Expand All @@ -22,5 +22,5 @@
"bower_components",
"test"
],
"homepage": "https://github.com/jsmreese/moment-duration-format"
"homepage": "https://github.com/albertwangnz/kp-moment-duration-format"
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "moment-duration-format",
"version": "2.3.2",
"description": "A moment.js plugin for formatting durations.",
"name": "kp-moment-duration-format",
"version": "2.3.2-kp",
"description": "This is a fork of the project jsmreese/moment-duration-format. A moment.js plugin for formatting durations.",
"main": "lib/moment-duration-format.js",
"repository": {
"type": "git",
"url": "git://github.com/jsmreese/moment-duration-format.git"
"url": "https://github.com/albertwangnz/kp-moment-duration-format.git"
},
"authors": [
"John Madhavan-Reese <jsmreese@gmail.com>"
"Albert Wang <albertylw@gmail.com>"
],
"keywords": [
"moment",
Expand All @@ -17,7 +17,7 @@
],
"license": "MIT",
"bugs": {
"url": "https://github.com/jsmreese/moment-duration-format/issues"
"url": "https://github.com/albertwangnz/kp-moment-duration-format/issues"
},
"homepage": "https://github.com/jsmreese/moment-duration-format"
"homepage": "https://github.com/albertwangnz/kp-moment-duration-format"
}