Socket
Socket
Sign inDemoInstall

@ark/util

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ark/util - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

2

out/generics.d.ts

@@ -19,4 +19,2 @@ import type { Primitive } from "./domain.ts";

} & u;
/** Returns onTrue if the type is exactly `{}` and onFalse otherwise*/
export type ifEmptyObjectLiteral<t, onTrue = true, onFalse = false> = {} extends t ? keyof t extends never ? onTrue : onFalse : onFalse;
export type leftIfEqual<l, r> = [l, r] extends [r, l] ? l : r;

@@ -23,0 +21,0 @@ export type UnknownUnion = string | number | symbol | bigint | boolean | object | null | undefined;

5

out/records.d.ts

@@ -127,2 +127,7 @@ import type { array } from "./arrays.ts";

export declare const omit: <o extends object, keys extends keySetOf<o>>(o: o, keys: keys) => omit<o, keyof keys & keyof o>;
/** Returns onTrue if the type is exactly `{}` and onFalse otherwise*/
export type ifEmptyObjectLiteral<t, onTrue = true, onFalse = false> = [
unknown,
t & (null | undefined)
] extends [t | null | undefined, never] ? onTrue : onFalse;
export type EmptyObject = Record<PropertyKey, never>;

@@ -129,0 +134,0 @@ export declare const isEmptyObject: (o: object) => o is EmptyObject;

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

export declare const arkUtilVersion = "0.5.0";
export declare const arkUtilVersion = "0.6.0";
export declare const initialRegistryContents: {

@@ -3,0 +3,0 @@ version: string;

@@ -8,3 +8,3 @@ import { domainOf } from "./domain.js";

// For now, we assert this matches the package.json version via a unit test.
export const arkUtilVersion = "0.5.0";
export const arkUtilVersion = "0.6.0";
export const initialRegistryContents = {

@@ -11,0 +11,0 @@ version: arkUtilVersion,

{
"name": "@ark/util",
"version": "0.5.0",
"version": "0.6.0",
"author": {

@@ -5,0 +5,0 @@ "name": "David Blass",

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