Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
aliyun-test
Advanced tools
A cross-platform React Native SDK for AliyunOSS Services, providing most of the OSS APIs, like client initialization, uploading & downloading etc.
A React Native SDK for AliyunOSS Services, providing most of the Native OSS APIs, like client initialization, uploading & downloading etc. A truly cross-platform SDK for Aliyun OSS Users. Supports images, videos and any files for uploading.
The latest version 1.1.0 supports iOS11, which allows you to upload the new HEIF Files (High Efficiency Image File Format - HEIC and HEVC). Considering the compatibility of all special formats on iOS, images and videos will be converted to JPEG and MPEG4 respectively before uploading.
npm install aliyun-test —save
yarn add aliyun-test
CocoaPods
pod 'aliyun-oss-react-native-sdk', :path => '../node_modules/aliyun-oss-react-native-sdk'
Non-CocoaPods
Libraries
➜ Add Files to [your project's name]
. Go to node_modules
➜ aliyun-oss-react-native-sdk
and add RNAliyunOss.xcodeproj
libRNAliyunOSS.a
to your project's Build Phases
➜ Link Binary With Libraries
Frameworks
➜ Add Files to [your project's name]
. Go to node_modules
➜ aliyun-oss-react-native-sdk
➜ AliyunSDK
. Add AliyunOSSiOS.framework
, and select Copy items if needed in the pop-up box.android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNAliyunOSSPackage;
to the imports at the top of the filenew RNAliyunOSSPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':aliyun-oss-react-native-sdk'
project(':aliyun-oss-react-native-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/aliyun-oss-react-native-sdk/android')
android/app/build.gradle
:
compile project(':aliyun-oss-react-native-sdk')
import AliyunOSS from 'aliyun-oss-react-native-sdk';
AliyunOSS.enableDevMode();
const configuration = {
maxRetryCount: 3,
timeoutIntervalForRequest: 30,
timeoutIntervalForResource: 24 * 60 * 60
};
PlainTextAKSK
AliyunOSS.initWithPlainTextAccessKey(accessKey, secretKey, endPoint, configuration);
ImplementedSigner
AliyunOSS.initWithImplementedSigner(signature, accessKey, endPoint, configuration);
SecurityToken (recommended)
AliyunOSS.initWithSecurityToken(securityToken, accessKey, secretKey, endPoint, configuration);
AliyunOSS.asyncUpload(bucketName, objectKey, filepath);
assets-library://
file://
data://
localIdentifier://
AliyunOSS.asyncDownload(bucketName, objectKey, filepath);
uploadProgress
AliyunOSS.addEventListener('uploadPress', (event) => {
console.log(event);
});
downloadProgress
AliyunOSS.addEventListener('downloadProgress', (event) => {
console.log(event);
});
Property | Type | Description |
---|---|---|
accessKey | String (required) | The access key of your OSS service |
secretKey | String (required) | The secret key of your OSS service |
endPoint | String (required) | The end point of your OSS service |
configuration | Object (optional) | maxRetryCount = 3 , timeoutIntervalForRequest = 30 , timeoutIntervalForResource = 86400 (all of them are numbers) |
signature | String (optional) | Also known as: Signed URL Authorization |
securityToken | String (optional) | Also known as: STS Authorization |
Property | Type | Description |
---|---|---|
bucketName | String (required) | The bucket name of your OSS service |
objectKey | String (required) | The cloud path for storing your remote file |
filepath | String (required) | The local path for loading or saving your file |
MIT
FAQs
A cross-platform React Native SDK for AliyunOSS Services, providing most of the OSS APIs, like client initialization, uploading & downloading etc.
The npm package aliyun-test receives a total of 19 weekly downloads. As such, aliyun-test popularity was classified as not popular.
We found that aliyun-test demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.