Fix typo and update dependencies (#7077)

* Fix typo and update dependencies
* Update `isColorInstance`
This commit is contained in:
Jukka Kurkela 2020-02-10 03:14:38 +02:00 committed by GitHub
parent 92b2f7908e
commit 44a624f2d1
4 changed files with 1885 additions and 503 deletions

2360
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -30,12 +30,12 @@
"dist/*.js"
],
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"babel-preset-es2015-rollup": "^3.0.0",
"clean-css": "^4.2.1",
"coveralls": "^3.0.0",
"eslint": "^6.0.0",
"clean-css": "^4.2.3",
"coveralls": "^3.0.9",
"eslint": "^6.8.0",
"eslint-config-chartjs": "^0.2.0",
"eslint-plugin-html": "^6.0.0",
"gitbook-cli": "^2.3.2",
@ -56,25 +56,25 @@
"karma-chrome-launcher": "^3.0.0",
"karma-coverage": "^2.0.0",
"karma-edge-launcher": "^0.4.2",
"karma-firefox-launcher": "^1.0.1",
"karma-firefox-launcher": "^1.3.0",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"karma-rollup-preprocessor": "^7.0.0",
"karma-jasmine-html-reporter": "^1.5.2",
"karma-rollup-preprocessor": "^7.0.3",
"karma-safari-private-launcher": "^1.0.0",
"merge-stream": "^1.0.1",
"moment": "^2.10.2",
"pixelmatch": "^5.0.0",
"rollup": "^1.0.0",
"rollup": "^1.31.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-istanbul": "^2.0.1",
"rollup-plugin-node-resolve": "^5.0.0",
"rollup-plugin-terser": "^5.1.3",
"rollup-plugin-terser": "^5.2.0",
"typedoc": "^0.16.9",
"typescript": "^3.7.5",
"yargs": "^14.0.0"
"yargs": "^14.2.2"
},
"dependencies": {
"@kurkle/color": "^0.1.1"
"@kurkle/color": "^0.1.3"
}
}

View File

@ -614,7 +614,7 @@ class Chart {
}
for (let i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {
me.updateDataset(i, isFunction ? mode({datesetIndex: i}) : mode);
me.updateDataset(i, isFunction ? mode({datasetIndex: i}) : mode);
}
plugins.notify(me, 'afterDatasetsUpdate');

View File

@ -16,7 +16,7 @@ describe('Core helper tests', function() {
describe('Color helper', function() {
function isColorInstance(obj) {
return typeof obj === 'object' && Object.prototype.hasOwnProperty.call(obj, 'valid');
return typeof obj === 'object' && obj.valid;
}
it('should return a color when called with a color', function() {