package-json-scripts-portability 0.0.1 → 0.0.2
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/README.md +1 -1
- package/dist/analyze-script.d.mts +34 -0
- package/dist/analyze-script.mjs +48 -0
- package/dist/command-checker.mjs +295 -0
- package/dist/command-usage.mjs +364 -0
- package/dist/commands.mjs +520 -0
- package/dist/context.mjs +18 -0
- package/dist/fixes.d.mts +9 -0
- package/dist/fixes.mjs +210 -0
- package/dist/index.d.mts +6 -118
- package/dist/index.mjs +4 -3787
- package/dist/line-break-checker.mjs +71 -0
- package/dist/messages.mjs +30 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/array-difference.mjs +11 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/array-includes.mjs +8 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/array-intersection.mjs +13 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/array-is-subset.mjs +16 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/arrayify.mjs +7 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/iterable/sliding-window.mjs +30 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/map/map-get-or-insert-computed.mjs +42 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/map/map-get-or-insert.mjs +40 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/math/clamp.mjs +7 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/path/to-forward-slashes.mjs +8 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/predicate/is-array.mjs +39 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/set/set-has.mjs +8 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/string/substring-after-last.mjs +24 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/string/substring-before.mjs +24 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/string/truncate.mjs +46 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/ts/all-union-members.mjs +45 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/types/maybe-readonly-array.d.mts +17 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/value/is-equal.mjs +37 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/@antfu/utils/dist/index.mjs +5 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/_internal/globalThis.mjs +5 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/differenceBy.mjs +40 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/differenceWith.mjs +37 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/intersectionWith.mjs +43 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/array/isSubsetWith.mjs +36 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/bigint/clamp.mjs +15 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/getSymbols.mjs +5 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/getTag.mjs +13 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/regexMultiByte.mjs +10 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/_internal/tags.mjs +27 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isObject.mjs +28 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/string/truncate.mjs +78 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/util/eq.mjs +18 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/function/noop.mjs +12 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/math/clamp.mjs +23 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isBuffer.mjs +24 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isEqual.mjs +21 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isEqualWith.mjs +151 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isPlainObject.mjs +50 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/remeda/dist/isArray.mjs +18 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/ts-extras/distribution/array-includes.mjs +5 -0
- package/dist/node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/ts-extras/distribution/set-has.mjs +5 -0
- package/dist/platforms.d.mts +8 -0
- package/dist/platforms.mjs +26 -0
- package/dist/redirection-checker.mjs +117 -0
- package/dist/reporter.d.mts +32 -0
- package/dist/reporter.mjs +98 -0
- package/dist/runners.d.mts +24 -0
- package/dist/runners.mjs +118 -0
- package/dist/script-analyzer.mjs +551 -0
- package/dist/word-checker.mjs +444 -0
- package/dist/words.mjs +43 -0
- package/package.json +22 -20
|
@@ -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,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,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,27 @@
|
|
|
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 symbolTag = "[object Symbol]";
|
|
7
|
+
const dateTag = "[object Date]";
|
|
8
|
+
const mapTag = "[object Map]";
|
|
9
|
+
const setTag = "[object Set]";
|
|
10
|
+
const arrayTag = "[object Array]";
|
|
11
|
+
const functionTag = "[object Function]";
|
|
12
|
+
const arrayBufferTag = "[object ArrayBuffer]";
|
|
13
|
+
const objectTag = "[object Object]";
|
|
14
|
+
const errorTag = "[object Error]";
|
|
15
|
+
const dataViewTag = "[object DataView]";
|
|
16
|
+
const uint8ArrayTag = "[object Uint8Array]";
|
|
17
|
+
const uint8ClampedArrayTag = "[object Uint8ClampedArray]";
|
|
18
|
+
const uint16ArrayTag = "[object Uint16Array]";
|
|
19
|
+
const uint32ArrayTag = "[object Uint32Array]";
|
|
20
|
+
const bigUint64ArrayTag = "[object BigUint64Array]";
|
|
21
|
+
const int8ArrayTag = "[object Int8Array]";
|
|
22
|
+
const int16ArrayTag = "[object Int16Array]";
|
|
23
|
+
const int32ArrayTag = "[object Int32Array]";
|
|
24
|
+
const bigInt64ArrayTag = "[object BigInt64Array]";
|
|
25
|
+
const float32ArrayTag = "[object Float32Array]";
|
|
26
|
+
const float64ArrayTag = "[object Float64Array]";
|
|
27
|
+
export { 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,28 @@
|
|
|
1
|
+
// node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/predicate/isObject.mjs
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the given value is an object. An object is a value that is
|
|
4
|
+
* not a primitive type (string, number, boolean, symbol, null, or undefined).
|
|
5
|
+
*
|
|
6
|
+
* This function tests whether the provided value is an object or not.
|
|
7
|
+
* It returns `true` if the value is an object, and `false` otherwise.
|
|
8
|
+
*
|
|
9
|
+
* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to an object value.
|
|
10
|
+
*
|
|
11
|
+
* @param value - The value to check if it is an object.
|
|
12
|
+
* @returns `true` if the value is an object, `false` otherwise.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* const value1 = {};
|
|
16
|
+
* const value2 = [1, 2, 3];
|
|
17
|
+
* const value3 = () => {};
|
|
18
|
+
* const value4 = null;
|
|
19
|
+
*
|
|
20
|
+
* console.log(isObject(value1)); // true
|
|
21
|
+
* console.log(isObject(value2)); // true
|
|
22
|
+
* console.log(isObject(value3)); // true
|
|
23
|
+
* console.log(isObject(value4)); // false
|
|
24
|
+
*/
|
|
25
|
+
function isObject(value) {
|
|
26
|
+
return value !== null && (typeof value === "object" || typeof value === "function");
|
|
27
|
+
}
|
|
28
|
+
export { isObject };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { isObject } from "../predicate/isObject.mjs";
|
|
2
|
+
import { regexMultiByte } from "../_internal/regexMultiByte.mjs";
|
|
3
|
+
// node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/string/truncate.mjs
|
|
4
|
+
/**
|
|
5
|
+
* This regex might more completely detect unicode, but it is slower and this project
|
|
6
|
+
* desires to mimic the behavior of lodash.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Truncates `string` if it's longer than the given maximum string length.
|
|
10
|
+
* The last characters of the truncated string are replaced with the omission
|
|
11
|
+
* string which defaults to "...".
|
|
12
|
+
*
|
|
13
|
+
* @param [string=''] The string to truncate.
|
|
14
|
+
* @param [options={}] The options object.
|
|
15
|
+
* @param [options.length=30] The maximum string length.
|
|
16
|
+
* @param [options.omission='...'] The string to indicate text is omitted.
|
|
17
|
+
* @param [options.separator] The separator pattern to truncate to.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* const test = 'hi-diddly-ho there, neighborino';
|
|
21
|
+
* const truncatedStr1 = truncate(test) // returns 'hi-diddly-ho there, neighbo...'
|
|
22
|
+
* const truncatedStr2 = truncate(test, { length: 24, separator: ' ' }) // returns 'hi-diddly-ho there,...'
|
|
23
|
+
* const truncatedStr3 = truncate(test, { length: 24, separator: /,? +/ }) // returns 'hi-diddly-ho there...'
|
|
24
|
+
* const truncatedStr4 = truncate(test, { omission: ' [...]' }) // returns 'hi-diddly-ho there, neig [...]'
|
|
25
|
+
* const truncatedStr5 = truncate('ABC', { length: 3 }) // returns 'ABC'
|
|
26
|
+
* const truncatedStr6 = truncate('ABC', { length: 2 }) // returns '...'
|
|
27
|
+
* const truncatedStr7 = truncate('¥§✈✉🤓', { length: 5 }) // returns '¥§✈✉🤓'
|
|
28
|
+
* const truncatedStr8 = truncate('¥§✈✉🤓', { length: 4, omission: '…' }) // returns '¥§✈…'
|
|
29
|
+
*/
|
|
30
|
+
function truncate(string, options) {
|
|
31
|
+
string = string != null ? `${string}` : "";
|
|
32
|
+
let length = 30;
|
|
33
|
+
let omission = "...";
|
|
34
|
+
if (isObject(options)) {
|
|
35
|
+
length = parseLength(options.length);
|
|
36
|
+
omission = "omission" in options ? `${options.omission}` : "...";
|
|
37
|
+
}
|
|
38
|
+
let i = string.length;
|
|
39
|
+
const lengthOmission = Array.from(omission).length;
|
|
40
|
+
const lengthBase = Math.max(length - lengthOmission, 0);
|
|
41
|
+
let strArray = void 0;
|
|
42
|
+
if (regexMultiByte.test(string)) {
|
|
43
|
+
strArray = Array.from(string);
|
|
44
|
+
i = strArray.length;
|
|
45
|
+
}
|
|
46
|
+
if (length >= i) return string;
|
|
47
|
+
if (i <= lengthOmission) return omission;
|
|
48
|
+
let base = strArray === void 0 ? string.slice(0, lengthBase) : strArray === null || strArray === void 0 ? void 0 : strArray.slice(0, lengthBase).join("");
|
|
49
|
+
const separator = options === null || options === void 0 ? void 0 : options.separator;
|
|
50
|
+
if (!separator) {
|
|
51
|
+
base += omission;
|
|
52
|
+
return base;
|
|
53
|
+
}
|
|
54
|
+
if (separator instanceof RegExp ? string.slice(base.length).search(separator) === 0 : string.indexOf(separator, base.length) === base.length) return base + omission;
|
|
55
|
+
let lastSeparator = -1;
|
|
56
|
+
if (typeof separator === "string") lastSeparator = base.lastIndexOf(separator);
|
|
57
|
+
else {
|
|
58
|
+
const flags = separator.flags.includes("g") ? separator.flags : separator.flags + "g";
|
|
59
|
+
const pattern = new RegExp(separator.source, flags);
|
|
60
|
+
let match;
|
|
61
|
+
while ((match = pattern.exec(base)) !== null) {
|
|
62
|
+
lastSeparator = match.index;
|
|
63
|
+
if (match[0].length === 0) {
|
|
64
|
+
var _base$codePointAt;
|
|
65
|
+
const unicode = pattern.unicode || pattern.flags.includes("v");
|
|
66
|
+
pattern.lastIndex = match.index + (unicode && ((_base$codePointAt = base.codePointAt(match.index)) !== null && _base$codePointAt !== void 0 ? _base$codePointAt : 0) > 65535 ? 2 : 1);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (lastSeparator !== -1) base = base.slice(0, lastSeparator);
|
|
71
|
+
return base + omission;
|
|
72
|
+
}
|
|
73
|
+
function parseLength(length) {
|
|
74
|
+
if (length == null) return 30;
|
|
75
|
+
if (length <= 0) return 0;
|
|
76
|
+
return length;
|
|
77
|
+
}
|
|
78
|
+
export { truncate };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/compat/util/eq.mjs
|
|
2
|
+
/**
|
|
3
|
+
* Performs a `SameValueZero` comparison between two values to determine if they are equivalent.
|
|
4
|
+
*
|
|
5
|
+
* @param value The value to compare.
|
|
6
|
+
* @param other The other value to compare.
|
|
7
|
+
* @returns Returns `true` if the values are equivalent, else `false`.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* eq(1, 1); // true
|
|
11
|
+
* eq(0, -0); // true
|
|
12
|
+
* eq(NaN, NaN); // true
|
|
13
|
+
* eq('a', Object('a')); // false
|
|
14
|
+
*/
|
|
15
|
+
function eq(value, other) {
|
|
16
|
+
return value === other || Number.isNaN(value) && Number.isNaN(other);
|
|
17
|
+
}
|
|
18
|
+
export { eq };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/function/noop.mjs
|
|
2
|
+
/**
|
|
3
|
+
* A no-operation function that does nothing.
|
|
4
|
+
* This can be used as a placeholder or default function.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* noop(); // Does nothing
|
|
8
|
+
*
|
|
9
|
+
* @returns This function does not return anything.
|
|
10
|
+
*/
|
|
11
|
+
function noop() {}
|
|
12
|
+
export { noop };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/math/clamp.mjs
|
|
2
|
+
/**
|
|
3
|
+
* Clamps a number within the specified bounds.
|
|
4
|
+
*
|
|
5
|
+
* This function takes a number and one or two bounds, and returns the number clamped within the specified bounds.
|
|
6
|
+
* If only one bound is provided, it returns the minimum of the value and the bound.
|
|
7
|
+
*
|
|
8
|
+
* @param value - The number to clamp.
|
|
9
|
+
* @param bound1 - The minimum bound to clamp the number, or the maximum bound if bound2 is not provided.
|
|
10
|
+
* @param [bound2] - The maximum bound to clamp the number. If not provided, the function will only consider bound1 as the upper limit.
|
|
11
|
+
* @returns The clamped number within the specified bounds.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* const result1 = clamp(10, 5); // result1 will be 5, as 10 is clamped to the bound 5
|
|
15
|
+
* const result2 = clamp(10, 5, 15); // result2 will be 10, as it is within the bounds 5 and 15
|
|
16
|
+
* const result3 = clamp(2, 5, 15); // result3 will be 5, as 2 is clamped to the lower bound 5
|
|
17
|
+
* const result4 = clamp(20, 5, 15); // result4 will be 15, as 20 is clamped to the upper bound 15
|
|
18
|
+
*/
|
|
19
|
+
function clamp(value, bound1, bound2) {
|
|
20
|
+
if (bound2 == null) return Math.min(value, bound1);
|
|
21
|
+
return Math.min(Math.max(value, bound1), bound2);
|
|
22
|
+
}
|
|
23
|
+
export { clamp };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { globalThis as globalThis_ } from "../_internal/globalThis.mjs";
|
|
2
|
+
// node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isBuffer.mjs
|
|
3
|
+
/**
|
|
4
|
+
* Checks if the given value is a Buffer instance.
|
|
5
|
+
*
|
|
6
|
+
* This function tests whether the provided value is an instance of Buffer.
|
|
7
|
+
* It returns `true` if the value is a Buffer, and `false` otherwise.
|
|
8
|
+
*
|
|
9
|
+
* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.
|
|
10
|
+
*
|
|
11
|
+
* @param x - The value to check if it is a Buffer.
|
|
12
|
+
* @returns Returns `true` if `x` is a Buffer, else `false`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* const buffer = Buffer.from("test");
|
|
16
|
+
* console.log(isBuffer(buffer)); // true
|
|
17
|
+
*
|
|
18
|
+
* const notBuffer = "not a buffer";
|
|
19
|
+
* console.log(isBuffer(notBuffer)); // false
|
|
20
|
+
*/
|
|
21
|
+
function isBuffer(x) {
|
|
22
|
+
return typeof globalThis_.Buffer !== "undefined" && globalThis_.Buffer.isBuffer(x);
|
|
23
|
+
}
|
|
24
|
+
export { isBuffer };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { noop } from "../function/noop.mjs";
|
|
2
|
+
import { isEqualWith } from "./isEqualWith.mjs";
|
|
3
|
+
// node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isEqual.mjs
|
|
4
|
+
/**
|
|
5
|
+
* Checks if two values are equal, including support for `Date`, `RegExp`, and deep object comparison.
|
|
6
|
+
*
|
|
7
|
+
* @param a - The first value to compare.
|
|
8
|
+
* @param b - The second value to compare.
|
|
9
|
+
* @returns `true` if the values are equal, otherwise `false`.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* isEqual(1, 1); // true
|
|
13
|
+
* isEqual({ a: 1 }, { a: 1 }); // true
|
|
14
|
+
* isEqual(/abc/g, /abc/g); // true
|
|
15
|
+
* isEqual(new Date('2020-01-01'), new Date('2020-01-01')); // true
|
|
16
|
+
* isEqual([1, 2, 3], [1, 2, 3]); // true
|
|
17
|
+
*/
|
|
18
|
+
function isEqual(a, b) {
|
|
19
|
+
return isEqualWith(a, b, noop);
|
|
20
|
+
}
|
|
21
|
+
export { isEqual };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { getSymbols } from "../compat/_internal/getSymbols.mjs";
|
|
2
|
+
import { getTag } from "../compat/_internal/getTag.mjs";
|
|
3
|
+
import { 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 } from "../compat/_internal/tags.mjs";
|
|
4
|
+
import { isBuffer } from "./isBuffer.mjs";
|
|
5
|
+
import { isPlainObject } from "./isPlainObject.mjs";
|
|
6
|
+
import { eq } from "../compat/util/eq.mjs";
|
|
7
|
+
// node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isEqualWith.mjs
|
|
8
|
+
/**
|
|
9
|
+
* Compares two values for equality using a custom comparison function.
|
|
10
|
+
*
|
|
11
|
+
* The custom function allows for fine-tuned control over the comparison process. If it returns a boolean, that result determines the equality. If it returns undefined, the function falls back to the default equality comparison.
|
|
12
|
+
*
|
|
13
|
+
* This function also uses the custom equality function to compare values inside objects,
|
|
14
|
+
* arrays, maps, sets, and other complex structures, ensuring a deep comparison.
|
|
15
|
+
*
|
|
16
|
+
* This approach provides flexibility in handling complex comparisons while maintaining efficient default behavior for simpler cases.
|
|
17
|
+
*
|
|
18
|
+
* The custom comparison function can take up to six parameters:
|
|
19
|
+
* - `x`: The value from the first object `a`.
|
|
20
|
+
* - `y`: The value from the second object `b`.
|
|
21
|
+
* - `property`: The property key used to get `x` and `y`.
|
|
22
|
+
* - `xParent`: The parent of the first value `x`.
|
|
23
|
+
* - `yParent`: The parent of the second value `y`.
|
|
24
|
+
* - `stack`: An internal stack (Map) to handle circular references.
|
|
25
|
+
*
|
|
26
|
+
* @param a - The first value to compare.
|
|
27
|
+
* @param b - The second value to compare.
|
|
28
|
+
* @param areValuesEqual - A function to customize the comparison.
|
|
29
|
+
* If it returns a boolean, that result will be used. If it returns undefined,
|
|
30
|
+
* the default equality comparison will be used.
|
|
31
|
+
* @returns `true` if the values are equal according to the customizer, otherwise `false`.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* const customizer = (a, b) => {
|
|
35
|
+
* if (typeof a === 'string' && typeof b === 'string') {
|
|
36
|
+
* return a.toLowerCase() === b.toLowerCase();
|
|
37
|
+
* }
|
|
38
|
+
* };
|
|
39
|
+
* isEqualWith('Hello', 'hello', customizer); // true
|
|
40
|
+
* isEqualWith({ a: 'Hello' }, { a: 'hello' }, customizer); // true
|
|
41
|
+
* isEqualWith([1, 2, 3], [1, 2, 3], customizer); // true
|
|
42
|
+
*/
|
|
43
|
+
function isEqualWith(a, b, areValuesEqual) {
|
|
44
|
+
return isEqualWithImpl(a, b, void 0, void 0, void 0, void 0, areValuesEqual);
|
|
45
|
+
}
|
|
46
|
+
function isEqualWithImpl(a, b, property, aParent, bParent, stack, areValuesEqual) {
|
|
47
|
+
const result = areValuesEqual(a, b, property, aParent, bParent, stack);
|
|
48
|
+
if (result !== void 0) return result;
|
|
49
|
+
if (typeof a === typeof b) switch (typeof a) {
|
|
50
|
+
case "bigint":
|
|
51
|
+
case "string":
|
|
52
|
+
case "boolean":
|
|
53
|
+
case "symbol":
|
|
54
|
+
case "undefined": return a === b;
|
|
55
|
+
case "number": return a === b || Object.is(a, b);
|
|
56
|
+
case "function": return a === b;
|
|
57
|
+
case "object": return areObjectsEqual(a, b, stack, areValuesEqual);
|
|
58
|
+
}
|
|
59
|
+
return areObjectsEqual(a, b, stack, areValuesEqual);
|
|
60
|
+
}
|
|
61
|
+
function areObjectsEqual(a, b, stack, areValuesEqual) {
|
|
62
|
+
if (Object.is(a, b)) return true;
|
|
63
|
+
let aTag = getTag(a);
|
|
64
|
+
let bTag = getTag(b);
|
|
65
|
+
if (aTag === "[object Arguments]") aTag = objectTag;
|
|
66
|
+
if (bTag === "[object Arguments]") bTag = objectTag;
|
|
67
|
+
if (aTag !== bTag) return false;
|
|
68
|
+
switch (aTag) {
|
|
69
|
+
case stringTag: return a.toString() === b.toString();
|
|
70
|
+
case numberTag: {
|
|
71
|
+
const x = a.valueOf();
|
|
72
|
+
const y = b.valueOf();
|
|
73
|
+
return eq(x, y);
|
|
74
|
+
}
|
|
75
|
+
case booleanTag:
|
|
76
|
+
case dateTag:
|
|
77
|
+
case symbolTag: return Object.is(a.valueOf(), b.valueOf());
|
|
78
|
+
case regexpTag: return a.source === b.source && a.flags === b.flags;
|
|
79
|
+
case functionTag: return a === b;
|
|
80
|
+
}
|
|
81
|
+
stack = stack ?? /* @__PURE__ */ new Map();
|
|
82
|
+
const aStack = stack.get(a);
|
|
83
|
+
const bStack = stack.get(b);
|
|
84
|
+
if (aStack != null && bStack != null) return aStack === b;
|
|
85
|
+
stack.set(a, b);
|
|
86
|
+
stack.set(b, a);
|
|
87
|
+
try {
|
|
88
|
+
switch (aTag) {
|
|
89
|
+
case mapTag:
|
|
90
|
+
if (a.size !== b.size) return false;
|
|
91
|
+
for (const [key, value] of a.entries()) if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key, a, b, stack, areValuesEqual)) return false;
|
|
92
|
+
return true;
|
|
93
|
+
case setTag: {
|
|
94
|
+
if (a.size !== b.size) return false;
|
|
95
|
+
const aValues = Array.from(a.values());
|
|
96
|
+
const bValues = Array.from(b.values());
|
|
97
|
+
for (let i = 0; i < aValues.length; i++) {
|
|
98
|
+
const aValue = aValues[i];
|
|
99
|
+
const index = bValues.findIndex((bValue) => {
|
|
100
|
+
return isEqualWithImpl(aValue, bValue, void 0, a, b, stack, areValuesEqual);
|
|
101
|
+
});
|
|
102
|
+
if (index === -1) return false;
|
|
103
|
+
bValues.splice(index, 1);
|
|
104
|
+
}
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
case arrayTag:
|
|
108
|
+
case uint8ArrayTag:
|
|
109
|
+
case uint8ClampedArrayTag:
|
|
110
|
+
case uint16ArrayTag:
|
|
111
|
+
case uint32ArrayTag:
|
|
112
|
+
case bigUint64ArrayTag:
|
|
113
|
+
case int8ArrayTag:
|
|
114
|
+
case int16ArrayTag:
|
|
115
|
+
case int32ArrayTag:
|
|
116
|
+
case bigInt64ArrayTag:
|
|
117
|
+
case float32ArrayTag:
|
|
118
|
+
case float64ArrayTag:
|
|
119
|
+
if (isBuffer(a) !== isBuffer(b)) return false;
|
|
120
|
+
if (a.length !== b.length) return false;
|
|
121
|
+
for (let i = 0; i < a.length; i++) if (!isEqualWithImpl(a[i], b[i], i, a, b, stack, areValuesEqual)) return false;
|
|
122
|
+
return true;
|
|
123
|
+
case arrayBufferTag:
|
|
124
|
+
if (a.byteLength !== b.byteLength) return false;
|
|
125
|
+
return areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
|
|
126
|
+
case dataViewTag:
|
|
127
|
+
if (a.byteLength !== b.byteLength || a.byteOffset !== b.byteOffset) return false;
|
|
128
|
+
return areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
|
|
129
|
+
case errorTag: return a.name === b.name && a.message === b.message;
|
|
130
|
+
case objectTag: {
|
|
131
|
+
if (!(areObjectsEqual(a.constructor, b.constructor, stack, areValuesEqual) || isPlainObject(a) && isPlainObject(b))) return false;
|
|
132
|
+
const aKeys = [...Object.keys(a), ...getSymbols(a)];
|
|
133
|
+
const bKeys = [...Object.keys(b), ...getSymbols(b)];
|
|
134
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
135
|
+
for (let i = 0; i < aKeys.length; i++) {
|
|
136
|
+
const propKey = aKeys[i];
|
|
137
|
+
const aProp = a[propKey];
|
|
138
|
+
if (!Object.hasOwn(b, propKey)) return false;
|
|
139
|
+
const bProp = b[propKey];
|
|
140
|
+
if (!isEqualWithImpl(aProp, bProp, propKey, a, b, stack, areValuesEqual)) return false;
|
|
141
|
+
}
|
|
142
|
+
return true;
|
|
143
|
+
}
|
|
144
|
+
default: return false;
|
|
145
|
+
}
|
|
146
|
+
} finally {
|
|
147
|
+
stack.delete(a);
|
|
148
|
+
stack.delete(b);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
export { isEqualWith };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
2
|
+
/**
|
|
3
|
+
* Checks if a given value is a plain object.
|
|
4
|
+
*
|
|
5
|
+
* @param value - The value to check.
|
|
6
|
+
* @returns True if the value is a plain object, otherwise false.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* // ✅👇 True
|
|
11
|
+
*
|
|
12
|
+
* isPlainObject({ }); // ✅
|
|
13
|
+
* isPlainObject({ key: 'value' }); // ✅
|
|
14
|
+
* isPlainObject({ key: new Date() }); // ✅
|
|
15
|
+
* isPlainObject(new Object()); // ✅
|
|
16
|
+
* isPlainObject(Object.create(null)); // ✅
|
|
17
|
+
* isPlainObject({ nested: { key: true} }); // ✅
|
|
18
|
+
* isPlainObject(new Proxy({}, {})); // ✅
|
|
19
|
+
* isPlainObject({ [Symbol('tag')]: 'A' }); // ✅
|
|
20
|
+
*
|
|
21
|
+
* // ✅👇 (cross-realms, node context, workers, ...)
|
|
22
|
+
* const runInNewContext = await import('node:vm').then(
|
|
23
|
+
* (mod) => mod.runInNewContext
|
|
24
|
+
* );
|
|
25
|
+
* isPlainObject(runInNewContext('({})')); // ✅
|
|
26
|
+
*
|
|
27
|
+
* // ❌👇 False
|
|
28
|
+
*
|
|
29
|
+
* class Test { };
|
|
30
|
+
* isPlainObject(new Test()) // ❌
|
|
31
|
+
* isPlainObject(10); // ❌
|
|
32
|
+
* isPlainObject(null); // ❌
|
|
33
|
+
* isPlainObject('hello'); // ❌
|
|
34
|
+
* isPlainObject([]); // ❌
|
|
35
|
+
* isPlainObject(new Date()); // ❌
|
|
36
|
+
* isPlainObject(new Uint8Array([1])); // ❌
|
|
37
|
+
* isPlainObject(Buffer.from('ABC')); // ❌
|
|
38
|
+
* isPlainObject(Promise.resolve({})); // ❌
|
|
39
|
+
* isPlainObject(Object.create({})); // ❌
|
|
40
|
+
* isPlainObject(new (class Cls {})); // ❌
|
|
41
|
+
* isPlainObject(globalThis); // ❌,
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
function isPlainObject(value) {
|
|
45
|
+
if (!value || typeof value !== "object") return false;
|
|
46
|
+
const proto = Object.getPrototypeOf(value);
|
|
47
|
+
if (!(proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null)) return false;
|
|
48
|
+
return Object.prototype.toString.call(value) === "[object Object]";
|
|
49
|
+
}
|
|
50
|
+
export { isPlainObject };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/vendor/remeda/dist/isArray.mjs
|
|
2
|
+
/**
|
|
3
|
+
* A function that checks if the passed parameter is an Array and narrows its type accordingly.
|
|
4
|
+
*
|
|
5
|
+
* @param data - The variable to check.
|
|
6
|
+
* @returns True if the passed input is an Array, false otherwise.
|
|
7
|
+
* @signature
|
|
8
|
+
* isArray(data)
|
|
9
|
+
* @example
|
|
10
|
+
* isArray([5]) //=> true
|
|
11
|
+
* isArray([]) //=> true
|
|
12
|
+
* isArray('somethingElse') //=> false
|
|
13
|
+
* @category Guard
|
|
14
|
+
*/
|
|
15
|
+
function isArray(data) {
|
|
16
|
+
return Array.isArray(data);
|
|
17
|
+
}
|
|
18
|
+
export { isArray };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type Platform = 'darwin' | 'linux' | 'win32';
|
|
2
|
+
export declare const PLATFORMS: readonly Platform[];
|
|
3
|
+
/**
|
|
4
|
+
* Formats platforms as a list for people, e.g. "macOS, Linux, and Windows".
|
|
5
|
+
* @param platforms The platforms to format
|
|
6
|
+
* @returns The formatted list
|
|
7
|
+
*/
|
|
8
|
+
export declare const formatPlatforms: (platforms: readonly Platform[]) => string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { listFormat } from "./messages.mjs";
|
|
2
|
+
import { arrayIntersection } from "./node_modules/.pnpm/utilery@0.4.0/node_modules/utilery/dist/array/array-intersection.mjs";
|
|
3
|
+
// src/platforms.ts
|
|
4
|
+
const PLATFORMS = [
|
|
5
|
+
"darwin",
|
|
6
|
+
"linux",
|
|
7
|
+
"win32"
|
|
8
|
+
];
|
|
9
|
+
const POSIX_PLATFORMS = ["darwin", "linux"];
|
|
10
|
+
const MACOS_PLATFORMS = ["darwin"];
|
|
11
|
+
const LINUX_PLATFORMS = ["linux"];
|
|
12
|
+
const WINDOWS_PLATFORMS = ["win32"];
|
|
13
|
+
const NOT_LINUX_OR_WINDOWS = ["linux", "win32"];
|
|
14
|
+
const NOT_MACOS_OR_WINDOWS = ["darwin", "win32"];
|
|
15
|
+
const PLATFORM_NAMES = {
|
|
16
|
+
darwin: "macOS",
|
|
17
|
+
linux: "Linux",
|
|
18
|
+
win32: "Windows"
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Formats platforms as a list for people, e.g. "macOS, Linux, and Windows".
|
|
22
|
+
* @param platforms The platforms to format
|
|
23
|
+
* @returns The formatted list
|
|
24
|
+
*/
|
|
25
|
+
const formatPlatforms = (platforms) => listFormat.format(arrayIntersection(PLATFORMS, platforms).map((platform) => PLATFORM_NAMES[platform]));
|
|
26
|
+
export { LINUX_PLATFORMS, MACOS_PLATFORMS, NOT_LINUX_OR_WINDOWS, NOT_MACOS_OR_WINDOWS, PLATFORMS, POSIX_PLATFORMS, WINDOWS_PLATFORMS, formatPlatforms };
|