@builder.io/sdk-svelte 5.2.14 → 5.2.16
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/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/constants/sdk-version.js +1 -1
- package/lib/browser/functions/get-content/generate-content-url.js +3 -1
- package/lib/browser/functions/set.js +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.js +1 -1
- package/lib/edge/functions/get-content/generate-content-url.js +3 -1
- package/lib/edge/functions/set.js +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/constants/sdk-version.js +1 -1
- package/lib/node/functions/get-content/generate-content-url.js +3 -1
- package/lib/node/functions/set.js +3 -0
- package/package.json +1 -1
- package/src/constants/sdk-version.ts +1 -1
- package/src/functions/get-content/generate-content-url.ts +3 -1
- package/src/functions/set.ts +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.2.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.16";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "5.2.
|
|
1
|
+
export const SDK_VERSION = "5.2.16";
|
|
@@ -65,7 +65,9 @@ export const generateContentUrl = (options) => {
|
|
|
65
65
|
};
|
|
66
66
|
const flattened = flatten(queryOptions);
|
|
67
67
|
for (const key in flattened) {
|
|
68
|
-
|
|
68
|
+
if (key !== 'apiKey') {
|
|
69
|
+
url.searchParams.set(key, String(flattened[key]));
|
|
70
|
+
}
|
|
69
71
|
}
|
|
70
72
|
if (Object.keys(finalUserAttributes).length > 0) {
|
|
71
73
|
url.searchParams.set('userAttributes', JSON.stringify(finalUserAttributes));
|
|
@@ -9,6 +9,9 @@ export const set = (obj, _path, value) => {
|
|
|
9
9
|
return obj;
|
|
10
10
|
}
|
|
11
11
|
const path = Array.isArray(_path) ? _path : _path.toString().match(/[^.[\]]+/g);
|
|
12
|
+
if (!path || path.some((key, i) => key === '__proto__' || i < path.length - 1 && (key === 'constructor' || key === 'prototype'))) {
|
|
13
|
+
return obj;
|
|
14
|
+
}
|
|
12
15
|
path.slice(0, -1).reduce((a, c, i) => Object(a[c]) === a[c] ? a[c] : a[c] = Math.abs(Number(path[i + 1])) >> 0 === +path[i + 1] ? [] : {}, obj)[path[path.length - 1]] = value;
|
|
13
16
|
return obj;
|
|
14
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.2.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.16";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "5.2.
|
|
1
|
+
export const SDK_VERSION = "5.2.16";
|
|
@@ -65,7 +65,9 @@ export const generateContentUrl = (options) => {
|
|
|
65
65
|
};
|
|
66
66
|
const flattened = flatten(queryOptions);
|
|
67
67
|
for (const key in flattened) {
|
|
68
|
-
|
|
68
|
+
if (key !== 'apiKey') {
|
|
69
|
+
url.searchParams.set(key, String(flattened[key]));
|
|
70
|
+
}
|
|
69
71
|
}
|
|
70
72
|
if (Object.keys(finalUserAttributes).length > 0) {
|
|
71
73
|
url.searchParams.set('userAttributes', JSON.stringify(finalUserAttributes));
|
|
@@ -9,6 +9,9 @@ export const set = (obj, _path, value) => {
|
|
|
9
9
|
return obj;
|
|
10
10
|
}
|
|
11
11
|
const path = Array.isArray(_path) ? _path : _path.toString().match(/[^.[\]]+/g);
|
|
12
|
+
if (!path || path.some((key, i) => key === '__proto__' || i < path.length - 1 && (key === 'constructor' || key === 'prototype'))) {
|
|
13
|
+
return obj;
|
|
14
|
+
}
|
|
12
15
|
path.slice(0, -1).reduce((a, c, i) => Object(a[c]) === a[c] ? a[c] : a[c] = Math.abs(Number(path[i + 1])) >> 0 === +path[i + 1] ? [] : {}, obj)[path[path.length - 1]] = value;
|
|
13
16
|
return obj;
|
|
14
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.2.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.16";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "5.2.
|
|
1
|
+
export const SDK_VERSION = "5.2.16";
|
|
@@ -65,7 +65,9 @@ export const generateContentUrl = (options) => {
|
|
|
65
65
|
};
|
|
66
66
|
const flattened = flatten(queryOptions);
|
|
67
67
|
for (const key in flattened) {
|
|
68
|
-
|
|
68
|
+
if (key !== 'apiKey') {
|
|
69
|
+
url.searchParams.set(key, String(flattened[key]));
|
|
70
|
+
}
|
|
69
71
|
}
|
|
70
72
|
if (Object.keys(finalUserAttributes).length > 0) {
|
|
71
73
|
url.searchParams.set('userAttributes', JSON.stringify(finalUserAttributes));
|
|
@@ -9,6 +9,9 @@ export const set = (obj, _path, value) => {
|
|
|
9
9
|
return obj;
|
|
10
10
|
}
|
|
11
11
|
const path = Array.isArray(_path) ? _path : _path.toString().match(/[^.[\]]+/g);
|
|
12
|
+
if (!path || path.some((key, i) => key === '__proto__' || i < path.length - 1 && (key === 'constructor' || key === 'prototype'))) {
|
|
13
|
+
return obj;
|
|
14
|
+
}
|
|
12
15
|
path.slice(0, -1).reduce((a, c, i) => Object(a[c]) === a[c] ? a[c] : a[c] = Math.abs(Number(path[i + 1])) >> 0 === +path[i + 1] ? [] : {}, obj)[path[path.length - 1]] = value;
|
|
13
16
|
return obj;
|
|
14
17
|
};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "5.2.
|
|
1
|
+
export const SDK_VERSION = "5.2.16"
|
|
@@ -87,7 +87,9 @@ export const generateContentUrl = (options: GetContentOptions): URL => {
|
|
|
87
87
|
};
|
|
88
88
|
const flattened = flatten(queryOptions);
|
|
89
89
|
for (const key in flattened) {
|
|
90
|
-
|
|
90
|
+
if (key !== 'apiKey') {
|
|
91
|
+
url.searchParams.set(key, String(flattened[key]));
|
|
92
|
+
}
|
|
91
93
|
}
|
|
92
94
|
if (Object.keys(finalUserAttributes).length > 0) {
|
|
93
95
|
url.searchParams.set('userAttributes', JSON.stringify(finalUserAttributes));
|
package/src/functions/set.ts
CHANGED
|
@@ -9,6 +9,9 @@ export const set = (obj: any, _path: string | string[], value: any) => {
|
|
|
9
9
|
return obj;
|
|
10
10
|
}
|
|
11
11
|
const path: string[] = Array.isArray(_path) ? _path : (_path.toString().match(/[^.[\]]+/g) as string[]);
|
|
12
|
+
if (!path || path.some((key, i) => key === '__proto__' || i < path.length - 1 && (key === 'constructor' || key === 'prototype'))) {
|
|
13
|
+
return obj;
|
|
14
|
+
}
|
|
12
15
|
path.slice(0, -1).reduce((a, c, i) => Object(a[c]) === a[c] ? a[c] : a[c] = Math.abs(Number(path[i + 1])) >> 0 === +path[i + 1] ? [] : {}, obj)[path[path.length - 1]] = value;
|
|
13
16
|
return obj;
|
|
14
17
|
}
|