This commit is contained in:
2023-08-11 10:45:20 +08:00
commit 161ca982f3
31850 changed files with 2706500 additions and 0 deletions

28
node_modules/vant/lib/utils/interceptor.js generated vendored Normal file
View File

@ -0,0 +1,28 @@
"use strict";
exports.__esModule = true;
exports.callInterceptor = callInterceptor;
var _ = require(".");
function callInterceptor(options) {
var interceptor = options.interceptor,
args = options.args,
done = options.done;
if (interceptor) {
var returnVal = interceptor.apply(void 0, args);
if ((0, _.isPromise)(returnVal)) {
returnVal.then(function (value) {
if (value) {
done();
}
}).catch(_.noop);
} else if (returnVal) {
done();
}
} else {
done();
}
}