scavio 0.26.2 → 0.26.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.
- package/README.md +3 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4743,14 +4743,14 @@ declare class CostcoNamespace {
|
|
|
4743
4743
|
* `warehouse_id` to add that warehouse's in-store price and stock to every
|
|
4744
4744
|
* result.
|
|
4745
4745
|
*
|
|
4746
|
-
* Costs 1
|
|
4746
|
+
* Costs 2 credits for the US, 1 elsewhere.
|
|
4747
4747
|
*/
|
|
4748
4748
|
search(options: CostcoSearchOptions): Promise<Record<string, unknown>>;
|
|
4749
4749
|
/**
|
|
4750
4750
|
* Products in a Costco category, with the same sort, filters and
|
|
4751
4751
|
* per-warehouse pricing as search().
|
|
4752
4752
|
*
|
|
4753
|
-
* Costs 1
|
|
4753
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
4754
4754
|
*/
|
|
4755
4755
|
category(options: CostcoCategoryOptions): Promise<Record<string, unknown>>;
|
|
4756
4756
|
/**
|
|
@@ -4819,7 +4819,7 @@ declare class CostcoNamespace {
|
|
|
4819
4819
|
* favorites, online-only and everything on sale, with the same filters and
|
|
4820
4820
|
* optional per-warehouse pricing as search().
|
|
4821
4821
|
*
|
|
4822
|
-
* Costs 1
|
|
4822
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
4823
4823
|
*/
|
|
4824
4824
|
deals(options: CostcoDealsOptions): Promise<Record<string, unknown>>;
|
|
4825
4825
|
/**
|
|
@@ -4829,7 +4829,7 @@ declare class CostcoNamespace {
|
|
|
4829
4829
|
* buys on request. The codes are the member-community decode; Costco does
|
|
4830
4830
|
* not publish them. Only items Costco lists online are covered.
|
|
4831
4831
|
*
|
|
4832
|
-
* Costs 1
|
|
4832
|
+
* Costs 2 credits for the US (any `pages` value), 1 for Canada.
|
|
4833
4833
|
*/
|
|
4834
4834
|
clearance(options: CostcoClearanceOptions): Promise<Record<string, unknown>>;
|
|
4835
4835
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -4743,14 +4743,14 @@ declare class CostcoNamespace {
|
|
|
4743
4743
|
* `warehouse_id` to add that warehouse's in-store price and stock to every
|
|
4744
4744
|
* result.
|
|
4745
4745
|
*
|
|
4746
|
-
* Costs 1
|
|
4746
|
+
* Costs 2 credits for the US, 1 elsewhere.
|
|
4747
4747
|
*/
|
|
4748
4748
|
search(options: CostcoSearchOptions): Promise<Record<string, unknown>>;
|
|
4749
4749
|
/**
|
|
4750
4750
|
* Products in a Costco category, with the same sort, filters and
|
|
4751
4751
|
* per-warehouse pricing as search().
|
|
4752
4752
|
*
|
|
4753
|
-
* Costs 1
|
|
4753
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
4754
4754
|
*/
|
|
4755
4755
|
category(options: CostcoCategoryOptions): Promise<Record<string, unknown>>;
|
|
4756
4756
|
/**
|
|
@@ -4819,7 +4819,7 @@ declare class CostcoNamespace {
|
|
|
4819
4819
|
* favorites, online-only and everything on sale, with the same filters and
|
|
4820
4820
|
* optional per-warehouse pricing as search().
|
|
4821
4821
|
*
|
|
4822
|
-
* Costs 1
|
|
4822
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
4823
4823
|
*/
|
|
4824
4824
|
deals(options: CostcoDealsOptions): Promise<Record<string, unknown>>;
|
|
4825
4825
|
/**
|
|
@@ -4829,7 +4829,7 @@ declare class CostcoNamespace {
|
|
|
4829
4829
|
* buys on request. The codes are the member-community decode; Costco does
|
|
4830
4830
|
* not publish them. Only items Costco lists online are covered.
|
|
4831
4831
|
*
|
|
4832
|
-
* Costs 1
|
|
4832
|
+
* Costs 2 credits for the US (any `pages` value), 1 for Canada.
|
|
4833
4833
|
*/
|
|
4834
4834
|
clearance(options: CostcoClearanceOptions): Promise<Record<string, unknown>>;
|
|
4835
4835
|
/**
|
package/dist/index.js
CHANGED
|
@@ -145,7 +145,7 @@ function parseRetryAfter(header) {
|
|
|
145
145
|
var BASE_URL = "https://api.scavio.dev";
|
|
146
146
|
var DEFAULT_TIMEOUT = 3e4;
|
|
147
147
|
var DEFAULT_MAX_RETRIES = 2;
|
|
148
|
-
var SDK_VERSION = true ? "0.26.
|
|
148
|
+
var SDK_VERSION = true ? "0.26.3" : "0.0.0";
|
|
149
149
|
var USER_AGENT = `scavio-js/${SDK_VERSION}`;
|
|
150
150
|
function isServerRuntime() {
|
|
151
151
|
const g = globalThis;
|
|
@@ -2533,7 +2533,7 @@ var CostcoNamespace = class {
|
|
|
2533
2533
|
* `warehouse_id` to add that warehouse's in-store price and stock to every
|
|
2534
2534
|
* result.
|
|
2535
2535
|
*
|
|
2536
|
-
* Costs 1
|
|
2536
|
+
* Costs 2 credits for the US, 1 elsewhere.
|
|
2537
2537
|
*/
|
|
2538
2538
|
async search(options) {
|
|
2539
2539
|
return this.client._post("/api/v1/costco/search", options);
|
|
@@ -2542,7 +2542,7 @@ var CostcoNamespace = class {
|
|
|
2542
2542
|
* Products in a Costco category, with the same sort, filters and
|
|
2543
2543
|
* per-warehouse pricing as search().
|
|
2544
2544
|
*
|
|
2545
|
-
* Costs 1
|
|
2545
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
2546
2546
|
*/
|
|
2547
2547
|
async category(options) {
|
|
2548
2548
|
return this.client._post("/api/v1/costco/category", options);
|
|
@@ -2629,7 +2629,7 @@ var CostcoNamespace = class {
|
|
|
2629
2629
|
* favorites, online-only and everything on sale, with the same filters and
|
|
2630
2630
|
* optional per-warehouse pricing as search().
|
|
2631
2631
|
*
|
|
2632
|
-
* Costs 1
|
|
2632
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
2633
2633
|
*/
|
|
2634
2634
|
async deals(options) {
|
|
2635
2635
|
return this.client._post("/api/v1/costco/deals", options);
|
|
@@ -2641,7 +2641,7 @@ var CostcoNamespace = class {
|
|
|
2641
2641
|
* buys on request. The codes are the member-community decode; Costco does
|
|
2642
2642
|
* not publish them. Only items Costco lists online are covered.
|
|
2643
2643
|
*
|
|
2644
|
-
* Costs 1
|
|
2644
|
+
* Costs 2 credits for the US (any `pages` value), 1 for Canada.
|
|
2645
2645
|
*/
|
|
2646
2646
|
async clearance(options) {
|
|
2647
2647
|
return this.client._post("/api/v1/costco/clearance", options);
|