New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@augment-vir/assert

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@augment-vir/assert - npm Package Compare versions

Comparing version

to
30.1.0

19

dist/assertions/equality/ts-type-equality.d.ts

@@ -9,2 +9,5 @@ import { type ExpectTypeOf } from 'expect-type';

}>['toEqualTypeOf'];
slowEquals: ExpectTypeOf<TestingType, {
positive: true;
}>['branded']['toEqualTypeOf'];
matches: ExpectTypeOf<TestingType, {

@@ -25,18 +28,2 @@ positive: true;

/**
* Check if a value or type matches type expectations. Use this to write type tests.
*
* This should not be used in production code. It won't cause any issues there, but it also
* provides no value there.
*
* Performs no type guarding.
*
* @example
*
* ```ts
* import {assert} from '@augment-vir/assert';
*
* assert.tsType('hello').equals<string>();
* ```
*/
/**
* Asserts within the TypeScript type system that a given type or value matches type

@@ -43,0 +30,0 @@ * expectations (using the [`expect-type`](https://www.npmjs.com/package/expect-type) package.

1

dist/assertions/equality/ts-type-equality.js

@@ -11,2 +11,3 @@ /** Uses the expect-type package to assert type matching. */

notMatches: () => { },
slowEquals: () => { },
};

@@ -13,0 +14,0 @@ }

@@ -7,3 +7,2 @@ import { type AnyObject, type AtLeastTuple, type MaybePromise, type Tuple } from '@augment-vir/core';

declare function isLengthExactly(actual: string | AnyObject, length: number, failureMessage?: string | undefined): void;
/** These functions are not used at run time, they're only here for types. */
declare function checkIsLengthAtLeast<Element, Length extends number>(actual: ReadonlyArray<Element | undefined>, length: Length): actual is AtLeastTuple<Element, Length>;

@@ -10,0 +9,0 @@ declare function checkIsLengthAtLeast(actual: string | AnyObject, length: number): boolean;

{
"name": "@augment-vir/assert",
"version": "30.0.5",
"version": "30.1.0",
"description": "A collection of assertions for test and production code alike.",

@@ -44,3 +44,3 @@ "keywords": [

"dependencies": {
"@augment-vir/core": "^30.0.5",
"@augment-vir/core": "^30.1.0",
"@date-vir/duration": "^6.0.0",

@@ -47,0 +47,0 @@ "deep-eql": "^5.0.2",