@tolki/utils 1.4.0 → 1.5.0

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/utils.js CHANGED
@@ -1,81 +1,98 @@
1
- import { arrayableItems as i, arrayableValues as t, castableToArray as s, cssListItemToString as o, getAccessibleValues as a, normalizeToArray as p, toArrayable as l, toJsonSerializable as n, toJsonable as y, toPhpKeyString as c } from "./cast.js";
2
- import { compareValues as u, looseEqual as b, operatorMatch as h, strictEqual as f } from "./equality.js";
3
- import { ItemNotFoundException as x, MultipleItemsFoundException as S } from "./exceptions.js";
4
- import { isAccessibleData as A, isArray as N, isBoolean as F, isFalsy as I, isFiniteNumber as K, isFloat as d, isFunction as M, isInteger as T, isIterable as V, isMap as j, isNegativeNumber as v, isNonPrimitive as O, isNull as E, isNumber as k, isObject as L, isObjectAny as U, isPhpAccessible as q, isPhpFalsy as w, isPhpNumeric as z, isPlainObject as D, isPositiveNumber as J, isPrimitive as W, isPrototypeObject as B, isSet as C, isString as R, isStringable as G, isSymbol as H, isTruthy as Q, isTruthyObject as X, isUndefined as Y, isWeakMap as Z, isWeakSet as _, objectToString as $, phpValueMatch as ee, phpValueMatcher as re } from "./guards.js";
5
- import { defineKey as te, entriesKeyValue as se, isIntegerLikeKey as oe, isPhpArrayKey as ae, isUnsafeKey as pe, keyedEntries as le, phpArrayKey as ne, reindexIntegerKeys as ye, renumberPhpIntegerKeys as ce } from "./keys.js";
6
- import { resolveSliceRange as ue } from "./range.js";
7
- import { phpTypeName as he, resolveDefault as fe, typeOf as ge } from "./reflect.js";
8
- import { createSortSpecComparator as Se } from "./sorting.js";
9
- import { arrayValueMessage as Ae, lowerFirst as Ne, toLower as Fe, toUpper as Ie, upperFirst as Ke } from "./string.js";
1
+ import { arrayableItems as t, arrayableValues as i, castableToArray as s, cssListItemToString as a, getAccessibleValues as o, normalizeToArray as p, phpIntArgument as n, phpIntCast as l, phpStringCast as y, toArrayable as m, toJsonSerializable as u, toJsonable as c, toPhpKeyString as b } from "./cast.js";
2
+ import { compareValues as g, looseEqual as S, operatorMatch as f, strictEqual as x } from "./equality.js";
3
+ import { InvalidArgumentException as P, ItemNotFoundException as A, MultipleItemsFoundException as d, UnexpectedValueException as v } from "./exceptions.js";
4
+ import { isAccessibleData as E, isArray as N, isBoolean as T, isEnumCase as F, isFalsy as O, isFiniteNumber as V, isFloat as C, isFunction as M, isInteger as j, isIterable as k, isMap as L, isNegativeNumber as U, isNonPrimitive as w, isNull as z, isNumber as D, isObject as R, isObjectAny as q, isPhpAccessible as J, isPhpFalsy as W, isPhpInt as B, isPhpNumeric as G, isPlainObject as H, isPositiveNumber as Q, isPrimitive as X, isPrototypeObject as Y, isSet as Z, isString as _, isStringable as $, isSymbol as ee, isTruthy as re, isTruthyObject as te, isUndefined as ie, isWeakMap as se, isWeakSet as ae, objectToString as oe, phpValueMatch as pe, phpValueMatcher as ne } from "./guards.js";
5
+ import { arrayKeyExistsError as ye, defineKey as me, entriesKeyValue as ue, hasOwnToString as ce, isIllegalOffset as be, isIntegerLikeKey as he, isPhpArrayKey as ge, isUnsafeKey as Se, keyedEntries as fe, phpArrayKey as xe, phpComputedKey as Ie, reindexIntegerKeys as Pe, renumberPhpIntegerKeys as Ae } from "./keys.js";
6
+ import { resolvePadLength as ve, resolveRangeSize as Ke, resolveSliceRange as Ee, resolveSpliceRange as Ne, resolveTakeCount as Te } from "./range.js";
7
+ import { phpDebugType as Oe, phpTypeName as Ve, resolveDefault as Ce, typeOf as Me } from "./reflect.js";
8
+ import { createSortSpecComparator as ke, phpSortComparator as Le } from "./sorting.js";
9
+ import { arrayValueMessage as we, lowerFirst as ze, toLower as De, toUpper as Re, upperFirst as qe } from "./string.js";
10
10
  export {
11
- x as ItemNotFoundException,
12
- S as MultipleItemsFoundException,
13
- Ae as arrayValueMessage,
14
- i as arrayableItems,
15
- t as arrayableValues,
11
+ P as InvalidArgumentException,
12
+ A as ItemNotFoundException,
13
+ d as MultipleItemsFoundException,
14
+ v as UnexpectedValueException,
15
+ ye as arrayKeyExistsError,
16
+ we as arrayValueMessage,
17
+ t as arrayableItems,
18
+ i as arrayableValues,
16
19
  s as castableToArray,
17
- u as compareValues,
18
- Se as createSortSpecComparator,
19
- o as cssListItemToString,
20
- te as defineKey,
21
- se as entriesKeyValue,
22
- a as getAccessibleValues,
23
- A as isAccessibleData,
20
+ g as compareValues,
21
+ ke as createSortSpecComparator,
22
+ a as cssListItemToString,
23
+ me as defineKey,
24
+ ue as entriesKeyValue,
25
+ o as getAccessibleValues,
26
+ ce as hasOwnToString,
27
+ E as isAccessibleData,
24
28
  N as isArray,
25
- F as isBoolean,
26
- I as isFalsy,
27
- K as isFiniteNumber,
28
- d as isFloat,
29
+ T as isBoolean,
30
+ F as isEnumCase,
31
+ O as isFalsy,
32
+ V as isFiniteNumber,
33
+ C as isFloat,
29
34
  M as isFunction,
30
- T as isInteger,
31
- oe as isIntegerLikeKey,
32
- V as isIterable,
33
- j as isMap,
34
- v as isNegativeNumber,
35
- O as isNonPrimitive,
36
- E as isNull,
37
- k as isNumber,
38
- L as isObject,
39
- U as isObjectAny,
40
- q as isPhpAccessible,
41
- ae as isPhpArrayKey,
42
- w as isPhpFalsy,
43
- z as isPhpNumeric,
44
- D as isPlainObject,
45
- J as isPositiveNumber,
46
- W as isPrimitive,
47
- B as isPrototypeObject,
48
- C as isSet,
49
- R as isString,
50
- G as isStringable,
51
- H as isSymbol,
52
- Q as isTruthy,
53
- X as isTruthyObject,
54
- Y as isUndefined,
55
- pe as isUnsafeKey,
56
- Z as isWeakMap,
57
- _ as isWeakSet,
58
- le as keyedEntries,
59
- b as looseEqual,
60
- Ne as lowerFirst,
35
+ be as isIllegalOffset,
36
+ j as isInteger,
37
+ he as isIntegerLikeKey,
38
+ k as isIterable,
39
+ L as isMap,
40
+ U as isNegativeNumber,
41
+ w as isNonPrimitive,
42
+ z as isNull,
43
+ D as isNumber,
44
+ R as isObject,
45
+ q as isObjectAny,
46
+ J as isPhpAccessible,
47
+ ge as isPhpArrayKey,
48
+ W as isPhpFalsy,
49
+ B as isPhpInt,
50
+ G as isPhpNumeric,
51
+ H as isPlainObject,
52
+ Q as isPositiveNumber,
53
+ X as isPrimitive,
54
+ Y as isPrototypeObject,
55
+ Z as isSet,
56
+ _ as isString,
57
+ $ as isStringable,
58
+ ee as isSymbol,
59
+ re as isTruthy,
60
+ te as isTruthyObject,
61
+ ie as isUndefined,
62
+ Se as isUnsafeKey,
63
+ se as isWeakMap,
64
+ ae as isWeakSet,
65
+ fe as keyedEntries,
66
+ S as looseEqual,
67
+ ze as lowerFirst,
61
68
  p as normalizeToArray,
62
- $ as objectToString,
63
- h as operatorMatch,
64
- ne as phpArrayKey,
65
- he as phpTypeName,
66
- ee as phpValueMatch,
67
- re as phpValueMatcher,
68
- ye as reindexIntegerKeys,
69
- ce as renumberPhpIntegerKeys,
70
- fe as resolveDefault,
71
- ue as resolveSliceRange,
72
- f as strictEqual,
73
- l as toArrayable,
74
- n as toJsonSerializable,
75
- y as toJsonable,
76
- Fe as toLower,
77
- c as toPhpKeyString,
78
- Ie as toUpper,
79
- ge as typeOf,
80
- Ke as upperFirst
69
+ oe as objectToString,
70
+ f as operatorMatch,
71
+ xe as phpArrayKey,
72
+ Ie as phpComputedKey,
73
+ Oe as phpDebugType,
74
+ n as phpIntArgument,
75
+ l as phpIntCast,
76
+ Le as phpSortComparator,
77
+ y as phpStringCast,
78
+ Ve as phpTypeName,
79
+ pe as phpValueMatch,
80
+ ne as phpValueMatcher,
81
+ Pe as reindexIntegerKeys,
82
+ Ae as renumberPhpIntegerKeys,
83
+ Ce as resolveDefault,
84
+ ve as resolvePadLength,
85
+ Ke as resolveRangeSize,
86
+ Ee as resolveSliceRange,
87
+ Ne as resolveSpliceRange,
88
+ Te as resolveTakeCount,
89
+ x as strictEqual,
90
+ m as toArrayable,
91
+ u as toJsonSerializable,
92
+ c as toJsonable,
93
+ De as toLower,
94
+ b as toPhpKeyString,
95
+ Re as toUpper,
96
+ Me as typeOf,
97
+ qe as upperFirst
81
98
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolki/utils",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "A set of utility functions for the @tolki packages.",
5
5
  "author": "Abraham Arango <https://github.com/abetwothree>",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  "type": "module",
16
16
  "main": "dist/index.js",
17
17
  "dependencies": {
18
- "@tolki/types": "^1.7.0"
18
+ "@tolki/types": "^1.8.0"
19
19
  },
20
20
  "sideEffects": false,
21
21
  "files": [