Skip to content

Update dependencies. #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jsdom.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import jsdom from 'jsdom';

const window = new jsdom.JSDOM().window;
const window = new jsdom.JSDOM('', { url: 'http://localhost/' }).window;

Object.keys(window).forEach((property) => {
if (typeof global[property] === 'undefined') {
2 changes: 1 addition & 1 deletion lib/convertTime.js
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});

exports.default = function (seconds, timeFormats) {
if (isNaN(seconds)) {
if (Number.isNaN(seconds)) {
return '';
}
var myTime = new Date(seconds * 1000);
43 changes: 21 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-jplayer-utils",
"version": "3.1.5",
"version": "3.1.6",
"description": "Utils for react-jPlayer and add-ons",
"author": "Martin Dawson <[email protected]>",
"repository": {
@@ -58,41 +58,40 @@
"devDependencies": {
"babel-cli": "^6.6.4",
"babel-core": "6",
"babel-eslint": "^7.1.1",
"babel-loader": "^7.1.2",
"babel-plugin-istanbul": "^4.0.0",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.4",
"babel-plugin-istanbul": "^5.1.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-2": "^6.22.0",
"babel-register": "^6.24.0",
"babili-webpack-plugin": "^0.1.2",
"coveralls": "^2.11.16",
"coveralls": "^3.0.2",
"cross-env": "^5.0.5",
"david": "^11.0.0",
"editorconfig": "^0.14.1",
"enzyme": "^2.2.0",
"eslint": "^4.3.0",
"eslint-config-airbnb": "^15.1.0",
"editorconfig": "^0.15.2",
"enzyme": "^3.8.0",
"eslint": "^5.10.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.1.0",
"expect": "^21.0.2",
"expect": "^23.6.0",
"extract-text-webpack-plugin": "^3.0.0",
"jsdom": "^11.2.0",
"mocha": "^3.2.0",
"nyc": "^11.2.1",
"jsdom": "^13.1.0",
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"pre-commit": "^1.2.2",
"react": "^15.0.0",
"react-addons-test-utils": "^15.4.1",
"react-dom": "^15.0.0",
"redux": "^3.6.0",
"react": "^16.6.3",
"react-dom": "^16.6.3",
"redux": "^4.0.1",
"rimraf": "^2.6.1",
"webpack": "^3.5.6",
"webpack-dev-server": "^2.4.1"
"webpack": "^4.27.1",
"webpack-dev-server": "^3.1.10"
},
"dependencies": {
"prop-types": "^15.5.8",
"react-redux": "^5.0.4",
"recompose": "^0.25.0"
"react-redux": "^6.0.0",
"recompose": "^0.30.0"
}
}
2 changes: 1 addition & 1 deletion src/convertTime.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default (seconds, timeFormats) => {
if (isNaN(seconds)) {
if (Number.isNaN(seconds)) {
return '';
}
const myTime = new Date(seconds * 1000);
Loading