Socket
Socket
Sign inDemoInstall

@xylabs/assert

Package Overview
Dependencies
Maintainers
5
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 3.6.12 to 4.0.0

xy.config.ts

8

dist/neutral/index.d.ts

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

export type AssertExMessageFunc<T> = (value?: T | null) => string;
export type AssertExErrorFunc<T, R extends Error> = (value?: T | null) => R;
type AssertExMessageFunc<T> = (value?: T | null) => string;
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 { assertEx };
//# sourceMappingURL=index.d.ts.map
export { type AssertExErrorFunc, type AssertExMessageFunc, assertEx };

@@ -16,19 +16,12 @@ {

".": {
"require": {
"types": "./dist/neutral/index.d.cts",
"default": "./dist/neutral/index.cjs"
},
"import": {
"types": "./dist/neutral/index.d.ts",
"default": "./dist/neutral/index.mjs"
}
"types": "./dist/neutral/index.d.ts",
"default": "./dist/neutral/index.mjs"
},
"./package.json": "./package.json"
},
"main": "./dist/neutral/index.cjs",
"types": "./dist/neutral/index.d.ts",
"module": "./dist/neutral/index.mjs",
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.15.14",
"@xylabs/tsconfig": "^3.15.14",
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
"@xylabs/tsconfig": "^4.0.0-rc.15",
"typescript": "^5.5.4"

@@ -54,4 +47,4 @@ },

"sideEffects": false,
"version": "3.6.12",
"version": "4.0.0",
"type": "module"
}
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