Skip to content

Commit

Permalink
vendor it
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeseda committed Sep 3, 2024
1 parent dcd7229 commit ce0d7ef
Show file tree
Hide file tree
Showing 6 changed files with 426 additions and 15 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"@enhance/import-transform": "^4.0.1",
"@enhance/ssr": "^4.0.3",
"glob": "^9.3.5",
"header-timers": "^0.3.0",
"path-to-regexp": "^6.2.2"
"header-timers": "^0.3.0"
},
"devDependencies": {
"@architect/eslint-config": "^2.1.2",
Expand Down
2 changes: 1 addition & 1 deletion src/http/any-catchall/_backfill-params.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path'

import { pathToRegexp } from 'path-to-regexp'
import { pathToRegexp } from './vendor/path-to-regexp/index.mjs'
import clean from './_clean.mjs'

/** adds url params back in */
Expand Down
2 changes: 1 addition & 1 deletion src/http/any-catchall/_get-module.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path'
import { pathToFileURL } from 'url'

import { pathToRegexp } from 'path-to-regexp'
import { pathToRegexp } from './vendor/path-to-regexp/index.mjs'

import getFiles from './_get-files.mjs'
import sort from './_sort-routes.mjs'
Expand Down
11 changes: 0 additions & 11 deletions src/http/any-catchall/package.json

This file was deleted.

21 changes: 21 additions & 0 deletions src/http/any-catchall/vendor/path-to-regexp/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 Blake Embrey ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit ce0d7ef

Please sign in to comment.