Socket
Socket
Sign inDemoInstall

@mxjs/router

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mxjs/router - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

__tests__/__snapshots__/index.js.snap

15

CHANGELOG.md

@@ -0,1 +1,16 @@

## [0.1.3](https://github.com/twinh/miaoxing/compare/@mxjs/router@0.1.2...@mxjs/router@0.1.3) (2021-05-10)
### Bug Fixes
* `ModalContext` 移到 `@mxjs/router` 中,解决循环依赖 ([cd248cf](https://github.com/twinh/miaoxing/commit/cd248cfddc26324433379b1936d69f7e4559f17e))
### Dependencies
* **@miaoxing/dev:** upgrade from `6.4.0` to `7.0.0`
## [0.1.2](https://github.com/twinh/miaoxing/compare/@mxjs/router@0.1.1...@mxjs/router@0.1.2) (2021-03-12)

@@ -2,0 +17,0 @@

13

Link.js
import React from 'react';
import {Link as RouterLink} from 'react-router-dom';
import {ModalContext} from '@mxjs/router-modal';
import {createLocation} from 'history';
import PropTypes from 'prop-types';
import ModalContext from './ModalContext';
export default function Link({to, modal, autoModal, ...props}) {
function Link({to, modal, autoModal, ...props}) {
const location = createLocation(to, {modal});

@@ -21,1 +22,9 @@

}
Link.propTypes = {
to: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
modal: PropTypes.bool,
autoModal: PropTypes.bool,
};
export default Link;
{
"name": "@mxjs/router",
"version": "0.1.2",
"version": "0.1.3",
"main": "index.js",

@@ -10,8 +10,22 @@ "license": "MIT",

},
"jest": {
"preset": "jest-preset-miaoxing"
},
"dependencies": {
"@mxjs/router-modal": "^0.1.2"
"react": "^16.13.1",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"history": "^4.10.1",
"prop-types": "^15.7.2"
},
"devDependencies": {
"@miaoxing/dev": "^7.0.0",
"@testing-library/react": "^11.2.6"
},
"ciDependencies": {
"@mxjs/router-modal": "miaoxing/mxjs-router-modal"
"@mxjs/router-modal": "miaoxing/mxjs-router-modal",
"babel-preset-miaoxing": "miaoxing/babel-preset-miaoxing",
"jest-preset-miaoxing": "miaoxing/jest-preset-miaoxing",
"@miaoxing/dev": "miaoxing/dev"
}
}

Sorry, the diff of this file is not supported yet

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