New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@alicloud/mpserverless-sdk

Package Overview
Dependencies
Maintainers
9
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alicloud/mpserverless-sdk - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

35

dist/esm/transport.js
import * as tslib_1 from "tslib";
import { HTTPTransport, HTTP_UNAUTHORIZED, ErrorCode, ErrorName, ErrorType, BasementClientError, assert, } from '@ant-basement/core';
import { MiniProgramHTTPRequestEncoder, MiniProgramHTTPResponseDecoder, } from './codec';
import { log } from './utils';
var MiniProgramHTTPTransport = (function (_super) {

@@ -52,4 +51,2 @@ tslib_1.__extends(MiniProgramHTTPTransport, _super);

});
log('request data');
log(JSON.stringify(encoded, null, 2));
return [4, this.httpRequest(encoded)];

@@ -65,3 +62,2 @@ case 3:

if (retried) {
log('auth error', e_1);
throw new BasementClientError(ErrorName.UNAUTHORIZED_ERROR, ErrorCode.AUTHENTICATION_FAILED, ErrorType.COMMON_ERROR, 'authentication failed');

@@ -76,8 +72,4 @@ }

if (e_1.error) {
log('IDE error', e_1.message);
log(e_1);
throw e_1.error;
}
log('Unknown error', e_1.message);
log(e_1);
throw e_1;

@@ -96,3 +88,2 @@ case 8: return [2];

.then(function (res) {
log('Request authcode ' + (res.body.authCode ? 'success' : 'failed'));
return res.body.authCode;

@@ -124,3 +115,2 @@ })

