Comparing version 0.8.6 to 1.0.0
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
42292
1094
1