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

@mui/toolpad-utils

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui/toolpad-utils - npm Package Compare versions

Comparing version 0.1.46 to 0.1.47

dist/immutability.cjs

52

dist/types.d.ts
declare const brand: unique symbol;
export type WithControlledProp<V, K extends string = 'value', O extends string = K extends 'value' ? 'onChange' : `on${Capitalize<K>}Change`> = Record<K, V> & Record<O, (newValue: V) => void>;
export type ExactEntriesOf<P> = Exclude<{
[K in keyof P]: [K, P[K]];
}[keyof P], undefined>[];
/**
* The inverse of Awaited.
*/
export type Awaitable<T> = T | Promise<T> | PromiseLike<T>;
/**
* @example
* type T0 = Join<[1, 2, 3, 4], '.'>; // '1.2.3.4'
* type T1 = Join<['foo', 'bar', 'baz'], '-'>; // 'foo-bar-baz'
* type T2 = Join<[], '.'>; // ''
*/
export type Join<T extends unknown[], D extends string> = T extends [] ? '' : T extends [string | number | boolean | bigint] ? `${T[0]}` : T extends [string | number | boolean | bigint, ...infer U] ? `${T[0]}${D}${Join<U, D>}` : string;
/**
* @example
* type T0 = Split<'foo', '.'>; // ['foo']
* type T1 = Split<'foo.bar.baz', '.'>; // ['foo', 'bar', 'baz']
* type T2 = Split<'foo.bar', ''>; // ['f', 'o', 'o', '.', 'b', 'a', 'r']
*/
export type Split<S extends string, D extends string> = string extends S ? string[] : S extends '' ? [] : S extends `${infer T}${D}${infer U}` ? [T, ...Split<U, D>] : [S];
/**
* @example
* type T0 = CapitalizeAll<['foo', 'bar']>; // ['Foo', 'Bar']
* type T1 = CapitalizeAll<[]>; // []
*/
export type CapitalizeAll<T extends string[]> = T extends [] ? [] : T extends [string, ...infer U] ? U extends string[] ? [Capitalize<T[0]>, ...CapitalizeAll<U>] : never : never;
/**
* @example
* type T0 = CapitalizeAll<['foo', 'bar', 'baz']>; // ['foo', 'Bar', 'Baz']
* type T1 = CapitalizeAll<['foo']>; // ['foo']
* type T2 = CapitalizeAll<[]>; // []
*/
export type CapitalizeTail<T extends string[]> = T extends [] ? [] : T extends [string, ...infer U] ? U extends string[] ? [T[0], ...CapitalizeAll<U>] : never : never;
/**
* sString template type that converts snake-case to camel-case
* @example
* type T0 = SnakeToCamel<'foo-bar-baz'>; // 'fooBarBaz'
* type T1 = CapitalizeAll<'foo'>; // 'foo'
* type T2 = CapitalizeAll<''>; // ''
*/
export type SnakeToCamel<T extends string> = Join<CapitalizeTail<Split<T, '-'>>, ''>;
/**
* The inverso of NonNullable
*/
export type Maybe<T> = T | undefined | null;
export type ValueOf<T> = T[keyof T];
export interface Brand<B> {

@@ -12,6 +60,2 @@ readonly [brand]: B;

} : never;
/**
* The inverse of Awaited.
*/
export type Awaitable<T> = T | Promise<T> | PromiseLike<T>;
export {};

4

package.json
{
"name": "@mui/toolpad-utils",
"version": "0.1.46",
"version": "0.1.47",
"description": "Build MUI apps quickly",

@@ -50,3 +50,3 @@ "author": "MUI Toolpad team",

"invariant": "2.2.4",
"prettier": "3.2.3",
"prettier": "3.2.4",
"react-is": "18.2.0",

@@ -53,0 +53,0 @@ "title": "3.5.3",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc