Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@alicloud/mpserverless-sdk
Advanced tools
MPServerless SDK
npm install --save @alicloud/mpserverless-sdk
const MPServerless = require('@alicloud/mpserverless-sdk');
const mpServerless = new MPServerless({
uploadFile: my.uploadFile,
request: my.request,
getAuthCode: my.getAuthCode,
}, {
appId: 'xxx', // 小程序应用标识
spaceId: 'xxx', // 服务空间标识
clientSecret: 'xxx', // 服务空间 secret key
endpoint: 'https://webgw.basement.nlark.com' // 服务空间地址,从小程序 serverless 控制台处获得
});
mpServerless.user.getInfo().then(res => {
console.log('user info', res);
});
mpServerless.db.collection('task').find().then(res => {
console.log('task list', res.result);
});
mpServerless.function.invoke('sayHello', { name: 'angela' }).then(res => {
console.log(res.result + ' says angela');
});
my.chooseImage({
chooseImage: 1,
success: res => {
const path = res.apFilePaths[0];
const that = this;
my.getImageInfo({
src: path,
success: function(res) {
const options = {
filePath: path,
extension: res.type,
headers: {
contentDisposition: 'inline',
},
};
app.mpServerless.file.uploadFile(options).then((image) => {
that.setData({
iconUrl: image.fileUrl,
});
}).catch(console.error);
},
fail: function(err) {
console.log(err);
}
});
},
});
FAQs
Custom FrameWork JavaScript SDK for Alicloud MPServerless
The npm package @alicloud/mpserverless-sdk receives a total of 22 weekly downloads. As such, @alicloud/mpserverless-sdk popularity was classified as not popular.
We found that @alicloud/mpserverless-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.