uncurried-intrinsics 1.0.1 → 1.0.2

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 +5 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -13,7 +13,11 @@ var uncurryThis = require("uncurry-x")
13
13
  function uncurryIntrinsic(intrinsicName, allowMissing) {
14
14
  var intrinsic
15
15
  try {
16
- intrinsic = GetIntrinsic(intrinsicName, allowMissing)
16
+ if (allowMissing != null) {
17
+ intrinsic = GetIntrinsic(intrinsicName, allowMissing)
18
+ } else {
19
+ intrinsic = GetIntrinsic(intrinsicName)
20
+ }
17
21
  } catch (e) {
18
22
  throw new Error(
19
23
  'Failed to get intrinsic "' + intrinsicName + '": ' + e.message
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uncurried-intrinsics",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Combines es-intrinsic-cache and uncurry-x to get and uncurry JavaScript intrinsics in one step",
5
5
  "keywords": [
6
6
  "intrinsics",