New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hybridly/utils

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hybridly/utils - npm Package Compare versions

Comparing version

to
0.1.0-alpha.0

23

dist/index.d.ts
import makeDebugger from 'debug';
export { default as clone } from 'lodash.clonedeep';
declare type RequestData = Record<string, FormDataConvertible> | FormDataConvertible | FormData;
declare type FormDataConvertible = {
type RequestData = Record<string, FormDataConvertible> | FormDataConvertible | FormData;
type FormDataConvertible = {
[key: string]: FormDataConvertible;
} | Array<FormDataConvertible> | Blob | File | FormDataEntryValue | Date | boolean | number | null | undefined | string;
} | Array<FormDataConvertible> | Set<FormDataConvertible> | Blob | File | FormDataEntryValue | Date | boolean | number | null | undefined | string;
/**

@@ -18,3 +19,3 @@ * Checks if the given object has a file.

private html;
private animationDurationInMs;
private id;
private main;

@@ -25,5 +26,7 @@ private overlay;

private hideOnEscape?;
constructor(html: string, animationDurationInMs?: number);
static fromException(response: string): Modal;
static forPageComponent(component: string): Modal;
private animationDurationInMs;
constructor(html: string, id: string);
static fromException(response: string, id: string): Modal;
static forPageComponent(component: string, id: string): Modal;
static domainsDisabled(component: string, id: string): Modal;
initializeDOM(): false | undefined;

@@ -35,4 +38,6 @@ show(): void;

declare function showPageComponentErrorModal(response: string): Modal;
declare function showDomainsDisabledErrorModal(response: string): Modal;
declare function random(length?: number): string;
/** Simple pattern matching util. */
declare function match<TValue extends string | number = string, TReturnValue = unknown>(value: TValue, lookup: Record<TValue | 'default', TReturnValue | ((...args: any[]) => TReturnValue)>, ...args: any[]): TReturnValue | Promise<TReturnValue>;

@@ -42,4 +47,4 @@ declare function debounce<F extends (...params: any[]) => ReturnType<F>>(fn: F, delay: number): F;

declare function when<T, D>(condition: any, data: T, _default?: D): T | D | undefined;
declare function clone<T>(val: T): T;
declare function merge<T>(x: Partial<T>, y: Partial<T>): T;
declare function removeTrailingSlash(string: string): string;

@@ -58,2 +63,2 @@ declare const debug: {

export { FormDataConvertible, RequestData, clone, debounce, debug, hasFiles, match, merge, objectToFormData, random, showPageComponentErrorModal, showResponseErrorModal, value, when };
export { FormDataConvertible, RequestData, debounce, debug, hasFiles, match, merge, objectToFormData, random, removeTrailingSlash, showDomainsDisabledErrorModal, showPageComponentErrorModal, showResponseErrorModal, value, when };
{
"name": "@hybridly/utils",
"version": "0.0.1-dev.4",
"description": "A solution to develop server-driven, client-rendered applications",
"version": "0.1.0-alpha.0",
"description": "Utils used in Hybridly packages",
"keywords": [
"hybridly",
"inertiajs"
"hybridly"
],
"homepage": "https://github.com/hybridly/hybridly#readme",
"homepage": "https://github.com/hybridly/hybridly/tree/main/packages/config#readme",
"bugs": {

@@ -16,3 +15,4 @@ "url": "https://github.com/hybridly/hybridly/issues"

"type": "git",
"url": "git+https://github.com/hybridly/hybridly.git"
"url": "git+https://github.com/hybridly/hybridly.git",
"directory": "packages/utils"
},

@@ -38,3 +38,4 @@ "funding": "https://github.com/sponsors/innocenzi",

"debug": "^4.3.4",
"deepmerge": "^4.2.2"
"deepmerge": "^4.3.0",
"lodash.clonedeep": "^4.5.0"
},

@@ -41,0 +42,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet