Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
实时检测 Weex 的运行环境和版本,支持 1.0 和 2.0 以及降级后的场景。
注 Weex 1.0 和 2.0 不是真实版本号,用来代指两个架构差异较大的版本(1.0 已开源,2.0 开发中)。
npm i weex-env -S
import { isWeex, isWeexV2 } from 'weex-env'
if (isWeexV2) {
// some conditional code here
}
isWeb
: 是否为浏览器运行环境。isWeex
: 是否为 Weex 的运行环境,包括 1.0、2.0,不包括降级。isWeexV1
: 是否为 Weex 1.0 的原生运行环境,不包括降级。isWeexV2
: 是否为 Weex 2.0 的原生运行环境,不包括降级。变量 | 浏览器 | Weex1.0 原生容器 | Weex1.0 降级(H5) | Weex2.0 原生容器 | Weex2.0 降级(H5) |
---|---|---|---|---|---|
isWeb | ✅ | ❌ | ✅ | ❌ | ✅ |
isWeex | ❌ | ✅ | ❌ | ✅ | ❌ |
isWeexV1 | ❌ | ✅ | ❌ | ❌ | ❌ |
isWeexV2 | ❌ | ❌ | ❌ | ✅ | ❌ |
FAQs
weex environment detect
We found that weex-env 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.