.then(function (res) {
log('Request accessToken ' + (res.body.success ? 'success' : 'failed'));
if (res.body && res.body.result) {

@@ -141,7 +131,5 @@ _this.accessToken = res.body.result.accessToken;

if (this.pendingRequest) {
log('getAccessToken: reuse');
return [2, this.pendingRequest];
}
if (refresh || !this.accessToken) {
log('getAccessToken: start');
return [2, this.authorize()];

@@ -157,13 +145,10 @@ }

switch (_a.label) {
case 0:
log('upload with params');
log(JSON.stringify(formData, null, 2));
return [4, this.uploadFile({
url: host,
formData: formData,
fileName: fileName,
filePath: filePath,
fileType: 'image',
header: tslib_1.__assign({}, header, { 'X-OSS-server-side-encrpytion': 'AES256' }),
})];
case 0: return [4, this.uploadFile({
url: host,
formData: formData,
fileName: fileName,
filePath: filePath,
fileType: 'image',
header: tslib_1.__assign({}, header, { 'X-OSS-server-side-encrpytion': 'AES256' }),
})];
case 1: return [2, _a.sent()];

@@ -180,4 +165,2 @@ }

if (res === void 0) { res = {}; }
log('completed request');
log(JSON.stringify(res, null, 2));
var decoder = new MiniProgramHTTPResponseDecoder();

@@ -197,2 +180,2 @@ var response = decoder.decode(res);

export { MiniProgramHTTPTransport };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNwb3J0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3RyYW5zcG9ydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUVMLGFBQWEsRUFHYixpQkFBaUIsRUFDakIsU0FBUyxFQUNULFNBQVMsRUFDVCxTQUFTLEVBQ1QsbUJBQW1CLEVBRW5CLE1BQU0sR0FFUCxNQUFNLG9CQUFvQixDQUFDO0FBQzVCLE9BQU8sRUFHTCw2QkFBNkIsRUFDN0IsOEJBQThCLEdBQy9CLE1BQU0sU0FBUyxDQUFDO0FBQ2pCLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFROUI7SUFBOEMsb0RBQWE7SUFRekQsa0NBQ0UsUUFBZ0IsRUFDaEIsT0FBWTtRQUZkLFlBSUUsa0JBQU0sUUFBUSxFQUFFLE9BQU8sQ0FBQyxTQVF6QjtRQW5CUyxXQUFLLEdBQWUsV0FBVyxDQUFDO1FBWXhDLE1BQU0sQ0FBQyxPQUFPLENBQUMsVUFBVSxFQUFFLG9CQUFvQixDQUFDLENBQUM7UUFDakQsTUFBTSxDQUFDLE9BQU8sQ0FBQyxXQUFXLEVBQUUscUJB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lBQ1QsT0FBTyxJQUFJLE9BQU8sQ0FBcUIsVUFBQyxPQUFPLEVBQUUsTUFBTTtnQkFDckQsUUFBUSxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFO29CQUMzQixRQUFRLEVBQUUsVUFBQyxHQUFhO3dCQUFiLG9CQUFBLEVBQUEsUUFBYTt3QkFHdEIsSUFBTSxPQUFPLEdBQUcsSUFBSSw4QkFBOEIsRUFBRSxDQUFDO3dCQUNyRCxJQUFNLFFBQVEsR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDO3dCQUNyQyxJQUFJLFFBQVEsQ0FBQyxLQUFLLEVBQUU7NEJBQ2xCLE9BQU8sTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDO3lCQUN6Qjt3QkFFRCxPQUFPLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztvQkFDM0IsQ0FBQztpQkFDRixDQUFDLENBQUMsQ0FBQztZQUNOLENBQUMsQ0FBQyxDQUFDO1FBQ0wsQ0FBQyxDQUFDO0lBQ0osQ0FBQztJQUNILCtCQUFDO0FBQUQsQ0FBQyxBQTFORCxDQUE4QyxhQUFhLEdBME4xRCJ9

@@ -7,3 +7,3 @@ (function (factory) {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "@ant-basement/core", "./codec", "./utils"], factory);
define(["require", "exports", "@ant-basement/core", "./codec"], factory);
}

@@ -15,3 +15,2 @@ })(function (require, exports) {

const codec_1 = require("./codec");
const utils_1 = require("./utils");
class MiniProgramHTTPTransport extends core_1.HTTPTransport {

@@ -52,4 +51,2 @@ constructor(endpoint, library) {

});
utils_1.log('request data');
utils_1.log(JSON.stringify(encoded, null, 2));
const decoded = await this.httpRequest(encoded);

@@ -63,3 +60,2 @@ return decoded;

if (retried) {
utils_1.log('auth error', e);
throw new core_1.BasementClientError(core_1.ErrorName.UNAUTHORIZED_ERROR, core_1.ErrorCode.AUTHENTICATION_FAILED, core_1.ErrorType.COMMON_ERROR, 'authentication failed');

@@ -71,8 +67,4 @@ }

if (e.error) {
utils_1.log('IDE error', e.message);
utils_1.log(e);
throw e.error;
}
utils_1.log('Unknown error', e.message);
utils_1.log(e);
throw e;

@@ -85,3 +77,2 @@ }

.then((res) => {
utils_1.log('Request authcode ' + (res.body.authCode ? 'success' : 'failed'));
return res.body.authCode;

@@ -113,3 +104,2 @@ })

.then((res) => {
utils_1.log('Request accessToken ' + (res.body.success ? 'success' : 'failed'));
if (res.body && res.body.result) {

@@ -125,7 +115,5 @@ this.accessToken = res.body.result.accessToken;

if (this.pendingRequest) {
utils_1.log('getAccessToken: reuse');
return this.pendingRequest;
}
if (refresh || !this.accessToken) {
utils_1.log('getAccessToken: start');
return this.authorize();

@@ -136,4 +124,2 @@ }

async upload(host, formData, fileName, filePath, header) {
utils_1.log('upload with params');
utils_1.log(JSON.stringify(formData, null, 2));
return await this.uploadFile({

@@ -156,4 +142,2 @@ url: host,

complete: (res = {}) => {
utils_1.log('completed request');
utils_1.log(JSON.stringify(res, null, 2));
const decoder = new codec_1.MiniProgramHTTPResponseDecoder();

@@ -173,2 +157,2 @@ const response = decoder.decode(res);

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNwb3J0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3RyYW5zcG9ydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztJQUFBLDZDQWE0QjtJQUM1QixtQ0FLaUI7SUFDakIsbUNBQThCO0lBUTlCLE1BQWEsd0JBQXlCLFNBQVEsb0JBQWE7UUFRekQsWUFDRSxRQUFnQixFQUNoQixPQUFZO1lBRVosS0FBSyxDQUFDLFFBQVEsRUFBRSxPQUFPLENBQUMsQ0FBQztZQVhqQixVQUFLLEdBQWUsV0FBVyxDQUFDO1lBWXhDLGFBQU0sQ0FBQyxPQU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BQ3JELE1BQU0sUUFBUSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7NEJBQ3JDLElBQUksUUFBUSxDQUFDLEtBQUssRUFBRTtnQ0FDbEIsT0FBTyxNQUFNLENBQUMsUUFBUSxDQUFDLENBQUM7NkJBQ3pCOzRCQUVELE9BQU8sT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO3dCQUMzQixDQUFDO3FCQUNGLENBQUMsQ0FBQyxDQUFDO2dCQUNOLENBQUMsQ0FBQyxDQUFDO1lBQ0wsQ0FBQyxDQUFDO1FBQ0osQ0FBQztLQUNGO0lBMU5ELDREQTBOQyJ9
{
"name": "@alicloud/mpserverless-sdk",
"author": "zack-lin <linzegia@gmail.com>",
"version": "1.0.2",
"version": "1.0.3",
"description": "JavaScript SDK for Alicloud MPServerless",

@@ -6,0 +6,0 @@ "main": "dist/umd/index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc