Socket
Socket
Sign inDemoInstall

@xylabs/assert

Package Overview
Dependencies
Maintainers
0
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/assert - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

dist/neutral/index.d.ts.map

8

dist/neutral/index.d.ts

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

type AssertExMessageFunc<T> = (value?: T | null) => string;
type AssertExErrorFunc<T, R extends Error> = (value?: T | null) => R;
export type AssertExMessageFunc<T> = (value?: T | null) => string;
export type AssertExErrorFunc<T, R extends Error> = (value?: T | null) => R;
declare function assertEx<T>(expr: T | null | undefined): T;

@@ -7,3 +7,3 @@ declare function assertEx<T>(expr: T | null | undefined, message?: string): T;

declare function assertEx<T, R extends Error>(expr: T | null | undefined, errorFunc?: AssertExErrorFunc<T, R>): T;
export { type AssertExErrorFunc, type AssertExMessageFunc, assertEx };
export { assertEx };
//# sourceMappingURL=index.d.ts.map
{
"name": "@xylabs/assert",
"version": "4.0.3",
"version": "4.0.4",
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",

@@ -38,4 +38,4 @@ "keywords": [

"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.0",
"@xylabs/tsconfig": "^4.0.0",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"typescript": "^5.5.4"

@@ -42,0 +42,0 @@ },

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