package-json-scripts-portability 0.0.1 → 0.0.3

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.
Files changed (115) hide show
  1. package/README.md +59 -20
  2. package/dist/analyze-script.d.mts +34 -0
  3. package/dist/analyze-script.mjs +53 -0
  4. package/dist/command-checker.mjs +527 -0
  5. package/dist/command-usage.mjs +413 -0
  6. package/dist/commands.mjs +639 -0
  7. package/dist/context.mjs +25 -0
  8. package/dist/fixes.d.mts +9 -0
  9. package/dist/fixes.mjs +354 -0
  10. package/dist/index.d.mts +6 -118
  11. package/dist/index.mjs +4 -3787
  12. package/dist/line-break-checker.mjs +104 -0
  13. package/dist/messages.mjs +38 -0
  14. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/array-difference.mjs +11 -0
  15. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/array-includes.mjs +8 -0
  16. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/array-intersection.mjs +13 -0
  17. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/array-is-subset.mjs +16 -0
  18. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/arrayify.mjs +7 -0
  19. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/sorted-array-insertion-index-with.mjs +33 -0
  20. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/sorted-array-insertion-index.mjs +10 -0
  21. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/iterable/sliding-window.mjs +30 -0
  22. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/map/map-get-or-insert-computed.mjs +42 -0
  23. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/map/map-get-or-insert.mjs +40 -0
  24. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/math/clamp.mjs +7 -0
  25. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/path/to-forward-slashes.mjs +8 -0
  26. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/predicate/is-array.mjs +39 -0
  27. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/semver/is-semver-in-range.mjs +5 -0
  28. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/semver/parse-semver.mjs +26 -0
  29. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/set/set-has.mjs +8 -0
  30. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/string/substring-after-last.mjs +24 -0
  31. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/string/substring-after.mjs +24 -0
  32. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/string/substring-before.mjs +24 -0
  33. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/string/truncate.mjs +46 -0
  34. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/ts/all-union-members.mjs +45 -0
  35. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/types/maybe-readonly-array.d.mts +17 -0
  36. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/value/is-equal.mjs +37 -0
  37. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/@antfu/utils/dist/index.mjs +5 -0
  38. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/_internal/globalThis.mjs +5 -0
  39. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/_internal/isUnsafeProperty.mjs +18 -0
  40. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/_internal/setOwnValue.mjs +23 -0
  41. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/_internal/toPropertyKey.mjs +16 -0
  42. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/differenceBy.mjs +40 -0
  43. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/differenceWith.mjs +37 -0
  44. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/intersectionWith.mjs +43 -0
  45. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/isSubsetWith.mjs +36 -0
  46. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/bigint/clamp.mjs +15 -0
  47. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/baseToString.mjs +26 -0
  48. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/getSymbols.mjs +5 -0
  49. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/getTag.mjs +13 -0
  50. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/hasOwn.mjs +13 -0
  51. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/isDeepKey.mjs +39 -0
  52. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/isIndex.mjs +10 -0
  53. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/regexMultiByte.mjs +10 -0
  54. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/tags.mjs +28 -0
  55. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/toKey.mjs +15 -0
  56. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/array/sortedIndex.mjs +36 -0
  57. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/array/sortedIndexBy.mjs +54 -0
  58. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/array/sortedLastIndex.mjs +34 -0
  59. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/array/sortedLastIndexBy.mjs +21 -0
  60. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/function/identity.mjs +5 -0
  61. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/object/cloneDeep.mjs +52 -0
  62. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/object/cloneDeepWith.mjs +179 -0
  63. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/object/get.mjs +67 -0
  64. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/object/has.mjs +53 -0
  65. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/object/property.mjs +26 -0
  66. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isArguments.mjs +26 -0
  67. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isBuffer.mjs +24 -0
  68. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isMatch.mjs +34 -0
  69. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isMatchWith.mjs +163 -0
  70. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isNaN.mjs +18 -0
  71. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isNil.mjs +24 -0
  72. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isNumber.mjs +24 -0
  73. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isObject.mjs +28 -0
  74. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isObjectLike.mjs +28 -0
  75. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isSymbol.mjs +19 -0
  76. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isTypedArray.mjs +21 -0
  77. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/matches.mjs +36 -0
  78. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/matchesProperty.mjs +47 -0
  79. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/string/truncate.mjs +78 -0
  80. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/util/eq.mjs +18 -0
  81. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/util/iteratee.mjs +46 -0
  82. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/util/toPath.mjs +75 -0
  83. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/util/toString.mjs +23 -0
  84. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/function/identity.mjs +24 -0
  85. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/function/noop.mjs +12 -0
  86. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/math/clamp.mjs +23 -0
  87. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isBuffer.mjs +24 -0
  88. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isEqual.mjs +21 -0
  89. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isEqualWith.mjs +150 -0
  90. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isNil.mjs +24 -0
  91. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isNull.mjs +25 -0
  92. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isPlainObject.mjs +50 -0
  93. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isPrimitive.mjs +26 -0
  94. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isSymbol.mjs +28 -0
  95. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isTypedArray.mjs +20 -0
  96. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isUndefined.mjs +25 -0
  97. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/remeda/dist/binarySearchCutoffIndex-Bu-OMJ0Z.mjs +26 -0
  98. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/remeda/dist/isArray.mjs +18 -0
  99. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/remeda/dist/sortedIndexWith.mjs +7 -0
  100. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/ts-extras/distribution/array-includes.mjs +5 -0
  101. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/ts-extras/distribution/set-has.mjs +5 -0
  102. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/verkit/dist/comparison-CmVirWIW.mjs +108 -0
  103. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/verkit/dist/range-C5wjdo9a.mjs +164 -0
  104. package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/verkit/dist/set-BGFWKKE8.mjs +38 -0
  105. package/dist/platforms.d.mts +8 -0
  106. package/dist/platforms.mjs +26 -0
  107. package/dist/redirection-checker.mjs +169 -0
  108. package/dist/reporter.d.mts +32 -0
  109. package/dist/reporter.mjs +143 -0
  110. package/dist/runners.d.mts +21 -0
  111. package/dist/runners.mjs +199 -0
  112. package/dist/script-analyzer.mjs +853 -0
  113. package/dist/word-checker.mjs +573 -0
  114. package/dist/words.mjs +70 -0
  115. package/package.json +36 -30
