@alipay/faas-biz-mini-sdk
Advanced tools
Comparing version 0.0.1-alpha.6 to 0.0.1-alpha.7
@@ -117,4 +117,4 @@ "use strict"; | ||
Auth.prototype.logout = function () { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a; | ||
return __generator(this, function (_b) { | ||
@@ -151,5 +151,5 @@ switch (_b.label) { | ||
Auth.prototype.isAccessTokenExpired = function () { | ||
var _a, _b; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var atExpiresTime; | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
@@ -166,5 +166,5 @@ switch (_c.label) { | ||
Auth.prototype.isRefreshTokenExpired = function () { | ||
var _a, _b; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var rtExpriesTime; | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
@@ -216,4 +216,4 @@ switch (_c.label) { | ||
Auth.prototype.getAccessToken = function () { | ||
var _a, _b; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
@@ -228,4 +228,4 @@ switch (_c.label) { | ||
Auth.prototype.getRefreshToken = function () { | ||
var _a, _b; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
@@ -240,4 +240,4 @@ switch (_c.label) { | ||
Auth.prototype.getUser = function () { | ||
var _a, _b; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
@@ -252,5 +252,5 @@ switch (_c.label) { | ||
Auth.prototype.accessTokenPersistence = function (accessToken, atExpiresIn, curTs) { | ||
var _a, _b; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var atExpiresTime; | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
@@ -272,5 +272,5 @@ switch (_c.label) { | ||
Auth.prototype.refreshTokenPersistence = function (refreshToken, rtExpiresIn, curTs) { | ||
var _a, _b; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var rtExpriesTime; | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
@@ -292,4 +292,4 @@ switch (_c.label) { | ||
Auth.prototype.userAndLoginStatePersistence = function (user, loginState) { | ||
var _a, _b; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
@@ -296,0 +296,0 @@ switch (_c.label) { |
@@ -49,8 +49,21 @@ "use strict"; | ||
}; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sendRequest = void 0; | ||
var sendRequest = function (url, method, data, additionalHeaders) { | ||
if (additionalHeaders === void 0) { additionalHeaders = {}; } | ||
return __awaiter(void 0, void 0, void 0, function () { | ||
var sendRequest = function (url_1, method_1, data_1) { | ||
var args_1 = []; | ||
for (var _i = 3; _i < arguments.length; _i++) { | ||
args_1[_i - 3] = arguments[_i]; | ||
} | ||
return __awaiter(void 0, __spreadArray([url_1, method_1, data_1], args_1, true), void 0, function (url, method, data, additionalHeaders) { | ||
var headers, requestOptions, response, error_1; | ||
if (additionalHeaders === void 0) { additionalHeaders = {}; } | ||
return __generator(this, function (_a) { | ||
@@ -57,0 +70,0 @@ switch (_a.label) { |
{ | ||
"name": "@alipay/faas-biz-mini-sdk", | ||
"version": "0.0.1-alpha.6", | ||
"version": "0.0.1-alpha.7", | ||
"description": "支付宝云开发业务扩展小程序端 SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
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
32111
643