@gbozee/ultimate 0.0.2-55 → 0.0.2-57
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.cjs +38 -1
- package/dist/index.js +38 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -51292,6 +51292,18 @@ function decryptObject(encryptedString, password) {
|
|
|
51292
51292
|
async function initPocketBaseClient(proxy_credentials) {
|
|
51293
51293
|
const pb = new Client(proxy_credentials.host);
|
|
51294
51294
|
await pb.collection("_superusers").authWithPassword(proxy_credentials.email, proxy_credentials.password);
|
|
51295
|
+
const customInspectSymbol = Symbol.for("nodejs.util.inspect.custom");
|
|
51296
|
+
if (typeof pb === "object" && pb !== null) {
|
|
51297
|
+
pb[customInspectSymbol] = function() {
|
|
51298
|
+
return `PocketBase { authStore: [Masked], ... }`;
|
|
51299
|
+
};
|
|
51300
|
+
pb.toJSON = function() {
|
|
51301
|
+
return {
|
|
51302
|
+
_instanceType: "PocketBase",
|
|
51303
|
+
_status: "Sensitive Data Masked"
|
|
51304
|
+
};
|
|
51305
|
+
};
|
|
51306
|
+
}
|
|
51295
51307
|
return pb;
|
|
51296
51308
|
}
|
|
51297
51309
|
|
|
@@ -51299,6 +51311,16 @@ class AppDatabase {
|
|
|
51299
51311
|
pb;
|
|
51300
51312
|
constructor(pb) {
|
|
51301
51313
|
this.pb = pb;
|
|
51314
|
+
const customInspectSymbol = Symbol.for("nodejs.util.inspect.custom");
|
|
51315
|
+
this[customInspectSymbol] = function() {
|
|
51316
|
+
return `AppDatabase { pb: [PocketBase Instance - Sensitive Data Masked] }`;
|
|
51317
|
+
};
|
|
51318
|
+
this.toJSON = function() {
|
|
51319
|
+
return {
|
|
51320
|
+
_instanceType: "AppDatabase",
|
|
51321
|
+
_pb_status: "PocketBase Instance - Sensitive Data Masked"
|
|
51322
|
+
};
|
|
51323
|
+
};
|
|
51302
51324
|
}
|
|
51303
51325
|
getCredentials(password) {
|
|
51304
51326
|
const credentials = this.pb.authStore.record.credentials;
|
|
@@ -53236,8 +53258,23 @@ async function initClient(credentials, options) {
|
|
|
53236
53258
|
api_key: credentials.api_key,
|
|
53237
53259
|
api_secret: credentials.api_secret,
|
|
53238
53260
|
recvWindow: 1e4,
|
|
53239
|
-
beautifyResponses: true
|
|
53261
|
+
beautifyResponses: true,
|
|
53262
|
+
disableTimeSync: false,
|
|
53263
|
+
syncIntervalMs: 300000
|
|
53240
53264
|
}, axiosOptions);
|
|
53265
|
+
const clientName = client.constructor.name;
|
|
53266
|
+
const customInspectSymbol = Symbol.for("nodejs.util.inspect.custom");
|
|
53267
|
+
if (typeof client === "object" && client !== null) {
|
|
53268
|
+
client[customInspectSymbol] = function() {
|
|
53269
|
+
return `${clientName} { [Credentials Masked] }`;
|
|
53270
|
+
};
|
|
53271
|
+
client.toJSON = function() {
|
|
53272
|
+
return {
|
|
53273
|
+
_clientType: clientName,
|
|
53274
|
+
_status: "Credentials Masked"
|
|
53275
|
+
};
|
|
53276
|
+
};
|
|
53277
|
+
}
|
|
53241
53278
|
return client;
|
|
53242
53279
|
} catch (e2) {
|
|
53243
53280
|
console.log(e2);
|
package/dist/index.js
CHANGED
|
@@ -51250,6 +51250,18 @@ function decryptObject(encryptedString, password) {
|
|
|
51250
51250
|
async function initPocketBaseClient(proxy_credentials) {
|
|
51251
51251
|
const pb = new Client(proxy_credentials.host);
|
|
51252
51252
|
await pb.collection("_superusers").authWithPassword(proxy_credentials.email, proxy_credentials.password);
|
|
51253
|
+
const customInspectSymbol = Symbol.for("nodejs.util.inspect.custom");
|
|
51254
|
+
if (typeof pb === "object" && pb !== null) {
|
|
51255
|
+
pb[customInspectSymbol] = function() {
|
|
51256
|
+
return `PocketBase { authStore: [Masked], ... }`;
|
|
51257
|
+
};
|
|
51258
|
+
pb.toJSON = function() {
|
|
51259
|
+
return {
|
|
51260
|
+
_instanceType: "PocketBase",
|
|
51261
|
+
_status: "Sensitive Data Masked"
|
|
51262
|
+
};
|
|
51263
|
+
};
|
|
51264
|
+
}
|
|
51253
51265
|
return pb;
|
|
51254
51266
|
}
|
|
51255
51267
|
|
|
@@ -51257,6 +51269,16 @@ class AppDatabase {
|
|
|
51257
51269
|
pb;
|
|
51258
51270
|
constructor(pb) {
|
|
51259
51271
|
this.pb = pb;
|
|
51272
|
+
const customInspectSymbol = Symbol.for("nodejs.util.inspect.custom");
|
|
51273
|
+
this[customInspectSymbol] = function() {
|
|
51274
|
+
return `AppDatabase { pb: [PocketBase Instance - Sensitive Data Masked] }`;
|
|
51275
|
+
};
|
|
51276
|
+
this.toJSON = function() {
|
|
51277
|
+
return {
|
|
51278
|
+
_instanceType: "AppDatabase",
|
|
51279
|
+
_pb_status: "PocketBase Instance - Sensitive Data Masked"
|
|
51280
|
+
};
|
|
51281
|
+
};
|
|
51260
51282
|
}
|
|
51261
51283
|
getCredentials(password) {
|
|
51262
51284
|
const credentials = this.pb.authStore.record.credentials;
|
|
@@ -53194,8 +53216,23 @@ async function initClient(credentials, options) {
|
|
|
53194
53216
|
api_key: credentials.api_key,
|
|
53195
53217
|
api_secret: credentials.api_secret,
|
|
53196
53218
|
recvWindow: 1e4,
|
|
53197
|
-
beautifyResponses: true
|
|
53219
|
+
beautifyResponses: true,
|
|
53220
|
+
disableTimeSync: false,
|
|
53221
|
+
syncIntervalMs: 300000
|
|
53198
53222
|
}, axiosOptions);
|
|
53223
|
+
const clientName = client.constructor.name;
|
|
53224
|
+
const customInspectSymbol = Symbol.for("nodejs.util.inspect.custom");
|
|
53225
|
+
if (typeof client === "object" && client !== null) {
|
|
53226
|
+
client[customInspectSymbol] = function() {
|
|
53227
|
+
return `${clientName} { [Credentials Masked] }`;
|
|
53228
|
+
};
|
|
53229
|
+
client.toJSON = function() {
|
|
53230
|
+
return {
|
|
53231
|
+
_clientType: clientName,
|
|
53232
|
+
_status: "Credentials Masked"
|
|
53233
|
+
};
|
|
53234
|
+
};
|
|
53235
|
+
}
|
|
53199
53236
|
return client;
|
|
53200
53237
|
} catch (e2) {
|
|
53201
53238
|
console.log(e2);
|