lightrun 1.22.0 → 1.24.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.
- package/build/src/agent/agent-logger.js +1 -1
- package/build/src/agent/blocklisting/blocklisting-patterns.js +1 -1
- package/build/src/agent/blocklisting/dummy-blocklist-manager.js +1 -1
- package/build/src/agent/blocklisting/patterns-blocklist-manager.js +1 -1
- package/build/src/agent/config.js +1 -1
- package/build/src/agent/configuration-provider.js +1 -1
- package/build/src/agent/controller.js +1 -1
- package/build/src/agent/debuglet-helpers/createDebuggee.js +1 -0
- package/build/src/agent/debuglet-helpers/createDebuggeeMetadata.js +1 -0
- package/build/src/agent/debuglet-helpers/createUniquifier.js +1 -0
- package/build/src/agent/debuglet-helpers/delimit.js +1 -0
- package/build/src/agent/debuglet-helpers/format.js +1 -0
- package/build/src/agent/debuglet-helpers/getAgentConfig.js +1 -0
- package/build/src/agent/debuglet-helpers/getPlatform.js +1 -0
- package/build/src/agent/debuglet-helpers/mapSubtract.js +1 -0
- package/build/src/agent/debuglet-helpers/normalizeConfig.js +1 -0
- package/build/src/agent/debuglet-helpers/tokenize.js +1 -0
- package/build/src/agent/debuglet.js +1 -1
- package/build/src/agent/environment-metadata.js +1 -1
- package/build/src/agent/io/file-index.js +1 -1
- package/build/src/agent/io/scan-results.js +1 -1
- package/build/src/agent/io/scanner.js +1 -1
- package/build/src/agent/io/sourcemapper.js +1 -1
- package/build/src/agent/leaky-bucket.js +1 -1
- package/build/src/agent/log-data.js +1 -1
- package/build/src/agent/piping-manager.js +1 -1
- package/build/src/agent/quota-manager.js +1 -1
- package/build/src/agent/reduction/redaction-manager-re2js.js +1 -1
- package/build/src/agent/reduction/redaction-manager.js +1 -1
- package/build/src/agent/state/inspector-state.js +1 -1
- package/build/src/agent/state/legacy-state.js +1 -1
- package/build/src/agent/util/debug-assert.js +1 -1
- package/build/src/agent/util/utils.js +1 -1
- package/build/src/agent/util/validator.js +1 -1
- package/build/src/agent/v8/debugapi.js +1 -1
- package/build/src/agent/v8/inspector-debugapi.js +1 -1
- package/build/src/agent/v8/legacy-debugapi.js +1 -1
- package/build/src/agent/v8/v8inspector.js +1 -1
- package/build/src/client/stackdriver/debug.js +1 -1
- package/build/src/client/stackdriver/status-message.js +1 -1
- package/build/src/debuggee.js +1 -1
- package/build/src/gcp.js +1 -1
- package/build/src/index.d.ts +561 -18
- package/build/src/index.js +1 -1
- package/build/src/lambda.js +1 -1
- package/build/src/resources/version.txt +1 -1
- package/build/src/types/lightrun.js +1 -1
- package/build/src/types/stackdriver.js +1 -1
- package/build/src/types/v8.js +1 -1
- package/package.json +8 -11
- package/build/src/agent/agent-logger.d.ts +0 -10
- package/build/src/agent/agent-logger.js.map +0 -1
- package/build/src/agent/blocklisting/blocklisting-patterns.d.ts +0 -6
- package/build/src/agent/blocklisting/blocklisting-patterns.js.map +0 -1
- package/build/src/agent/blocklisting/dummy-blocklist-manager.d.ts +0 -6
- package/build/src/agent/blocklisting/dummy-blocklist-manager.js.map +0 -1
- package/build/src/agent/blocklisting/patterns-blocklist-manager.d.ts +0 -10
- package/build/src/agent/blocklisting/patterns-blocklist-manager.js.map +0 -1
- package/build/src/agent/config.d.ts +0 -418
- package/build/src/agent/config.js.map +0 -1
- package/build/src/agent/configuration-provider.d.ts +0 -19
- package/build/src/agent/configuration-provider.js.map +0 -1
- package/build/src/agent/controller.d.ts +0 -71
- package/build/src/agent/controller.js.map +0 -1
- package/build/src/agent/debuglet.d.ts +0 -234
- package/build/src/agent/debuglet.js.map +0 -1
- package/build/src/agent/environment-metadata.d.ts +0 -36
- package/build/src/agent/environment-metadata.js.map +0 -1
- package/build/src/agent/io/file-index.d.ts +0 -76
- package/build/src/agent/io/file-index.js.map +0 -1
- package/build/src/agent/io/scan-results.d.ts +0 -60
- package/build/src/agent/io/scan-results.js.map +0 -1
- package/build/src/agent/io/scanner.d.ts +0 -43
- package/build/src/agent/io/scanner.js.map +0 -1
- package/build/src/agent/io/sourcemapper.d.ts +0 -72
- package/build/src/agent/io/sourcemapper.js.map +0 -1
- package/build/src/agent/leaky-bucket.d.ts +0 -16
- package/build/src/agent/leaky-bucket.js.map +0 -1
- package/build/src/agent/log-data.d.ts +0 -13
- package/build/src/agent/log-data.js.map +0 -1
- package/build/src/agent/piping-manager.d.ts +0 -39
- package/build/src/agent/piping-manager.js.map +0 -1
- package/build/src/agent/quota-manager.d.ts +0 -40
- package/build/src/agent/quota-manager.js.map +0 -1
- package/build/src/agent/reduction/redaction-manager-re2.d.ts +0 -8
- package/build/src/agent/reduction/redaction-manager-re2.js +0 -1
- package/build/src/agent/reduction/redaction-manager-re2.js.map +0 -1
- package/build/src/agent/reduction/redaction-manager-re2js.d.ts +0 -8
- package/build/src/agent/reduction/redaction-manager-re2js.js.map +0 -1
- package/build/src/agent/reduction/redaction-manager.d.ts +0 -6
- package/build/src/agent/reduction/redaction-manager.js.map +0 -1
- package/build/src/agent/state/inspector-state.d.ts +0 -28
- package/build/src/agent/state/inspector-state.js.map +0 -1
- package/build/src/agent/state/legacy-state.d.ts +0 -22
- package/build/src/agent/state/legacy-state.js.map +0 -1
- package/build/src/agent/util/debug-assert.d.ts +0 -22
- package/build/src/agent/util/debug-assert.js.map +0 -1
- package/build/src/agent/util/utils.d.ts +0 -65
- package/build/src/agent/util/utils.js.map +0 -1
- package/build/src/agent/util/validator.d.ts +0 -12
- package/build/src/agent/util/validator.js.map +0 -1
- package/build/src/agent/v8/debugapi.d.ts +0 -23
- package/build/src/agent/v8/debugapi.js.map +0 -1
- package/build/src/agent/v8/inspector-debugapi.d.ts +0 -82
- package/build/src/agent/v8/inspector-debugapi.js.map +0 -1
- package/build/src/agent/v8/legacy-debugapi.d.ts +0 -58
- package/build/src/agent/v8/legacy-debugapi.js.map +0 -1
- package/build/src/agent/v8/v8inspector.d.ts +0 -53
- package/build/src/agent/v8/v8inspector.js.map +0 -1
- package/build/src/client/stackdriver/debug.d.ts +0 -43
- package/build/src/client/stackdriver/debug.js.map +0 -1
- package/build/src/client/stackdriver/status-message.d.ts +0 -35
- package/build/src/client/stackdriver/status-message.js.map +0 -1
- package/build/src/debuggee.d.ts +0 -80
- package/build/src/debuggee.js.map +0 -1
- package/build/src/gcp.d.ts +0 -2
- package/build/src/gcp.js.map +0 -1
- package/build/src/index.js.map +0 -1
- package/build/src/lambda.d.ts +0 -2
- package/build/src/lambda.js.map +0 -1
- package/build/src/types/lightrun.d.ts +0 -18
- package/build/src/types/lightrun.js.map +0 -1
- package/build/src/types/stackdriver.d.ts +0 -79
- package/build/src/types/stackdriver.js.map +0 -1
- package/build/src/types/v8.d.ts +0 -214
- package/build/src/types/v8.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x26289a=a45_0x463c;function a45_0x463c(_0x3b60b4,_0x525176){const _0x17e913=a45_0x387b();return a45_0x463c=function(_0x507869,_0x5d0339){_0x507869=_0x507869-0xff;let _0x387b5f=_0x17e913[_0x507869];return _0x387b5f;},a45_0x463c(_0x3b60b4,_0x525176);}(function(_0x322ee3,_0x580c42){const _0x3324a5=a45_0x463c,_0xd0c010=_0x322ee3();while(!![]){try{const _0xebbeba=parseInt(_0x3324a5(0x10e))/0x1+parseInt(_0x3324a5(0x10f))/0x2*(parseInt(_0x3324a5(0x114))/0x3)+parseInt(_0x3324a5(0x110))/0x4+parseInt(_0x3324a5(0x109))/0x5*(-parseInt(_0x3324a5(0x112))/0x6)+-parseInt(_0x3324a5(0x104))/0x7*(parseInt(_0x3324a5(0x108))/0x8)+parseInt(_0x3324a5(0x106))/0x9+-parseInt(_0x3324a5(0x105))/0xa*(parseInt(_0x3324a5(0xff))/0xb);if(_0xebbeba===_0x580c42)break;else _0xd0c010['push'](_0xd0c010['shift']());}catch(_0x1ac85c){_0xd0c010['push'](_0xd0c010['shift']());}}}(a45_0x387b,0xded98));const a45_0x5d0339=(function(){let _0x504cdd=!![];return function(_0x2f908c,_0x33d341){const _0x1461f8=_0x504cdd?function(){if(_0x33d341){const _0x44f897=_0x33d341['apply'](_0x2f908c,arguments);return _0x33d341=null,_0x44f897;}}:function(){};return _0x504cdd=![],_0x1461f8;};}()),a45_0x507869=a45_0x5d0339(this,function(){const _0x3b2284=a45_0x463c;return a45_0x507869['toString']()[_0x3b2284(0x103)](_0x3b2284(0x111))[_0x3b2284(0x10a)]()['constructor'](a45_0x507869)['search'](_0x3b2284(0x111));});a45_0x507869();'use strict';Object[a45_0x26289a(0x10b)](exports,'__esModule',{'value':!![]}),exports[a45_0x26289a(0x102)]=void 0x0;class Breakpoint{constructor(_0x33ce8a){const _0x59a6c0=a45_0x26289a;_0x33ce8a&&Object[_0x59a6c0(0x107)](this,_0x33ce8a);}[a45_0x26289a(0x10a)](){const _0x67249e=a45_0x26289a,_0x49e826=this[_0x67249e(0x10d)]?'\x20'+this[_0x67249e(0x10d)][_0x67249e(0x113)]+':'+this[_0x67249e(0x10d)][_0x67249e(0x10c)]:'';return'\x22'+this[_0x67249e(0x101)]+_0x49e826+_0x67249e(0x100)+this['id']+'\x22';}}function a45_0x387b(){const _0x4d20ea=['10241XeDdKV',',\x20id=','action','Breakpoint','search','59759ORToKq','8660ebJwUU','5409504aWAbYn','assign','136vxoVbZ','374830QxQvRU','toString','defineProperty','line','location','1491297MJiEVm','615166armnUn','2954612XlfgHV','(((.+)+)+)+$','102pOmKTN','path','3XaXssV'];a45_0x387b=function(){return _0x4d20ea;};return a45_0x387b();}exports['Breakpoint']=Breakpoint;
|
package/build/src/types/v8.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a46_0x3268(){var _0x347f3d=['289827apNXho','8541525ixANVL','916WaskfE','1217992CmYzpJ','search','8884800ulypYz','66wqCeMt','3018924YAkYEf','constructor','2391waLfZE','toString','defineProperty','20amNEXp','apply','14JCzZql','(((.+)+)+)+$','2LeKVNs','170801ZlkJGA'];a46_0x3268=function(){return _0x347f3d;};return a46_0x3268();}var a46_0x19d021=a46_0x45b8;(function(_0x5b7207,_0x89176){var _0x2f20ee=a46_0x45b8,_0xd6a19e=_0x5b7207();while(!![]){try{var _0x261b71=parseInt(_0x2f20ee(0x100))/0x1*(-parseInt(_0x2f20ee(0xff))/0x2)+parseInt(_0x2f20ee(0x10a))/0x3*(parseInt(_0x2f20ee(0x103))/0x4)+-parseInt(_0x2f20ee(0x102))/0x5+parseInt(_0x2f20ee(0x106))/0x6+parseInt(_0x2f20ee(0xfd))/0x7*(-parseInt(_0x2f20ee(0x104))/0x8)+-parseInt(_0x2f20ee(0x101))/0x9*(parseInt(_0x2f20ee(0x10d))/0xa)+parseInt(_0x2f20ee(0x107))/0xb*(parseInt(_0x2f20ee(0x108))/0xc);if(_0x261b71===_0x89176)break;else _0xd6a19e['push'](_0xd6a19e['shift']());}catch(_0x261a25){_0xd6a19e['push'](_0xd6a19e['shift']());}}}(a46_0x3268,0xe1c5d));var a46_0x5692c3=(function(){var _0x104ea2=!![];return function(_0x1970ea,_0x4ba231){var _0x57c669=_0x104ea2?function(){var _0x3c41d6=a46_0x45b8;if(_0x4ba231){var _0x332bdb=_0x4ba231[_0x3c41d6(0x10e)](_0x1970ea,arguments);return _0x4ba231=null,_0x332bdb;}}:function(){};return _0x104ea2=![],_0x57c669;};}()),a46_0x2ec987=a46_0x5692c3(this,function(){var _0x30d439=a46_0x45b8;return a46_0x2ec987[_0x30d439(0x10b)]()[_0x30d439(0x105)]('(((.+)+)+)+$')[_0x30d439(0x10b)]()[_0x30d439(0x109)](a46_0x2ec987)[_0x30d439(0x105)](_0x30d439(0xfe));});a46_0x2ec987();function a46_0x45b8(_0x19792a,_0x3c471b){var _0x47c4bd=a46_0x3268();return a46_0x45b8=function(_0x2ec987,_0x5692c3){_0x2ec987=_0x2ec987-0xfd;var _0x3268cd=_0x47c4bd[_0x2ec987];return _0x3268cd;},a46_0x45b8(_0x19792a,_0x3c471b);}'use strict';Object[a46_0x19d021(0x10c)](exports,'__esModule',{'value':!![]});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lightrun",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.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
|
-
"
|
|
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": "
|
|
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": "^
|
|
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": "^
|
|
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,EA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AC,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 +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":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,2BAA0B;AAC1B,2BAA8B;AAqejB,QAAA,aAAa,GAA6B;IACrD,8EAA8E;IAC9E,oEAAoE;IACpE,gBAAgB,EAAE,OAAO,CAAC,GAAG,EAAE;IAC/B,2BAA2B,EAAE,KAAK;IAClC,WAAW,EAAE,SAAS;IACtB,gBAAgB,EAAE,IAAI;IAEtB,0EAA0E;IAC1E,0DAA0D;IAC1D,cAAc,EAAE;QACd,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,aAAa,EAAE,SAAS;KACzB;IAED,2BAA2B,EAAE,SAAS;IACtC,wBAAwB,EAAE,CAAC,KAAK,CAAC;IACjC,YAAY,EAAE,SAAS;IACvB,2BAA2B,EAAE,EAAE;IAC/B,uBA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AC;AAEF,SAAgB,mBAAmB,CACjC,GAA6B,EAC7B,MAAmB;IAEnB,IAAI,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;IAC1C,IAAI,eAAe,EAAE;QACnB,eAAe;YACb,eAAe;gBACf,CAAC,eAAU,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;KAClE;SAAM;QACL,eAAe,GAAG,UAAU,CAAC;KAC9B;IACD,MAAM,aAAa,GAAG;QACpB,GAAG,GAAG;QACN,cAAc,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB;QAC9D,eAAe,EAAE,eAAe;KACjC,CAAC;IACF,MAAM,CAAC,KAAK,CAAC,uBAAuB,EAAE,aAAa,CAAC,CAAC;AACvD,CAAC;AAlBD,kDAkBC"}
|
|
@@ -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"}
|