@leather.io/utils 0.24.0 → 0.25.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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +15 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1451 -9
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/index.ts +0 -10
- package/src/spam-filter/spam-filter.spec.ts +10 -13
- package/src/spam-filter/spam-filter.ts +5 -2
- package/src/spam-filter/tlds-list.ts +1447 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @leather.io/utils@0.
|
|
2
|
+
> @leather.io/utils@0.25.1 build /home/runner/work/mono/mono/packages/utils
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
CLI Building entry: src/index.ts
|
|
@@ -8,9 +8,9 @@ CLI tsup v8.1.0
|
|
|
8
8
|
CLI Using tsup config: /home/runner/work/mono/mono/packages/utils/tsup.config.ts
|
|
9
9
|
CLI Target: es2022
|
|
10
10
|
ESM Build start
|
|
11
|
-
ESM dist/index.js
|
|
12
|
-
ESM dist/index.js.map
|
|
13
|
-
ESM ⚡️ Build success in
|
|
11
|
+
ESM dist/index.js 36.45 KB
|
|
12
|
+
ESM dist/index.js.map 70.25 KB
|
|
13
|
+
ESM ⚡️ Build success in 26ms
|
|
14
14
|
DTS Build start
|
|
15
|
-
DTS ⚡️ Build success in
|
|
16
|
-
DTS dist/index.d.ts 9.
|
|
15
|
+
DTS ⚡️ Build success in 1816ms
|
|
16
|
+
DTS dist/index.d.ts 9.49 KB
|
package/CHANGELOG.md
CHANGED
|
@@ -233,6 +233,21 @@
|
|
|
233
233
|
* dependencies
|
|
234
234
|
* @leather.io/rpc bumped to 2.5.3
|
|
235
235
|
|
|
236
|
+
### Dependencies
|
|
237
|
+
|
|
238
|
+
* The following workspace dependencies were updated
|
|
239
|
+
* dependencies
|
|
240
|
+
* @leather.io/constants bumped to 0.15.5
|
|
241
|
+
* @leather.io/models bumped to 0.25.1
|
|
242
|
+
* @leather.io/rpc bumped to 2.5.5
|
|
243
|
+
|
|
244
|
+
## [0.25.0](https://github.com/leather-io/mono/compare/@leather.io/utils-v0.24.0...@leather.io/utils-v0.25.0) (2025-01-23)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
### Features
|
|
248
|
+
|
|
249
|
+
* change spam filter logic, LEA-2072 ([cf7cfbc](https://github.com/leather-io/mono/commit/cf7cfbc0d113277dae4f3674d5ed23daad88365f))
|
|
250
|
+
|
|
236
251
|
## [0.24.0](https://github.com/leather-io/mono/compare/@leather.io/utils-v0.23.4...@leather.io/utils-v0.24.0) (2025-01-15)
|
|
237
252
|
|
|
238
253
|
|
package/dist/index.d.ts
CHANGED
|
@@ -123,8 +123,6 @@ declare function delay(ms: number): Promise<unknown>;
|
|
|
123
123
|
declare function sumNumbers(nums: number[]): BigNumber$1;
|
|
124
124
|
declare function isFulfilled<T>(p: PromiseSettledResult<T>): p is PromiseFulfilledResult<T>;
|
|
125
125
|
declare function isRejected<T>(p: PromiseSettledResult<T>): p is PromiseRejectedResult;
|
|
126
|
-
declare function getPrincipalFromContractId(identifier: string): string;
|
|
127
|
-
declare function formatContractId(address: string, name: string): string;
|
|
128
126
|
declare function createNullArrayOfLength(length: number): any[];
|
|
129
127
|
declare function safelyFormatHexTxid(id: string): string;
|
|
130
128
|
declare function getTicker(value: string): string;
|
|
@@ -151,4 +149,4 @@ declare function uniqueArray<T>(arr: T[]): T[];
|
|
|
151
149
|
declare function match<Variant extends string | number>(): <T>(variant: Variant, match: Record<Variant, T>) => Record<Variant, T>[Variant];
|
|
152
150
|
declare function removeTrailingNullCharacters(s: string): string;
|
|
153
151
|
|
|
154
|
-
export { abbreviateNumber, aggregateBaseCryptoAssetBalances, aggregateBtcCryptoAssetBalances, aggregateStxCryptoAssetBalances, assertIsTruthy, assertUnreachable, baseCurrencyAmountInQuote, baseCurrencyAmountInQuoteWithFallback, btcToSat, calculateMeanAverage, capitalize, convertAmountToBaseUnit, convertAmountToFractionalUnit, convertToMoneyTypeWithDefaultOfZero, countDecimals, createBaseCryptoAssetBalance, createBtcCryptoAssetBalance, createCounter, createMoney, createMoneyFromDecimal, createNullArrayOfLength, createNumArrayOfRange, createStxCryptoAssetBalance, defaultWalletKeyId, delay, ensureArray, extractPhraseFromString, fibonacciGenerator, fiveMinInMs, formatBalance,
|
|
152
|
+
export { abbreviateNumber, aggregateBaseCryptoAssetBalances, aggregateBtcCryptoAssetBalances, aggregateStxCryptoAssetBalances, assertIsTruthy, assertUnreachable, baseCurrencyAmountInQuote, baseCurrencyAmountInQuoteWithFallback, btcToSat, calculateMeanAverage, capitalize, convertAmountToBaseUnit, convertAmountToFractionalUnit, convertToMoneyTypeWithDefaultOfZero, countDecimals, createBaseCryptoAssetBalance, createBtcCryptoAssetBalance, createCounter, createMoney, createMoneyFromDecimal, createNullArrayOfLength, createNumArrayOfRange, createStxCryptoAssetBalance, defaultWalletKeyId, delay, ensureArray, extractPhraseFromString, fibonacciGenerator, fiveMinInMs, formatBalance, formatDustUsdAmounts, formatMoney, formatMoneyPadded, formatMoneyToFixedDecimal, formatMoneyToFixedDecimalWithoutSymbol, formatMoneyWithoutSymbol, getAssetDisplayName, getTicker, hexToNumber, i18nFormatCurrency, increaseValueByOneMicroStx, initBigNumber, isBigInt, isBoolean, isDefined, isEmpty, isEmptyArray, isEmptyString, isError, isEven, isFulfilled, isFunction, isHexString, isMoney, isMoneyGreaterThanZero, isNumber, isObject, isRejected, isString, isTypedArray, isUndefined, makeNumberRange, mapObject, match, microStxToStx, migratePositiveAssetBalancesToTop, moneyToBaseUnit, noop, oneDayInMs, oneMinInMs, oneWeekInMs, propIfDefined, pxStringToNumber, removeTrailingNullCharacters, reverseBytes, safelyFormatHexTxid, satToBtc, sortAssetsByName, spamFilter, stxToMicroStx, subtractMoney, sumMoney, sumNumbers, toHexString, truncateMiddle, undefinedIfLengthZero, uniqueArray, unitToFractionalUnit, whenNetwork };
|