lightrun 1.23.0 → 1.25.0

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.
Files changed (126) hide show
  1. package/build/src/agent/agent-logger.js +1 -1
  2. package/build/src/agent/blocklisting/blocklisting-patterns.js +1 -1
  3. package/build/src/agent/blocklisting/dummy-blocklist-manager.js +1 -1
  4. package/build/src/agent/blocklisting/patterns-blocklist-manager.js +1 -1
  5. package/build/src/agent/config.js +1 -1
  6. package/build/src/agent/configuration-provider.js +1 -1
  7. package/build/src/agent/controller.js +1 -1
  8. package/build/src/agent/debuglet-helpers/createDebuggee.js +1 -0
  9. package/build/src/agent/debuglet-helpers/createDebuggeeMetadata.js +1 -0
  10. package/build/src/agent/debuglet-helpers/createUniquifier.js +1 -0
  11. package/build/src/agent/debuglet-helpers/delimit.js +1 -0
  12. package/build/src/agent/debuglet-helpers/format.js +1 -0
  13. package/build/src/agent/debuglet-helpers/getAgentConfig.js +1 -0
  14. package/build/src/agent/debuglet-helpers/getPlatform.js +1 -0
  15. package/build/src/agent/debuglet-helpers/mapSubtract.js +1 -0
  16. package/build/src/agent/debuglet-helpers/normalizeConfig.js +1 -0
  17. package/build/src/agent/debuglet-helpers/tokenize.js +1 -0
  18. package/build/src/agent/debuglet.js +1 -1
  19. package/build/src/agent/environment-metadata.js +1 -1
  20. package/build/src/agent/io/file-index.js +1 -1
  21. package/build/src/agent/io/scan-results.js +1 -1
  22. package/build/src/agent/io/scanner.js +1 -1
  23. package/build/src/agent/io/sourcemapper.js +1 -1
  24. package/build/src/agent/leaky-bucket.js +1 -1
  25. package/build/src/agent/log-data.js +1 -1
  26. package/build/src/agent/piping-manager.js +1 -1
  27. package/build/src/agent/quota-manager.js +1 -1
  28. package/build/src/agent/reduction/redaction-manager-re2js.js +1 -1
  29. package/build/src/agent/reduction/redaction-manager.js +1 -1
  30. package/build/src/agent/state/inspector-state.js +1 -1
  31. package/build/src/agent/state/legacy-state.js +1 -1
  32. package/build/src/agent/util/debug-assert.js +1 -1
  33. package/build/src/agent/util/utils.js +1 -1
  34. package/build/src/agent/util/validator.js +1 -1
  35. package/build/src/agent/v8/debugapi.js +1 -1
  36. package/build/src/agent/v8/inspector-debugapi.js +1 -1
  37. package/build/src/agent/v8/legacy-debugapi.js +1 -1
  38. package/build/src/agent/v8/v8inspector.js +1 -1
  39. package/build/src/client/stackdriver/debug.js +1 -1
  40. package/build/src/client/stackdriver/status-message.js +1 -1
  41. package/build/src/debuggee.js +1 -1
  42. package/build/src/gcp.js +1 -1
  43. package/build/src/index.d.ts +561 -18
  44. package/build/src/index.js +1 -1
  45. package/build/src/lambda.js +1 -1
  46. package/build/src/resources/version.txt +1 -1
  47. package/build/src/types/lightrun.js +1 -1
  48. package/build/src/types/stackdriver.js +1 -1
  49. package/build/src/types/v8.js +1 -1
  50. package/package.json +8 -11
  51. package/build/src/agent/agent-logger.d.ts +0 -10
  52. package/build/src/agent/agent-logger.js.map +0 -1
  53. package/build/src/agent/blocklisting/blocklisting-patterns.d.ts +0 -6
  54. package/build/src/agent/blocklisting/blocklisting-patterns.js.map +0 -1
  55. package/build/src/agent/blocklisting/dummy-blocklist-manager.d.ts +0 -6
  56. package/build/src/agent/blocklisting/dummy-blocklist-manager.js.map +0 -1
  57. package/build/src/agent/blocklisting/patterns-blocklist-manager.d.ts +0 -10
  58. package/build/src/agent/blocklisting/patterns-blocklist-manager.js.map +0 -1
  59. package/build/src/agent/config.d.ts +0 -418
  60. package/build/src/agent/config.js.map +0 -1
  61. package/build/src/agent/configuration-provider.d.ts +0 -19
  62. package/build/src/agent/configuration-provider.js.map +0 -1
  63. package/build/src/agent/controller.d.ts +0 -71
  64. package/build/src/agent/controller.js.map +0 -1
  65. package/build/src/agent/debuglet.d.ts +0 -234
  66. package/build/src/agent/debuglet.js.map +0 -1
  67. package/build/src/agent/environment-metadata.d.ts +0 -36
  68. package/build/src/agent/environment-metadata.js.map +0 -1
  69. package/build/src/agent/io/file-index.d.ts +0 -76
  70. package/build/src/agent/io/file-index.js.map +0 -1
  71. package/build/src/agent/io/scan-results.d.ts +0 -60
  72. package/build/src/agent/io/scan-results.js.map +0 -1
  73. package/build/src/agent/io/scanner.d.ts +0 -43
  74. package/build/src/agent/io/scanner.js.map +0 -1
  75. package/build/src/agent/io/sourcemapper.d.ts +0 -72
  76. package/build/src/agent/io/sourcemapper.js.map +0 -1
  77. package/build/src/agent/leaky-bucket.d.ts +0 -16
  78. package/build/src/agent/leaky-bucket.js.map +0 -1
  79. package/build/src/agent/log-data.d.ts +0 -13
  80. package/build/src/agent/log-data.js.map +0 -1
  81. package/build/src/agent/piping-manager.d.ts +0 -39
  82. package/build/src/agent/piping-manager.js.map +0 -1
  83. package/build/src/agent/quota-manager.d.ts +0 -40
  84. package/build/src/agent/quota-manager.js.map +0 -1
  85. package/build/src/agent/reduction/redaction-manager-re2.d.ts +0 -8
  86. package/build/src/agent/reduction/redaction-manager-re2.js +0 -1
  87. package/build/src/agent/reduction/redaction-manager-re2.js.map +0 -1
  88. package/build/src/agent/reduction/redaction-manager-re2js.d.ts +0 -8
  89. package/build/src/agent/reduction/redaction-manager-re2js.js.map +0 -1
  90. package/build/src/agent/reduction/redaction-manager.d.ts +0 -6
  91. package/build/src/agent/reduction/redaction-manager.js.map +0 -1
  92. package/build/src/agent/state/inspector-state.d.ts +0 -28
  93. package/build/src/agent/state/inspector-state.js.map +0 -1
  94. package/build/src/agent/state/legacy-state.d.ts +0 -22
  95. package/build/src/agent/state/legacy-state.js.map +0 -1
  96. package/build/src/agent/util/debug-assert.d.ts +0 -22
  97. package/build/src/agent/util/debug-assert.js.map +0 -1
  98. package/build/src/agent/util/utils.d.ts +0 -65
  99. package/build/src/agent/util/utils.js.map +0 -1
  100. package/build/src/agent/util/validator.d.ts +0 -12
  101. package/build/src/agent/util/validator.js.map +0 -1
  102. package/build/src/agent/v8/debugapi.d.ts +0 -23
  103. package/build/src/agent/v8/debugapi.js.map +0 -1
  104. package/build/src/agent/v8/inspector-debugapi.d.ts +0 -82
  105. package/build/src/agent/v8/inspector-debugapi.js.map +0 -1
  106. package/build/src/agent/v8/legacy-debugapi.d.ts +0 -58
  107. package/build/src/agent/v8/legacy-debugapi.js.map +0 -1
  108. package/build/src/agent/v8/v8inspector.d.ts +0 -53
  109. package/build/src/agent/v8/v8inspector.js.map +0 -1
  110. package/build/src/client/stackdriver/debug.d.ts +0 -43
  111. package/build/src/client/stackdriver/debug.js.map +0 -1
  112. package/build/src/client/stackdriver/status-message.d.ts +0 -35
  113. package/build/src/client/stackdriver/status-message.js.map +0 -1
  114. package/build/src/debuggee.d.ts +0 -80
  115. package/build/src/debuggee.js.map +0 -1
  116. package/build/src/gcp.d.ts +0 -2
  117. package/build/src/gcp.js.map +0 -1
  118. package/build/src/index.js.map +0 -1
  119. package/build/src/lambda.d.ts +0 -2
  120. package/build/src/lambda.js.map +0 -1
  121. package/build/src/types/lightrun.d.ts +0 -18
  122. package/build/src/types/lightrun.js.map +0 -1
  123. package/build/src/types/stackdriver.d.ts +0 -79
  124. package/build/src/types/stackdriver.js.map +0 -1
  125. package/build/src/types/v8.d.ts +0 -214
  126. package/build/src/types/v8.js.map +0 -1
