Socket
Socket
Sign inDemoInstall

moment-parseplus

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.3

10

CHANGELOG.md
## Change Log
### v1.1.3 on 2018-07-10
- Updated dependencies and tested working with moment 2.24
- Switch from istanbul to nyc
### v1.1.2 on 2018-09-21
- Updated dependencies and tested working with moment 2.21
- Support timezone abbreviations in parentheses following timezone offset; e.g. `GMT+0000 (UTC)`
### v1.1.1 on 2018-03-14

@@ -4,0 +14,0 @@

21

package.json
{
"name": "moment-parseplus",
"version": "1.1.1",
"version": "1.1.3",
"description": "Date parsing plugin for momentjs",

@@ -10,8 +10,7 @@ "main": "parseplus.js",

"scripts": {
"test": "./node_modules/.bin/mocha --reporter spec",
"test": "npx mocha --reporter spec",
"test-browser": "open test/index.html",
"watch": "./node_modules/.bin/mocha --reporter dot --watch",
"coverage": "node ./node_modules/istanbul/lib/cli.js cover node_modules/.bin/_mocha -- -- test/**/*.spec.js",
"view-coverage": "open ./coverage/lcov-report/index.html",
"clean-install": "rm -Rf node_modules && npm install"
"watch": "npx mocha --reporter dot --watch",
"coverage": "npx nyc mocha --include=test/**/*.spec.js && npx nyc report --reporter=lcov",
"view-coverage": "open ./coverage/lcov-report/index.html"
},

@@ -37,10 +36,10 @@ "repository": {

"dependencies": {
"moment": "^2.21.0"
"moment": "^2.24.0"
},
"devDependencies": {
"chai": "^4.1.2",
"istanbul": "^0.4.5",
"mocha": "^2.5.3",
"requirejs": "^2.3.5"
"chai": "^4.2.0",
"mocha": "^6.1.4",
"nyc": "^14.1.1",
"requirejs": "^2.3.6"
}
}

@@ -168,3 +168,3 @@ (function (root, factory) {

TIMEZONE: "[+-][01]\\d\\:?[0-5]\\d",
TZABBR: "[A-Z]{3,10}",
TZABBR: "\\(?[A-Z]{3,10}\\)?",
H24: "[01]\\d|2[0-3]",

@@ -171,0 +171,0 @@ H12: "0?[1-9]|1[012]",

# moment-parseplus
[![Build Status](https://travis-ci.org/kensnyder/moment-parseplus.svg?branch=master&v=1.1.1)](https://travis-ci.org/kensnyder/moment-parseplus)
[![Code Coverage](https://codecov.io/gh/kensnyder/moment-parseplus/branch/master/graph/badge.svg?v=1.1.1)](https://codecov.io/gh/kensnyder/moment-parseplus)
[![MIT License](https://img.shields.io/npm/l/express.svg?v=1.1.1)](https://opensource.org/licenses/MIT)
[![Build Status](https://travis-ci.org/kensnyder/moment-parseplus.svg?branch=master&v=1.1.3)](https://travis-ci.org/kensnyder/moment-parseplus)
[![Code Coverage](https://codecov.io/gh/kensnyder/moment-parseplus/branch/master/graph/badge.svg?v=1.1.3)](https://codecov.io/gh/kensnyder/moment-parseplus)
[![MIT License](https://img.shields.io/npm/l/express.svg?v=1.1.3)](https://opensource.org/licenses/MIT)

@@ -56,2 +56,4 @@ An extensible date parsing plugin for [momentjs](http://momentjs.com)

- 22:00
- 20:42:42 GMT+0000
- 20:42:42 GMT+0000 (UTC)

@@ -58,0 +60,0 @@ #### US Short Date

@@ -33,2 +33,6 @@ var moment = require('moment');

});
it("should parse times like `4.3.2012 20:42:42 GMT+0000 (UTC)`", function () {
var input = '4.3.2012 20:42:42 GMT+0000 (UTC)';
expect(moment(input).format()).to.equal(moment(input, 'D.M.YYYY HH:mm:ss Z').format());
});
it("should parse times like `March 24th, 2012 20:42:42 GMT+00:00`", function () {

@@ -35,0 +39,0 @@ var input = 'March 24th, 2012 20:42:42 GMT+00:00';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc