Socket
Socket
Sign inDemoInstall

js-joda

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-joda - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

CHANGELOG.md

47

package.json
{
"name": "js-joda",
"version": "1.1.8",
"version": "1.1.9",
"description": "a date and time library for javascript",

@@ -10,8 +10,10 @@ "repository": {

"main": "dist/js-joda.js",
"typings": "dist/js-joda.d.ts",
"scripts": {
"prepublish": "npm run build-dist",
"test": "./node_modules/.bin/mocha --compilers js:babel-core/register ./test/*Test.js ./test/**/*Test.js ./test/**/**/*Test.js",
"test-coverage": "COVERAGE=1 ./node_modules/.bin/babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- ./test/*Test.js ./test/**/*Test.js ./test/**/**/*Test.js",
"test-browser": "./node_modules/.bin/karma start --single-run",
"test-ci": "npm run build-dist && npm run test && npm run test-browser -- --browsers \"Firefox,PhantomJS\" && npm run build-esdoc && npm run test-coverage",
"test": "./node_modules/.bin/mocha --timeout 5000 --compilers js:babel-core/register ./test/*Test.js ./test/**/*Test.js ./test/**/**/*Test.js",
"test-coverage": "COVERAGE=1 ./node_modules/.bin/babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --timeout 5000 --reporter progress ./test/*Test.js ./test/**/*Test.js ./test/**/**/*Test.js",
"test-browser": "./node_modules/.bin/karma start --reporters=progress --single-run",
"test-ci": "npm run build-dist && npm run test && npm run test-browser -- --browsers \"Firefox,PhantomJS\" && npm run test-ts-definitions && npm run build-esdoc && npm run test-coverage",
"test-ts-definitions": "tsc --noImplicitAny --pretty test/typescript_defintions/js-joda-tests.ts",
"build-esdoc": "./node_modules/.bin/esdoc -c esdoc.json",

@@ -31,26 +33,27 @@ "build-dist-es5": "./node_modules/.bin/babel src -d build/es5",

"devDependencies": {
"babel-cli": "^6.9.0",
"babel-core": "^6.9.0",
"babel-cli": "^6.11.4",
"babel-core": "^6.13.2",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"babel-preset-es2015": "^6.13.2",
"babel-preset-es2015-loose": "^7.0.0",
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"esdoc": "0.4.6",
"eslint": "^2.10.2",
"eslint-config-standard": "^5.3.1",
"eslint-plugin-promise": "^1.1.0",
"eslint-plugin-standard": "^1.3.2",
"coveralls": "^2.11.12",
"esdoc": "^0.4.8",
"eslint": "^3.2.2",
"eslint-config-standard": "^6.0.0",
"eslint-plugin-promise": "^2.0.1",
"eslint-plugin-standard": "^2.0.0",
"isparta": "^4.0.0",
"karma": "^0.13.22",
"karma": "^1.1.2",
"karma-chai-plugins": "^0.7.0",
"karma-chrome-launcher": "^1.0.1",
"karma-chrome-launcher": "^2.0.0",
"karma-firefox-launcher": "^1.0.0",
"karma-mocha": "^1.0.1",
"karma-phantomjs-launcher": "^1.0.0",
"karma-mocha": "^1.1.1",
"karma-phantomjs-launcher": "^1.0.1",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^1.7.0",
"markdown-toc": "^0.12.10",
"mocha": "^2.4.5",
"phantomjs-prebuilt": "^2.1.7",
"karma-webpack": "^1.8.0",
"markdown-toc": "^0.12.16",
"mocha": "^3.0.2",
"phantomjs-prebuilt": "^2.1.10",
"typescript": "^1.8.10",
"webpack": "^1.13.1"

@@ -57,0 +60,0 @@ },

@@ -538,12 +538,12 @@ /**

}
var unitDur = unit.duration();
let unitDur = unit.duration();
if (unitDur.seconds() > LocalTime.SECONDS_PER_DAY) {
throw new DateTimeException('Unit is too large to be used for truncation');
}
var dur = unitDur.toNanos();
let dur = unitDur.toNanos();
if (MathUtil.intMod(LocalTime.NANOS_PER_DAY, dur) !== 0) {
throw new DateTimeException('Unit must divide into a standard day without remainder');
}
var nod = MathUtil.intMod(this._seconds, LocalTime.SECONDS_PER_DAY) * LocalTime.NANOS_PER_SECOND + this._nanos;
var result = MathUtil.intDiv(nod, dur) * dur;
let nod = MathUtil.intMod(this._seconds, LocalTime.SECONDS_PER_DAY) * LocalTime.NANOS_PER_SECOND + this._nanos;
let result = MathUtil.intDiv(nod, dur) * dur;
return this.plusNanos(result - nod);

@@ -550,0 +550,0 @@ }

@@ -1,3 +0,3 @@

//! @copyright (c) 2016, Philipp Thuerwaechter & Pattrick Hueper
//! @copyright (c) 2015-2016, Philipp Thuerwaechter, Pattrick Hueper, js-joda contributors
//! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
//! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)

@@ -155,3 +155,3 @@ /**

* @param {ZoneId} [zone=ZoneId.systemDefault()], defaults to ZoneId.systemDefault()
* @returns {LocalDate} the current date, not null
* @returns {LocalTime} the current date, not null
*/

@@ -158,0 +158,0 @@ static ofInstant(instant, zone=ZoneId.systemDefault()){

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

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