@augment-vir/common 32.1.0 → 32.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/augments/array/array-map.d.ts +1 -2
- package/dist/augments/array/array-pagination.d.ts +1 -1
- package/dist/augments/function/retry.d.ts +1 -1
- package/dist/augments/function/wrap-in-try.d.ts +1 -2
- package/dist/augments/function/wrap-in-try.js +1 -1
- package/dist/augments/json/copy-through-json.d.ts +1 -2
- package/dist/augments/json/copy-through-json.js +1 -1
- package/dist/augments/json/jsonify.d.ts +1 -1
- package/dist/augments/object/constructor-instance-map.d.ts +1 -2
- package/dist/augments/object/diff.d.ts +1 -1
- package/dist/augments/object/empty.d.ts +1 -1
- package/dist/augments/object/merge-deep.d.ts +1 -1
- package/dist/augments/object/object-filter.d.ts +1 -2
- package/dist/augments/promise/promise-queue.d.ts +1 -2
- package/dist/augments/selection-set/selection-set.d.ts +1 -2
- package/dist/augments/type/readonly.d.ts +0 -1
- package/dist/augments/type/writable.d.ts +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +3 -4
- package/dist/augments/type/union.d.ts +0 -1
- package/dist/augments/type/union.js +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type ArrayElement, type TupleIndexesRecursive } from '@augment-vir/core';
|
|
2
|
-
import { type Writable } from '../type/writable.js';
|
|
1
|
+
import { type ArrayElement, type TupleIndexesRecursive, type Writable } from '@augment-vir/core';
|
|
3
2
|
/**
|
|
4
3
|
* Performs
|
|
5
4
|
* [`[].map()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/map)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PartialWithUndefined } from '@augment-vir/common';
|
|
2
|
+
import { type IsEqual } from '@augment-vir/core';
|
|
2
3
|
import { type AtLeastOneDuration } from '@date-vir/duration';
|
|
3
|
-
import { type IsEqual } from 'type-fest';
|
|
4
4
|
/**
|
|
5
5
|
* Params for the callback passed to {@link retry}.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { check } from '@augment-vir/assert';
|
|
2
|
-
import { ensureError } from '@augment-vir/core';
|
|
2
|
+
import { ensureError, } from '@augment-vir/core';
|
|
3
3
|
/**
|
|
4
4
|
* Calls the callback and returns its output. If the callback throws an error, it is handled in the
|
|
5
5
|
* following ways:
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type JsonCompatibleValue } from '@augment-vir/core';
|
|
2
|
-
import { type IsUnknown, type Jsonify, type Writable } from 'type-fest';
|
|
1
|
+
import { type IsUnknown, type JsonCompatibleValue, type Jsonify, type Writable } from '@augment-vir/core';
|
|
3
2
|
/**
|
|
4
3
|
* Deeply copy an object through JSON. This is the fastest deep copy, but the input must already be
|
|
5
4
|
* JSON serializable otherwise the copy will not match the original.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ensureErrorAndPrependMessage } from '@augment-vir/core';
|
|
1
|
+
import { ensureErrorAndPrependMessage, } from '@augment-vir/core';
|
|
2
2
|
import { safeJsonStringify } from './safe-json-stringify.js';
|
|
3
3
|
/**
|
|
4
4
|
* Deeply copy an object through JSON. This is the fastest deep copy, but the input must already be
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type AnyObject } from '@augment-vir/core';
|
|
2
|
-
import { type AbstractConstructor, type Constructor } from 'type-fest';
|
|
1
|
+
import { type AbstractConstructor, type AnyObject, type Constructor } from '@augment-vir/core';
|
|
3
2
|
/**
|
|
4
3
|
* Map all ancestor constructors of an object to a set of objects.
|
|
5
4
|
*
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type CompleteValues, type ExcludeKeysWithMatchingValues, type ExtractKeysWithMatchingValues } from '@augment-vir/core';
|
|
2
|
-
import { type OptionalKeysOf, type RequiredKeysOf } from 'type-fest';
|
|
1
|
+
import { type CompleteValues, type ExcludeKeysWithMatchingValues, type ExtractKeysWithMatchingValues, type OptionalKeysOf, type RequiredKeysOf } from '@augment-vir/core';
|
|
3
2
|
/**
|
|
4
3
|
* Filters an object. Like
|
|
5
4
|
* [`[].filter`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DeferredPromise, type MaybePromise } from '@augment-vir/core';
|
|
2
|
-
import { type RequireExactlyOne } from 'type-fest';
|
|
1
|
+
import { DeferredPromise, type MaybePromise, type RequireExactlyOne } from '@augment-vir/core';
|
|
3
2
|
import { ListenTarget } from 'typed-event-target';
|
|
4
3
|
/**
|
|
5
4
|
* An individual item in a {@link PromiseQueue} instance.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type AnyObject, type RequiredKeysOf } from '@augment-vir/core';
|
|
2
|
-
import { type IsAny, type IsNever, type OptionalKeysOf, type Primitive, type UnionToIntersection } from 'type-fest';
|
|
1
|
+
import { type AnyObject, type IsAny, type IsNever, type OptionalKeysOf, type Primitive, type RequiredKeysOf, type UnionToIntersection } from '@augment-vir/core';
|
|
3
2
|
import { type TsRecurse, type TsRecursionStart, type TsRecursionTracker, type TsTooMuchRecursion } from '../type/type-recursion.js';
|
|
4
3
|
/** All types that won't be recursed into when defining a {@link SelectionSet}. */
|
|
5
4
|
type SelectionTypesToPreserve = Primitive | RegExp | Promise<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -105,7 +105,6 @@ export * from './augments/type/readonly.js';
|
|
|
105
105
|
export * from './augments/type/remove-prefix.js';
|
|
106
106
|
export * from './augments/type/remove-suffix.js';
|
|
107
107
|
export * from './augments/type/type-recursion.js';
|
|
108
|
-
export * from './augments/type/union.js';
|
|
109
108
|
export * from './augments/type/void-type.js';
|
|
110
109
|
export * from './augments/type/writable.js';
|
|
111
110
|
/**
|
package/dist/index.js
CHANGED
|
@@ -105,7 +105,6 @@ export * from './augments/type/readonly.js';
|
|
|
105
105
|
export * from './augments/type/remove-prefix.js';
|
|
106
106
|
export * from './augments/type/remove-suffix.js';
|
|
107
107
|
export * from './augments/type/type-recursion.js';
|
|
108
|
-
export * from './augments/type/union.js';
|
|
109
108
|
export * from './augments/type/void-type.js';
|
|
110
109
|
export * from './augments/type/writable.js';
|
|
111
110
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/common",
|
|
3
|
-
"version": "32.1
|
|
3
|
+
"version": "32.2.1",
|
|
4
4
|
"description": "A collection of augments, helpers types, functions, and classes for any JavaScript environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"augment",
|
|
@@ -40,14 +40,13 @@
|
|
|
40
40
|
"test:web": "virmator --no-deps test web"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@augment-vir/assert": "^32.1
|
|
44
|
-
"@augment-vir/core": "^32.1
|
|
43
|
+
"@augment-vir/assert": "^32.2.1",
|
|
44
|
+
"@augment-vir/core": "^32.2.1",
|
|
45
45
|
"@date-vir/duration": "^8.6.1",
|
|
46
46
|
"@paralleldrive/cuid2": "^3.3.0",
|
|
47
47
|
"ansi-styles": "^6.2.3",
|
|
48
48
|
"deepcopy-esm": "^2.1.2",
|
|
49
49
|
"json5": "^2.2.3",
|
|
50
|
-
"type-fest": "^5.7.0",
|
|
51
50
|
"typed-event-target": "^4.3.1"
|
|
52
51
|
},
|
|
53
52
|
"devDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { UnionToIntersection } from 'type-fest';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|