Skip to content

Commit

Permalink
chore(release): compile latest source & release source
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Oct 1, 2020
1 parent 7784dbc commit 04095fe
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
#### 0.42.0 (2020-10-01)

##### Chores

* **deps:** force latest version ([7784dbcd](https://github.com/lykmapipo/common/commit/7784dbcdf14ca0e8bd5bd96ae7074739c88940b0))

##### Bug Fixes

* **value:** pass function as state ([6f5e03e9](https://github.com/lykmapipo/common/commit/6f5e03e958055d460bfd183ec5cb2633899c1396))

#### 0.41.3 (2020-09-23)

##### Chores
Expand Down
11 changes: 8 additions & 3 deletions es/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from 'path';
import { readFileSync } from 'fs';
import { arch, cpus, endianness, freemem, homedir, hostname, loadavg, networkInterfaces, platform, release, tmpdir, totalmem, type, uptime } from 'os';
import { isNaN, isBoolean, isNumber, isError, isString, isEmpty, trim, isDate, first, filter, cloneDeep, flattenDeep, map, reduce, isArray, compact as compact$1, isPlainObject, omitBy, uniq as uniq$1, orderBy, assign as assign$1, merge, pick, forEach, toLower, startCase, words, get, camelCase, includes, every, some, toUpper, omit, join as join$1, isFunction, find, noop, snakeCase, toString } from 'lodash';
import { isNaN, isBoolean, isNumber, isError, isFunction, isString, isEmpty, trim, isDate, first, filter, cloneDeep, flattenDeep, map, reduce, isArray, compact as compact$1, isPlainObject, omitBy, uniq as uniq$1, orderBy, assign as assign$1, merge, pick, forEach, toLower, startCase, words, get, camelCase, includes, every, some, toUpper, omit, join as join$1, find, noop, snakeCase, toString } from 'lodash';
export { getExtension as mimeExtensionOf, getType as mimeTypeOf } from 'mime';
import { flatten, unflatten } from 'flat';
import { message } from 'statuses';
Expand Down Expand Up @@ -68,8 +68,13 @@ const isNotValue = (value) => {
if (isNaN(value)) {
return true;
}
// handle boolean and number
if (isBoolean(value) || isNumber(value) || isError(value)) {
// handle boolean, number, error and function
if (
isBoolean(value) ||
isNumber(value) ||
isError(value) ||
isFunction(value)
) {
return false;
}
// handle string
Expand Down
9 changes: 7 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ const isNotValue = (value) => {
if (lodash.isNaN(value)) {
return true;
}
// handle boolean and number
if (lodash.isBoolean(value) || lodash.isNumber(value) || lodash.isError(value)) {
// handle boolean, number, error and function
if (
lodash.isBoolean(value) ||
lodash.isNumber(value) ||
lodash.isError(value) ||
lodash.isFunction(value)
) {
return false;
}
// handle string
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lykmapipo/common",
"version": "0.41.3",
"version": "0.42.0",
"description": "Helper utilities for day to day development",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down

0 comments on commit 04095fe

Please sign in to comment.