Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

edtf

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edtf - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

2.6.0 / 2019-03-15
==================
* Accept ISO times with missing seconds
2.5.0 / 2019-01-23

@@ -2,0 +6,0 @@ ==================

6

package.json
{
"name": "edtf",
"version": "2.5.0",
"version": "2.6.0",
"description": "Extended Date Time Format (EDTF) / ISO 8601-2 Parser and Library",

@@ -42,6 +42,6 @@ "main": "index.js",

"chai": "^4.2.0",
"eslint": "^5.12.0",
"eslint": "^5.15.1",
"istanbul": "^0.4.3",
"mocha": "^5.2.0"
"mocha": "^6.0.2"
}
}

@@ -60,4 +60,8 @@ // Generated automatically by nearley, version 2.16.0

{"name": "time", "symbols": ["hours", {"literal":":"}, "minutes", {"literal":":"}, "seconds", "milliseconds"], "postprocess": pick(0, 2, 4, 5)},
{"name": "time$string$1", "symbols": [{"literal":"2"}, {"literal":"4"}, {"literal":":"}, {"literal":"0"}, {"literal":"0"}, {"literal":":"}, {"literal":"0"}, {"literal":"0"}], "postprocess": function joiner(d) {return d.join('');}},
{"name": "time", "symbols": ["time$string$1"], "postprocess": () => [24, 0, 0]},
{"name": "time", "symbols": ["hours", {"literal":":"}, "minutes"], "postprocess": pick(0, 2)},
{"name": "time$string$1", "symbols": [{"literal":"2"}, {"literal":"4"}, {"literal":":"}, {"literal":"0"}, {"literal":"0"}], "postprocess": function joiner(d) {return d.join('');}},
{"name": "time$ebnf$1$string$1", "symbols": [{"literal":":"}, {"literal":"0"}, {"literal":"0"}], "postprocess": function joiner(d) {return d.join('');}},
{"name": "time$ebnf$1", "symbols": ["time$ebnf$1$string$1"], "postprocess": id},
{"name": "time$ebnf$1", "symbols": [], "postprocess": function(d) {return null;}},
{"name": "time", "symbols": ["time$string$1", "time$ebnf$1"], "postprocess": () => [24, 0, 0]},
{"name": "hours", "symbols": ["d00_23"], "postprocess": num},

@@ -64,0 +68,0 @@ {"name": "minutes", "symbols": ["d00_59"], "postprocess": num},

@@ -44,2 +44,4 @@ 'use strict'

.to.have.ymd([1900, 0, 1]).and.hms([0, 0, 0])
expect(edtf('1899-12-31T24:00Z'))
.to.have.ymd([1900, 0, 1]).and.hms([0, 0, 0])

@@ -66,2 +68,12 @@ expect(edtf('-0001-12-31T23:59:59Z'))

it('YYYY-MM-DDTHH:MM', () =>
expect(edtf('2014-12-08T11:46'))
.to.have.ymd([2014, 11, 8]).and.hms([11 + H, 46 + M, 0]))
it('YYYY-MM-DDTHH:MMZ', () =>
expect(edtf('2014-12-08T11:46Z'))
.to.have.ymd([2014, 11, 8]).and.hms([11, 46, 0]))
it('YYYY-MM-DDTHH:MM+02:00', () =>
expect(edtf('2014-12-08T11:46-02:00'))
.to.have.ymd([2014, 11, 8]).and.hms([9, 46, 0]))
it('YYYY-MM-DDTHH:MM:SS.sss', () =>

@@ -68,0 +80,0 @@ expect(edtf('2014-12-08T11:46:42.123'))

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc