@edge-runtime/primitives
Advanced tools
Comparing version 0.12.7 to 0.12.8
/// <reference types="node" /> | ||
import type { Crypto as WebCrypto, CryptoKey } from '@peculiar/webcrypto' | ||
import type { URLPattern } from 'urlpattern-polyfill' | ||
import type { v4 as uuid } from 'uuid' | ||
@@ -9,2 +8,52 @@ import type * as Abort from 'abort-controller' | ||
type URLPatternInput = URLPatternInit | string | ||
class URLPattern { | ||
constructor(init?: URLPatternInput, baseURL?: string) | ||
test(input?: URLPatternInput, baseURL?: string): boolean | ||
exec(input?: URLPatternInput, baseURL?: string): URLPatternResult | null | ||
readonly protocol: string | ||
readonly username: string | ||
readonly password: string | ||
readonly hostname: string | ||
readonly port: string | ||
readonly pathname: string | ||
readonly search: string | ||
readonly hash: string | ||
} | ||
interface URLPatternInit { | ||
baseURL?: string | ||
username?: string | ||
password?: string | ||
protocol?: string | ||
hostname?: string | ||
port?: string | ||
pathname?: string | ||
search?: string | ||
hash?: string | ||
} | ||
interface URLPatternResult { | ||
inputs: [URLPatternInput] | ||
protocol: URLPatternComponentResult | ||
username: URLPatternComponentResult | ||
password: URLPatternComponentResult | ||
hostname: URLPatternComponentResult | ||
port: URLPatternComponentResult | ||
pathname: URLPatternComponentResult | ||
search: URLPatternComponentResult | ||
hash: URLPatternComponentResult | ||
} | ||
interface URLPatternComponentResult { | ||
input: string | ||
groups: { | ||
[key: string]: string | undefined | ||
} | ||
} | ||
export interface Primitives { | ||
@@ -11,0 +60,0 @@ // self-references |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/primitives", | ||
"version": "0.12.7", | ||
"version": "0.12.8", | ||
"main": "dist/index.js", | ||
@@ -66,3 +66,3 @@ "repository": { | ||
"types": "dist/index.d.ts", | ||
"gitHead": "0124d1f8796f68c02304a3db3fd43ee552ccc306" | ||
"gitHead": "d808f5468cda06a7941cec68acf50983bbcab5da" | ||
} |
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
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
1192993
27413