whatap 0.4.76 → 0.4.77

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/lib/core/agent.js CHANGED
@@ -274,11 +274,13 @@ NodeAgent.prototype.loadObserves = function() {
274
274
  });
275
275
  });
276
276
 
277
- agent.aop.after(module.__proto__, 'require', function (obj, args, result) {
277
+ agent.aop.after(module.__proto__, 'require', function(obj, args, result) {
278
278
  var observes = packageToObserve[args[0]];
279
279
 
280
- if (observes) {
281
- return observes.inject(result, args[0])
280
+ if(observes) {
281
+ observes.forEach(function(observe){
282
+ return observe.inject(result, args[0]);
283
+ });
282
284
  }
283
285
  });
284
286
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "whatap",
3
3
  "homepage": "http://www.whatap.io",
4
- "version": "0.4.76",
4
+ "version": "0.4.77",
5
5
  "releaseDate": "20230623",
6
6
  "description": "Monitoring and Profiling Service",
7
7
  "main": "index.js",