Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

soft-router

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

soft-router - npm Package Compare versions

Comparing version 0.1.0 to 0.1.2

.babelrc

22

package.json
{
"name": "soft-router",
"version": "0.1.0",
"version": "0.1.2",
"description": "舒服路由",
"main": "src/core.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "gulp compile"
},

@@ -21,3 +22,20 @@ "repository": {

"lodash.isequal": "^4.5.0"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"browserify": "^16.2.3",
"gulp": "^4.0.0",
"gulp-babel": "^8.0.0",
"gulp-cli": "^2.0.1",
"gulp-concat": "^2.6.1",
"gulp-cssnano": "^2.1.3",
"gulp-rename": "^1.4.0",
"gulp-uglify": "^3.0.1",
"gulp-uglyfly": "^1.4.2",
"vinyl-source-stream": "^2.0.0"
}
}

2

src/core.js

@@ -67,3 +67,3 @@ import isEqual from 'lodash.isequal'

export default function Router(configs, platform="wx") {
const router = platform === "wx" ? router : router
// const router = platform === "wx" ? router : router
if (!configs || !configs.length) throw new Error('导航配置失败')

@@ -70,0 +70,0 @@ this.configs = configs;

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