chrono-node
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -15,3 +15,3 @@ { | ||
"license": "MIT", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"directories": { | ||
@@ -18,0 +18,0 @@ "source": "./src", |
@@ -48,3 +48,3 @@ # Chrono (v2) | ||
```javascript | ||
import * as chrono from 'chrono-node'; | ||
import chrono from 'chrono-node'; | ||
@@ -51,0 +51,0 @@ chrono.parseDate('An appointment on Sep 12-13'); |
@@ -16,3 +16,2 @@ import {Parser, ParsingContext} from "../../../chrono"; | ||
const STRICT_PATTERN = new RegExp('' + | ||
'(?<=\\W|^)' + | ||
'(?:within\\s*)?' + | ||
@@ -19,0 +18,0 @@ '(' + TIME_UNITS_PATTERN + ')' + |
@@ -23,5 +23,11 @@ import * as chrono from '../../src'; | ||
}) | ||
}); | ||
testSingleCase(chrono, '9:00 PST', new Date(2020,7-1,6), (result) => { | ||
expect(result.text).toBe('9:00 PST') | ||
expect(result.start.get('hour')).toBe(9) | ||
expect(result.start.get('minute')).toBe(0) | ||
expect(result.start.get('timezoneOffset')).toBe(-480) | ||
}) | ||
}); | ||
@@ -28,0 +34,0 @@ test('Test - Random text', function() { |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
230228
64
4810
1