@ribajs/utils
Advanced tools
Comparing version 2.0.0-alpha.5 to 2.0.0-alpha.6
@@ -10,4 +10,4 @@ import { Deferred } from "./types/index.js"; | ||
export declare const debounceF: (fn: (...params: any) => any) => (...params: any) => Promise<unknown>; | ||
export declare const debounce: (fn: (...params: any) => any, wait?: number | undefined) => (...params: any) => Promise<unknown>; | ||
export declare const debounce: (fn: (...params: any) => any, wait?: number) => (...params: any) => Promise<unknown>; | ||
export declare const throttle: (fn: (...params: any[]) => any, wait?: number) => (...params: any[]) => Promise<unknown>; | ||
export declare const pTimeout: <T>(value: Promise<T>, ms: number, error?: Error | undefined) => Promise<T>; | ||
export declare const pTimeout: <T>(value: Promise<T>, ms: number, error?: Error) => Promise<T>; |
@@ -23,3 +23,3 @@ export declare const MAX_UID = 1000; | ||
}; | ||
export declare const isInViewport: (elem: Element, offsetTop?: number | undefined, offsetBottom?: number) => boolean; | ||
export declare const isInViewport: (elem: Element, offsetTop?: number, offsetBottom?: number) => boolean; | ||
export declare const selectAll: (element: HTMLInputElement) => void; | ||
@@ -26,0 +26,0 @@ export declare const ready: (callback: () => void) => Error | undefined; |
export declare const toType: (obj: any) => string | null; | ||
export declare const jsonStringify: (object: any, space?: number, replaceSingleQuote?: boolean) => string; | ||
export declare const parseJsonString: (value?: string | null | undefined) => any; | ||
export declare const couldBeJson: (str?: string | null | undefined) => boolean; | ||
export declare const isBase64: (str?: string | null | undefined) => boolean; | ||
export declare const parseJsonString: (value?: string | null) => any; | ||
export declare const couldBeJson: (str?: string | null) => boolean; | ||
export declare const isBase64: (str?: string | null) => boolean; | ||
export declare const toBase64: (obj: any) => string; | ||
export declare const fromBase64: (base64?: string | null | undefined) => any; | ||
export declare const isJson: (str?: string | null | undefined) => boolean; | ||
export declare const parseType: (input?: string | null | undefined, isAttribute?: boolean) => { | ||
export declare const fromBase64: (base64?: string | null) => any; | ||
export declare const isJson: (str?: string | null) => boolean; | ||
export declare const parseType: (input?: string | null, isAttribute?: boolean) => { | ||
type: number; | ||
@@ -11,0 +11,0 @@ value: any; |
export declare const getUrlParameter: (name: string, url: string) => string | null; | ||
export declare const getLocation: (url?: string | undefined) => Location; | ||
export declare const normalizeUrl: (url?: string | undefined) => { | ||
export declare const getLocation: (url?: string) => Location; | ||
export declare const normalizeUrl: (url?: string) => { | ||
url: string; | ||
location: Location; | ||
}; | ||
export declare const getUrl: (url?: string | undefined) => string; | ||
export declare const onRoute: (checkUrl?: string | undefined, compareQueryParam?: boolean) => boolean; | ||
export declare const onParentRoute: (checkUrl?: string | undefined) => boolean; | ||
export declare const getUrl: (url?: string) => string; | ||
export declare const onRoute: (checkUrl?: string, compareQueryParam?: boolean) => boolean; | ||
export declare const onParentRoute: (checkUrl?: string) => boolean; | ||
export declare const cleanLink: (url: string) => string; | ||
export declare const getPort: (p?: string | undefined, url?: string | undefined) => number | undefined; | ||
export declare const getPort: (p?: string, url?: string) => number | undefined; | ||
export declare const isAbsoluteUrl: (url: string) => boolean; | ||
export declare const isExternalUrl: (absoluteUrl: string) => boolean; | ||
export declare const isInternalUrl: (url: string) => boolean; | ||
export declare const getHash: (url?: string | undefined) => string; | ||
export declare const getHash: (url?: string) => string; | ||
export declare const updateHash: (hash: string) => string; | ||
export declare const removeHash: () => void; |
{ | ||
"name": "@ribajs/utils", | ||
"description": "Utils module of Riba.js", | ||
"version": "2.0.0-alpha.5", | ||
"version": "2.0.0-alpha.6", | ||
"type": "module", | ||
@@ -55,12 +55,12 @@ "engines": { | ||
"devDependencies": { | ||
"@babel/runtime": "^7.17.9", | ||
"@babel/runtime-corejs3": "^7.17.9", | ||
"@ribajs/eslint-config": "^2.0.0-alpha.5", | ||
"@ribajs/tsconfig": "^2.0.0-alpha.5", | ||
"@types/jest": "^27.4.1", | ||
"@types/node": "^17.0.25", | ||
"@babel/runtime": "^7.18.3", | ||
"@babel/runtime-corejs3": "^7.18.3", | ||
"@ribajs/eslint-config": "^2.0.0-alpha.6", | ||
"@ribajs/tsconfig": "^2.0.0-alpha.6", | ||
"@types/jest": "^27.5.2", | ||
"@types/node": "^17.0.42", | ||
"babel-jest": "^27.5.1", | ||
"eslint": "^8.13.0", | ||
"typescript": "4.6.3" | ||
"eslint": "^8.17.0", | ||
"typescript": "4.7.3" | ||
} | ||
} |
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
188102