Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
描述:
内嵌内容容器,在 weex 下为 <web>
实现,在 web 下为 <iframe>
<embed>
实现,小程序中实现为<webview>
。
$ npm install rax-embed --save
import Embed from 'rax-embed';
注: 1、支持列表中的 代表h5 代表weex 代表小程序 2、小程序中使用webview实现,默认会全屏覆盖当前页面,不能设置样式和透明度
属性 | 类型 | 默认值 | ** 必填 ** | 描述 | ** 支持 ** |
---|---|---|---|---|---|
style | Object | {} | false | 样式描述 | |
src | String | '' | false | 嵌入的页面地址 | |
urlParam | String or Object | '' | false | 传递给子页面的参数 | |
page_inside_embed | boolean | true | false | 页面是否在embed中 | |
page_home_isweex | boolean | false | 子页面的宿主页面是否是 weex 渲染 |
import {createElement, render, Component} from 'rax';
import * as DriverDOM from 'driver-dom';
import * as DriverWeex from 'driver-weex';
import { isWeex } from 'universal-env';
import Embed from '../src/index';
const urlParam = {
paramOne:123,
paramTwo:456
};
render(<Embed urlParam={urlParam} src={'http://taobao.com'} useIframeInWeb={true} style={{
height: 750,
width: 750
}} />, document.body, { driver:isWeex ? DriverWeex : DriverDOM });
FAQs
Embed container for Rax.
The npm package rax-embed receives a total of 1 weekly downloads. As such, rax-embed popularity was classified as not popular.
We found that rax-embed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.