@gbozee/ultimate 0.0.2-55 → 0.0.2-56

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 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;
@@ -53238,6 +53260,19 @@ async function initClient(credentials, options) {
53238
53260
  recvWindow: 1e4,
53239
53261
  beautifyResponses: true
53240
53262
  }, axiosOptions);
53263
+ const clientName = client.constructor.name;
53264
+ const customInspectSymbol = Symbol.for("nodejs.util.inspect.custom");
53265
+ if (typeof client === "object" && client !== null) {
53266
+ client[customInspectSymbol] = function() {
53267
+ return `${clientName} { [Credentials Masked] }`;
53268
+ };
53269
+ client.toJSON = function() {
53270
+ return {
53271
+ _clientType: clientName,
53272
+ _status: "Credentials Masked"
53273
+ };
53274
+ };
53275
+ }
53241
53276
  return client;
53242
53277
  } catch (e2) {
53243
53278
  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;
@@ -53196,6 +53218,19 @@ async function initClient(credentials, options) {
53196
53218
  recvWindow: 1e4,
53197
53219
  beautifyResponses: true
53198
53220
  }, axiosOptions);
53221
+ const clientName = client.constructor.name;
53222
+ const customInspectSymbol = Symbol.for("nodejs.util.inspect.custom");
53223
+ if (typeof client === "object" && client !== null) {
53224
+ client[customInspectSymbol] = function() {
53225
+ return `${clientName} { [Credentials Masked] }`;
53226
+ };
53227
+ client.toJSON = function() {
53228
+ return {
53229
+ _clientType: clientName,
53230
+ _status: "Credentials Masked"
53231
+ };
53232
+ };
53233
+ }
53199
53234
  return client;
53200
53235
  } catch (e2) {
53201
53236
  console.log(e2);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gbozee/ultimate",
3
3
  "type": "module",
4
- "version": "0.0.2-55",
4
+ "version": "0.0.2-56",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",