Skip to content

Commit

Permalink
Upgrade development dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
VovanR committed May 17, 2020
1 parent 3817776 commit 084c34e
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 28 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
"keywords": [],
"dependencies": {},
"devDependencies": {
"ava": "^2.4.0",
"conventional-changelog-cli": "^2.0.28",
"cross-env": "^6.0.3",
"cz-conventional-changelog": "^3.0.2",
"gh-pages": "^2.1.1",
"husky": "^3.1.0",
"ava": "^3.8.2",
"conventional-changelog-cli": "^2.0.34",
"cross-env": "^7.0.2",
"cz-conventional-changelog": "^3.2.0",
"gh-pages": "^2.2.0",
"husky": "^4.2.5",
"mversion": "^1.13.0",
"nyc": "^14.1.1",
"xo": "^0.25.3"
"nyc": "^15.0.1",
"xo": "^0.30.0"
},
"peerDependencies": {},
"bugs": {
Expand Down
4 changes: 2 additions & 2 deletions src/createProp/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import createProp from '.';
const test = require('ava');
const createProp = require('.');

test('should create property with initial value', t => {
const name = createProp('Foo');
Expand Down
4 changes: 2 additions & 2 deletions src/getSettingByPath/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import getSettingByPath from '.';
const test = require('ava');
const getSettingByPath = require('.');

const settings = {
id: 'a',
Expand Down
8 changes: 4 additions & 4 deletions src/isEmptyObject/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
* {@link https://stackoverflow.com/a/34491966/1284255}
* @version 0.0.1
*
* @param {Object} obj
* @param {Object} object
* @returns {boolean}
*
* @example
* isEmptyObject({}); //=> true
* isEmptyObject({foo: 1}); //=> false
*/
function isEmptyObject(obj) {
for (let key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
function isEmptyObject(object) {
for (let key in object) {
if (Object.prototype.hasOwnProperty.call(object, key)) {
return false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/isEmptyObject/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import isEmptyObject from '.';
const test = require('ava');
const isEmptyObject = require('.');

test('should return `true` for empty object', t => {
t.is(isEmptyObject({}), true);
Expand Down
6 changes: 3 additions & 3 deletions src/isNil/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import isNil from '.';
const test = require('ava');
const isNil = require('.');

test('should return `true` for nil values', t => {
t.is(isNil(null), true);
Expand All @@ -11,5 +11,5 @@ test('should return `false` for not nil values', t => {
t.is(isNil(false), false);
t.is(isNil(0), false);
t.is(isNil(''), false);
t.is(isNil(NaN), false);
t.is(isNil(Number.NaN), false);
});
4 changes: 2 additions & 2 deletions src/numberToEven/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import numberToEven from '.';
const test = require('ava');
const numberToEven = require('.');

test('should return even', t => {
t.is(numberToEven(1), 0);
Expand Down
6 changes: 3 additions & 3 deletions src/toSearchString/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
* //=> "type=span&text=Foo"
*/
function toSearchString(json) {
const res = [];
const result = [];

for (const [key, value] of Object.entries(json)) {
if (typeof value === 'undefined') {
continue;
}

res.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
result.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
}

return res.join('&');
return result.join('&');
}

module.exports = toSearchString;
4 changes: 2 additions & 2 deletions src/toSearchString/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import toSearchString from '.';
const test = require('ava');
const toSearchString = require('.');

test('should return search string', t => {
t.is(toSearchString({type: 'span', text: 'Foo'}), 'type=span&text=Foo');
Expand Down

0 comments on commit 084c34e

Please sign in to comment.