Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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 65 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.