Merge pull request #202 from AnalyticalGraphicsInc/fix-eslint

Fix eslint and update node modules
This commit is contained in:
Sean Lilley 2019-06-25 15:19:55 -04:00 committed by GitHub
commit e1f60b83b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 17 deletions

View File

@ -274,7 +274,7 @@ function cloneMaterial(material, removeTextures) {
}
const clonedObject = {};
for (const name in material) {
if (material.hasOwnProperty(name)) {
if (Object.prototype.hasOwnProperty.call(material, name)) {
clonedObject[name] = cloneMaterial(material[name], removeTextures);
}
}
@ -283,7 +283,7 @@ function cloneMaterial(material, removeTextures) {
function resolveTextures(gltf, material) {
for (const name in material) {
if (material.hasOwnProperty(name)) {
if (Object.prototype.hasOwnProperty.call(material, name)) {
const property = material[name];
if (property instanceof Texture) {
material[name] = getTexture(gltf, property);

View File

@ -26,25 +26,25 @@
"node": ">=4.0.0"
},
"dependencies": {
"bluebird": "^3.5.3",
"cesium": "^1.55.0",
"fs-extra": "^8.0.0",
"jpeg-js": "^0.3.4",
"mime": "^2.4.0",
"pngjs": "^3.3.3",
"yargs": "^13.2.2"
"bluebird": "^3.5.5",
"cesium": "^1.58.1",
"fs-extra": "^8.0.1",
"jpeg-js": "^0.3.5",
"mime": "^2.4.4",
"pngjs": "^3.4.0",
"yargs": "^13.2.4"
},
"devDependencies": {
"cloc": "^2.4.0",
"coveralls": "^3.0.3",
"eslint": "^5.15.1",
"cloc": "^2.5.0",
"coveralls": "^3.0.4",
"eslint": "^6.0.0",
"eslint-config-cesium": "^7.0.0",
"gulp": "^4.0.0",
"jasmine": "^3.3.1",
"gulp": "^4.0.2",
"jasmine": "^3.4.0",
"jasmine-spec-reporter": "^4.2.1",
"jsdoc": "^3.5.5",
"nyc": "^14.0.0",
"open": "^6.0.0",
"jsdoc": "^3.6.2",
"nyc": "^14.1.1",
"open": "^6.3.0",
"requirejs": "^2.3.6"
},
"scripts": {