New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bytedance/mona

Package Overview
Dependencies
Maintainers
5
Versions
382
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bytedance/mona - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

dist/createAppConfig.d.ts

8

package.json
{
"name": "@bytedance/mona",
"version": "0.0.4",
"version": "0.0.5",
"description": "Merchant app's developing and building tools",

@@ -15,6 +15,2 @@ "main": "./dist/index",

"license": "MIT",
"dependencies": {
"@bytedance/mona-plugin-events": "^0.0.3",
"@bytedance/mona-runtime": "^0.0.4"
},
"publishConfig": {

@@ -24,3 +20,3 @@ "access": "public",

},
"gitHead": "d89e169d306e1fef4a0bb7241abc7909c1019aec"
"gitHead": "660ad56184422d2d54c686d62e0a52343289217d"
}
# mona
对外暴露mona组件以及API
## 组件
### Link
跳转组件,支持插件/应用间页面跳转
#### 例子
```jsx
import { Link } from '@bytedance/mona';
const Index = () => {
return (
<div>
<Link to="/pages/home/index">navigate to home </Link>
</div>
)
}
export default Index;
```
#### 参数说明
| 参数 | 说明 | 是否必填 | 类型 | 默认值 |
| ---- | ---- | ---- | ---- | ---- |
| to | 要跳转的页面路由 | 是 | string | - |
## API
### navigateTo
路由跳转,跳转到新的页面
#### 例子
```js
import { navigateTo } from '@bytedance/mona';
navigateTo('/pages/home/index')
```
### redirectTo
路由重定向,跳转并替换当前页面路由
#### 例子
```js
import { redirectTo } from '@bytedance/mona';
redirectTo('/pages/home/index')
```
## 其他
对外暴露提供构建API
## 配置创建
### createProjectConfig

@@ -52,0 +5,0 @@ 创建项目配置,`mona.config.ts`中使用

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc