Skip to content

Commit

Permalink
update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Feb 2, 2024
1 parent cc3052d commit 40dbd80
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 20 deletions.
9 changes: 3 additions & 6 deletions dist/index.js
Expand Up @@ -624,15 +624,14 @@ exports.GetAccessTokenResponse = GetAccessTokenResponse;
class JsonServiceClient {
constructor(baseUrl = "/") {
this.baseUrl = baseUrl;
this.replyBaseUrl = combinePaths(baseUrl, "json", "reply") + "/";
this.oneWayBaseUrl = combinePaths(baseUrl, "json", "oneway") + "/";
this.mode = "cors";
this.credentials = "include";
this.headers = new Headers();
this.headers.set("Content-Type", "application/json");
this.manageCookies = typeof document == "undefined"; //because node-fetch doesn't
this.cookies = {};
this.enableAutoRefreshToken = true;
this.basePath = 'api';
}
setCredentials(userName, password) {
this.userName = userName;
Expand All @@ -648,9 +647,6 @@ class JsonServiceClient {
this.oneWayBaseUrl = combinePaths(this.baseUrl, "json", "oneway") + "/";
}
else {
if (path[0] != '/') {
path = '/' + path;
}
this.replyBaseUrl = combinePaths(this.baseUrl, path) + "/";
this.oneWayBaseUrl = combinePaths(this.baseUrl, path) + "/";
}
Expand Down Expand Up @@ -1717,8 +1713,9 @@ function $1(sel, el) {
}
exports.$1 = $1;
function $$(sel, el) {
var _a, _b;
if (typeof sel === "string")
return Array.from((el || document).querySelectorAll(sel));
return Array.from((_b = (_a = (el || typeof document != "undefined" ? document : null)) === null || _a === void 0 ? void 0 : _a.querySelectorAll(sel)) !== null && _b !== void 0 ? _b : []);
if (Array.isArray(sel))
return sel.flatMap(x => $$(x, el));
return [sel];
Expand Down
2 changes: 1 addition & 1 deletion dist/servicestack-client.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/servicestack-client.min.mjs

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions dist/servicestack-client.mjs
Expand Up @@ -745,15 +745,14 @@ export class JsonServiceClient {
static toBase64;
constructor(baseUrl = "/") {
this.baseUrl = baseUrl;
this.replyBaseUrl = combinePaths(baseUrl, "json", "reply") + "/";
this.oneWayBaseUrl = combinePaths(baseUrl, "json", "oneway") + "/";
this.mode = "cors";
this.credentials = "include";
this.headers = new Headers();
this.headers.set("Content-Type", "application/json");
this.manageCookies = typeof document == "undefined"; //because node-fetch doesn't
this.cookies = {};
this.enableAutoRefreshToken = true;
this.basePath = 'api';
}
setCredentials(userName, password) {
this.userName = userName;
Expand All @@ -769,9 +768,6 @@ export class JsonServiceClient {
this.oneWayBaseUrl = combinePaths(this.baseUrl, "json", "oneway") + "/";
}
else {
if (path[0] != '/') {
path = '/' + path;
}
this.replyBaseUrl = combinePaths(this.baseUrl, path) + "/";
this.oneWayBaseUrl = combinePaths(this.baseUrl, path) + "/";
}
Expand Down Expand Up @@ -1767,7 +1763,7 @@ export function $1(sel, el) {
}
export function $$(sel, el) {
if (typeof sel === "string")
return Array.from((el || document).querySelectorAll(sel));
return Array.from((el || typeof document != "undefined" ? document : null)?.querySelectorAll(sel) ?? []);
if (Array.isArray(sel))
return sel.flatMap(x => $$(x, el));
return [sel];
Expand Down
9 changes: 3 additions & 6 deletions dist/servicestack-client.umd.js
Expand Up @@ -789,15 +789,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
function JsonServiceClient(baseUrl) {
if (baseUrl === void 0) { baseUrl = "/"; }
this.baseUrl = baseUrl;
this.replyBaseUrl = combinePaths(baseUrl, "json", "reply") + "/";
this.oneWayBaseUrl = combinePaths(baseUrl, "json", "oneway") + "/";
this.mode = "cors";
this.credentials = "include";
this.headers = new Headers();
this.headers.set("Content-Type", "application/json");
this.manageCookies = typeof document == "undefined"; //because node-fetch doesn't
this.cookies = {};
this.enableAutoRefreshToken = true;
this.basePath = 'api';
}
JsonServiceClient.prototype.setCredentials = function (userName, password) {
this.userName = userName;
Expand All @@ -814,9 +813,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
this.oneWayBaseUrl = combinePaths(this.baseUrl, "json", "oneway") + "/";
}
else {
if (path[0] != '/') {
path = '/' + path;
}
this.replyBaseUrl = combinePaths(this.baseUrl, path) + "/";
this.oneWayBaseUrl = combinePaths(this.baseUrl, path) + "/";
}
Expand Down Expand Up @@ -1993,8 +1989,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
}
exports.$1 = $1;
function $$(sel, el) {
var _a, _b;
if (typeof sel === "string")
return Array.from((el || document).querySelectorAll(sel));
return Array.from((_b = (_a = (el || typeof document != "undefined" ? document : null)) === null || _a === void 0 ? void 0 : _a.querySelectorAll(sel)) !== null && _b !== void 0 ? _b : []);
if (Array.isArray(sel))
return sel.flatMap(function (x) { return $$(x, el); });
return [sel];
Expand Down

0 comments on commit 40dbd80

Please sign in to comment.