@@ -1 +1 @@
1
- const a36_0xd2009d=a36_0x40b9;(function(_0x246936,_0x482f8d){const _0x5849a4=a36_0x40b9,_0x3b82ce=_0x246936();while(!![]){try{const _0x3162fa=-parseInt(_0x5849a4(0x17f))/0x1*(-parseInt(_0x5849a4(0x180))/0x2)+parseInt(_0x5849a4(0x175))/0x3*(parseInt(_0x5849a4(0x182))/0x4)+parseInt(_0x5849a4(0x17b))/0x5+-parseInt(_0x5849a4(0x174))/0x6+parseInt(_0x5849a4(0x177))/0x7+-parseInt(_0x5849a4(0x178))/0x8+-parseInt(_0x5849a4(0x17a))/0x9;if(_0x3162fa===_0x482f8d)break;else _0x3b82ce['push'](_0x3b82ce['shift']());}catch(_0x4f6116){_0x3b82ce['push'](_0x3b82ce['shift']());}}}(a36_0x1cc1,0x27afa));const a36_0x562c8a=(function(){let _0x2b1e9b=!![];return function(_0x4af5e5,_0x3dea61){const _0x3ead50=_0x2b1e9b?function(){const _0x1be418=a36_0x40b9;if(_0x3dea61){const _0x362a98=_0x3dea61[_0x1be418(0x173)](_0x4af5e5,arguments);return _0x3dea61=null,_0x362a98;}}:function(){};return _0x2b1e9b=![],_0x3ead50;};}()),a36_0x3975da=a36_0x562c8a(this,function(){const _0x434281=a36_0x40b9;return a36_0x3975da[_0x434281(0x17c)]()[_0x434281(0x181)]('(((.+)+)+)+$')[_0x434281(0x17c)]()['constructor'](a36_0x3975da)[_0x434281(0x181)](_0x434281(0x179));});function a36_0x1cc1(){const _0x202e5e=['toString','location','line','37SYBQNF','4106KqMEuV','search','32xKjgvl','Breakpoint','assign','defineProperty','__esModule',',\x20id=','apply','501558qDTBto','9309koxnLx','action','1588986OEUWOX','1004264QAvfzs','(((.+)+)+)+$','1468152RvyNOT','1035125OdEPWw'];a36_0x1cc1=function(){return _0x202e5e;};return a36_0x1cc1();}a36_0x3975da();'use strict';function a36_0x40b9(_0x438ec3,_0x21dae3){const _0x145f77=a36_0x1cc1();return a36_0x40b9=function(_0x3975da,_0x562c8a){_0x3975da=_0x3975da-0x173;let _0x1cc191=_0x145f77[_0x3975da];return _0x1cc191;},a36_0x40b9(_0x438ec3,_0x21dae3);}Object[a36_0xd2009d(0x185)](exports,a36_0xd2009d(0x186),{'value':!![]}),exports['Breakpoint']=void 0x0;class Breakpoint{constructor(_0x57e2ba){const _0x3b3330=a36_0xd2009d;_0x57e2ba&&Object[_0x3b3330(0x184)](this,_0x57e2ba);}[a36_0xd2009d(0x17c)](){const _0x5dc876=a36_0xd2009d,_0x40188f=this[_0x5dc876(0x17d)]?'\x20'+this[_0x5dc876(0x17d)]['path']+':'+this[_0x5dc876(0x17d)][_0x5dc876(0x17e)]:'';return'\x22'+this[_0x5dc876(0x176)]+_0x40188f+_0x5dc876(0x187)+this['id']+'\x22';}}exports[a36_0xd2009d(0x183)]=Breakpoint;
1
+ const a45_0x377681=a45_0x5845;(function(_0x52bdae,_0x54d362){const _0x30c737=a45_0x5845,_0x100548=_0x52bdae();while(!![]){try{const _0x2e0741=-parseInt(_0x30c737(0x1bb))/0x1+parseInt(_0x30c737(0x1c6))/0x2*(parseInt(_0x30c737(0x1c5))/0x3)+-parseInt(_0x30c737(0x1bf))/0x4*(parseInt(_0x30c737(0x1c1))/0x5)+-parseInt(_0x30c737(0x1cb))/0x6+parseInt(_0x30c737(0x1ca))/0x7+parseInt(_0x30c737(0x1c8))/0x8+parseInt(_0x30c737(0x1c9))/0x9;if(_0x2e0741===_0x54d362)break;else _0x100548['push'](_0x100548['shift']());}catch(_0x1257c9){_0x100548['push'](_0x100548['shift']());}}}(a45_0x2a25,0x40ef8));const a45_0x3fbf7a=(function(){let _0xe732f3=!![];return function(_0x31fea6,_0x58e9c3){const _0x452c7a=_0xe732f3?function(){const _0x2f8393=a45_0x5845;if(_0x58e9c3){const _0x55ff26=_0x58e9c3[_0x2f8393(0x1ba)](_0x31fea6,arguments);return _0x58e9c3=null,_0x55ff26;}}:function(){};return _0xe732f3=![],_0x452c7a;};}()),a45_0x2fd28b=a45_0x3fbf7a(this,function(){const _0x172d6c=a45_0x5845;return a45_0x2fd28b['toString']()['search'](_0x172d6c(0x1bc))[_0x172d6c(0x1bd)]()['constructor'](a45_0x2fd28b)['search'](_0x172d6c(0x1bc));});a45_0x2fd28b();function a45_0x5845(_0x5b9abd,_0x1d5194){const _0x531bff=a45_0x2a25();return a45_0x5845=function(_0x2fd28b,_0x3fbf7a){_0x2fd28b=_0x2fd28b-0x1ba;let _0x2a25da=_0x531bff[_0x2fd28b];return _0x2a25da;},a45_0x5845(_0x5b9abd,_0x1d5194);}function a45_0x2a25(){const _0xd182be=['toString',',\x20id=','8YCUwjD','assign','887185fXMeei','Breakpoint','location','defineProperty','3351bPvrGQ','18yNMzsN','__esModule','1177000CkhnXn','7180110aXLKSH','3151372zUYaLN','2764188sWwmUW','apply','323616ufYpoJ','(((.+)+)+)+$'];a45_0x2a25=function(){return _0xd182be;};return a45_0x2a25();}'use strict';Object[a45_0x377681(0x1c4)](exports,a45_0x377681(0x1c7),{'value':!![]}),exports['Breakpoint']=void 0x0;class Breakpoint{constructor(_0x114bca){const _0x2e6749=a45_0x377681;_0x114bca&&Object[_0x2e6749(0x1c0)](this,_0x114bca);}[a45_0x377681(0x1bd)](){const _0x2b39fc=a45_0x377681,_0x331833=this['location']?'\x20'+this[_0x2b39fc(0x1c3)]['path']+':'+this[_0x2b39fc(0x1c3)]['line']:'';return'\x22'+this['action']+_0x331833+_0x2b39fc(0x1be)+this['id']+'\x22';}}exports[a45_0x377681(0x1c2)]=Breakpoint;
@@ -1 +1 @@
1
- function a37_0x5cb1(_0x19a14d,_0x418f26){var _0xd0391=a37_0x2388();return a37_0x5cb1=function(_0x4b9471,_0x167871){_0x4b9471=_0x4b9471-0x172;var _0x23886d=_0xd0391[_0x4b9471];return _0x23886d;},a37_0x5cb1(_0x19a14d,_0x418f26);}var a37_0x1c7b75=a37_0x5cb1;(function(_0x4107f7,_0x6aeb6a){var _0x3140ba=a37_0x5cb1,_0x3d5977=_0x4107f7();while(!![]){try{var _0x2bbe64=parseInt(_0x3140ba(0x176))/0x1*(parseInt(_0x3140ba(0x179))/0x2)+-parseInt(_0x3140ba(0x181))/0x3*(-parseInt(_0x3140ba(0x17b))/0x4)+parseInt(_0x3140ba(0x17d))/0x5+-parseInt(_0x3140ba(0x175))/0x6+-parseInt(_0x3140ba(0x174))/0x7*(parseInt(_0x3140ba(0x17c))/0x8)+parseInt(_0x3140ba(0x173))/0x9+parseInt(_0x3140ba(0x183))/0xa*(parseInt(_0x3140ba(0x180))/0xb);if(_0x2bbe64===_0x6aeb6a)break;else _0x3d5977['push'](_0x3d5977['shift']());}catch(_0x49fac7){_0x3d5977['push'](_0x3d5977['shift']());}}}(a37_0x2388,0xacf38));var a37_0x167871=(function(){var _0x1f53fd=!![];return function(_0x115cdf,_0x4f0085){var _0x5b6877=_0x1f53fd?function(){var _0x1e393c=a37_0x5cb1;if(_0x4f0085){var _0x111ec4=_0x4f0085[_0x1e393c(0x178)](_0x115cdf,arguments);return _0x4f0085=null,_0x111ec4;}}:function(){};return _0x1f53fd=![],_0x5b6877;};}()),a37_0x4b9471=a37_0x167871(this,function(){var _0x54f434=a37_0x5cb1;return a37_0x4b9471[_0x54f434(0x17a)]()['search'](_0x54f434(0x172))[_0x54f434(0x17a)]()[_0x54f434(0x182)](a37_0x4b9471)[_0x54f434(0x17e)](_0x54f434(0x172));});a37_0x4b9471();function a37_0x2388(){var _0x486039=['26437sHmYME','defineProperty','apply','34eEMPYA','toString','47292QGGlnn','556552GvflFC','2944955kYOjYm','search','__esModule','946dqkKgK','225OpSXMH','constructor','38150hGtdvK','(((.+)+)+)+$','4314213OjOjfM','63jzJRXY','8388378TOqiDv'];a37_0x2388=function(){return _0x486039;};return a37_0x2388();}'use strict';Object[a37_0x1c7b75(0x177)](exports,a37_0x1c7b75(0x17f),{'value':!![]});
1
+ var a46_0x245fcb=a46_0x4667;(function(_0x1d6d67,_0x490cc1){var _0x4cd20b=a46_0x4667,_0x240a9f=_0x1d6d67();while(!![]){try{var _0x36e687=-parseInt(_0x4cd20b(0xc7))/0x1*(-parseInt(_0x4cd20b(0xd1))/0x2)+parseInt(_0x4cd20b(0xc3))/0x3*(parseInt(_0x4cd20b(0xd0))/0x4)+-parseInt(_0x4cd20b(0xd2))/0x5*(parseInt(_0x4cd20b(0xce))/0x6)+-parseInt(_0x4cd20b(0xca))/0x7+parseInt(_0x4cd20b(0xcb))/0x8*(-parseInt(_0x4cd20b(0xcd))/0x9)+-parseInt(_0x4cd20b(0xc6))/0xa+-parseInt(_0x4cd20b(0xc5))/0xb;if(_0x36e687===_0x490cc1)break;else _0x240a9f['push'](_0x240a9f['shift']());}catch(_0xe16e7e){_0x240a9f['push'](_0x240a9f['shift']());}}}(a46_0x537e,0x4d440));var a46_0x3b16ad=(function(){var _0x3043af=!![];return function(_0x55f4e6,_0x239ee4){var _0xdb13a1=_0x3043af?function(){var _0x29b03a=a46_0x4667;if(_0x239ee4){var _0x1a14a0=_0x239ee4[_0x29b03a(0xc9)](_0x55f4e6,arguments);return _0x239ee4=null,_0x1a14a0;}}:function(){};return _0x3043af=![],_0xdb13a1;};}()),a46_0x52998e=a46_0x3b16ad(this,function(){var _0x35a9a5=a46_0x4667;return a46_0x52998e[_0x35a9a5(0xcf)]()['search'](_0x35a9a5(0xc2))[_0x35a9a5(0xcf)]()[_0x35a9a5(0xcc)](a46_0x52998e)[_0x35a9a5(0xc4)](_0x35a9a5(0xc2));});function a46_0x537e(){var _0xc9a258=['2821740YZbaaN','2BHehDn','defineProperty','apply','782747KMnclk','4848OogvHm','constructor','36uCDTDO','6lmjISX','toString','2360244GoKVDa','486446WQVqSU','976705TaLyKy','(((.+)+)+)+$','3ItPNxN','search','1850937VVytbr'];a46_0x537e=function(){return _0xc9a258;};return a46_0x537e();}function a46_0x4667(_0x3e059a,_0x5e7e16){var _0x386842=a46_0x537e();return a46_0x4667=function(_0x52998e,_0x3b16ad){_0x52998e=_0x52998e-0xc2;var _0x537e69=_0x386842[_0x52998e];return _0x537e69;},a46_0x4667(_0x3e059a,_0x5e7e16);}a46_0x52998e();'use strict';Object[a46_0x245fcb(0xc8)](exports,'__esModule',{'value':!![]});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lightrun",
3
- "version": "1.23.0",
3
+ "version": "1.25.0",
4
4
  "author": "Lightrun platform Inc.",
5
5
  "description": "Lightrun Debug Agent for Node.js",
6
6
  "license": "SEE LICENSE IN LIGHTRUN",
@@ -34,7 +34,7 @@
34
34
  "compile-test": "tsc -p tsconfig.test.json",
35
35
  "fix": "gts fix",
36
36
  "pretest": "npm run compile-test",
37
- "prepack": "npm run obfuscate",
37
+ "prepack": "npm run obfuscate && npm run api-extractor && shx rm -r \"build/src/**/*.d.ts\" && shx cp build/types/index.d.ts build/src/index.d.ts",
38
38
  "lint": "gts check",
39
39
  "docs": "compodoc src/",
40
40
  "docs-test": "linkinator docs",
@@ -57,24 +57,21 @@
57
57
  "gcp-metadata": "^4.0.0",
58
58
  "java-properties": "^1.0.2",
59
59
  "js-yaml": "^4.1.0",
60
+ "logform": "2.4.2",
60
61
  "memory-streams": "^0.1.3",
61
62
  "p-limit": "^3.0.1",
63
+ "re2js": "0.4.1",
62
64
  "semver": "^7.0.0",
63
65
  "shx": "^0.3.4",
64
66
  "source-map": "^0.6.1",
65
67
  "split": "^1.0.0",
66
68
  "winston": "3.5.0",
67
- "logform": "2.4.2",
68
- "winston-daily-rotate-file": "^4.7.1",
69
- "re2js": "0.4.1"
70
- },
71
- "optionalDependencies": {
72
- "re2": "1.15.9"
69
+ "winston-daily-rotate-file": "^4.7.1"
73
70
  },
74
71
  "devDependencies": {
75
72
  "@compodoc/compodoc": "^1.1.23",
76
73
  "@microsoft/api-documenter": "^7.8.10",
77
- "@microsoft/api-extractor": "^7.8.10",
74
+ "@microsoft/api-extractor": "7.34.9",
78
75
  "@types/acorn": "^4.0.2",
79
76
  "@types/estree": "^1.0.1",
80
77
  "@types/events": "^3.0.0",
@@ -90,7 +87,7 @@
90
87
  "@types/uuid": "^8.0.0",
91
88
  "cross-env": "^7.0.0",
92
89
  "execa": "^4.0.0",
93
- "gts": "^3.1.1",
90
+ "gts": "^4.0.1",
94
91
  "javascript-obfuscator": "^4.0.2",
95
92
  "linkinator": "^4.1.0",
96
93
  "mocha": "^10.1.0",
@@ -104,7 +101,7 @@
104
101
  "teeny-request": "^7.0.0",
105
102
  "timekeeper": "^2.2.0",
106
103
  "tmp-promise": "^3.0.0",
107
- "typescript": "^3.8.3",
104
+ "typescript": "^4.9.5",
108
105
  "uuid": "^8.0.0"
109
106
  }
