Skip to content

Commit 34016db

Browse files
committed
update deps
1 parent 49fcda5 commit 34016db

File tree

6 files changed

+14057
-12693
lines changed

6 files changed

+14057
-12693
lines changed

BlazorDiffusion/wwwroot/lib/mjs/servicestack-client.min.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

BlazorDiffusion/wwwroot/lib/mjs/servicestack-client.mjs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -745,15 +745,14 @@ export class JsonServiceClient {
745745
static toBase64;
746746
constructor(baseUrl = "/") {
747747
this.baseUrl = baseUrl;
748-
this.replyBaseUrl = combinePaths(baseUrl, "json", "reply") + "/";
749-
this.oneWayBaseUrl = combinePaths(baseUrl, "json", "oneway") + "/";
750748
this.mode = "cors";
751749
this.credentials = "include";
752750
this.headers = new Headers();
753751
this.headers.set("Content-Type", "application/json");
754752
this.manageCookies = typeof document == "undefined"; //because node-fetch doesn't
755753
this.cookies = {};
756754
this.enableAutoRefreshToken = true;
755+
this.basePath = 'api';
757756
}
758757
setCredentials(userName, password) {
759758
this.userName = userName;
@@ -769,9 +768,6 @@ export class JsonServiceClient {
769768
this.oneWayBaseUrl = combinePaths(this.baseUrl, "json", "oneway") + "/";
770769
}
771770
else {
772-
if (path[0] != '/') {
773-
path = '/' + path;
774-
}
775771
this.replyBaseUrl = combinePaths(this.baseUrl, path) + "/";
776772
this.oneWayBaseUrl = combinePaths(this.baseUrl, path) + "/";
777773
}
@@ -1767,7 +1763,7 @@ export function $1(sel, el) {
17671763
}
17681764
export function $$(sel, el) {
17691765
if (typeof sel === "string")
1770-
return Array.from((el || document).querySelectorAll(sel));
1766+
return Array.from((el || typeof document != "undefined" ? document : null)?.querySelectorAll(sel) ?? []);
17711767
if (Array.isArray(sel))
17721768
return sel.flatMap(x => $$(x, el));
17731769
return [sel];
@@ -2251,30 +2247,34 @@ export function safeVarName(s) {
22512247
}
22522248
export function pick(o, keys) {
22532249
const to = {};
2254-
for (const k in o) {
2255-
if (o.hasOwnProperty(k) && keys.indexOf(k) >= 0) {
2250+
Object.keys(o).forEach(k => {
2251+
if (keys.indexOf(k) >= 0) {
22562252
to[k] = o[k];
22572253
}
2258-
}
2254+
});
22592255
return to;
22602256
}
22612257
export function omit(o, keys) {
22622258
const to = {};
2263-
for (const k in o) {
2264-
if (o.hasOwnProperty(k) && keys.indexOf(k) < 0) {
2259+
if (!o)
2260+
return to;
2261+
Object.keys(o).forEach(k => {
2262+
if (keys.indexOf(k) < 0) {
22652263
to[k] = o[k];
22662264
}
2267-
}
2265+
});
22682266
return to;
22692267
}
22702268
export function omitEmpty(o) {
22712269
const to = {};
2272-
for (const k in o) {
2270+
if (!o)
2271+
return to;
2272+
Object.keys(o).forEach(k => {
22732273
const v = o[k];
22742274
if (v != null && v !== '') {
22752275
to[k] = v;
22762276
}
2277-
}
2277+
});
22782278
return to;
22792279
}
22802280
export function apply(x, fn) {

BlazorDiffusion/wwwroot/lib/mjs/servicestack-vue.min.mjs

Lines changed: 16 additions & 16 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)