whatap 0.4.78 → 0.4.79

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.
@@ -144,7 +144,7 @@ HttpObserver.prototype.__createTransactionObserver = function(callback, isHttps,
144
144
  };
145
145
 
146
146
  function isStatic(u){
147
- var x = u.indexOf('.');
147
+ var x = u.lastIndexOf('.');
148
148
  if(x<=0) return false;
149
149
 
150
150
  var ext = u.substring(x);
@@ -276,10 +276,14 @@ TxRecord.prototype.toObject = function(b) {
276
276
  return service;
277
277
  };
278
278
 
279
- TxRecord.HTTP_METHOD={"GET":1,"POST":2,"PUT":3,"DELETE":4};
279
+ TxRecord.HTTP_METHOD={"GET":1,"POST":2,"PUT":3,"DELETE":4,"PATCH":5,"OPTIONS":6,"HEAD":7,"TRACE":8};
280
280
  TxRecord.WEB_GET = 1;
281
281
  TxRecord.WEB_POST = 2;
282
282
  TxRecord.WEB_PUT = 3;
283
283
  TxRecord.WEB_DELETE = 4;
284
+ TxRecord.WEB_PATCH = 5;
285
+ TxRecord.WEB_OPTIONS = 6;
286
+ TxRecord.WEB_HEAD = 7;
287
+ TxRecord.WEB_TRACE = 8;
284
288
 
285
289
  module.exports = TxRecord;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "whatap",
3
3
  "homepage": "http://www.whatap.io",
4
- "version": "0.4.78",
5
- "releaseDate": "20230705",
4
+ "version": "0.4.79",
5
+ "releaseDate": "20230711",
6
6
  "description": "Monitoring and Profiling Service",
7
7
  "main": "index.js",
8
8
  "scripts": {},