Comparing version 2.3.0 to 2.3.1
@@ -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') |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50
3528
194229
Updatednearley@^2.11.1
Updatedrandexp@^0.4.8