@depict-ai/utilishared 0.0.86 → 1.0.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/dist/index.d.ts +3 -1
- package/dist/main.js +4 -3
- package/dist/module.js +4 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../jsx.d.ts" />
|
|
2
2
|
import { EUnavailabilityType } from "@depict-ai/types/api/TrackV2Request";
|
|
3
|
-
export const version = "
|
|
3
|
+
export const version = "1.0.1";
|
|
4
4
|
export const is_debug: boolean;
|
|
5
5
|
/**
|
|
6
6
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
|
@@ -989,6 +989,8 @@ type ExclusiveId = {
|
|
|
989
989
|
};
|
|
990
990
|
type FetchRecsOptions = {
|
|
991
991
|
type: string;
|
|
992
|
+
user_id?: string;
|
|
993
|
+
session_id?: string;
|
|
992
994
|
} & ExclusiveId;
|
|
993
995
|
/**
|
|
994
996
|
* Fetches recommendations from the depict v2 recommendation api.
|
package/dist/main.js
CHANGED
|
@@ -274,7 +274,7 @@ $parcel$export(module.exports, "hsl_to_rgb", () => $d73746ee466f09ca$export$e4fd
|
|
|
274
274
|
$parcel$export(module.exports, "relative_luminance_from_rgb", () => $d73746ee466f09ca$export$98c2b3491e76c1f);
|
|
275
275
|
$parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fbfd8236492);
|
|
276
276
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
277
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "
|
|
277
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "1.0.1";
|
|
278
278
|
|
|
279
279
|
|
|
280
280
|
const $7b5e577a60b81e60$export$55fe61489d2c7417 = /*@__PURE__*/ (()=>process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
@@ -3335,11 +3335,12 @@ async function $94edfb6d9c42a288$export$1bc0df10745d5412(t, options, headers, ge
|
|
|
3335
3335
|
}
|
|
3336
3336
|
async function $94edfb6d9c42a288$export$d40679eb4cf32f09(t, options, headers, get_url = $94edfb6d9c42a288$var$default_get_fetch_url) {
|
|
3337
3337
|
const dsid = (0, $e0a87646d12cb987$export$6399bdb2291895e0)();
|
|
3338
|
-
const session_id = (0, $e0a87646d12cb987$export$61e7e1f11e96692f)();
|
|
3338
|
+
const session_id = options.session_id || (0, $e0a87646d12cb987$export$61e7e1f11e96692f)();
|
|
3339
|
+
const user_id = options.user_id || dsid;
|
|
3339
3340
|
const body = {
|
|
3340
3341
|
tenant: t.tenant,
|
|
3341
3342
|
market: t.market,
|
|
3342
|
-
user_id:
|
|
3343
|
+
user_id: user_id,
|
|
3343
3344
|
session_id: session_id,
|
|
3344
3345
|
dsid: dsid,
|
|
3345
3346
|
document_referrer: document.referrer,
|
package/dist/module.js
CHANGED
|
@@ -4,7 +4,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
4
4
|
function $parcel$interopDefault(a) {
|
|
5
5
|
return a && a.__esModule ? a.default : a;
|
|
6
6
|
}
|
|
7
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "
|
|
7
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "1.0.1";
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
const $571bce04eb920cd8$export$55fe61489d2c7417 = /*@__PURE__*/ (()=>process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
@@ -3065,11 +3065,12 @@ async function $2d47b009af5bc0a4$export$1bc0df10745d5412(t, options, headers, ge
|
|
|
3065
3065
|
}
|
|
3066
3066
|
async function $2d47b009af5bc0a4$export$d40679eb4cf32f09(t, options, headers, get_url = $2d47b009af5bc0a4$var$default_get_fetch_url) {
|
|
3067
3067
|
const dsid = (0, $43683b1103edab15$export$6399bdb2291895e0)();
|
|
3068
|
-
const session_id = (0, $43683b1103edab15$export$61e7e1f11e96692f)();
|
|
3068
|
+
const session_id = options.session_id || (0, $43683b1103edab15$export$61e7e1f11e96692f)();
|
|
3069
|
+
const user_id = options.user_id || dsid;
|
|
3069
3070
|
const body = {
|
|
3070
3071
|
tenant: t.tenant,
|
|
3071
3072
|
market: t.market,
|
|
3072
|
-
user_id:
|
|
3073
|
+
user_id: user_id,
|
|
3073
3074
|
session_id: session_id,
|
|
3074
3075
|
dsid: dsid,
|
|
3075
3076
|
document_referrer: document.referrer,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/utilishared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@babel/core": "latest",
|
|
44
44
|
"@babel/runtime": "latest",
|
|
45
45
|
"@babel/runtime-corejs3": "latest",
|
|
46
|
-
"@depict-ai/types": "^
|
|
46
|
+
"@depict-ai/types": "^1.0.1",
|
|
47
47
|
"@parcel/resolver-default": "^2.8.0",
|
|
48
48
|
"@sentry/cli": "latest",
|
|
49
49
|
"@sentry/types": "^7.13.0",
|