File: fix-for-path-to-regexp-6.patch

package info (click to toggle)
vue-router.js 3.6.5~ds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,584 kB
  • sloc: javascript: 8,538; sh: 22; makefile: 6
file content (26 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: fix for node-path-to-regexp >= 6
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-08-26

--- a/src/create-route-map.js
+++ b/src/create-route-map.js
@@ -1,6 +1,6 @@
 /* @flow */
 
-import Regexp from 'path-to-regexp'
+import { pathToRegexp as Regexp } from 'path-to-regexp'
 import { cleanPath } from './util/path'
 import { assert, warn } from './util/warn'
 
--- a/src/util/params.js
+++ b/src/util/params.js
@@ -1,7 +1,7 @@
 /* @flow */
 
 import { warn } from './warn'
-import Regexp from 'path-to-regexp'
+import { pathToRegexp as Regexp } from 'path-to-regexp'
 
 // $flow-disable-line
 const regexpCompileCache: {