@rpldy/shared
Advanced tools
Comparing version 1.2.0 to 1.3.0-rc.0
@@ -54,2 +54,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "isEmpty", { | ||
enumerable: true, | ||
get: function () { | ||
return _utils.isEmpty; | ||
} | ||
}); | ||
Object.defineProperty(exports, "isFunction", { | ||
@@ -56,0 +62,0 @@ enumerable: true, |
@@ -8,3 +8,3 @@ "use strict"; | ||
const isEmpty = val => val === null || val === undefined; | ||
var _utils = require("./utils"); | ||
@@ -25,3 +25,3 @@ const triggerUpdater = function (trigger, event) { | ||
if (resolvedResults) { | ||
while (isEmpty(result) && resolvedResults.length) { | ||
while ((0, _utils.isEmpty)(result) && resolvedResults.length) { | ||
result = resolvedResults.pop(); | ||
@@ -31,3 +31,3 @@ } | ||
resolve(isEmpty(result) ? undefined : result); | ||
resolve((0, _utils.isEmpty)(result) ? undefined : result); | ||
}); | ||
@@ -34,0 +34,0 @@ } else { |
@@ -30,2 +30,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "isEmpty", { | ||
enumerable: true, | ||
get: function () { | ||
return _isEmpty.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "isFunction", { | ||
@@ -102,2 +108,4 @@ enumerable: true, | ||
var _isEmpty = _interopRequireDefault(require("./isEmpty")); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
@@ -104,0 +112,0 @@ |
@@ -13,2 +13,2 @@ import invariant from "invariant"; | ||
export { //cant use * because of flow | ||
isFunction, isPlainObject, isSamePropInArrays, devFreeze, merge, getMerge, clone, pick, hasWindow, isProduction, isPromise, scheduleIdleWork } from "./utils"; | ||
isFunction, isPlainObject, isSamePropInArrays, devFreeze, merge, getMerge, clone, pick, hasWindow, isProduction, isPromise, scheduleIdleWork, isEmpty } from "./utils"; |
@@ -1,2 +0,2 @@ | ||
const isEmpty = val => val === null || val === undefined; | ||
import { isEmpty } from "./utils"; | ||
@@ -3,0 +3,0 @@ const triggerUpdater = function (trigger, event) { |
@@ -12,2 +12,3 @@ import isFunction from "./isFunction"; | ||
import scheduleIdleWork from "./scheduleIdleWork"; | ||
export { isFunction, isSamePropInArrays, devFreeze, merge, getMerge, clone, pick, isPlainObject, hasWindow, isProduction, isPromise, scheduleIdleWork }; | ||
import isEmpty from "./isEmpty"; | ||
export { isFunction, isSamePropInArrays, devFreeze, merge, getMerge, clone, pick, isPlainObject, hasWindow, isProduction, isPromise, scheduleIdleWork, isEmpty }; |
{ | ||
"version": "1.2.0", | ||
"version": "1.3.0-rc.0", | ||
"name": "@rpldy/shared", | ||
@@ -35,3 +35,3 @@ "description": "internal set of utils+types for react-uploady", | ||
}, | ||
"gitHead": "68c36895ae203f2da3762dd051168e2692bbc69b" | ||
"gitHead": "5570982a80fd88e3bad36c57fba5e57989871b82" | ||
} |
@@ -127,2 +127,4 @@ export type Destination = { | ||
export const isEmpty: (val: unknown) => boolean; | ||
export const isPromise: (val: unknown) => boolean; | ||
@@ -129,0 +131,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44569
49
1121
1