@js-joda/core
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -6,3 +6,10 @@ Changelog | ||
### 3.1.0 | ||
* Fix bitwise or #439 by @pithu | ||
* Tests for TS declaration run with ts-node #423 by InExtremaRes | ||
* dependabot Bump elliptic from 6.5.2 to 6.5.3 | ||
* dependabot Bump lodash from 4.17.15 to 4.17.19 | ||
* dependabot Bump npm-registry-fetch from 4.0.2 to 4.0.5 | ||
### 3.0.0 | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "@js-joda/core", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "a date and time library for javascript", | ||
@@ -27,3 +27,3 @@ "repository": { | ||
"test-ci": "npm run build-dist && npm run test && npm run test-browser -- --browsers \"Firefox,PhantomJS\" && npm run test-ts-definitions && npm run test-coverage", | ||
"test-ts-definitions": "tsc -p test/typescript_definitions/tsconfig.json", | ||
"test-ts-definitions": "TS_NODE_PROJECT='test/typescript_definitions/tsconfig.json' NODE_ENV=test mocha --timeout 5000 --require ts-node/register ./test/typescript_definitions/*.ts", | ||
"build-dist": "npx rollup -c rollup.config.js", | ||
@@ -50,2 +50,4 @@ "build-md-toc": "./node_modules/.bin/markdown-toc -i CheatSheet.md", | ||
"@babel/register": "^7.7.4", | ||
"@types/chai": "^4.2.11", | ||
"@types/mocha": "^7.0.2", | ||
"babel-loader": "^8.0.6", | ||
@@ -70,2 +72,3 @@ "babel-plugin-istanbul": "^5.2.0", | ||
"rollup-plugin-uglify": "^6.0.3", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^3.7.2", | ||
@@ -72,0 +75,0 @@ "webpack": "^4.41.2" |
@@ -401,3 +401,3 @@ /** | ||
static _createSecondsNanos(seconds = 0, nanoAdjustment = 0) { | ||
if ((seconds | nanoAdjustment) === 0) { | ||
if (seconds === 0 && nanoAdjustment === 0) { | ||
return Duration.ZERO; | ||
@@ -446,3 +446,3 @@ } | ||
isZero() { | ||
return (this._seconds | this._nanos) === 0; | ||
return this._seconds === 0 && this._nanos === 0; | ||
} | ||
@@ -706,3 +706,3 @@ | ||
requireNonNull(nanosToAdd, 'nanosToAdd'); | ||
if ((secondsToAdd | nanosToAdd) === 0) { | ||
if (secondsToAdd === 0 && nanosToAdd === 0) { | ||
return this; | ||
@@ -709,0 +709,0 @@ } |
@@ -627,3 +627,3 @@ /** | ||
_plus(secondsToAdd, nanosToAdd) { | ||
if ((secondsToAdd | nanosToAdd) === 0) { | ||
if (secondsToAdd === 0 && nanosToAdd === 0) { | ||
return this; | ||
@@ -630,0 +630,0 @@ } |
@@ -283,3 +283,3 @@ /** | ||
LocalTime._validate(_hour, _minute, _second, _nanoOfSecond); | ||
if ((_minute | _second | _nanoOfSecond) === 0) { | ||
if (_minute === 0 && _second === 0 && _nanoOfSecond === 0) { | ||
if (!LocalTime.HOURS[_hour]) { | ||
@@ -286,0 +286,0 @@ this._hour = _hour; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
3974693
28