dolphin-weex-ui 2.2.10 → 2.2.11
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.
- package/dist/index.native.js +20 -20
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +22 -22
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/utils/promisify.js +13 -13
package/dist/index.native.js
CHANGED
|
@@ -10922,32 +10922,32 @@ function clamp(number, min, max) {
|
|
|
10922
10922
|
|
|
10923
10923
|
|
|
10924
10924
|
Object.defineProperty(exports, "__esModule", {
|
|
10925
|
-
|
|
10925
|
+
value: true
|
|
10926
10926
|
});
|
|
10927
10927
|
function promisify(fn) {
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10928
|
+
return function () {
|
|
10929
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
10930
|
+
args[_key] = arguments[_key];
|
|
10931
|
+
}
|
|
10932
10932
|
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10933
|
+
return new Promise(function (resolve, reject) {
|
|
10934
|
+
args.push(function (err) {
|
|
10935
|
+
if (err) {
|
|
10936
|
+
reject(err);
|
|
10937
|
+
} else {
|
|
10938
|
+
for (var _len2 = arguments.length, arg = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
10939
|
+
arg[_key2 - 1] = arguments[_key2];
|
|
10940
|
+
}
|
|
10941
10941
|
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
|
|
10942
|
+
resolve.apply(undefined, arg);
|
|
10943
|
+
}
|
|
10944
|
+
});
|
|
10945
|
+
fn.apply(null, args);
|
|
10946
|
+
});
|
|
10947
|
+
};
|
|
10948
10948
|
}
|
|
10949
10949
|
|
|
10950
|
-
exports.
|
|
10950
|
+
exports.default = promisify;
|
|
10951
10951
|
|
|
10952
10952
|
/***/ }),
|
|
10953
10953
|
/* 175 */
|