@nsshunt/stsobservability 1.0.55 → 1.0.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/stsobservability.mjs +10 -4
- package/dist/stsobservability.mjs.map +1 -1
- package/dist/stsobservability.umd.js +10 -4
- package/dist/stsobservability.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/publish/commonTypes.d.ts +3 -0
- package/types/publish/commonTypes.d.ts.map +1 -1
- package/types/publish/publishInstrumentController.d.ts.map +1 -1
- package/types/publish/publishInstruments.d.ts.map +1 -1
|
@@ -4613,7 +4613,6 @@ class PublishTransportRESTServer extends STSOptionsBase {
|
|
|
4613
4613
|
// Allows self signed certs in non production mode(s)
|
|
4614
4614
|
}));
|
|
4615
4615
|
}
|
|
4616
|
-
options.url += "V3";
|
|
4617
4616
|
}
|
|
4618
4617
|
get options() {
|
|
4619
4618
|
return super.options;
|
|
@@ -4701,11 +4700,15 @@ _PublishInstruments_instances = new WeakSet();
|
|
|
4701
4700
|
PublishTimeoutLoop_fn = function(publishInterval) {
|
|
4702
4701
|
__privateSet(this, _observer2, setTimeout(async () => {
|
|
4703
4702
|
const start = performance.now();
|
|
4704
|
-
await this.Publish();
|
|
4703
|
+
const result = await this.Publish();
|
|
4705
4704
|
const end = performance.now();
|
|
4706
4705
|
const diff = end - start;
|
|
4707
4706
|
if (__privateGet(this, _publishState) === 1) {
|
|
4708
|
-
|
|
4707
|
+
if (result === true) {
|
|
4708
|
+
__privateMethod(this, _PublishInstruments_instances, PublishTimeoutLoop_fn).call(this, this.options.publishInterval - diff);
|
|
4709
|
+
} else {
|
|
4710
|
+
__privateMethod(this, _PublishInstruments_instances, PublishTimeoutLoop_fn).call(this, this.options.publishPostFailInterval - diff);
|
|
4711
|
+
}
|
|
4709
4712
|
}
|
|
4710
4713
|
}, publishInterval));
|
|
4711
4714
|
if (isNode) __privateGet(this, _observer2).unref();
|
|
@@ -4739,11 +4742,14 @@ const _PublishInstrumentController = class _PublishInstrumentController extends
|
|
|
4739
4742
|
logger: options.logger,
|
|
4740
4743
|
processContext: { ...options.processContext },
|
|
4741
4744
|
publishInterval: options.publishInterval,
|
|
4745
|
+
publishPostFailInterval: options.publishPostFailInterval,
|
|
4742
4746
|
publishInstrumentController: this,
|
|
4743
4747
|
publishTransportBaseOptions: { ...options.publishTransportBaseOptions }
|
|
4744
4748
|
};
|
|
4745
4749
|
__privateSet(this, _publisher, new PublishInstruments(publishInstrumentsOptions));
|
|
4746
|
-
this.
|
|
4750
|
+
if (this.options.autoStart === true) {
|
|
4751
|
+
this.StartPublish();
|
|
4752
|
+
}
|
|
4747
4753
|
}
|
|
4748
4754
|
get options() {
|
|
4749
4755
|
return super.options;
|