From aa18ff30091f73c5649c5325fc59d8f0e05719a7 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaenchik Date: Fri, 16 Mar 2018 18:59:52 +0100 Subject: [PATCH] Generates new dist --- dist/index.js | 7 ------- package.json | 4 ++-- yarn.lock | 54 ++++++++++++++++++++++++++++++++------------------- 3 files changed, 36 insertions(+), 29 deletions(-) diff --git a/dist/index.js b/dist/index.js index e1dd5f53..c2dc36cc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -281,13 +281,6 @@ var Route = function () { (0, _createClass3.default)(Route, [{ key: 'match', value: function match(path) { - if (path.substring(1, this.locale.length + 1) === this.locale) { - path = path.substring(this.locale.length + 1); - - if (!path) { - return {}; - } - } var values = this.regex.exec(path); if (values) { return this.valuesToParams(values.slice(1)); diff --git a/package.json b/package.json index 449b3655..0df20fc6 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "devDependencies": { "babel-cli": "^6.24.1", "babel-eslint": "^8.2.2", - "babel-jest": "^22.4.1", + "babel-jest": "^23.0.0-alpha.0", "babel-preset-env": "^1.6.1", "concurrently": "^3.5.1", "coveralls": "^3.0.0", @@ -47,7 +47,7 @@ "react": "^16.2.0", "react-dom": "^16.2.0", "react-test-renderer": "^16.2.0", - "standard": "^11.0.0" + "standard": "^11.0.1" }, "author": "fridays", "license": "MIT", diff --git a/yarn.lock b/yarn.lock index 3ccbcd81..4bffc028 100644 --- a/yarn.lock +++ b/yarn.lock @@ -629,6 +629,13 @@ babel-jest@^22.4.1: babel-plugin-istanbul "^4.1.5" babel-preset-jest "^22.4.1" +babel-jest@^23.0.0-alpha.0: + version "23.0.0-alpha.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.0.0-alpha.0.tgz#a19c6bff78d7012a2e01e698ae56a8bd3e8cb2f6" + dependencies: + babel-plugin-istanbul "^4.1.5" + babel-preset-jest "^23.0.0-alpha.0" + babel-loader@7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.2.tgz#f6cbe122710f1aa2af4d881c6d5b54358ca24126" @@ -661,6 +668,10 @@ babel-plugin-jest-hoist@^22.4.1: version "22.4.1" resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-22.4.1.tgz#d712fe5da8b6965f3191dacddbefdbdf4fb66d63" +babel-plugin-jest-hoist@^23.0.0-alpha.0: + version "23.0.0-alpha.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.0.0-alpha.0.tgz#9d3e334679db15795de6b7df46b04bdb2d191869" + babel-plugin-module-resolver@2.7.1: version "2.7.1" resolved "https://registry.yarnpkg.com/babel-plugin-module-resolver/-/babel-plugin-module-resolver-2.7.1.tgz#18be3c42ddf59f7a456c9e0512cd91394f6e4be1" @@ -1056,6 +1067,13 @@ babel-preset-jest@^22.4.1: babel-plugin-jest-hoist "^22.4.1" babel-plugin-syntax-object-rest-spread "^6.13.0" +babel-preset-jest@^23.0.0-alpha.0: + version "23.0.0-alpha.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-23.0.0-alpha.0.tgz#bb7c274b82ae75303ea368c34c97eb34490417d3" + dependencies: + babel-plugin-jest-hoist "^23.0.0-alpha.0" + babel-plugin-syntax-object-rest-spread "^6.13.0" + babel-preset-react@6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-preset-react/-/babel-preset-react-6.24.1.tgz#ba69dfaea45fc3ec639b6a4ecea6e17702c91380" @@ -2353,9 +2371,9 @@ eslint-module-utils@^2.1.1: debug "^2.6.8" pkg-dir "^1.0.0" -eslint-plugin-import@~2.8.0: - version "2.8.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.8.0.tgz#fa1b6ef31fcb3c501c09859c1b86f1fc5b986894" +eslint-plugin-import@~2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.9.0.tgz#26002efbfca5989b7288ac047508bd24f217b169" dependencies: builtin-modules "^1.1.1" contains-path "^0.1.0" @@ -2364,7 +2382,7 @@ eslint-plugin-import@~2.8.0: eslint-import-resolver-node "^0.3.1" eslint-module-utils "^2.1.1" has "^1.0.1" - lodash.cond "^4.3.0" + lodash "^4.17.4" minimatch "^3.0.3" read-pkg-up "^2.0.0" @@ -2377,13 +2395,13 @@ eslint-plugin-node@~6.0.0: resolve "^1.3.3" semver "^5.4.1" -eslint-plugin-promise@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.6.0.tgz#54b7658c8f454813dc2a870aff8152ec4969ba75" +eslint-plugin-promise@~3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.7.0.tgz#f4bde5c2c77cdd69557a8f69a24d1ad3cfc9e67e" -eslint-plugin-react@~7.6.1: - version "7.6.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.6.1.tgz#5d0e908be599f0c02fbf4eef0c7ed6f29dff7633" +eslint-plugin-react@~7.7.0: + version "7.7.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.7.0.tgz#f606c719dbd8a1a2b3d25c16299813878cca0160" dependencies: doctrine "^2.0.2" has "^1.0.1" @@ -4412,10 +4430,6 @@ lodash.assign@^3.0.0: lodash._createassigner "^3.0.0" lodash.keys "^3.0.0" -lodash.cond@^4.3.0: - version "4.5.2" - resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5" - lodash.isarguments@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" @@ -6399,17 +6413,17 @@ standard-engine@~8.0.0: minimist "^1.1.0" pkg-conf "^2.0.0" -standard@^11.0.0: - version "11.0.0" - resolved "https://registry.yarnpkg.com/standard/-/standard-11.0.0.tgz#0ba18c753f68883fbfffedf3e38534a6b9d26dca" +standard@^11.0.1: + version "11.0.1" + resolved "https://registry.yarnpkg.com/standard/-/standard-11.0.1.tgz#49be40c76f1d564964b22bbf7309929ad0335e29" dependencies: eslint "~4.18.0" eslint-config-standard "11.0.0" eslint-config-standard-jsx "5.0.0" - eslint-plugin-import "~2.8.0" + eslint-plugin-import "~2.9.0" eslint-plugin-node "~6.0.0" - eslint-plugin-promise "~3.6.0" - eslint-plugin-react "~7.6.1" + eslint-plugin-promise "~3.7.0" + eslint-plugin-react "~7.7.0" eslint-plugin-standard "~3.0.1" standard-engine "~8.0.0"