Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@weex-project/downgrade
Advanced tools
Weex downgrade to web module. Version should be semver format.
install from npm command: npm install @weex-project/downgrade --save
import Downgrade from '@weex-project/downgrade'
// force downgrade
Downgrade.force()
/*
check condition. When match anyone condition will return downgrade is true. return format as below:
{
isDowngrade: true,
errorType: 1,
code: 1000,
errorMessage: 'XXXXXXXX'
}
*/
Downgrade.check({
ios: {
osVersion: '>1.0',
appVersion: '>1.0.0',
weexVersion: '>1',
deviceModel: ['iPhone5,1']
},
android: {
osVersion: '>1.0',
appVersion: '>1.0.0',
weexVersion: '>1',
deviceModel: ['G-2PW2100']
}
})
// check condition with multiple app. The `MY_APP_A` is WXEnvironment's appName param.
Downgrade.check({
ios: {
osVersion: '>1.0',
appVersion: {
MY_APP_A: '>1.0.0',
MY_APP_B: '>2.0.0'
},
weexVersion: '>1',
deviceModel: ['iPhone5,1']
},
android: {
osVersion: '>1.0',
appVersion: {
MY_APP_A: '>1.0.0',
MY_APP_C: '>3.0.0'
},
weexVersion: '>1',
deviceModel: ['G-2PW2100']
}
})
// When match condition will auto downgrade to web
Downgrade.condition({
ios: {
osVersion: '>1.0',
appVersion: '>1.0.0',
weexVersion: '>1',
deviceModel: ['iPhone5,1']
},
android: {
osVersion: '>1.0',
appVersion: '>1.0.0',
weexVersion: '>1',
deviceModel: ['G-2PW2100']
}
})
// When condition with multiple app. The `MY_APP_A` is WXEnvironment's appName param.
Downgrade.condition({
ios: {
osVersion: '>1.0',
appVersion: {
MY_APP_A: '>1.0.0',
MY_APP_B: '>2.0.0'
},
weexVersion: '>1',
deviceModel: ['iPhone5,1']
},
android: {
osVersion: '>1.0',
appVersion: {
MY_APP_A: '>1.0.0',
MY_APP_C: '>3.0.0'
},
weexVersion: '>1',
deviceModel: ['G-2PW2100']
}
})
FAQs
Weex downgrade to Web module
The npm package @weex-project/downgrade receives a total of 0 weekly downloads. As such, @weex-project/downgrade popularity was classified as not popular.
We found that @weex-project/downgrade demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.