@animo-id/oauth2-utils
Advanced tools
Comparing version 0.0.2-alpha-20241104215631 to 0.0.2-alpha-20241105135725
@@ -114,2 +114,8 @@ import * as v from 'valibot'; | ||
export { type BaseSchema, type Fetch, type FetchHeaders, type FetchResponse, _Headers as Headers, type HttpMethod, type InferOutputUnion, JsonParseError, type Optional, type Simplify, _URL as URL, _URLSearchParams as URLSearchParams, type ValibotFetcher, ValidationError, addSecondsToDate, createValibotFetcher, dateToSeconds, decodeBase64, decodeUtf8String, defaultFetcher, encodeToBase64, encodeToBase64Url, encodeToUtf8String, getQueryParams, joinUriParts, mergeDeep, objectToQueryParams, parseWithErrorHandling, stringToJsonWithErrorHandling, vHttpMethod, vHttpsUrl, vInteger, valibotRecursiveFlattenIssues }; | ||
/** | ||
* Only primitive types allowed | ||
* Must have not duplicate entries (will always return false in this case) | ||
*/ | ||
declare function arrayEqualsIgnoreOrder<Item extends string | number | boolean>(a: Array<Item>, b: Array<Item>): boolean; | ||
export { type BaseSchema, type Fetch, type FetchHeaders, type FetchResponse, _Headers as Headers, type HttpMethod, type InferOutputUnion, JsonParseError, type Optional, type Simplify, _URL as URL, _URLSearchParams as URLSearchParams, type ValibotFetcher, ValidationError, addSecondsToDate, arrayEqualsIgnoreOrder, createValibotFetcher, dateToSeconds, decodeBase64, decodeUtf8String, defaultFetcher, encodeToBase64, encodeToBase64Url, encodeToUtf8String, getQueryParams, joinUriParts, mergeDeep, objectToQueryParams, parseWithErrorHandling, stringToJsonWithErrorHandling, vHttpMethod, vHttpsUrl, vInteger, valibotRecursiveFlattenIssues }; |
@@ -39,2 +39,3 @@ "use strict"; | ||
addSecondsToDate: () => addSecondsToDate, | ||
arrayEqualsIgnoreOrder: () => arrayEqualsIgnoreOrder, | ||
createValibotFetcher: () => createValibotFetcher, | ||
@@ -221,2 +222,9 @@ dateToSeconds: () => dateToSeconds, | ||
var vHttpMethod = v3.picklist(["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "TRACE", "CONNECT", "PATCH"]); | ||
// src/array.ts | ||
function arrayEqualsIgnoreOrder(a, b) { | ||
if (new Set(a).size !== new Set(b).size) return false; | ||
if (a.length !== b.length) return false; | ||
return a.every((k) => b.includes(k)); | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -230,2 +238,3 @@ 0 && (module.exports = { | ||
addSecondsToDate, | ||
arrayEqualsIgnoreOrder, | ||
createValibotFetcher, | ||
@@ -232,0 +241,0 @@ dateToSeconds, |
{ | ||
"name": "@animo-id/oauth2-utils", | ||
"version": "0.0.2-alpha-20241104215631", | ||
"version": "0.0.2-alpha-20241105135725", | ||
"exports": { | ||
@@ -5,0 +5,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
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
51794
531