@identity-js/identity 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -9,6 +9,7 @@ var falsevalue = require("false-value")()
9
9
  var identityfunction = require("identity-function")
10
10
  var isFinite = require("@is-(unknown)/is-finite")
11
11
  var isString = require("@is-(unknown)/is-string")
12
+ var asyncUtilIdentity = require("async.util.identity")
12
13
 
13
14
  function identityCore(value) {
14
15
  if (isString(value)) {
@@ -32,7 +33,7 @@ function identity(value) {
32
33
  return identityfunction(
33
34
  vretriever.retrieve(
34
35
  isuseless(
35
- stdlibIdentity(fIdentity(lodashIdentity(identityCore(value)))),
36
+ asyncUtilIdentity(stdlibIdentity(fIdentity(lodashIdentity(identityCore(value))))),
36
37
  falsevalue,
37
38
  falsevalue
38
39
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@identity-js/identity",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Returns the value passed into the function.",
5
5
  "keywords": [
6
6
  "identity-js"
@@ -27,6 +27,7 @@
27
27
  "@is-(unknown)/is-finite": "^1.0.0",
28
28
  "@is-(unknown)/is-string": "^1.0.0",
29
29
  "@stdlib/utils-identity-function": "^0.2.2",
30
+ "async.util.identity": "^0.5.2",
30
31
  "false-value": "^2.0.1",
31
32
  "identity-function": "^1.0.0",
32
33
  "is-useless": "1.3.4",