jason-trace-log 1.0.8 → 1.0.10

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.
@@ -1220,8 +1220,32 @@ var init = function (options) {
1220
1220
  console.log('instances: ', instance);
1221
1221
  return instance;
1222
1222
  };
1223
- var instance$1 = instance;
1223
+ var getInstance = function () {
1224
+ if (!instance) {
1225
+ throw new Error('TraceLog not initialized. Please call init() first.');
1226
+ }
1227
+ return instance;
1228
+ };
1229
+ var traceLogAPI = {
1230
+ init: init,
1231
+ getInstance: getInstance,
1232
+ get info() {
1233
+ return getInstance().info.bind(getInstance());
1234
+ },
1235
+ get warn() {
1236
+ return getInstance().warn.bind(getInstance());
1237
+ },
1238
+ get error() {
1239
+ return getInstance().error.bind(getInstance());
1240
+ },
1241
+ get send() {
1242
+ return getInstance().send.bind(getInstance());
1243
+ },
1244
+ get setCustomGlobalFields() {
1245
+ return getInstance().setCustomGlobalFields.bind(getInstance());
1246
+ }
1247
+ };
1224
1248
 
1225
- export default instance$1;
1226
- export { init, SendMethod, BaseTrace };
1249
+ export default traceLogAPI;
1250
+ export { init, getInstance, SendMethod, BaseTrace };
1227
1251
  //# sourceMappingURL=jason-trace-log.esm.js.map