shogun-core 6.9.6 → 6.9.7

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.
@@ -61676,6 +61676,8 @@ var DataBaseHolster = /** @class */ (function () {
61676
61676
  var _a;
61677
61677
  /** Cached user instance or `null` if not logged in */
61678
61678
  this.user = null;
61679
+ this.prefix = '';
61680
+ this.ev = {};
61679
61681
  /** Registered callbacks for auth state changes */
61680
61682
  this.onAuthCallbacks = [];
61681
61683
  /** Whether the database instance has been destroyed */
@@ -62724,6 +62726,85 @@ var DataBaseHolster = /** @class */ (function () {
62724
62726
  DataBaseHolster.prototype.emit = function (event, data) {
62725
62727
  return this.eventEmitter.emit(event, data);
62726
62728
  };
62729
+ // --- Firegun Methods Stubs ---
62730
+ DataBaseHolster.prototype._timeout = function (ms) {
62731
+ return db_holster_awaiter(this, void 0, void 0, function () {
62732
+ return db_holster_generator(this, function (_a) {
62733
+ return [2 /*return*/, new Promise(function (resolve) { return setTimeout(resolve, ms); })];
62734
+ });
62735
+ });
62736
+ };
62737
+ DataBaseHolster.prototype.Off = function (ev) {
62738
+ if (ev === void 0) { ev = 'default'; }
62739
+ console.warn('Off not implemented in DataBaseHolster');
62740
+ };
62741
+ DataBaseHolster.prototype.Listen = function (path, callback, prefix) {
62742
+ if (prefix === void 0) { prefix = this.prefix; }
62743
+ console.warn('Listen not implemented in DataBaseHolster');
62744
+ };
62745
+ DataBaseHolster.prototype.On = function (path, callback, ev, different, prefix) {
62746
+ if (ev === void 0) { ev = 'default'; }
62747
+ if (different === void 0) { different = true; }
62748
+ if (prefix === void 0) { prefix = this.prefix; }
62749
+ console.warn('On not implemented in DataBaseHolster');
62750
+ };
62751
+ DataBaseHolster.prototype.addContentAdressing = function (key, data) {
62752
+ return Promise.reject(new Error('addContentAdressing not implemented in DataBaseHolster'));
62753
+ };
62754
+ DataBaseHolster.prototype.userGet = function (path, repeat, prefix) {
62755
+ if (repeat === void 0) { repeat = 1; }
62756
+ if (prefix === void 0) { prefix = this.prefix; }
62757
+ return Promise.reject(new Error('userGet not implemented in DataBaseHolster'));
62758
+ };
62759
+ DataBaseHolster.prototype.userLoad = function (path, async, repeat, prefix) {
62760
+ if (async === void 0) { async = false; }
62761
+ if (repeat === void 0) { repeat = 1; }
62762
+ if (prefix === void 0) { prefix = this.prefix; }
62763
+ return Promise.reject(new Error('userLoad not implemented in DataBaseHolster'));
62764
+ };
62765
+ DataBaseHolster.prototype.Get = function (path, repeat, prefix) {
62766
+ if (repeat === void 0) { repeat = 1; }
62767
+ if (prefix === void 0) { prefix = this.prefix; }
62768
+ return Promise.reject(new Error('Get not implemented in DataBaseHolster'));
62769
+ };
62770
+ DataBaseHolster.prototype.userPut = function (path, data, async, prefix) {
62771
+ if (async === void 0) { async = false; }
62772
+ if (prefix === void 0) { prefix = this.prefix; }
62773
+ return Promise.reject(new Error('userPut not implemented in DataBaseHolster'));
62774
+ };
62775
+ DataBaseHolster.prototype.Set = function (path, data, async, prefix, opt) {
62776
+ if (async === void 0) { async = false; }
62777
+ if (prefix === void 0) { prefix = this.prefix; }
62778
+ if (opt === void 0) { opt = undefined; }
62779
+ return Promise.reject(new Error('Set not implemented in DataBaseHolster'));
62780
+ };
62781
+ DataBaseHolster.prototype.Put = function (path, data, async, prefix, opt) {
62782
+ if (async === void 0) { async = false; }
62783
+ if (prefix === void 0) { prefix = this.prefix; }
62784
+ if (opt === void 0) { opt = undefined; }
62785
+ return Promise.reject(new Error('Put not implemented in DataBaseHolster'));
62786
+ };
62787
+ DataBaseHolster.prototype.purge = function (path) {
62788
+ return Promise.reject(new Error('purge not implemented in DataBaseHolster'));
62789
+ };
62790
+ DataBaseHolster.prototype.userDel = function (path, putNull) {
62791
+ if (putNull === void 0) { putNull = true; }
62792
+ return Promise.reject(new Error('userDel not implemented in DataBaseHolster'));
62793
+ };
62794
+ DataBaseHolster.prototype.Del = function (path, putNull, cert) {
62795
+ if (putNull === void 0) { putNull = true; }
62796
+ if (cert === void 0) { cert = ''; }
62797
+ return Promise.reject(new Error('Del not implemented in DataBaseHolster'));
62798
+ };
62799
+ DataBaseHolster.prototype.Load = function (path, async, repeat, prefix) {
62800
+ if (async === void 0) { async = false; }
62801
+ if (repeat === void 0) { repeat = 1; }
62802
+ if (prefix === void 0) { prefix = this.prefix; }
62803
+ return Promise.reject(new Error('Load not implemented in DataBaseHolster'));
62804
+ };
62805
+ DataBaseHolster.prototype.generatePublicCert = function () {
62806
+ return Promise.reject(new Error('generatePublicCert not implemented in DataBaseHolster'));
62807
+ };
62727
62808
  Object.defineProperty(DataBaseHolster.prototype, "gun", {
62728
62809
  /**
62729
62810
  * Get the Holster instance (for backward compatibility with gun property).