@aicats/sdk 1.0.3 → 1.0.4
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.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -83,6 +83,7 @@ async function random(options) {
|
|
|
83
83
|
const params = new URLSearchParams();
|
|
84
84
|
if (options?.size) params.set("size", options.size);
|
|
85
85
|
if (options?.theme) params.set("theme", options.theme);
|
|
86
|
+
params.set("rnd", Math.random().toString());
|
|
86
87
|
const query = params.toString() ? `?${params}` : "";
|
|
87
88
|
const response = await fetch(`${ApiUrl}/cat${query}`);
|
|
88
89
|
if (!response.ok) {
|
package/dist/index.mjs
CHANGED
|
@@ -55,6 +55,7 @@ async function random(options) {
|
|
|
55
55
|
const params = new URLSearchParams();
|
|
56
56
|
if (options?.size) params.set("size", options.size);
|
|
57
57
|
if (options?.theme) params.set("theme", options.theme);
|
|
58
|
+
params.set("rnd", Math.random().toString());
|
|
58
59
|
const query = params.toString() ? `?${params}` : "";
|
|
59
60
|
const response = await fetch(`${ApiUrl}/cat${query}`);
|
|
60
61
|
if (!response.ok) {
|