Socket
Socket
Sign inDemoInstall

@edge-runtime/primitives

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edge-runtime/primitives - npm Package Compare versions

Comparing version 0.12.7 to 0.12.8

51

dist/index.d.ts
/// <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

4

package.json

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc