Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@deephaven/utils

Package Overview
Dependencies
Maintainers
0
Versions
798
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deephaven/utils - npm Package Compare versions

Comparing version 0.72.1-beta.5 to 0.72.1-core-plugins.9

6

dist/Asserts.d.ts
/**
* Throws if given object is not an instance of a given type.
* @param instance
* @param type
*/
export declare function assertInstanceOf<T>(instance: unknown, type: new (...args: any[]) => T): asserts instance is T;
/**
* Throws an error if excecuted. Useful for exhaustive switch statements.

@@ -3,0 +9,0 @@ *

/**
* Throws if given object is not an instance of a given type.
* @param instance
* @param type
*/
export function assertInstanceOf(instance,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type) {
if (!(instance instanceof type)) {
throw new Error("Expected instance of ".concat(type.name));
}
}
/**
* Throws an error if excecuted. Useful for exhaustive switch statements.

@@ -3,0 +16,0 @@ *

@@ -17,2 +17,9 @@ export declare const EMPTY_ARRAY: readonly never[];

/**
* Wrap a value in an array if it is not already an array. Otherwise return the
* value.
* @param value The value to ensure is an array
* @returns The value as an array
*/
export declare function ensureArray<T>(value: T | T[]): T[];
/**
* Filters out any null or undefined values from an array.

@@ -19,0 +26,0 @@ * @param maybeDefined

@@ -5,2 +5,12 @@ export var EMPTY_ARRAY = Object.freeze([]);

/**
* Wrap a value in an array if it is not already an array. Otherwise return the
* value.
* @param value The value to ensure is an array
* @returns The value as an array
*/
export function ensureArray(value) {
return Array.isArray(value) ? value : [value];
}
/**
* Filters out any null or undefined values from an array.

@@ -7,0 +17,0 @@ * @param maybeDefined

2

dist/index.d.ts

@@ -21,3 +21,3 @@ export * from './DataUtils';

export type { Range } from './RangeUtils';
export { default as TextUtils } from './TextUtils';
export * from './TextUtils';
export { default as TimeoutError } from './TimeoutError';

@@ -24,0 +24,0 @@ export { default as TimeUtils } from './TimeUtils';

@@ -20,3 +20,3 @@ export * from "./DataUtils.js";

export { default as RangeUtils, generateRange } from "./RangeUtils.js";
export { default as TextUtils } from "./TextUtils.js";
export * from "./TextUtils.js";
export { default as TimeoutError } from "./TimeoutError.js";

@@ -23,0 +23,0 @@ export { default as TimeUtils } from "./TimeUtils.js";

@@ -1,2 +0,3 @@

declare class TextUtils {
export declare const NON_BREAKING_SPACE = "\u00A0";
export declare class TextUtils {
/**

@@ -3,0 +4,0 @@ * Joins a list of strings with a comma, keeping the oxford comma and adding "and" as appropriate.

@@ -1,2 +0,3 @@

class TextUtils {
export var NON_BREAKING_SPACE = '\xa0';
export class TextUtils {
/**

@@ -3,0 +4,0 @@ * Joins a list of strings with a comma, keeping the oxford comma and adding "and" as appropriate.

export declare const ACTION_ICON_HEIGHT = 24;
export declare const COMBO_BOX_ITEM_HEIGHT = 32;
export declare const COMBO_BOX_TOP_OFFSET = 4;
export declare const ITEM_KEY_PREFIX = "DH_ITEM_KEY";
export declare const LIST_VIEW_ROW_HEIGHT = 32;
export declare const PICKER_ITEM_HEIGHT = 32;
export declare const PICKER_ITEM_HEIGHTS: {
readonly medium: 32;
readonly large: 48;
};
export declare const PICKER_TOP_OFFSET = 4;

@@ -16,2 +16,16 @@ export declare const TABLE_ROW_HEIGHT = 33;

};
export declare const LIST_VIEW_ROW_HEIGHTS: {
readonly compact: {
readonly medium: 32;
readonly large: 40;
};
readonly regular: {
readonly medium: 40;
readonly large: 50;
};
readonly spacious: {
readonly medium: 48;
readonly large: 60;
};
};
//# sourceMappingURL=UIConstants.d.ts.map
export var ACTION_ICON_HEIGHT = 24;
export var COMBO_BOX_ITEM_HEIGHT = 32;
export var COMBO_BOX_TOP_OFFSET = 4;
export var ITEM_KEY_PREFIX = 'DH_ITEM_KEY';
export var LIST_VIEW_ROW_HEIGHT = 32;
export var PICKER_ITEM_HEIGHT = 32;
// https://github.com/adobe/react-spectrum/blob/main/packages/%40react-spectrum/listbox/src/ListBoxBase.tsx#L56
export var PICKER_ITEM_HEIGHTS = {
medium: 32,
large: 48
};
export var PICKER_TOP_OFFSET = 4;

@@ -16,2 +17,18 @@ export var TABLE_ROW_HEIGHT = 33;

};
// Copied from https://github.com/adobe/react-spectrum/blob/b2d25ef23b827ec2427bf47b343e6dbd66326ed3/packages/%40react-spectrum/list/src/ListView.tsx#L78
export var LIST_VIEW_ROW_HEIGHTS = {
compact: {
medium: 32,
large: 40
},
regular: {
medium: 40,
large: 50
},
spacious: {
medium: 48,
large: 60
}
};
//# sourceMappingURL=UIConstants.js.map
{
"name": "@deephaven/utils",
"version": "0.72.1-beta.5+01c2a064",
"version": "0.72.1-core-plugins.9+2dd04edb",
"description": "Deephaven Utils",

@@ -31,3 +31,3 @@ "author": "Deephaven Data Labs LLC",

},
"gitHead": "01c2a064f287638382f0f7fe474098393b73b9ca"
"gitHead": "2dd04edb752fbc59cbcda20383bfcaabd393108b"
}

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

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

Sorry, the diff of this file is not supported yet

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