Skip to content

Commit

Permalink
v4.6.4
Browse files Browse the repository at this point in the history
chore: Updated npm deps.
chore: Fixed eslint warnings around hasOwnProperty().
  • Loading branch information
cb1kenobi committed Jul 9, 2019
1 parent 17b75ec commit cbcc229
Show file tree
Hide file tree
Showing 5 changed files with 667 additions and 786 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2016-2018 Chris Barber and Contributors
Copyright (c) 2016-2019 Chris Barber and Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gawk",
"version": "4.6.3",
"version": "4.6.4",
"description": "Observable JavaScript object model",
"main": "./dist/index.js",
"author": "Chris Barber <[email protected]> (https://github.com/cb1kenobi)",
Expand All @@ -24,38 +24,38 @@
},
"dependencies": {
"fast-deep-equal": "^2.0.1",
"source-map-support": "^0.5.9"
"source-map-support": "^0.5.12"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
"@babel/register": "^7.0.0",
"ansi-colors": "^3.2.3",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.4",
"babel-plugin-istanbul": "^5.1.0",
"@babel/core": "^7.5.0",
"@babel/plugin-transform-modules-commonjs": "^7.5.0",
"@babel/register": "^7.4.4",
"ansi-colors": "^4.1.1",
"babel-eslint": "^10.0.2",
"babel-loader": "^8.0.6",
"babel-plugin-istanbul": "^5.1.4",
"chai": "^4.2.0",
"coveralls": "^3.0.2",
"coveralls": "^3.0.4",
"esdoc": "^1.1.0",
"esdoc-ecmascript-proposal-plugin": "^1.0.0",
"esdoc-standard-plugin": "^1.0.0",
"eslint": "^5.10.0",
"eslint": "^6.0.1",
"eslint-plugin-chai-expect": "^2.0.1",
"eslint-plugin-mocha": "^5.2.0",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-mocha": "^5.3.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-security": "^1.4.0",
"fancy-log": "^1.3.3",
"fs-extra": "^7.0.1",
"gulp": "^4.0.0",
"fs-extra": "^8.1.0",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-debug": "^4.0.0",
"gulp-eslint": "^5.0.0",
"gulp-load-plugins": "^1.5.0",
"gulp-eslint": "^6.0.0",
"gulp-load-plugins": "^2.0.0",
"gulp-plumber": "^1.2.1",
"gulp-sourcemaps": "^2.6.4",
"mocha": "^6.0.2",
"nyc": "^13.1.0",
"sinon": "^7.2.2",
"gulp-sourcemaps": "^2.6.5",
"mocha": "^6.1.4",
"nyc": "^14.1.1",
"sinon": "^7.3.2",
"sinon-chai": "^3.3.0"
},
"homepage": "https://github.com/cb1kenobi/gawk",
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function gawk(value, parent) {

let result = true;

if (target.hasOwnProperty(prop)) {
if (Object.prototype.hasOwnProperty.call(target, prop)) {
const parents = isGawked(target[prop]) && target[prop].__gawk__.parents;
if (parents) {
parents.delete(gawked);
Expand Down Expand Up @@ -301,7 +301,7 @@ function filterObject(gobj, filter) {

// find the value we're interested in
for (let i = 0, len = filter.length; obj && typeof obj === 'object' && i < len; i++) {
if (!obj.hasOwnProperty(filter[i])) {
if (!Object.prototype.hasOwnProperty.call(obj, filter[i])) {
found = false;
obj = undefined;
break;
Expand Down Expand Up @@ -515,7 +515,7 @@ export function set(dest, src, compareFn) {

// create a new dest object to copy the source into
const destValue = gawk(Array.isArray(srcValue) ? [] : {});
tmp[key] = walk(destValue, srcValue, !dest.hasOwnProperty(key));
tmp[key] = walk(destValue, srcValue, !Object.prototype.hasOwnProperty.call(dest, key));
}

// prune the existing object, then copy all the properties from our temp object
Expand Down
2 changes: 2 additions & 0 deletions test/test-object.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable no-prototype-builtins */

import gawk, { Gawk, isGawked } from '../dist/index';

import { EventEmitter } from 'events';
Expand Down
Loading

0 comments on commit cbcc229

Please sign in to comment.