soft-router
Advanced tools
Comparing version 0.1.0 to 0.1.2
{ | ||
"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" | ||
} | ||
} |
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
8748
6
113
1
2
15
3