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.3.0 to 2.3.1

locale-data/ja-JA.json

1

locale-data/index.js

@@ -8,2 +8,3 @@ 'use strict'

locale.fr = require('./fr-FR.json')
locale.ja = require('./ja-JA.json')

@@ -10,0 +11,0 @@ alias('en', 'AU', 'CA', 'GB', 'NZ', 'SA', 'US')

10

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

@@ -37,11 +37,11 @@ "main": "index.js",

"dependencies": {
"nearley": "^2.11.0",
"randexp": "^0.4.6"
"nearley": "^2.11.1",
"randexp": "^0.4.8"
},
"devDependencies": {
"chai": "^4.1.2",
"eslint": "^4.15.0",
"eslint": "^4.17.0",
"istanbul": "^0.4.3",
"mocha": "^4.1.0"
"mocha": "^5.0.1"
}
}

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

// Generated automatically by nearley
// Generated automatically by nearley, version 2.11.1
// http://github.com/Hardmath123/nearley
(function () {
function id(x) {return x[0]; }
function id(x) { return x[0]; }

@@ -254,6 +254,2 @@ const {

{"name": "L3i", "symbols": ["L3S", {"literal":"/"}, "L3S"], "postprocess": interval(3)},
{"name": "L3i", "symbols": ["L3S", {"literal":"/"}, "L3i_date"], "postprocess": interval(3)},
{"name": "L3i", "symbols": ["L3i_date", {"literal":"/"}, "L3S"], "postprocess": interval(3)},
{"name": "L3i_date", "symbols": ["date_time"], "postprocess": id},
{"name": "L3i_date", "symbols": ["L2i_date"], "postprocess": id},
{"name": "L3S", "symbols": ["L1S"], "postprocess": id},

@@ -260,0 +256,0 @@ {"name": "L3S", "symbols": ["L2S"], "postprocess": id},

@@ -539,13 +539,7 @@ 'use strict'

it('YYYY/YYYY-SS', () =>
expect(p('2018/2018-23', { level: 3 }))
.to.be.an.interval.through([2018, 23]).at.level(3))
it('YYYY-SS/YYYY-MM-DD', () =>
expect(p('2018-21/2017-01-01', { level: 3 }))
.to.be.an.interval.from([2018, 21]).at.level(3))
it('YYYY-01?/YYYY-SS', () =>
expect(p('2018-01?/2018-23', { level: 3 }))
.to.be.an.interval.through([2018, 23]).at.level(3))
it('rejects mixed intervals', () => {
expect(() => p('2018/2018-23', { level: 3 })).to.be.rejected
expect(() => p('2018-21/2017-01-01', { level: 3 })).to.be.rejected
expect(() => p('2018-01?/2018-23', { level: 3 })).to.be.rejected
})
})

@@ -552,0 +546,0 @@

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