@@ -0,0 +1,17 @@
1
+ /**
2
+ * A value or a readonly array of such values: `T | readonly T[]`.
3
+ *
4
+ * Unlike `MaybeArray`, it also accepts readonly arrays and tuples (like `as const` literals), so
5
+ * it fits parameters and options that only read the array.
6
+ * To tell the two cases apart, use `isArray`: unlike `Array.isArray`, it narrows this type in
7
+ * both branches.
8
+ * @example
9
+ * const watch = (paths: MaybeReadonlyArray<string>) => {
10
+ * const list = isArray(paths) ? paths : [paths]; // readonly string[]
11
+ * // ...
12
+ * };
13
+ *
14
+ * watch('src');
15
+ * watch(['src', 'test'] as const); // an error with `MaybeArray<string>`
16
+ */
17
+ export type MaybeReadonlyArray<T> = T | readonly T[];
@@ -0,0 +1,37 @@
1
+ import { isEqual as isEqual$1 } from "../vendor/es-toolkit/dist/predicate/isEqual.mjs";
2
+ import { isEqualWith } from "../vendor/es-toolkit/dist/predicate/isEqualWith.mjs";
3
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/value/is-equal.mjs
4
+ /**
5
+ * Performs a deep equality comparison between two values.
6
+ * Handles `Date`, `RegExp`, nested objects, arrays, `Map`, `Set`, and circular
7
+ * references.
8
+ *
9
+ * When the third argument is omitted, the values are compared with the default
10
+ * strategy.
11
+ * When a `customizer` is provided, it is invoked for every visited value-pair
12
+ * and may return `true` or `false` to override the default; returning
13
+ * `undefined` falls back to the default strategy.
14
+ * @param a - The first value to compare.
15
+ * @param b - The second value to compare.
16
+ * @param customizer - Optional comparator invoked as
17
+ * `(x, y, property, xParent, yParent, stack)` for each visited value-pair.
18
+ * @returns `true` if the values are deeply equal, otherwise `false`.
19
+ * @example
20
+ * // Basic deep equality
21
+ * isEqual({a: 1, b: [2, 3]}, {a: 1, b: [2, 3]});
22
+ * // true
23
+ * @example
24
+ * // Built-in types
25
+ * isEqual(new Date('2020-01-01'), new Date('2020-01-01'));
26
+ * // true
27
+ * @example
28
+ * // With a customizer: case-insensitive string comparison
29
+ * isEqual('Hello', 'hello', (x, y) => {
30
+ * if (typeof x === 'string' && typeof y === 'string') {
31
+ * return x.toLowerCase() === y.toLowerCase();
32
+ * }
33
+ * });
34
+ * // true
35
+ */
36
+ const isEqual = (a, b, customizer) => customizer ? isEqualWith(a, b, customizer) : isEqual$1(a, b);
37
+ export { isEqual };
@@ -0,0 +1,5 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/@antfu/utils/dist/index.mjs
2
+ function slash(str) {
3
+ return str.replace(/\\/g, "/");
4
+ }
5
+ export { slash };
@@ -0,0 +1,5 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/_internal/globalThis.mjs
2
+ const globalThis_ = typeof globalThis === "object" && globalThis || typeof window === "object" && window || typeof self === "object" && self || typeof global === "object" && global || (function() {
3
+ return this;
4
+ })();
5
+ export { globalThis_ as globalThis };
@@ -0,0 +1,18 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/_internal/isUnsafeProperty.mjs
2
+ /**
3
+ * Checks if a property key is unsafe to access or copy directly.
4
+ *
5
+ * This function is used in functions like `get` and `merge` to prevent
6
+ * prototype pollution attacks by identifying `__proto__`, which modifies the object's
7
+ * prototype chain. `constructor` and `prototype` stay accessible here because lodash
8
+ * keeps reads of them unrestricted; write paths use `isUnsafeToWriteProperty` instead,
9
+ * which also blocks those keys.
10
+ *
11
+ * @param key - The property key to check
12
+ * @returns `true` if the property is unsafe to access directly, `false` otherwise
13
+ * @internal
14
+ */
15
+ function isUnsafeProperty(key) {
16
+ return key === "__proto__";
17
+ }
18
+ export { isUnsafeProperty };
@@ -0,0 +1,23 @@
1
+ import { toPropertyKey } from "./toPropertyKey.mjs";
2
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/_internal/setOwnValue.mjs
3
+ /**
4
+ * Sets `object[key]` to `value` as an own property.
5
+ *
6
+ * Unlike an assignment, it doesn't replace the prototype of `object` when `key` is `__proto__`,
7
+ * which data parsed with `JSON.parse` can have as an own key, also when `key` only converts to it.
8
+ *
9
+ * @param object - The object to set the property on.
10
+ * @param key - The property key.
11
+ * @param value - The property value.
12
+ */
13
+ function setOwnValue(object, key, value) {
14
+ key = toPropertyKey(key);
15
+ if (key === "__proto__") Object.defineProperty(object, key, {
16
+ value,
17
+ writable: true,
18
+ enumerable: true,
19
+ configurable: true
20
+ });
21
+ else object[key] = value;
22
+ }
23
+ export { setOwnValue };
@@ -0,0 +1,16 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/_internal/toPropertyKey.mjs
2
+ /**
3
+ * Converts `key` to the property key that an access like `object[key]` uses, so that a check on
4
+ * the result sees the key the access gets. Only objects need converting: `['__proto__']`,
5
+ * `new String('__proto__')` or an object whose `toString` returns `'__proto__'` all access
6
+ * `__proto__`, while a check like `key === '__proto__'` misses them. The conversion runs once, so
7
+ * a `toString` can't return one key to the check and another to the access.
8
+ *
9
+ * @param key - The key to convert.
10
+ * @returns The string or symbol that an access with `key` uses, or `key` itself if it isn't an object.
11
+ */
12
+ function toPropertyKey(key) {
13
+ if (typeof key === "object" && key !== null || typeof key === "function") return Reflect.ownKeys({ [key]: void 0 })[0];
14
+ return key;
15
+ }
16
+ export { toPropertyKey };
@@ -0,0 +1,40 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/differenceBy.mjs
2
+ /**
3
+ * Computes the difference between two arrays after mapping their elements through a provided function.
4
+ *
5
+ * This function takes two arrays and a mapper function. It returns a new array containing the elements
6
+ * that are present in the first array but not in the second array, based on the identity calculated
7
+ * by the mapper function.
8
+ *
9
+ * Essentially, it filters out any elements from the first array that, when
10
+ * mapped, match an element in the mapped version of the second array.
11
+ *
12
+ * @template T, U
13
+ * @param firstArr - The primary array from which to derive the difference.
14
+ * @param secondArr - The array containing elements to be excluded from the first array.
15
+ * @param mapper - The function to map the elements of both arrays. This function
16
+ * is applied to each element in both arrays, and the comparison is made based on the mapped values.
17
+ * @returns A new array containing the elements from the first array that do not have a corresponding
18
+ * mapped identity in the second array.
19
+ *
20
+ * @example
21
+ * const array1 = [{ id: 1 }, { id: 2 }, { id: 3 }];
22
+ * const array2 = [{ id: 2 }, { id: 4 }];
23
+ * const mapper = item => item.id;
24
+ * const result = differenceBy(array1, array2, mapper);
25
+ * // result will be [{ id: 1 }, { id: 3 }] since the elements with id 2 are in both arrays and are excluded from the result.
26
+ *
27
+ * @example
28
+ * const array1 = [{ id: 1 }, { id: 2 }, { id: 3 }];
29
+ * const array2 = [2, 4];
30
+ * const mapper = item => (typeof item === 'object' ? item.id : item);
31
+ * const result = differenceBy(array1, array2, mapper);
32
+ * // result will be [{ id: 1 }, { id: 3 }] since 2 is present in both arrays after mapping, and is excluded from the result.
33
+ */
34
+ function differenceBy(firstArr, secondArr, mapper) {
35
+ const mappedSecondSet = new Set(secondArr.map((item) => mapper(item)));
36
+ return firstArr.filter((item) => {
37
+ return !mappedSecondSet.has(mapper(item));
38
+ });
39
+ }
40
+ export { differenceBy };
@@ -0,0 +1,37 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/differenceWith.mjs
2
+ /**
3
+ * Computes the difference between two arrays based on a custom equality function.
4
+ *
5
+ * This function takes two arrays and a custom comparison function. It returns a new array containing
6
+ * the elements that are present in the first array but not in the second array. The comparison to determine
7
+ * if elements are equal is made using the provided custom function.
8
+ *
9
+ * @template T, U
10
+ * @param firstArr - The array from which to get the difference.
11
+ * @param secondArr - The array containing elements to exclude from the first array.
12
+ * @param areItemsEqual - A function to determine if two items are equal.
13
+ * @returns A new array containing the elements from the first array that do not match any elements in the second array
14
+ * according to the custom equality function.
15
+ *
16
+ * @example
17
+ * const array1 = [{ id: 1 }, { id: 2 }, { id: 3 }];
18
+ * const array2 = [{ id: 2 }, { id: 4 }];
19
+ * const areItemsEqual = (a, b) => a.id === b.id;
20
+ * const result = differenceWith(array1, array2, areItemsEqual);
21
+ * // result will be [{ id: 1 }, { id: 3 }] since the elements with id 2 are considered equal and are excluded from the result.
22
+ *
23
+ * @example
24
+ * const array1 = [{ id: 1 }, { id: 2 }, { id: 3 }];
25
+ * const array2 = [2, 4];
26
+ * const areItemsEqual = (a, b) => a.id === b;
27
+ * const result = differenceWith(array1, array2, areItemsEqual);
28
+ * // result will be [{ id: 1 }, { id: 3 }] since the element with id 2 is considered equal to the second array's element and is excluded from the result.
29
+ */
30
+ function differenceWith(firstArr, secondArr, areItemsEqual) {
31
+ return firstArr.filter((firstItem) => {
32
+ return secondArr.every((secondItem) => {
33
+ return !areItemsEqual(firstItem, secondItem);
34
+ });
35
+ });
36
+ }
37
+ export { differenceWith };
@@ -0,0 +1,43 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/intersectionWith.mjs
2
+ /**
3
+ * Returns the intersection of two arrays based on a custom equality function.
4
+ *
5
+ * This function takes two arrays and a custom equality function. It returns a new array containing
6
+ * the elements from the first array that have matching elements in the second array, as determined
7
+ * by the custom equality function. It effectively filters out any elements from the first array that
8
+ * do not have corresponding matches in the second array according to the equality function.
9
+ *
10
+ * @template T - The type of elements in the first array.
11
+ * @template U - The type of elements in the second array.
12
+ * @param firstArr - The first array to compare.
13
+ * @param secondArr - The second array to compare.
14
+ * @param areItemsEqual - A custom function to determine if two elements are equal.
15
+ * This function takes two arguments, one from each array, and returns `true` if the elements are considered equal, and `false` otherwise.
16
+ * @returns A new array containing the elements from the first array that have corresponding matches in the second array according to the custom equality function.
17
+ *
18
+ * @example
19
+ * const array1 = [{ id: 1 }, { id: 2 }, { id: 3 }];
20
+ * const array2 = [{ id: 2 }, { id: 4 }];
21
+ * const areItemsEqual = (a, b) => a.id === b.id;
22
+ * const result = intersectionWith(array1, array2, areItemsEqual);
23
+ * // result will be [{ id: 2 }] since this element has a matching id in both arrays.
24
+ *
25
+ * @example
26
+ * const array1 = [
27
+ * { id: 1, name: 'jane' },
28
+ * { id: 2, name: 'amy' },
29
+ * { id: 3, name: 'michael' },
30
+ * ];
31
+ * const array2 = [2, 4];
32
+ * const areItemsEqual = (a, b) => a.id === b;
33
+ * const result = intersectionWith(array1, array2, areItemsEqual);
34
+ * // result will be [{ id: 2, name: 'amy' }] since this element has a matching id that is equal to seconds array's element.
35
+ */
36
+ function intersectionWith(firstArr, secondArr, areItemsEqual) {
37
+ return firstArr.filter((firstItem) => {
38
+ return secondArr.some((secondItem) => {
39
+ return areItemsEqual(firstItem, secondItem);
40
+ });
41
+ });
42
+ }
43
+ export { intersectionWith };
@@ -0,0 +1,36 @@
1
+ import { differenceWith } from "./differenceWith.mjs";
2
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/isSubsetWith.mjs
3
+ /**
4
+ * Checks if the `subset` array is entirely contained within the `superset` array based on a custom equality function.
5
+ *
6
+ * This function takes two arrays and a custom comparison function. It returns a boolean indicating
7
+ * whether all elements in the subset array are present in the superset array, as determined by the provided
8
+ * custom equality function.
9
+ *
10
+ * @template T - The type of elements contained in the arrays.
11
+ * @param superset - The array that may contain all elements of the subset.
12
+ * @param subset - The array to check against the superset.
13
+ * @param areItemsEqual - A function to determine if two items are equal.
14
+ * @returns Returns `true` if all elements of the subset are present in the superset
15
+ * according to the custom equality function, otherwise returns `false`.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * const superset = [{ id: 1 }, { id: 2 }, { id: 3 }];
20
+ * const subset = [{ id: 2 }, { id: 1 }];
21
+ * const areItemsEqual = (a, b) => a.id === b.id;
22
+ * isSubsetWith(superset, subset, areItemsEqual); // true
23
+ * ```
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * const superset = [{ id: 1 }, { id: 2 }, { id: 3 }];
28
+ * const subset = [{ id: 4 }];
29
+ * const areItemsEqual = (a, b) => a.id === b.id;
30
+ * isSubsetWith(superset, subset, areItemsEqual); // false
31
+ * ```
32
+ */
33
+ function isSubsetWith(superset, subset, areItemsEqual) {
34
+ return differenceWith(subset, superset, areItemsEqual).length === 0;
35
+ }
36
+ export { isSubsetWith };
@@ -0,0 +1,15 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/bigint/clamp.mjs
2
+ /**
3
+ * Clamps a bigint within the inclusive lower and upper bounds.
4
+ *
5
+ * @param value - The bigint to clamp.
6
+ * @param bound1 - The upper bound when called with two arguments, otherwise the lower bound.
7
+ * @param bound2 - The upper bound when called with three arguments.
8
+ * @returns The clamped bigint.
9
+ */
10
+ function clamp(value, bound1, bound2) {
11
+ if (bound2 == null) return value < bound1 ? value : bound1;
12
+ const lowerClamped = value > bound1 ? value : bound1;
13
+ return lowerClamped < bound2 ? lowerClamped : bound2;
14
+ }
15
+ export { clamp };
@@ -0,0 +1,26 @@
1
+ import { isSymbol } from "../predicate/isSymbol.mjs";
2
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/baseToString.mjs
3
+ /**
4
+ * Converts `value` to a string like Lodash's `baseToString`.
5
+ *
6
+ * Unlike `toString`, `null` and `undefined` are not special-cased, so `null` becomes `'null'`.
7
+ *
8
+ * @param value - The value to convert.
9
+ * @returns The converted string.
10
+ */
11
+ function baseToString(value) {
12
+ if (typeof value === "string") return value;
13
+ if (Array.isArray(value)) {
14
+ let result = "";
15
+ for (let i = 0; i < value.length; i++) {
16
+ if (i > 0) result += ",";
17
+ result += baseToString(value[i]);
18
+ }
19
+ return result;
20
+ }
21
+ if (isSymbol(value)) return value.toString();
22
+ const result = value + "";
23
+ if (result === "0" && Object.is(Number(value), -0)) return "-0";
24
+ return result;
25
+ }
26
+ export { baseToString };
@@ -0,0 +1,5 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/getSymbols.mjs
2
+ function getSymbols(object) {
3
+ return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
4
+ }
5
+ export { getSymbols };
@@ -0,0 +1,13 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/getTag.mjs
2
+ /**
3
+ * Gets the `toStringTag` of `value`.
4
+ *
5
+ * @private
6
+ * @param {T} value The value to query.
7
+ * @returns {string} Returns the `Object.prototype.toString.call` result.
8
+ */
9
+ function getTag(value) {
10
+ if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
11
+ return Object.prototype.toString.call(value);
12
+ }
13
+ export { getTag };
@@ -0,0 +1,13 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/hasOwn.mjs
2
+ const hasOwnProperty = Object.prototype.hasOwnProperty;
3
+ /**
4
+ * Checks if `key` is an own property of `object`, like `Object.hasOwn`, which is not available on ES2015 engines.
5
+ *
6
+ * @param object - The object to inspect.
7
+ * @param key - The key to check.
8
+ * @returns `true` if `key` is an own property of `object`, otherwise `false`.
9
+ */
10
+ function hasOwn(object, key) {
11
+ return hasOwnProperty.call(object, key);
12
+ }
13
+ export { hasOwn };
@@ -0,0 +1,39 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/isDeepKey.mjs
2
+ /** Matches any deep property path. Examples: `a.b`, `a[0]`, `a["b"]` */
3
+ const regexIsDeepProp = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
4
+ /**
5
+ * Checks if a given key is a deep key.
6
+ *
7
+ * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
8
+ *
9
+ * @param {PropertyKey} key - The key to check.
10
+ * @returns {boolean} - Returns true if the key is a deep key, otherwise false.
11
+ *
12
+ * Examples:
13
+ *
14
+ * isDeepKey('a.b') // true
15
+ * isDeepKey('a[b]') // true
16
+ * isDeepKey('a') // false
17
+ * isDeepKey(123) // false
18
+ * isDeepKey('a.b.c') // true
19
+ * isDeepKey('a[b][c]') // true
20
+ * isDeepKey('a.') // false
21
+ * isDeepKey('.a') // false
22
+ * isDeepKey('a[b') // false
23
+ * isDeepKey('a]b]') // false
24
+ * isDeepKey('a][b') // false
25
+ * isDeepKey('') // false
26
+ * isDeepKey('a[0]') // true
27
+ *
28
+ */
29
+ function isDeepKey(key) {
30
+ switch (typeof key) {
31
+ case "number":
32
+ case "symbol": return false;
33
+ case "string":
34
+ if (key === "" || key.startsWith(".") || key.endsWith(".")) return false;
35
+ return regexIsDeepProp.test(key);
36
+ default: return false;
37
+ }
38
+ }
39
+ export { isDeepKey };
@@ -0,0 +1,10 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/isIndex.mjs
2
+ const IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
3
+ function isIndex(value, length = Number.MAX_SAFE_INTEGER) {
4
+ switch (typeof value) {
5
+ case "number": return Number.isInteger(value) && value >= 0 && value < length;
6
+ case "symbol": return false;
7
+ case "string": return IS_UNSIGNED_INTEGER.test(value);
8
+ }
9
+ }
10
+ export { isIndex };
@@ -0,0 +1,10 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/regexMultiByte.mjs
2
+ /**
3
+ * Used to compose unicode character classes.
4
+ * @link https://github.com/lodash/lodash/blob/4.17.21-es/_hasUnicode.js
5
+ *
6
+ * Used to detect strings with zero-width joiners or code points from the astral planes.
7
+ * @link http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/
8
+ */
9
+ const regexMultiByte = /* @__PURE__ */ new RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
10
+ export { regexMultiByte };
@@ -0,0 +1,28 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/tags.mjs
2
+ const regexpTag = "[object RegExp]";
3
+ const stringTag = "[object String]";
4
+ const numberTag = "[object Number]";
5
+ const booleanTag = "[object Boolean]";
6
+ const argumentsTag = "[object Arguments]";
7
+ const symbolTag = "[object Symbol]";
8
+ const dateTag = "[object Date]";
9
+ const mapTag = "[object Map]";
10
+ const setTag = "[object Set]";
11
+ const arrayTag = "[object Array]";
12
+ const functionTag = "[object Function]";
13
+ const arrayBufferTag = "[object ArrayBuffer]";
14
+ const objectTag = "[object Object]";
15
+ const errorTag = "[object Error]";
16
+ const dataViewTag = "[object DataView]";
17
+ const uint8ArrayTag = "[object Uint8Array]";
18
+ const uint8ClampedArrayTag = "[object Uint8ClampedArray]";
19
+ const uint16ArrayTag = "[object Uint16Array]";
20
+ const uint32ArrayTag = "[object Uint32Array]";
21
+ const bigUint64ArrayTag = "[object BigUint64Array]";
22
+ const int8ArrayTag = "[object Int8Array]";
23
+ const int16ArrayTag = "[object Int16Array]";
24
+ const int32ArrayTag = "[object Int32Array]";
25
+ const bigInt64ArrayTag = "[object BigInt64Array]";
26
+ const float32ArrayTag = "[object Float32Array]";
27
+ const float64ArrayTag = "[object Float64Array]";
28
+ export { argumentsTag, arrayBufferTag, arrayTag, bigInt64ArrayTag, bigUint64ArrayTag, booleanTag, dataViewTag, dateTag, errorTag, float32ArrayTag, float64ArrayTag, functionTag, int16ArrayTag, int32ArrayTag, int8ArrayTag, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, symbolTag, uint16ArrayTag, uint32ArrayTag, uint8ArrayTag, uint8ClampedArrayTag };
@@ -0,0 +1,15 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/toKey.mjs
2
+ /**
3
+ * Converts `value` to a string key if it's not a string or symbol.
4
+ *
5
+ * @private
6
+ * @param {unknown} value The value to inspect.
7
+ * @returns {string|symbol} Returns the key.
8
+ */
9
+ function toKey(value) {
10
+ var _value$valueOf;
11
+ if (typeof value === "string" || typeof value === "symbol") return value;
12
+ if (Object.is(value === null || value === void 0 || (_value$valueOf = value.valueOf) === null || _value$valueOf === void 0 ? void 0 : _value$valueOf.call(value), -0)) return "-0";
13
+ return String(value);
14
+ }
15
+ export { toKey };
@@ -0,0 +1,36 @@
1
+ import { isNil } from "../../predicate/isNil.mjs";
2
+ import { isNull } from "../../predicate/isNull.mjs";
3
+ import { isSymbol } from "../../predicate/isSymbol.mjs";
4
+ import { isNumber } from "../predicate/isNumber.mjs";
5
+ import { sortedIndexBy } from "./sortedIndexBy.mjs";
6
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/array/sortedIndex.mjs
7
+ const HALF_MAX_ARRAY_LENGTH = 0x7fffffff;
8
+ /**
9
+ * Uses a binary search to determine the lowest index at which `value`
10
+ * should be inserted into `array` in order to maintain its sort order.
11
+ *
12
+ * @category Array
13
+ * @param array The sorted array to inspect.
14
+ * @param value The value to evaluate.
15
+ * @returns Returns the index at which `value` should be inserted
16
+ * into `array`.
17
+ * @example
18
+ * sortedIndex([30, 50], 40)
19
+ * // => 1
20
+ */
21
+ function sortedIndex(array, value) {
22
+ if (isNil(array)) return 0;
23
+ let low = 0;
24
+ let high = array.length;
25
+ if (isNumber(value) && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
26
+ while (low < high) {
27
+ const mid = low + high >>> 1;
28
+ const compute = array[mid];
29
+ if (!isNull(compute) && !isSymbol(compute) && compute < value) low = mid + 1;
30
+ else high = mid;
31
+ }
32
+ return high;
33
+ }
34
+ return sortedIndexBy(array, value, (value) => value);
35
+ }
36
+ export { sortedIndex };
@@ -0,0 +1,54 @@
1
+ import { isNull } from "../../predicate/isNull.mjs";
2
+ import { isUndefined } from "../../predicate/isUndefined.mjs";
3
+ import { isSymbol } from "../predicate/isSymbol.mjs";
4
+ import { iteratee } from "../util/iteratee.mjs";
5
+ import { identity } from "../function/identity.mjs";
6
+ import { isNil } from "../predicate/isNil.mjs";
7
+ import { isNaN } from "../predicate/isNaN.mjs";
8
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/array/sortedIndexBy.mjs
9
+ const MAX_ARRAY_INDEX = 0xfffffffe;
10
+ /**
11
+ * This method is like `sortedIndex` except that it accepts `iteratee`
12
+ * which is invoked for `value` and each element of `array` to compute their
13
+ * sort ranking. The iteratee is invoked with one argument: (value).
14
+ *
15
+ * @param array The sorted array to inspect.
16
+ * @param value The value to evaluate.
17
+ * @param iteratee The iteratee invoked per element.
18
+ * @returns Returns the index at which `value` should be inserted
19
+ * into `array`.
20
+ * @example
21
+ * const objects = [{ 'n': 4 }, { 'n': 5 }]
22
+ * sortedIndexBy(objects, { 'n': 4 }, ({ n }) => n)
23
+ * // => 0
24
+ */
25
+ function sortedIndexBy(array, value, iteratee$1 = identity, retHighest) {
26
+ if (isNil(array) || array.length === 0) return 0;
27
+ let low = 0;
28
+ let high = array.length;
29
+ const iterateeFunction = iteratee(iteratee$1);
30
+ const transformedValue = iterateeFunction(value);
31
+ const valIsNaN = isNaN(transformedValue);
32
+ const valIsNull = isNull(transformedValue);
33
+ const valIsSymbol = isSymbol(transformedValue);
34
+ const valIsUndefined = isUndefined(transformedValue);
35
+ while (low < high) {
36
+ let setLow;
37
+ const mid = Math.floor((low + high) / 2);
38
+ const computed = iterateeFunction(array[mid]);
39
+ const othIsDefined = !isUndefined(computed);
40
+ const othIsNull = isNull(computed);
41
+ const othIsReflexive = !isNaN(computed);
42
+ const othIsSymbol = isSymbol(computed);
43
+ if (valIsNaN) setLow = retHighest || othIsReflexive;
44
+ else if (valIsUndefined) setLow = othIsReflexive && (retHighest || othIsDefined);
45
+ else if (valIsNull) setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
46
+ else if (valIsSymbol) setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
47
+ else if (othIsNull || othIsSymbol) setLow = false;
48
+ else setLow = retHighest ? computed <= transformedValue : computed < transformedValue;
49
+ if (setLow) low = mid + 1;
50
+ else high = mid;
51
+ }
52
+ return Math.min(high, MAX_ARRAY_INDEX);
53
+ }
54
+ export { sortedIndexBy };
@@ -0,0 +1,34 @@
1
+ import { isNil } from "../../predicate/isNil.mjs";
2
+ import { isNull } from "../../predicate/isNull.mjs";
3
+ import { isSymbol } from "../../predicate/isSymbol.mjs";
4
+ import { isNumber } from "../predicate/isNumber.mjs";
5
+ import { sortedLastIndexBy } from "./sortedLastIndexBy.mjs";
6
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/array/sortedLastIndex.mjs
7
+ const HALF_MAX_ARRAY_LENGTH = 0x7fffffff;
8
+ /**
9
+ * Uses a binary search to determine the highest index at which `value`
10
+ * should be inserted into `array` in order to maintain its sort order.
11
+ *
12
+ * @category Array
13
+ * @param array The sorted array to inspect.
14
+ * @param value The value to evaluate.
15
+ * @returns Returns the index at which `value` should be inserted
16
+ * into `array`.
17
+ * @example
18
+ * sortedLastIndex([4, 5, 5, 5, 6], 5)
19
+ * // => 4
20
+ */
21
+ function sortedLastIndex(array, value) {
22
+ if (isNil(array)) return 0;
23
+ let high = array.length;
24
+ if (!isNumber(value) || Number.isNaN(value) || high > HALF_MAX_ARRAY_LENGTH) return sortedLastIndexBy(array, value, (value) => value);
25
+ let low = 0;
26
+ while (low < high) {
27
+ const mid = low + high >>> 1;
28
+ const compute = array[mid];
29
+ if (!isNull(compute) && !isSymbol(compute) && compute <= value) low = mid + 1;
30
+ else high = mid;
31
+ }
32
+ return high;
33
+ }
34
+ export { sortedLastIndex };
@@ -0,0 +1,21 @@
1
+ import { sortedIndexBy } from "./sortedIndexBy.mjs";
2
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/array/sortedLastIndexBy.mjs
3
+ /**
4
+ * This method is like `sortedLastIndex` except that it accepts `iteratee`
5
+ * which is invoked for `value` and each element of `array` to compute their
6
+ * sort ranking. The iteratee is invoked with one argument: (value).
7
+ *
8
+ * @param array The sorted array to inspect.
9
+ * @param value The value to evaluate.
10
+ * @param iteratee The iteratee invoked per element.
11
+ * @returns Returns the highest index at which `value` should be inserted
12
+ * into `array`.
13
+ * @example
14
+ * const objects = [{ 'n': 4 }, { 'n': 5 }]
15
+ * sortedLastIndexBy(objects, { 'n': 4 }, ({ n }) => n)
16
+ * // => 1
17
+ */
18
+ function sortedLastIndexBy(array, value, iteratee) {
19
+ return sortedIndexBy(array, value, iteratee, true);
20
+ }
21
+ export { sortedLastIndexBy };
@@ -0,0 +1,5 @@
1
+ // node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/function/identity.mjs
2
+ function identity(x) {
3
+ return x;
4
+ }
5
+ export { identity };