Socket
Socket
Sign inDemoInstall

@dxos/util

Package Overview
Dependencies
Maintainers
25
Versions
3013
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/util - npm Package Compare versions

Comparing version 2.19.7 to 2.19.8-dev.02c1eb09

2

dist/src/types.d.ts

@@ -13,3 +13,3 @@ export declare type MaybePromise<T> = T | Promise<T>;

*/
export declare const getAsyncValue: <T extends unknown>(value: MaybeFunction<MaybePromise<T>>) => Promise<any>;
export declare const getAsyncValue: <T>(value: MaybeFunction<MaybePromise<T>>) => Promise<any>;
//# sourceMappingURL=types.d.ts.map
{
"name": "@dxos/util",
"version": "2.19.7",
"version": "2.19.8-dev.02c1eb09",
"description": "Temporary bucket for misc functions, which should graduate into separate packages.",

@@ -21,4 +21,4 @@ "bugs": {

"dependencies": {
"@dxos/crypto": "2.19.7",
"@dxos/debug": "2.19.7",
"@dxos/crypto": "2.19.8-dev.02c1eb09",
"@dxos/debug": "2.19.8-dev.02c1eb09",
"@types/node": "^14.0.9"

@@ -25,0 +25,0 @@ },

@@ -20,3 +20,3 @@ //

*/
export const getAsyncValue = async <T extends any>(value: MaybeFunction<MaybePromise<T>>) => {
export const getAsyncValue = async <T>(value: MaybeFunction<MaybePromise<T>>) => {
if (typeof value === 'function') {

@@ -23,0 +23,0 @@ return (value as Function)();

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