warframe-nexus-query 3.0.0 → 3.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/dist/index.d.mts +9 -9
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -543,14 +543,14 @@ declare class SummaryV2 {
|
|
|
543
543
|
* @param lang - Language code
|
|
544
544
|
* @returns Normalized language code
|
|
545
545
|
*/
|
|
546
|
-
declare function normalizeLanguage(lang?: string): Language;
|
|
546
|
+
export declare function normalizeLanguage(lang?: string): Language;
|
|
547
547
|
/**
|
|
548
548
|
* Extract localized data from i18n object
|
|
549
549
|
* @param i18n - i18n object
|
|
550
550
|
* @param locale - Preferred locale
|
|
551
551
|
* @returns Localized data
|
|
552
552
|
*/
|
|
553
|
-
declare function extractLocalized(i18n: I18nData | undefined, locale?: string): LocalizedData;
|
|
553
|
+
export declare function extractLocalized(i18n: I18nData | undefined, locale?: string): LocalizedData;
|
|
554
554
|
/**
|
|
555
555
|
* Get field from i18n object with fallback
|
|
556
556
|
* @param i18n - i18n object
|
|
@@ -559,7 +559,7 @@ declare function extractLocalized(i18n: I18nData | undefined, locale?: string):
|
|
|
559
559
|
* @param defaultValue - Default value if not found
|
|
560
560
|
* @returns Localized field or the default
|
|
561
561
|
*/
|
|
562
|
-
declare function getLocalizedField(i18n: I18nData | undefined, field: string, locale?: string, defaultValue?: unknown): any;
|
|
562
|
+
export declare function getLocalizedField(i18n: I18nData | undefined, field: string, locale?: string, defaultValue?: unknown): any;
|
|
563
563
|
interface TopOrders {
|
|
564
564
|
buy: Order[];
|
|
565
565
|
sell: Order[];
|
|
@@ -794,14 +794,14 @@ interface StatOrder {
|
|
|
794
794
|
* @param options - Calculation options
|
|
795
795
|
* @returns Statistics object
|
|
796
796
|
*/
|
|
797
|
-
declare function calculateStatistics(orders: StatOrder[], options?: CalculateStatisticsOptions): StatisticsData;
|
|
797
|
+
export declare function calculateStatistics(orders: StatOrder[], options?: CalculateStatisticsOptions): StatisticsData;
|
|
798
798
|
/**
|
|
799
799
|
* Get best orders (lowest sell / highest buy)
|
|
800
800
|
* @param orders - Array of orders
|
|
801
801
|
* @param options - Options
|
|
802
802
|
* @returns Best buy and sell orders
|
|
803
803
|
*/
|
|
804
|
-
declare function getBestOrders<T extends StatOrder>(orders: T[], options?: GetBestOrdersOptions): {
|
|
804
|
+
export declare function getBestOrders<T extends StatOrder>(orders: T[], options?: GetBestOrdersOptions): {
|
|
805
805
|
buy: T[];
|
|
806
806
|
sell: T[];
|
|
807
807
|
};
|
|
@@ -810,18 +810,18 @@ declare function getBestOrders<T extends StatOrder>(orders: T[], options?: GetBe
|
|
|
810
810
|
* @param stats - Statistics object
|
|
811
811
|
* @returns Price range text
|
|
812
812
|
*/
|
|
813
|
-
declare function formatPriceRange(stats: Pick<StatisticsData, 'orderCount' | 'min' | 'max' | 'median'>): string;
|
|
813
|
+
export declare function formatPriceRange(stats: Pick<StatisticsData, 'orderCount' | 'min' | 'max' | 'median'>): string;
|
|
814
814
|
/**
|
|
815
815
|
* Format statistics for display
|
|
816
816
|
* @param stats - Statistics object
|
|
817
817
|
* @param type - Order type ('buy' or 'sell')
|
|
818
818
|
* @returns Formatted statistics
|
|
819
819
|
*/
|
|
820
|
-
declare function formatStatistics(stats: StatisticsData, type?: string): string;
|
|
820
|
+
export declare function formatStatistics(stats: StatisticsData, type?: string): string;
|
|
821
821
|
type QueryResult = {
|
|
822
822
|
toString(): string;
|
|
823
823
|
};
|
|
824
|
-
|
|
824
|
+
export default class PriceCheckQuerier {
|
|
825
825
|
#private;
|
|
826
826
|
settings: Settings;
|
|
827
827
|
logger: Logger;
|
|
@@ -865,4 +865,4 @@ declare class PriceCheckQuerier {
|
|
|
865
865
|
*/
|
|
866
866
|
stopUpdating(): Promise<void>;
|
|
867
867
|
}
|
|
868
|
-
export { type ActivityType, type CalculateStatisticsOptions, type DiscordEmbed, type DiscordEmbedField, type GetBestOrdersOptions, HttpClient, type HttpClientOptions, Item, type ItemData, type Language, type Logger, MarketFetcherV2, type MarketFetcherV2Options, Order, type OrderData, type OrderType, OrderUser, type Platform, type PriceCheckOptions, type QueryOptions, type Rarity, type StatisticsData, SummaryV2 as Summary, SummaryV2, type SummaryPrices, type TraderInfo, type UserStatus, VersionedCache
|
|
868
|
+
export { type ActivityType, type CalculateStatisticsOptions, type DiscordEmbed, type DiscordEmbedField, type GetBestOrdersOptions, HttpClient, type HttpClientOptions, Item, type ItemData, type Language, type Logger, MarketFetcherV2, type MarketFetcherV2Options, Order, type OrderData, type OrderType, OrderUser, type Platform, type PriceCheckOptions, type QueryOptions, type Rarity, type StatisticsData, SummaryV2 as Summary, SummaryV2, type SummaryPrices, type TraderInfo, type UserStatus, VersionedCache };
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "warframe-nexus-query",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Query prices form nexus-stats.com and warframe.market.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"warframe",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@commitlint/cli": "^21.0.1",
|
|
57
57
|
"@commitlint/config-conventional": "^21.0.1",
|
|
58
|
-
"@stylistic/eslint-plugin": "^
|
|
58
|
+
"@stylistic/eslint-plugin": "^6.0.1",
|
|
59
59
|
"@types/chai": "^5.2.3",
|
|
60
60
|
"@types/json-query": "^2.2.0",
|
|
61
61
|
"@types/mocha": "^10.0.10",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"husky": "^9.0.11",
|
|
71
71
|
"lint-staged": "^17.0.5",
|
|
72
72
|
"mocha": "^12.0.2",
|
|
73
|
-
"semantic-release": "^
|
|
74
|
-
"tsdown": "^0.
|
|
73
|
+
"semantic-release": "^26.0.1",
|
|
74
|
+
"tsdown": "^0.23.1",
|
|
75
75
|
"tsx": "^4.23.15",
|
|
76
76
|
"typedoc": "^0.28.20",
|
|
77
77
|
"typescript": "^6.0.3",
|