110
107
  }
@@ -1,10 +0,0 @@
1
- export default class AgentLogger {
2
- static AGENT_LOG_FILE: string;
3
- private logger;
4
- private constructor();
5
- static createLogger(logsPath: string | undefined, level: 'debug' | 'info' | 'warn' | 'error', stdErrThreshold: 'debug' | 'info' | 'warn' | 'error' | 'none'): AgentLogger;
6
- debug(...args: Array<{}>): void;
7
- info(...args: Array<{}>): void;
8
- warn(...args: Array<{}>): void;
9
- error(...args: Array<{}>): void;
10
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent-logger.js","sourceRoot":"","sources":["../../../src/agent/agent-logger.ts"],"names":[],"mappings":";;AAAA,qCAAiE;AACjE,6DAA6D;AAE7D,MAAM,EAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAC,GAAG,gBAAM,CAAC;AAC5C,MAAM,EAAC,OAAO,EAAC,GAAG,oBAAU,CAAC;AAE7B,SAAS,kBAAkB,CAAC,QAA4B;IACtD,IAAI,QAAQ,EAAE;QACZ,OAAO,IAAI,eAAe,CAAC;YACzB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,WAAW,CAAC,cAAc;YACpC,WAAW,EAAE,eAAe;YAC5B,aAAa,EAAE,IAAI;YACnB,WAAW,EAAE,WAAW,CAAC,cAAc;YACvC,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,OAAO,EAAE,CAAC;AACvB,CAAC;AAED,MAAqB,WAAW;IAK9B,YACE,QAA4B,EAC5B,KAA0C,EAC1C,eAA6D;QAE7D,IAAI,CAAC,MAAM,GAAG,sBAAY,CAAC;YACzB,KAAK,EAAE,KAAK;YACZ,UAAU,EAAE;gBACV,kBAAkB,CAAC,QAAQ,CAAC;gBAC5B,IAAI,OAAO,CAAC;oBACV,KAAK,EAAE,eAAe;oBACtB,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;iBACjD,CAAC;aACH;YACD,MAAM,EAAE,OAAO,CACb,SAAS,EAAE,EACX,MAAM,CAAC,CAAC,EAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAC,EAAE,EAAE;gBACrC,OAAO,GAAG,SAAS,KAAK,KAAK,CAAC,WAAW,EAAE,OAAO,OAAO,EAAE,CAAC;YAC9D,CAAC,CAAC,EACF,gBAAM,CAAC,IAAI,EAAE,CACd;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,YAAY,CACjB,QAA4B,EAC5B,KAA0C,EAC1C,eAA6D;QAE7D,OAAO,IAAI,WAAW,CAAC,QAAQ,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,GAAG,IAAe;QACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,IAAI,CAAC,GAAG,IAAe;QACrB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAED,IAAI,CAAC,GAAG,IAAe;QACrB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,GAAG,IAAe;QACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;;AAnDH,8BAoDC;AAnDe,0BAAc,GAAG,2BAA2B,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare class BlocklistingPatterns {
2
- private inversePatterns;
3
- private patterns;
4
- constructor(patterns: string[]);
5
- matches(path: string): boolean;
6
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"blocklisting-patterns.js","sourceRoot":"","sources":["../../../../src/agent/blocklisting/blocklisting-patterns.ts"],"names":[],"mappings":";;;AAAA,MAAa,oBAAoB;IAI/B,YAAY,QAAkB;QAHtB,oBAAe,GAAa,EAAE,CAAC;QAC/B,aAAQ,GAAa,EAAE,CAAC;QAG9B,IAAI,QAAQ,EAAE;YACZ,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;gBACzB,IAAI,OAAO,EAAE;oBACX,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;wBACtB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;qBAC7D;yBAAM;wBACL,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;qBACzC;iBACF;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IAED,OAAO,CAAC,IAAY;QAClB,MAAM,KAAK,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEvD,OAAO,CACL,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,KAAK,CAAC;YAChC,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACpC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAC1B,CAAC;IACJ,CAAC;CACF;AA3BD,oDA2BC"}
@@ -1,6 +0,0 @@
1
- import { BlocklistManager } from '../../types/lightrun';
2
- export declare class DummyBlocklistManager implements BlocklistManager {
3
- readonly value: boolean;
4
- constructor(value: boolean);
5
- shouldBlock(): boolean;
6
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"dummy-blocklist-manager.js","sourceRoot":"","sources":["../../../../src/agent/blocklisting/dummy-blocklist-manager.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;IAGhC,YAAY,KAAc;QACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AAVD,sDAUC"}
@@ -1,10 +0,0 @@
1
- import { BlocklistManager } from '../../types/lightrun';
2
- import { ResolvedDebugAgentConfig } from '../config';
3
- export declare class PatternsBlocklistManager implements BlocklistManager {
4
- private blocklist;
5
- private blocklistExceptions;
6
- private config;
7
- constructor(blocklist: string[], blocklistExceptions: string[], config: ResolvedDebugAgentConfig);
8
- shouldBlock(path: string): boolean;
9
- private stripWorkingDir;
10
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"patterns-blocklist-manager.js","sourceRoot":"","sources":["../../../../src/agent/blocklisting/patterns-blocklist-manager.ts"],"names":[],"mappings":";;;AAAA,mEAA6D;AAG7D,uCAAuC;AAEvC,MAAa,wBAAwB;IAKnC,YACE,SAAmB,EACnB,mBAA6B,EAC7B,MAAgC;QAEhC,IAAI,CAAC,SAAS,GAAG,IAAI,4CAAoB,CAAC,SAAS,CAAC,CAAC;QACrD,IAAI,CAAC,mBAAmB,GAAG,IAAI,4CAAoB,CAAC,mBAAmB,CAAC,CAAC;QACzE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,WAAW,CAAC,IAAY;QACtB,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAC1C,OAAO,KAAK,CAAC;SACd;QACD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAEO,eAAe,CAAC,IAAY;QAClC,IAAI,KAAK,CAAC,+BAA+B,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;YAC5D,OAAO,KAAK,CAAC,4BAA4B,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;SAC9D;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA7BD,4DA6BC"}
@@ -1,418 +0,0 @@
1
- import { GoogleAuthOptions } from '@google-cloud/common';
2
- import AgentLogger from './agent-logger';
3
- export declare type DebugAgentConfig = GoogleAuthOptions & {
4
- [K in keyof ResolvedDebugAgentConfig]?: Partial<ResolvedDebugAgentConfig[K]>;
5
- };
6
- export interface ProjectRepoId {
7
- projectId: string;
8
- repoName: string;
9
- }
10
- export interface RepoId {
11
- projectRepoId: ProjectRepoId;
12
- uid: string;
13
- }
14
- export interface AliasContext {
15
- kind: 'ANY' | 'FIXED' | 'MOVABLE' | 'OTHER';
16
- name: string;
17
- }
18
- export interface CloudRepoSourceContext {
19
- cloudRepo: {
20
- repoId: RepoId;
21
- revisionId: string;
22
- aliasName?: string;
23
- aliasContext: AliasContext;
24
- };
25
- }
26
- export interface CloudWorkspaceId {
27
- repoId: RepoId;
28
- name: string;
29
- }
30
- export interface CloudWorkspaceSourceContext {
31
- cloudWorkspace: {
32
- workspaceId: CloudWorkspaceId;
33
- snapshotId: string;
34
- };
35
- }
36
- export interface GerritSourceContext {
37
- gerrit: {
38
- hostUri: string;
39
- gerritProject: string;
40
- revisionId?: string;
41
- aliasName?: string;
42
- aliasContext?: AliasContext;
43
- };
44
- }
45
- export interface GitSourceContext {
46
- git: {
47
- url: string;
48
- revisionId: string;
49
- };
50
- }
51
- export interface AgentMetadata {
52
- filename?: string;
53
- registration?: {
54
- displayName?: string;
55
- tags?: Array<string | {
56
- name: string;
57
- }>;
58
- };
59
- }
60
- /**
61
- * class that logs the dynamic breakpoint logs.
62
- * notice - if one of the functions calls this it should be bound to the context before adding it to the configuration.
63
- * i.e: info = info.bind(this)
64
- */
65
- export interface DynamicLogger {
66
- warn: (msg: string) => void;
67
- error: (msg: string) => void;
68
- info: (msg: string) => void;
69
- }
70
- export interface ResolvedDebugAgentConfig extends GoogleAuthOptions {
71
- /**
72
- * Specifies the working directory of the application being
73
- * debugged. That is, the directory containing the application's
74
- * `package.json` file.
75
- *
76
- * The default value is the value of `process.cwd()`.
77
- */
78
- workingDirectory: string;
79
- /**
80
- * Specifies whether or not the computer's root directory should
81
- * be allowed for the value of the `workingDirectory` configuration
82
- * option.
83
- *
84
- * On startup, the debug agent scans the working directory for source
85
- * files. If the working directory is the computer's root directory,
86
- * this scan would result is scanning the entire drive.
87
- *
88
- * To avoid this, the debug agent, by default, does not allow the
89
- * working directory to be computer's root directory. That check
90
- * can be disabled with this configuration option.
91
- */
92
- allowRootAsWorkingDirectory: boolean;
93
- /**
94
- * A user specified way of identifying the service
95
- */
96
- description?: string;
97
- /**
98
- * Whether or not it is permitted to evaluate expressions.
99
- * Locals and arguments are not displayed and watch expressions and
100
- * conditions are dissallowed when this is `false`.
101
- */
102
- allowExpressions: boolean;
103
- /**
104
- * Identifies the context of the running service -
105
- * [ServiceContext](https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext?authuser=2).
106
- * This information is utilized in the UI to identify all the running
107
- * instances of your service. This is discovered automatically when your
108
- * application is running on Google Cloud Platform. You may optionally
109
- * choose to provide this information yourself to identify your service
110
- * differently from the default mechanism.
111
- */
112
- serviceContext: {
113
- /**
114
- * The service name.
115
- */
116
- service?: string;
117
- /**
118
- * The service version.
119
- */
120
- version?: string;
121
- /**
122
- * A unique deployment identifier. This is used internally only.
123
- */
124
- minorVersion_?: string;
125
- };
126
- /**
127
- * A SourceContext is a reference to a tree of files. A SourceContext together
128
- * with a path point to a unique version of a single file or directory.
129
- * Managed environments such as AppEngine generate a source-contexts.json file
130
- * at deployment time. The agent can load the SourceContext from that file if
131
- * it exists. In other environments, e.g. locally, GKE, GCE, AWS, etc., users
132
- * can either generate the source context file, or pass the context as part of
133
- * the agent configuration.
134
- *
135
- * @link
136
- * https://cloud.google.com/debugger/api/reference/rest/v2/Debuggee#SourceContext
137
- */
138
- sourceContext?: CloudRepoSourceContext | CloudWorkspaceSourceContext | GerritSourceContext | GitSourceContext;
139
- /**
140
- * The path within your repository to the directory
141
- * containing the package.json for your deployed application. This should
142
- * be provided if your deployed application appears as a subdirectory of
143
- * your repository. Usually this is unnecessary, but may be useful in
144
- * cases where the debug agent is unable to resolve breakpoint locations
145
- * unambiguously.
146
- */
147
- appPathRelativeToRepository?: string;
148
- /**
149
- * The set of file extensions that identify javascript code to be debugged.
150
- * By default, only .js files or files with sourcemaps are considered to be
151
- * debuggable. This setting can be used to inform the debugger if you have
152
- * javascript code in files with extensions other than .js.
153
- * Example: ['.js', '.jsz']
154
- */
155
- javascriptFileExtensions: string[];
156
- /**
157
- * A function which takes the path of a source file in your repository,
158
- * a list of your project's Javascript files known to the debugger,
159
- * and the file(s) in your project that the debugger thinks is identified
160
- * by the given path.
161
- *
162
- * This function should return the file(s) that is/are identified by the
163
- * given path or `undefined` to specify that the files(s) that the agent
164
- * thinks are associated with the file should be used.
165
- *
166
- * Note that the list of paths must be a subset of the files in `knownFiles`
167
- * and the debug agent can set a breakpoint for the input path if and only
168
- * if there is a unique file that this function returns (an array with
169
- * exactly one entry).
170
- *
171
- * This configuration option is usually unecessary, but can be useful in
172
- * situations where the debug agent cannot not identify the file in your
173
- * application associated with a path.
174
- *
175
- * This could occur if your application uses a structure that the debug
176
- * agent does not understand, or if more than one file in your application
177
- * has the same name.
178
- *
179
- * For example, if your running application (either locally or in the cloud)
180
- * has the Javascript files:
181
- * /x/y/src/index.js
182
- * /x/y/src/someDir/index.js
183
- * /x/y/src/util.js
184
- * and a breakpoint is set in the `/x/y/src/index.js` through the cloud
185
- * console, the `appResolver` function would be invoked with the following
186
- * arguments:
187
- * scriptPath: 'index.js'
188
- * knownFiles: ['/x/y/src/index.js',
189
- * '/x/y/src/someDir/index.js',
190
- * '/x/y/src/util.js']
191
- * resolved: ['/x/y/src/index.js',
192
- * '/x/y/src/someDir/index.js']
193
- * This is because out of the known files, the files, '/x/y/src/index.js'
194
- * and '/x/y/src/someDir/index.js' end with 'index.js'.
195
- *
196
- * If the array `['/x/y/src/index.js', '/x/y/src/someDir/index.js']` or
197
- * equivalently `undefined` is returned by the `pathResolver` function, the
198
- * debug agent will not be able to set the breakpoint.
199
- *
200
- * If, however, the `pathResolver` function returned `['/x/y/src/index.js']`,
201
- * for example, the debug agent would know to set the breakpoint in
202
- * the `/x/y/src/index.js` file.
203
- */
204
- pathResolver?: (scriptPath: string, knownFiles: string[], resolved: string[]) => string[] | undefined;
205
- /**
206
- * How frequently should the list of breakpoints be refreshed from the cloud
207
- * debug server.
208
- */
209
- breakpointUpdateIntervalSec: number;
210
- /**
211
- * breakpoints and logpoints older than this number of seconds will be expired
212
- * on the server.
213
- */
214
- breakpointExpirationSec: number;
215
- /**
216
- * timeout for expressionsEval
217
- */
218
- expressionsEvalTimeoutMillis: number;
219
- /**
220
- * configuration options on what is captured on a snapshot.
221
- */
222
- capture: {
223
- /**
224
- * Whether to include details about stack frames belonging to node-core.
225
- */
226
- includeNodeModules: boolean;
227
- /**
228
- * Maximum number of stack frames to capture data for. The limit is aimed to
229
- * reduce overall capture time.
230
- */
231
- maxFrames: number;
232
- /**
233
- * We collect locals and arguments on a few top frames. For the rest only
234
- * collect the source location
235
- */
236
- maxExpandFrames: number;
237
- /**
238
- * To reduce the overall capture time, limit the number of properties
239
- * gathered on large objects. A value of 0 disables the limit.
240
- */
241
- maxProperties: number;
242
- /**
243
- * Total 'size' of data to gather. This is NOT the number of bytes of data
244
- * that are sent over the wire, but instead a very very coarse approximation
245
- * based on the length of names and values of the properties. This should be
246
- * somewhat proportional to the amount of processing needed to capture the
247
- * data and subsequently the network traffic. A value of 0 disables the
248
- * limit.
249
- * @deprecated since version 1.16.0, use maxSnapshotBufferSize instead
250
- */
251
- maxDataSize?: number;
252
- /**
253
- * To limit the size of the buffer, we truncate long strings. A value of 0
254
- * disables truncation.
255
- * @deprecated since version 1.16.0 use maxVariableSize instead
256
- */
257
- maxStringLength?: number;
258
- /**
259
- * To limit the size of the buffer, we truncate long string. A value of 0
260
- * disables truncation.
261
- */
262
- maxVariableSize: number;
263
- /**
264
- * Maximum number of characters we allow for a watch list variable
265
- * if a user wants to see a large variable (which is > than maxVariableSize) we can show him more characters for the variable
266
- * with a watch variable (expression) to allow more characters for this variable.
267
- * This configuration limits the maximum amount of characters we allow for watch variables.
268
- */
269
- maxWatchListVariableSize: number;
270
- /**
271
- * Total 'size' of data to gather. This is NOT the number of bytes of data
272
- * that are sent over the wire, but instead a very very coarse approximation
273
- * based on the length of names and values of the properties. This should be
274
- * somewhat proportional to the amount of processing needed to capture the
275
- * data and subsequently the network traffic. A value of 0 disables the
276
- * limit.
277
- */
278
- maxSnapshotBufferSize: number;
279
- };
280
- /**
281
- * options affecting log points.
282
- */
283
- log: {
284
- /**
285
- * an objects that implements warn, err and info functions. by default this is console.
286
- *
287
- */
288
- logger: DynamicLogger;
289
- };
290
- /**
291
- * These configuration options are for internal experimentation only.
292
- */
293
- internal: {
294
- registerDelayOnFetcherErrorSec: number;
295
- maxRequestRetryDelaySeconds: number;
296
- };
297
- /**
298
- * Used by tests to force loading of a new agent if one exists already
299
- */
300
- forceNewAgent_: boolean;
301
- /**
302
- * Uses by tests to cause the start() function to return the debuglet.
303
- */
304
- testMode_: boolean;
305
- /**
306
- * used to set a default api url
307
- */
308
- apiEndpoint?: string;
309
- /**
310
- * The secret of the agent, authenticating it against the server
311
- */
312
- lightrunSecret: string;
313
- /**
314
- * All properties related to agent logging
315
- */
316
- agentLog: {
317
- /**
318
- * Path to store the log files of the agent. If empty, the logs will be logged to the console.
319
- */
320
- logsPath?: string;
321
- /**
322
- * log level of the agent
323
- */
324
- level: 'debug' | 'info' | 'warn' | 'error';
325
- /**
326
- * Copy log messages at or above this level to stderr in addition to logfiles.
327
- */
328
- stdErrThreshold: 'debug' | 'info' | 'warn' | 'error' | 'none';
329
- /**
330
- * How many ms should pass between log collections
331
- */
332
- collectCooldownMs: number;
333
- /**
334
- * Maximum bytes of logfile to collect and send to server
335
- */
336
- maxLogFileBytes: number;
337
- };
338
- /**
339
- * List of sha256 hashes on the certificates' public keys to use for certificate pinning when communicating with
340
- * the server
341
- */
342
- pinnedCerts: string[];
343
- /**
344
- * Boolean indicating if should skip the certificate pinning when communicating with the server
345
- */
346
- noCheckCertificate: boolean;
347
- /**
348
- * Path to the pem file of the ca used for the self signed certificate in on-prem deployments.
349
- */
350
- caPath?: string;
351
- /**
352
- * metadata for the agent registration
353
- */
354
- metadata?: AgentMetadata;
355
- /**
356
- * Max size for bulks to send as updates to the server
357
- */
358
- transmissionBulkMaxSize: number;
359
- quota: {
360
- /**
361
- * quota for condition evaluation time
362
- */
363
- maxConditionCost: number;
364
- /**
365
- * quota for breakpoint evaluation time
366
- */
367
- maxCPUCost: number;
368
- /**
369
- * quota for dynamic logs amount
370
- */
371
- maxDynamicLogRate: number;
372
- /**
373
- * quota for dynamic log bytes
374
- */
375
- maxDynamicLogByteRate: number;
376
- /**
377
- * should quota be ignored
378
- */
379
- ignoreQuota: boolean;
380
- /**
381
- * seconds needed for recovery from quota exceeded
382
- */
383
- quotaRecoverySeconds: number;
384
- };
385
- agentConfigFile: string;
386
- fetchBreakpointsOnce: boolean;
387
- /**
388
- * Number of times the V8 pauses (could be breakpoint hits) before the
389
- * debugging session is reset. This is to release the memory usage held by V8
390
- * engine for each breakpoint hit to prevent the memory leak. The default
391
- * value is specified in defaultConfig.
392
- */
393
- resetV8DebuggerThreshold: number;
394
- /**
395
- * Boolean to wait for the debugger to set first breakpoint before starting client's app
396
- */
397
- lightrunWaitForInit: boolean;
398
- /**
399
- * Max time to wait for init
400
- */
401
- lightrunInitWaitTimeMs: number;
402
- /**
403
- * A comma separated list of extra paths that are used for searching source files.
404
- * The path is any directory or file inside or outside of the the working directory.
405
- * It can be either absolute or relative to the working directory.
406
- * Notice, that passing the whole "node_modules" may slow down agent starting
407
- * and cause file name collisions.
408
- * It's recommended to pass more granular paths like "node_modules/express/lib"
409
- */
410
- extraPaths?: string[];
411
- requestTimeoutMs: number;
412
- redactionEnabled?: boolean;
413
- }
414
- export interface StackdriverConfig extends GoogleAuthOptions {
415
- debug?: DebugAgentConfig;
416
- }
417
- export declare const defaultConfig: ResolvedDebugAgentConfig;
418
- export declare function logMainConfigParams(cfg: ResolvedDebugAgentConfig, logger: AgentLogger): void;
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/agent/config.ts"],"names":[],"mappings":"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"}
@@ -1,19 +0,0 @@
1
- import { ResolvedDebugAgentConfig } from './config';
2
- /**
3
- * A wrapper to handle backward compatibility or any other logic related to retrieving a config value.
4
- */
5
- export declare class ConfigurationProvider {
6
- private resolvedDebugAgentConfig;
7
- constructor(resolvedDebugAgentConfig: ResolvedDebugAgentConfig);
8
- /**
9
- * Retrieves the maximum size allowed for a variable value
10
- * Gives priority to the legacy maxStringLength param for backward compatibility
11
- */
12
- getMaxVariableSize(): number;
13
- getMaxWatchListVariableSize(): number;
14
- /**
15
- * Retrieves the maximum size allowed for a complete snapshot size
16
- * Gives priority to the legacy maxDatasize param for backward compability
17
- */
18
- getMaxSnapshotBufferSize(): number;
19
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"configuration-provider.js","sourceRoot":"","sources":["../../../src/agent/configuration-provider.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAa,qBAAqB;IAEhC,YAAY,wBAAkD;QAC5D,IAAI,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;IAC3D,CAAC;IAED;;;OAGG;IACH,kBAAkB;QAChB,OAAO,CACL,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,eAAe;YACrD,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,eAAe,CACtD,CAAC;IACJ,CAAC;IAED,2BAA2B;QACzB,OAAO,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,wBAAwB,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,wBAAwB;QACtB,OAAO,CACL,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,WAAW;YACjD,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,qBAAqB,CAC5D,CAAC;IACJ,CAAC;CACF;AA/BD,sDA+BC"}