You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ufo

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ufo - npm Package Compare versions

Comparing version

to
1.0.0

18

dist/index.d.ts

@@ -93,6 +93,6 @@ /**

declare type QueryValue = string | string[] | undefined;
declare type QueryValue = string | string[] | undefined | null;
declare type QueryObject = Record<string, QueryValue>;
declare function parseQuery(paramsStr?: string): QueryObject;
declare function encodeQueryItem(key: string, val: QueryValue): string;
declare function parseQuery(parametersString?: string): QueryObject;
declare function encodeQueryItem(key: string, value: QueryValue): string;
declare function stringifyQuery(query: QueryObject): string;

@@ -125,7 +125,7 @@

declare function isRelative(inputStr: string): boolean;
declare function hasProtocol(inputStr: string, acceptProtocolRelative?: boolean): boolean;
declare function hasTrailingSlash(input?: string, queryParams?: boolean): boolean;
declare function withoutTrailingSlash(input?: string, queryParams?: boolean): string;
declare function withTrailingSlash(input?: string, queryParams?: boolean): string;
declare function isRelative(inputString: string): boolean;
declare function hasProtocol(inputString: string, acceptProtocolRelative?: boolean): boolean;
declare function hasTrailingSlash(input?: string, queryParameters?: boolean): boolean;
declare function withoutTrailingSlash(input?: string, queryParameters?: boolean): string;
declare function withTrailingSlash(input?: string, queryParameters?: boolean): string;
declare function hasLeadingSlash(input?: string): boolean;

@@ -155,4 +155,4 @@ declare function withoutLeadingSlash(input?: string): string;

}
declare function isEqual(a: string, b: string, opts?: CompareURLOptions): boolean;
declare function isEqual(a: string, b: string, options?: CompareURLOptions): boolean;
export { $URL, ParsedAuth, ParsedHost, ParsedURL, QueryObject, QueryValue, cleanDoubleSlashes, createURL, decode, decodePath, decodeQueryValue, encode, encodeHash, encodeHost, encodeParam, encodePath, encodeQueryItem, encodeQueryKey, encodeQueryValue, getQuery, hasLeadingSlash, hasProtocol, hasTrailingSlash, isEmptyURL, isEqual, isNonEmptyURL, isRelative, isSamePath, joinURL, normalizeURL, parseAuth, parseHost, parsePath, parseQuery, parseURL, resolveURL, stringifyParsedURL, stringifyQuery, withBase, withHttp, withHttps, withLeadingSlash, withProtocol, withQuery, withTrailingSlash, withoutBase, withoutLeadingSlash, withoutProtocol, withoutTrailingSlash };
{
"name": "ufo",
"version": "0.8.6",
"version": "1.0.0",
"description": "URL utils for humans",

@@ -21,13 +21,2 @@ "repository": "unjs/ufo",

],
"devDependencies": {
"@nuxtjs/eslint-config-typescript": "^11.0.0",
"@types/node": "^18.11.0",
"c8": "^7.12.0",
"eslint": "^8.25.0",
"standard-version": "^9.5.0",
"typescript": "^4.8.4",
"unbuild": "^0.9.2",
"vitest": "^0.24.3"
},
"packageManager": "pnpm@7.13.4",
"scripts": {

@@ -37,5 +26,17 @@ "build": "unbuild",

"lint": "eslint --ext .ts .",
"prepack": "pnpm build",
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
"test": "pnpm lint && vitest run"
}
}
},
"devDependencies": {
"@types/node": "^18.11.9",
"@vitest/coverage-c8": "^0.25.2",
"eslint": "^8.27.0",
"eslint-config-unjs": "^0.0.2",
"standard-version": "^9.5.0",
"typescript": "^4.8.4",
"unbuild": "^0.9.4",
"vitest": "^0.25.2"
},
"packageManager": "pnpm@7.16.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet