diff --git a/.npmignore b/.npmignore
new file mode 100644
index 0000000..30d74d2
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1 @@
+test
\ No newline at end of file
diff --git a/README.md b/README.md
index 5417279..41b508a 100644
--- a/README.md
+++ b/README.md
@@ -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 OWASP Dependency-Check. Actually, the test folder is useless in the npm lib (good to develop, but not on build).
+
+There is a pull request on the origin project. 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.
diff --git a/bower.json b/bower.json
index 4fd2b00..d7ca340 100644
--- a/bower.json
+++ b/bower.json
@@ -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 "
+ "Albert Wang "
],
"keywords": [
"moment",
@@ -22,5 +22,5 @@
"bower_components",
"test"
],
- "homepage": "https://github.com/jsmreese/moment-duration-format"
+ "homepage": "https://github.com/albertwangnz/kp-moment-duration-format"
}
diff --git a/package.json b/package.json
index 029c2cb..b662351 100644
--- a/package.json
+++ b/package.json
@@ -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 "
+ "Albert Wang "
],
"keywords": [
"moment",
@@ -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"
}