Skip to content

Commit

Permalink
chore(release): compile latest source & release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Sep 8, 2020
1 parent b7f1637 commit c3f0223
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#### 0.41.1 (2020-09-08)

##### Refactors

* **value:** ignore NaN as a state ([b7f16378](https://github.com/lykmapipo/common/commit/b7f16378a2697eee63f928b289cab0cf14e15662))

#### 0.41.0 (2020-09-08)

##### Chores
Expand Down
10 changes: 7 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 { 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, 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';
export { getExtension as mimeExtensionOf, getType as mimeTypeOf } from 'mime';
import { flatten, unflatten } from 'flat';
import { message } from 'statuses';
Expand Down Expand Up @@ -51,7 +51,7 @@ const RESOURCE_ACTIONS = [
* @returns {boolean} whether variable contain state
* @author lally elias <lallyelias87@gmail.com>
* @license MIT
* @since 0.9.0
* @since 0.10.0
* @version 0.3.0
* @static
* @public
Expand All @@ -64,6 +64,10 @@ const RESOURCE_ACTIONS = [
* // => true
*/
const isNotValue = (value) => {
// handle NaN
if (isNaN(value)) {
return true;
}
// handle boolean and number
if (isBoolean(value) || isNumber(value) || isError(value)) {
return false;
Expand All @@ -89,7 +93,7 @@ const isNotValue = (value) => {
* @author lally elias <lallyelias87@gmail.com>
* @license MIT
* @since 0.40.0
* @version 0.1.0
* @version 0.2.0
* @static
* @public
* @example
Expand Down
8 changes: 6 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const RESOURCE_ACTIONS = [
* @returns {boolean} whether variable contain state
* @author lally elias <lallyelias87@gmail.com>
* @license MIT
* @since 0.9.0
* @since 0.10.0
* @version 0.3.0
* @static
* @public
Expand All @@ -65,6 +65,10 @@ const RESOURCE_ACTIONS = [
* // => true
*/
const isNotValue = (value) => {
// handle NaN
if (lodash.isNaN(value)) {
return true;
}
// handle boolean and number
if (lodash.isBoolean(value) || lodash.isNumber(value) || lodash.isError(value)) {
return false;
Expand All @@ -90,7 +94,7 @@ const isNotValue = (value) => {
* @author lally elias <lallyelias87@gmail.com>
* @license MIT
* @since 0.40.0
* @version 0.1.0
* @version 0.2.0
* @static
* @public
* @example
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.0",
"version": "0.41.1",
"description": "Helper utilities for day to day development",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down

0 comments on commit c3f0223

Please sign in to comment.