lightrun 1.23.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.
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,18 +1,561 @@
1
- import { DebugAgentConfig, StackdriverConfig } from './agent/config';
2
- import { Debuglet, IsReady } from './agent/debuglet';
3
- /**
4
- * Start the Debug agent that will make your application available for debugging
5
- * with Stackdriver Debug.
6
- *
7
- * @param options - Authentication and agent configuration.
8
- *
9
- * @resource [Introductory video]{@link
10
- * https://www.youtube.com/watch?v=tyHcK_kAOpw}
11
- *
12
- * @example
13
- * debug.startAgent();
14
- */
15
- export declare function start(options?: DebugAgentConfig | StackdriverConfig): Debuglet | IsReady | undefined;
16
- export declare function stop(): void;
17
- export declare function asyncStart(options?: DebugAgentConfig | StackdriverConfig): Promise<void>;
18
- export declare function get(): Debuglet | null | undefined;
1
+ /// <reference types="node" />
2
+
3
+ import { EventEmitter } from 'events';
4
+ import { GoogleAuthOptions } from '@google-cloud/common';
5
+ import { Service } from '@google-cloud/common';
6
+
7
+ declare interface AgentMetadata {
8
+ filename?: string;
9
+ registration?: {
10
+ displayName?: string;
11
+ tags?: Array<string | {
12
+ name: string;
13
+ }>;
14
+ };
15
+ }
16
+
17
+ declare interface AliasContext {
18
+ kind: 'ANY' | 'FIXED' | 'MOVABLE' | 'OTHER';
19
+ name: string;
20
+ }
21
+
22
+ export declare function asyncStart(options?: DebugAgentConfig | StackdriverConfig): Promise<void>;
23
+
24
+ declare interface CloudRepoSourceContext {
25
+ cloudRepo: {
26
+ repoId: RepoId;
27
+ revisionId: string;
28
+ aliasName?: string;
29
+ aliasContext: AliasContext;
30
+ };
31
+ }
32
+
33
+ declare interface CloudWorkspaceId {
34
+ repoId: RepoId;
35
+ name: string;
36
+ }
37
+
38
+ declare interface CloudWorkspaceSourceContext {
39
+ cloudWorkspace: {
40
+ workspaceId: CloudWorkspaceId;
41
+ snapshotId: string;
42
+ };
43
+ }
44
+
45
+ declare class Debug extends Service {
46
+ options: DebugOptions;
47
+ packageInfo: PackageInfo;
48
+ /**
49
+ * <p class="notice">
50
+ * **This is an experimental release of Stackdriver Debug.** This API is not
51
+ * covered by any SLA of deprecation policy and may be subject to backwards
52
+ * incompatible changes.
53
+ * </p>
54
+ *
55
+ * This module provides Stackdriver Debugger support for Node.js applications.
56
+ * [Stackdriver Debugger](https://cloud.google.com/debug/) is a feature of
57
+ * [Google Cloud Platform](https://cloud.google.com/) that lets you debug your
58
+ * applications in production without stopping or pausing your application.
59
+ *
60
+ * This module provides an agent that lets you automatically enable debugging
61
+ * without changes to your application.
62
+ *
63
+ * @constructor
64
+ * @alias module:debug
65
+ *
66
+ * @resource [What is Stackdriver Debug]{@link
67
+ * https://cloud.google.com/debug/}
68
+ *
69
+ * @param options - [Authentication options](#/docs)
70
+ */
71
+ constructor(options: DebugOptions | undefined, packageJson: {
72
+ name: string;
73
+ version: string;
74
+ });
75
+ }
76
+
77
+ declare type DebugAgentConfig = GoogleAuthOptions & {
78
+ [K in keyof ResolvedDebugAgentConfig]?: Partial<ResolvedDebugAgentConfig[K]>;
79
+ };
80
+
81
+ declare class Debuglet extends EventEmitter {
82
+ #private;
83
+ isReadyManager: IsReady;
84
+ config: ResolvedDebugAgentConfig;
85
+ private fetcherActive;
86
+ private logger;
87
+ private debuggee;
88
+ private activeBreakpointMap;
89
+ private collectLogRequestId?;
90
+ private pipingManager;
91
+ /**
92
+ * @param {Debug} debug - A Debug instance.
93
+ * @param {object=} config - The option parameters for the Debuglet.
94
+ * @event 'started' once the startup tasks are completed. Only called once.
95
+ * @event 'stopped' if the agent stops due to a fatal error after starting.
96
+ * Only called once.
97
+ * @event 'registered' once successfully registered to the debug api. May be
98
+ * emitted multiple times.
99
+ * @event 'remotelyDisabled' if the debuggee is disabled by the server. May be
100
+ * called multiple times.
101
+ * @constructor
102
+ */
103
+ constructor(debug: Debug, config: DebugAgentConfig);
104
+ private findFiles;
105
+ /**
106
+ * Starts the Debuglet. It is important that this is as quick as possible
107
+ * as it is on the critical path of application startup.
108
+ * @private
109
+ */
110
+ start(): Promise<void>;
111
+ /**
112
+ * isReady returns a promise that only resolved if the last breakpoint update
113
+ * happend within a duration (PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS). This
114
+ * feature is mainly used in Google Cloud Function (GCF), as it is a
115
+ * serverless environment and we wanted to make sure debug agent always
116
+ * captures the snapshots.
117
+ */
118
+ isReady(): Promise<void>;
119
+ private static getSourceContextFromFile;
120
+ isRunning(): boolean;
121
+ /**
122
+ * Stops the Debuglet. This is for testing purposes only. Stop should only be
123
+ * called on a agent that has started (i.e. emitted the 'started' event).
124
+ * Calling this while the agent is initializing may not necessarily stop all
125
+ * pending operations.
126
+ */
127
+ stop(): void;
128
+ }
129
+
130
+ declare interface DebugOptions extends GoogleAuthOptions {
131
+ /**
132
+ * The API endpoint of the service used to make requests.
133
+ * Defaults to `clouddebugger.googleapis.com`.
134
+ */
135
+ apiEndpoint?: string;
136
+ }
137
+
138
+ /**
139
+ * class that logs the dynamic breakpoint logs.
140
+ * notice - if one of the functions calls this it should be bound to the context before adding it to the configuration.
141
+ * i.e: info = info.bind(this)
142
+ */
143
+ declare interface DynamicLogger {
144
+ warn: (msg: string) => void;
145
+ error: (msg: string) => void;
146
+ info: (msg: string) => void;
147
+ }
148
+
149
+ declare interface GerritSourceContext {
150
+ gerrit: {
151
+ hostUri: string;
152
+ gerritProject: string;
153
+ revisionId?: string;
154
+ aliasName?: string;
155
+ aliasContext?: AliasContext;
156
+ };
157
+ }
158
+
159
+ export declare function get(): Debuglet | null | undefined;
160
+
161
+ declare interface GitSourceContext {
162
+ git: {
163
+ url: string;
164
+ revisionId: string;
165
+ };
166
+ }
167
+
168
+ /**
169
+ * IsReady will return a promise to user after user starting the debug agent.
170
+ * This promise will be resolved when one of the following is true:
171
+ * 1. Time since last listBreakpoint was within a heuristic time.
172
+ * 2. listBreakpoint completed successfully.
173
+ * 3. Debuggee registration expired or failed, listBreakpoint cannot be
174
+ * completed.
175
+ */
176
+ declare interface IsReady {
177
+ isReady(): Promise<void>;
178
+ }
179
+
180
+ declare interface PackageInfo {
181
+ name: string;
182
+ version: string;
183
+ }
184
+
185
+ declare interface ProjectRepoId {
186
+ projectId: string;
187
+ repoName: string;
188
+ }
189
+
190
+ declare interface RepoId {
191
+ projectRepoId: ProjectRepoId;
192
+ uid: string;
193
+ }
194
+
195
+ declare interface ResolvedDebugAgentConfig extends GoogleAuthOptions {
196
+ /**
197
+ * Specifies the working directory of the application being
198
+ * debugged. That is, the directory containing the application's
199
+ * `package.json` file.
200
+ *
201
+ * The default value is the value of `process.cwd()`.
202
+ */
203
+ workingDirectory: string;
204
+ /**
205
+ * Specifies whether or not the computer's root directory should
206
+ * be allowed for the value of the `workingDirectory` configuration
207
+ * option.
208
+ *
209
+ * On startup, the debug agent scans the working directory for source
210
+ * files. If the working directory is the computer's root directory,
211
+ * this scan would result is scanning the entire drive.
212
+ *
213
+ * To avoid this, the debug agent, by default, does not allow the
214
+ * working directory to be computer's root directory. That check
215
+ * can be disabled with this configuration option.
216
+ */
217
+ allowRootAsWorkingDirectory: boolean;
218
+ /**
219
+ * A user specified way of identifying the service
220
+ */
221
+ description?: string;
222
+ /**
223
+ * Whether or not it is permitted to evaluate expressions.
224
+ * Locals and arguments are not displayed and watch expressions and
225
+ * conditions are dissallowed when this is `false`.
226
+ */
227
+ allowExpressions: boolean;
228
+ /**
229
+ * Identifies the context of the running service -
230
+ * [ServiceContext](https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext?authuser=2).
231
+ * This information is utilized in the UI to identify all the running
232
+ * instances of your service. This is discovered automatically when your
233
+ * application is running on Google Cloud Platform. You may optionally
234
+ * choose to provide this information yourself to identify your service
235
+ * differently from the default mechanism.
236
+ */
237
+ serviceContext: {
238
+ /**
239
+ * The service name.
240
+ */
241
+ service?: string;
242
+ /**
243
+ * The service version.
244
+ */
245
+ version?: string;
246
+ /**
247
+ * A unique deployment identifier. This is used internally only.
248
+ */
249
+ minorVersion_?: string;
250
+ };
251
+ /**
252
+ * A SourceContext is a reference to a tree of files. A SourceContext together
253
+ * with a path point to a unique version of a single file or directory.
254
+ * Managed environments such as AppEngine generate a source-contexts.json file
255
+ * at deployment time. The agent can load the SourceContext from that file if
256
+ * it exists. In other environments, e.g. locally, GKE, GCE, AWS, etc., users
257
+ * can either generate the source context file, or pass the context as part of
258
+ * the agent configuration.
259
+ *
260
+ * @link
261
+ * https://cloud.google.com/debugger/api/reference/rest/v2/Debuggee#SourceContext
262
+ */
263
+ sourceContext?: CloudRepoSourceContext | CloudWorkspaceSourceContext | GerritSourceContext | GitSourceContext;
264
+ /**
265
+ * The path within your repository to the directory
266
+ * containing the package.json for your deployed application. This should
267
+ * be provided if your deployed application appears as a subdirectory of
268
+ * your repository. Usually this is unnecessary, but may be useful in
269
+ * cases where the debug agent is unable to resolve breakpoint locations
270
+ * unambiguously.
271
+ */
272
+ appPathRelativeToRepository?: string;
273
+ /**
274
+ * The set of file extensions that identify javascript code to be debugged.
275
+ * By default, only .js files or files with sourcemaps are considered to be
276
+ * debuggable. This setting can be used to inform the debugger if you have
277
+ * javascript code in files with extensions other than .js.
278
+ * Example: ['.js', '.jsz']
279
+ */
280
+ javascriptFileExtensions: string[];
281
+ /**
282
+ * A function which takes the path of a source file in your repository,
283
+ * a list of your project's Javascript files known to the debugger,
284
+ * and the file(s) in your project that the debugger thinks is identified
285
+ * by the given path.
286
+ *
287
+ * This function should return the file(s) that is/are identified by the
288
+ * given path or `undefined` to specify that the files(s) that the agent
289
+ * thinks are associated with the file should be used.
290
+ *
291
+ * Note that the list of paths must be a subset of the files in `knownFiles`
292
+ * and the debug agent can set a breakpoint for the input path if and only
293
+ * if there is a unique file that this function returns (an array with
294
+ * exactly one entry).
295
+ *
296
+ * This configuration option is usually unecessary, but can be useful in
297
+ * situations where the debug agent cannot not identify the file in your
298
+ * application associated with a path.
299
+ *
300
+ * This could occur if your application uses a structure that the debug
301
+ * agent does not understand, or if more than one file in your application
302
+ * has the same name.
303
+ *
304
+ * For example, if your running application (either locally or in the cloud)
305
+ * has the Javascript files:
306
+ * /x/y/src/index.js
307
+ * /x/y/src/someDir/index.js
308
+ * /x/y/src/util.js
309
+ * and a breakpoint is set in the `/x/y/src/index.js` through the cloud
310
+ * console, the `appResolver` function would be invoked with the following
311
+ * arguments:
312
+ * scriptPath: 'index.js'
313
+ * knownFiles: ['/x/y/src/index.js',
314
+ * '/x/y/src/someDir/index.js',
315
+ * '/x/y/src/util.js']
316
+ * resolved: ['/x/y/src/index.js',
317
+ * '/x/y/src/someDir/index.js']
318
+ * This is because out of the known files, the files, '/x/y/src/index.js'
319
+ * and '/x/y/src/someDir/index.js' end with 'index.js'.
320
+ *
321
+ * If the array `['/x/y/src/index.js', '/x/y/src/someDir/index.js']` or
322
+ * equivalently `undefined` is returned by the `pathResolver` function, the
323
+ * debug agent will not be able to set the breakpoint.
324
+ *
325
+ * If, however, the `pathResolver` function returned `['/x/y/src/index.js']`,
326
+ * for example, the debug agent would know to set the breakpoint in
327
+ * the `/x/y/src/index.js` file.
328
+ */
329
+ pathResolver?: (scriptPath: string, knownFiles: string[], resolved: string[]) => string[] | undefined;
330
+ /**
331
+ * How frequently should the list of breakpoints be refreshed from the cloud
332
+ * debug server.
333
+ */
334
+ breakpointUpdateIntervalSec: number;
335
+ /**
336
+ * breakpoints and logpoints older than this number of seconds will be expired
337
+ * on the server.
338
+ */
339
+ breakpointExpirationSec: number;
340
+ /**
341
+ * timeout for expressionsEval
342
+ */
343
+ expressionsEvalTimeoutMillis: number;
344
+ /**
345
+ * configuration options on what is captured on a snapshot.
346
+ */
347
+ capture: {
348
+ /**
349
+ * Whether to include details about stack frames belonging to node-core.
350
+ */
351
+ includeNodeModules: boolean;
352
+ /**
353
+ * Maximum number of stack frames to capture data for. The limit is aimed to
354
+ * reduce overall capture time.
355
+ */
356
+ maxFrames: number;
357
+ /**
358
+ * We collect locals and arguments on a few top frames. For the rest only
359
+ * collect the source location
360
+ */
361
+ maxExpandFrames: number;
362
+ /**
363
+ * To reduce the overall capture time, limit the number of properties
364
+ * gathered on large objects. A value of 0 disables the limit.
365
+ */
366
+ maxProperties: number;
367
+ /**
368
+ * Total 'size' of data to gather. This is NOT the number of bytes of data
369
+ * that are sent over the wire, but instead a very very coarse approximation
370
+ * based on the length of names and values of the properties. This should be
371
+ * somewhat proportional to the amount of processing needed to capture the
372
+ * data and subsequently the network traffic. A value of 0 disables the
373
+ * limit.
374
+ * @deprecated since version 1.16.0, use maxSnapshotBufferSize instead
375
+ */
376
+ maxDataSize?: number;
377
+ /**
378
+ * To limit the size of the buffer, we truncate long strings. A value of 0
379
+ * disables truncation.
380
+ * @deprecated since version 1.16.0 use maxVariableSize instead
381
+ */
382
+ maxStringLength?: number;
383
+ /**
384
+ * To limit the size of the buffer, we truncate long string. A value of 0
385
+ * disables truncation.
386
+ */
387
+ maxVariableSize: number;
388
+ /**
389
+ * Maximum number of characters we allow for a watch list variable
390
+ * if a user wants to see a large variable (which is > than maxVariableSize) we can show him more characters for the variable
391
+ * with a watch variable (expression) to allow more characters for this variable.
392
+ * This configuration limits the maximum amount of characters we allow for watch variables.
393
+ */
394
+ maxWatchListVariableSize: number;
395
+ /**
396
+ * Total 'size' of data to gather. This is NOT the number of bytes of data
397
+ * that are sent over the wire, but instead a very very coarse approximation
398
+ * based on the length of names and values of the properties. This should be
399
+ * somewhat proportional to the amount of processing needed to capture the
400
+ * data and subsequently the network traffic. A value of 0 disables the
401
+ * limit.
402
+ */
403
+ maxSnapshotBufferSize: number;
404
+ };
405
+ /**
406
+ * options affecting log points.
407
+ */
408
+ log: {
409
+ /**
410
+ * an objects that implements warn, err and info functions. by default this is console.
411
+ *
412
+ */
413
+ logger: DynamicLogger;
414
+ };
415
+ /**
416
+ * These configuration options are for internal experimentation only.
417
+ */
418
+ internal: {
419
+ registerDelayOnFetcherErrorSec: number;
420
+ maxRequestRetryDelaySeconds: number;
421
+ };
422
+ /**
423
+ * Used by tests to force loading of a new agent if one exists already
424
+ */
425
+ forceNewAgent_: boolean;
426
+ /**
427
+ * Uses by tests to cause the start() function to return the debuglet.
428
+ */
429
+ testMode_: boolean;
430
+ /**
431
+ * used to set a default api url
432
+ */
433
+ apiEndpoint?: string;
434
+ /**
435
+ * The secret of the agent, authenticating it against the server
436
+ */
437
+ lightrunSecret: string;
438
+ /**
439
+ * All properties related to agent logging
440
+ */
441
+ agentLog: {
442
+ /**
443
+ * Path to store the log files of the agent. If empty, the logs will be logged to the console.
444
+ */
445
+ logsPath?: string;
446
+ /**
447
+ * log level of the agent
448
+ */
449
+ level: 'debug' | 'info' | 'warn' | 'error';
450
+ /**
451
+ * Copy log messages at or above this level to stderr in addition to logfiles.
452
+ */
453
+ stdErrThreshold: 'debug' | 'info' | 'warn' | 'error' | 'none';
454
+ /**
455
+ * How many ms should pass between log collections
456
+ */
457
+ collectCooldownMs: number;
458
+ /**
459
+ * Maximum bytes of logfile to collect and send to server
460
+ */
461
+ maxLogFileBytes: number;
462
+ };
463
+ /**
464
+ * List of sha256 hashes on the certificates' public keys to use for certificate pinning when communicating with
465
+ * the server
466
+ */
467
+ pinnedCerts: string[];
468
+ /**
469
+ * Boolean indicating if should skip the certificate pinning when communicating with the server
470
+ */
471
+ noCheckCertificate: boolean;
472
+ /**
473
+ * Path to the pem file of the ca used for the self signed certificate in on-prem deployments.
474
+ */
475
+ caPath?: string;
476
+ /**
477
+ * metadata for the agent registration
478
+ */
479
+ metadata?: AgentMetadata;
480
+ /**
481
+ * Max size for bulks to send as updates to the server
482
+ */
483
+ transmissionBulkMaxSize: number;
484
+ quota: {
485
+ /**
486
+ * quota for condition evaluation time
487
+ */
488
+ maxConditionCost: number;
489
+ /**
490
+ * quota for breakpoint evaluation time
491
+ */
492
+ maxCPUCost: number;
493
+ /**
494
+ * quota for dynamic logs amount
495
+ */
496
+ maxDynamicLogRate: number;
497
+ /**
498
+ * quota for dynamic log bytes
499
+ */
500
+ maxDynamicLogByteRate: number;
501
+ /**
502
+ * should quota be ignored
503
+ */
504
+ ignoreQuota: boolean;
505
+ /**
506
+ * seconds needed for recovery from quota exceeded
507
+ */
508
+ quotaRecoverySeconds: number;
509
+ };
510
+ agentConfigFile: string;
511
+ fetchBreakpointsOnce: boolean;
512
+ /**
513
+ * Number of times the V8 pauses (could be breakpoint hits) before the
514
+ * debugging session is reset. This is to release the memory usage held by V8
515
+ * engine for each breakpoint hit to prevent the memory leak. The default
516
+ * value is specified in defaultConfig.
517
+ */
518
+ resetV8DebuggerThreshold: number;
519
+ /**
520
+ * Boolean to wait for the debugger to set first breakpoint before starting client's app
521
+ */
522
+ lightrunWaitForInit: boolean;
523
+ /**
524
+ * Max time to wait for init
525
+ */
526
+ lightrunInitWaitTimeMs: number;
527
+ /**
528
+ * A comma separated list of extra paths that are used for searching source files.
529
+ * The path is any directory or file inside or outside of the the working directory.
530
+ * It can be either absolute or relative to the working directory.
531
+ * Notice, that passing the whole "node_modules" may slow down agent starting
532
+ * and cause file name collisions.
533
+ * It's recommended to pass more granular paths like "node_modules/express/lib"
534
+ */
535
+ extraPaths?: string[];
536
+ requestTimeoutMs: number;
537
+ redactionEnabled?: boolean;
538
+ }
539
+
540
+ declare interface StackdriverConfig extends GoogleAuthOptions {
541
+ debug?: DebugAgentConfig;
542
+ }
543
+
544
+ /**
545
+ * Start the Debug agent that will make your application available for debugging
546
+ * with Stackdriver Debug.
547
+ *
548
+ * @param options - Authentication and agent configuration.
549
+ *
550
+ * @resource [Introductory video]{@link
551
+ * https://www.youtube.com/watch?v=tyHcK_kAOpw}
552
+ *
553
+ * @example
554
+ * debug.startAgent();
555
+ */
556
+ export declare function start(options?: DebugAgentConfig | StackdriverConfig): Debuglet | IsReady | undefined;
557
+
558
+ declare function stop_2(): void;
559
+ export { stop_2 as stop }
560
+
561
+ export { }
@@ -1 +1 @@
1
- const a33_0x27ce7c=a33_0x3507;(function(_0x487a31,_0x182a99){const _0x41698e=a33_0x3507,_0x3ce4d2=_0x487a31();while(!![]){try{const _0x3fe59e=parseInt(_0x41698e(0x200))/0x1*(-parseInt(_0x41698e(0x1f3))/0x2)+parseInt(_0x41698e(0x1fe))/0x3+parseInt(_0x41698e(0x21b))/0x4*(parseInt(_0x41698e(0x20c))/0x5)+-parseInt(_0x41698e(0x216))/0x6+-parseInt(_0x41698e(0x210))/0x7*(-parseInt(_0x41698e(0x1f9))/0x8)+parseInt(_0x41698e(0x205))/0x9+-parseInt(_0x41698e(0x1f6))/0xa*(parseInt(_0x41698e(0x214))/0xb);if(_0x3fe59e===_0x182a99)break;else _0x3ce4d2['push'](_0x3ce4d2['shift']());}catch(_0x16cf98){_0x3ce4d2['push'](_0x3ce4d2['shift']());}}}(a33_0x1cfa,0xba852));const a33_0x4a49a3=(function(){let _0x4df907=!![];return function(_0x4a8724,_0x19c42a){const _0x2d13f6=_0x4df907?function(){const _0x4fa33b=a33_0x3507;if(_0x19c42a){const _0x424344=_0x19c42a[_0x4fa33b(0x215)](_0x4a8724,arguments);return _0x19c42a=null,_0x424344;}}:function(){};return _0x4df907=![],_0x2d13f6;};}()),a33_0x4b5506=a33_0x4a49a3(this,function(){const _0x76854=a33_0x3507;return a33_0x4b5506[_0x76854(0x201)]()[_0x76854(0x20a)](_0x76854(0x20f))['toString']()[_0x76854(0x213)](a33_0x4b5506)[_0x76854(0x20a)]('(((.+)+)+)+$');});a33_0x4b5506();'use strict';Object[a33_0x27ce7c(0x1fd)](exports,'__esModule',{'value':!![]}),exports[a33_0x27ce7c(0x21d)]=exports[a33_0x27ce7c(0x1fc)]=exports[a33_0x27ce7c(0x21e)]=exports[a33_0x27ce7c(0x202)]=void 0x0;const debuglet_1=require(a33_0x27ce7c(0x1f5)),debug_1=require(a33_0x27ce7c(0x1ff)),pjson=require(a33_0x27ce7c(0x1f7));let debuglet;function start(_0x832746){const _0x195318=a33_0x27ce7c,_0x5cbaa9=process[_0x195318(0x21c)]['DISABLE_LIGHTRUN_AGENT'];if(_0x5cbaa9&&['1',_0x195318(0x217)][_0x195318(0x218)](_0x5cbaa9[_0x195318(0x1f8)]())){console[_0x195318(0x20b)]('Env\x20variable\x20DISABLE_LIGHTRUN_AGENT\x20is\x20set\x20to\x20\x22'+_0x5cbaa9+_0x195318(0x20e));return;}_0x832746=_0x832746||{};const _0x2ee28e=mergeConfigs(_0x832746);if(debuglet&&!_0x2ee28e[_0x195318(0x209)])throw new Error(_0x195318(0x1fa));const _0x4abd6b=new debug_1[(_0x195318(0x20d))](_0x2ee28e,pjson);return debuglet=new debuglet_1[(_0x195318(0x1f4))](_0x4abd6b,_0x2ee28e),debuglet[_0x195318(0x202)](),_0x2ee28e['testMode_']?debuglet:debuglet[_0x195318(0x211)];}exports[a33_0x27ce7c(0x202)]=start;function stop(){debuglet===null||debuglet===void 0x0?void 0x0:debuglet['stop'](),debuglet=null;}exports[a33_0x27ce7c(0x21e)]=stop;async function asyncStart(_0x1f9867){const _0x26fa77=a33_0x27ce7c;start(_0x1f9867);if(!debuglet)return;let _0x472231=![];const _0x924c1f=()=>_0x472231=!![];debuglet[_0x26fa77(0x203)](_0x26fa77(0x1fb),_0x81070e=>{if(_0x81070e)return;_0x924c1f();}),debuglet['once'](_0x26fa77(0x21a),_0x924c1f);if(debuglet['config'][_0x26fa77(0x212)]){const _0xb1f89c=Date[_0x26fa77(0x204)](),_0x1dd52d=debuglet['config'][_0x26fa77(0x219)];while(!_0x472231&&Date[_0x26fa77(0x204)]()-_0xb1f89c<_0x1dd52d){await new Promise(_0x5c4c8a=>setTimeout(_0x5c4c8a,0x64));}}debuglet[_0x26fa77(0x207)](_0x26fa77(0x21a))&&debuglet['removeListener'](_0x26fa77(0x21a),_0x924c1f);}exports[a33_0x27ce7c(0x1fc)]=asyncStart;function a33_0x3507(_0x41549c,_0x5be36d){const _0x550f52=a33_0x1cfa();return a33_0x3507=function(_0x4b5506,_0x4a49a3){_0x4b5506=_0x4b5506-0x1f3;let _0x1cfa9f=_0x550f52[_0x4b5506];return _0x1cfa9f;},a33_0x3507(_0x41549c,_0x5be36d);}function a33_0x1cfa(){const _0x19a4ff=['start','once','now','5026545syeLpJ','debug','listenerCount','assign','forceNewAgent_','search','log','10HjLfmo','Debug','\x22.\x20Lightrun\x20agent\x20is\x20disabled.','(((.+)+)+)+$','624001zLJZuy','isReadyManager','lightrunWaitForInit','constructor','791868kHbzAZ','apply','2137158IvmDwW','true','includes','lightrunInitWaitTimeMs','breakpoint_set','1778972nBwRJQ','env','get','stop','342LhYjuV','Debuglet','./agent/debuglet','50XEiAuX','../../package.json','toLowerCase','8QvkoJE','Debug\x20Agent\x20has\x20already\x20been\x20started','breakpoints_fetched','asyncStart','defineProperty','3813939aeZCGN','./client/stackdriver/debug','7768vwEUbh','toString'];a33_0x1cfa=function(){return _0x19a4ff;};return a33_0x1cfa();}function mergeConfigs(_0x47c3ff){const _0x3198c9=a33_0x27ce7c;if(!_0x47c3ff['debug'])return _0x47c3ff;const _0x571a4f=Object[_0x3198c9(0x208)]({},_0x47c3ff);return delete _0x571a4f[_0x3198c9(0x206)],Object[_0x3198c9(0x208)](_0x571a4f,_0x47c3ff['debug']);}function get(){return debuglet;}exports[a33_0x27ce7c(0x21d)]=get;
1
+ const a42_0x8f4834=a42_0x34ca;(function(_0x4f4080,_0x5b7e50){const _0x928408=a42_0x34ca,_0x391035=_0x4f4080();while(!![]){try{const _0x3edcfb=-parseInt(_0x928408(0x7f))/0x1+parseInt(_0x928408(0x8a))/0x2+-parseInt(_0x928408(0x92))/0x3+parseInt(_0x928408(0x74))/0x4*(-parseInt(_0x928408(0x7e))/0x5)+-parseInt(_0x928408(0x81))/0x6*(-parseInt(_0x928408(0x8b))/0x7)+parseInt(_0x928408(0x88))/0x8+parseInt(_0x928408(0x7d))/0x9*(-parseInt(_0x928408(0x76))/0xa);if(_0x3edcfb===_0x5b7e50)break;else _0x391035['push'](_0x391035['shift']());}catch(_0x5d2942){_0x391035['push'](_0x391035['shift']());}}}(a42_0x382c,0x1d428));const a42_0x2a17e6=(function(){let _0x29f0c7=!![];return function(_0x26b23d,_0x542c9f){const _0x101104=_0x29f0c7?function(){if(_0x542c9f){const _0x3211ff=_0x542c9f['apply'](_0x26b23d,arguments);return _0x542c9f=null,_0x3211ff;}}:function(){};return _0x29f0c7=![],_0x101104;};}()),a42_0x5d5319=a42_0x2a17e6(this,function(){const _0x5c5c3b=a42_0x34ca;return a42_0x5d5319[_0x5c5c3b(0x84)]()['search'](_0x5c5c3b(0x7b))[_0x5c5c3b(0x84)]()[_0x5c5c3b(0x70)](a42_0x5d5319)[_0x5c5c3b(0x79)](_0x5c5c3b(0x7b));});a42_0x5d5319();'use strict';function a42_0x382c(){const _0x3b350b=['constructor','Env\x20variable\x20DISABLE_LIGHTRUN_AGENT\x20is\x20set\x20to\x20\x22','DISABLE_LIGHTRUN_AGENT','\x22.\x20Lightrun\x20agent\x20is\x20disabled.','28IFOxjQ','removeListener','160KrfZQk','debug','isReadyManager','search','start','(((.+)+)+)+$','Debuglet','50472RAxFHN','31945nMdkTL','78666oIpTWH','asyncStart','22152lXeWCU','once','Debug','toString','breakpoint_set','defineProperty','assign','771032LyPRzg','log','434962jcpzVK','301QTCYdU','get','Debug\x20Agent\x20has\x20already\x20been\x20started','toLowerCase','./agent/debuglet','__esModule','lightrunWaitForInit','418953mjIjXS','breakpoints_fetched','stop','./client/stackdriver/debug','now','config','true','forceNewAgent_'];a42_0x382c=function(){return _0x3b350b;};return a42_0x382c();}function a42_0x34ca(_0x178711,_0x3ed52b){const _0x50b236=a42_0x382c();return a42_0x34ca=function(_0x5d5319,_0x2a17e6){_0x5d5319=_0x5d5319-0x6e;let _0x382c27=_0x50b236[_0x5d5319];return _0x382c27;},a42_0x34ca(_0x178711,_0x3ed52b);}Object[a42_0x8f4834(0x86)](exports,a42_0x8f4834(0x90),{'value':!![]}),exports[a42_0x8f4834(0x8c)]=exports[a42_0x8f4834(0x80)]=exports[a42_0x8f4834(0x94)]=exports[a42_0x8f4834(0x7a)]=void 0x0;const debuglet_1=require(a42_0x8f4834(0x8f)),debug_1=require(a42_0x8f4834(0x95)),pjson=require('../../package.json');let debuglet;function start(_0x44d2e6){const _0x211323=a42_0x8f4834,_0x22eced=process['env'][_0x211323(0x72)];if(_0x22eced&&['1',_0x211323(0x6e)]['includes'](_0x22eced[_0x211323(0x8e)]())){console[_0x211323(0x89)](_0x211323(0x71)+_0x22eced+_0x211323(0x73));return;}_0x44d2e6=_0x44d2e6||{};const _0x29e9e9=mergeConfigs(_0x44d2e6);if(debuglet&&!_0x29e9e9[_0x211323(0x6f)])throw new Error(_0x211323(0x8d));const _0x557154=new debug_1[(_0x211323(0x83))](_0x29e9e9,pjson);return debuglet=new debuglet_1[(_0x211323(0x7c))](_0x557154,_0x29e9e9),debuglet[_0x211323(0x7a)](),_0x29e9e9['testMode_']?debuglet:debuglet[_0x211323(0x78)];}exports['start']=start;function stop(){const _0x4af553=a42_0x8f4834;debuglet===null||debuglet===void 0x0?void 0x0:debuglet[_0x4af553(0x94)](),debuglet=null;}exports['stop']=stop;async function asyncStart(_0x46677c){const _0xa0d8e1=a42_0x8f4834;start(_0x46677c);if(!debuglet)return;let _0x3e8ca3=![];const _0x2f9d25=()=>_0x3e8ca3=!![];debuglet[_0xa0d8e1(0x82)](_0xa0d8e1(0x93),_0x17c2cb=>{if(_0x17c2cb)return;_0x2f9d25();}),debuglet['once'](_0xa0d8e1(0x85),_0x2f9d25);if(debuglet[_0xa0d8e1(0x97)][_0xa0d8e1(0x91)]){const _0x57c672=Date['now'](),_0x199ee4=debuglet['config']['lightrunInitWaitTimeMs'];while(!_0x3e8ca3&&Date[_0xa0d8e1(0x96)]()-_0x57c672<_0x199ee4){await new Promise(_0x4f4264=>setTimeout(_0x4f4264,0x64));}}debuglet['listenerCount'](_0xa0d8e1(0x85))&&debuglet[_0xa0d8e1(0x75)]('breakpoint_set',_0x2f9d25);}exports[a42_0x8f4834(0x80)]=asyncStart;function mergeConfigs(_0x1bb798){const _0x3e2993=a42_0x8f4834;if(!_0x1bb798[_0x3e2993(0x77)])return _0x1bb798;const _0x1deb76=Object[_0x3e2993(0x87)]({},_0x1bb798);return delete _0x1deb76[_0x3e2993(0x77)],Object[_0x3e2993(0x87)](_0x1deb76,_0x1bb798[_0x3e2993(0x77)]);}function get(){return debuglet;}exports[a42_0x8f4834(0x8c)]=get;
@@ -1 +1 @@
1
- const a34_0x3ab297=a34_0x1e79;(function(_0x24d278,_0x544f12){const _0x45517c=a34_0x1e79,_0x2e5174=_0x24d278();while(!![]){try{const _0x1f9a81=parseInt(_0x45517c(0x11e))/0x1+-parseInt(_0x45517c(0x10f))/0x2+parseInt(_0x45517c(0x12b))/0x3+parseInt(_0x45517c(0x122))/0x4+parseInt(_0x45517c(0x10b))/0x5*(-parseInt(_0x45517c(0x10d))/0x6)+-parseInt(_0x45517c(0x112))/0x7*(-parseInt(_0x45517c(0x113))/0x8)+-parseInt(_0x45517c(0x129))/0x9*(parseInt(_0x45517c(0x116))/0xa);if(_0x1f9a81===_0x544f12)break;else _0x2e5174['push'](_0x2e5174['shift']());}catch(_0x5c8d4f){_0x2e5174['push'](_0x2e5174['shift']());}}}(a34_0xc113,0xef57b));const a34_0x49ac85=(function(){let _0x396956=!![];return function(_0x14527c,_0x528603){const _0x586cd9=_0x396956?function(){const _0x3fb845=a34_0x1e79;if(_0x528603){const _0x4e192a=_0x528603[_0x3fb845(0x11a)](_0x14527c,arguments);return _0x528603=null,_0x4e192a;}}:function(){};return _0x396956=![],_0x586cd9;};}()),a34_0x31056f=a34_0x49ac85(this,function(){const _0x2f9289=a34_0x1e79;return a34_0x31056f[_0x2f9289(0x123)]()[_0x2f9289(0x126)](_0x2f9289(0x120))[_0x2f9289(0x123)]()[_0x2f9289(0x118)](a34_0x31056f)['search']('(((.+)+)+)+$');});a34_0x31056f();function a34_0x1e79(_0x30e7b2,_0x61c4af){const _0x5b2c95=a34_0xc113();return a34_0x1e79=function(_0x31056f,_0x49ac85){_0x31056f=_0x31056f-0x10b;let _0xc1135f=_0x5b2c95[_0x31056f];return _0xc1135f;},a34_0x1e79(_0x30e7b2,_0x61c4af);}'use strict';Object['defineProperty'](exports,a34_0x3ab297(0x12d),{'value':!![]}),exports[a34_0x3ab297(0x11f)]=void 0x0;const lightrun=require(a34_0x3ab297(0x11d)),DEFAULT_API_ENDPOINT=a34_0x3ab297(0x125),DEFAULT_WAIT_FOR_INIT_MS=0x1388;class LightrunLambdaWrapper{constructor(_0x4e3034,_0x5ab13e,_0x27158b){const _0x216766=a34_0x3ab297;this[_0x216766(0x124)]=_0x4e3034,this[_0x216766(0x12a)]=_0x5ab13e,this[_0x216766(0x115)]=_0x27158b,this['isCallbackWrapperInvoked']=![];}async['run'](_0x1b4206,_0x4b1d3f={}){const _0x49b9d4=a34_0x3ab297;this[_0x49b9d4(0x11b)]=![],await this[_0x49b9d4(0x117)](_0x4b1d3f);let _0x45bee6=undefined;try{_0x45bee6=await _0x1b4206(this[_0x49b9d4(0x124)],this[_0x49b9d4(0x12a)],this['callbackWrapper'][_0x49b9d4(0x111)](this));}finally{await this['tryStop'](),this[_0x49b9d4(0x11b)]?this['callback'](this[_0x49b9d4(0x10e)],this[_0x49b9d4(0x110)]):this['callback'](null,_0x45bee6);}}async[a34_0x3ab297(0x117)](_0x104ab2={}){const _0x37904b=a34_0x3ab297;try{const _0x244b75=this['event'][_0x37904b(0x127)]||DEFAULT_API_ENDPOINT,_0x4e69da=this[_0x37904b(0x124)][_0x37904b(0x114)];await lightrun[_0x37904b(0x12c)]({'apiEndpoint':_0x244b75,'lightrunSecret':_0x4e69da,'lightrunInitWaitTimeMs':DEFAULT_WAIT_FOR_INIT_MS,..._0x104ab2,'forceNewAgent_':!![],'lightrunWaitForInit':!![]});}catch(_0x26faa8){console[_0x37904b(0x11c)](_0x37904b(0x128));}}async[a34_0x3ab297(0x10c)](){const _0x5d0320=a34_0x3ab297;try{await lightrun[_0x5d0320(0x119)]();}catch(_0x435fce){console[_0x5d0320(0x11c)](_0x5d0320(0x121));}}['callbackWrapper'](_0x22b195,_0x213829){const _0x30fc65=a34_0x3ab297;this[_0x30fc65(0x10e)]=_0x22b195,this[_0x30fc65(0x110)]=_0x213829,this[_0x30fc65(0x11b)]=!![];}}function a34_0xc113(){const _0x4a30a8=['isCallbackWrapperInvoked','log','./index','1661693eaMnlz','wrap','(((.+)+)+)+$','Failed\x20to\x20stop\x20the\x20Lightrun\x20agent','4347052yZLiJt','toString','event','app.lightrun.com','search','apiEndpoint','Failed\x20to\x20start\x20the\x20Lightrun\x20agent','14643mPmSJQ','context','4966362NRmAcx','asyncStart','__esModule','20msfWYw','tryStop','2427060zJleQU','error','3005108VOASue','response','bind','7pCiUMw','10930664DLotTp','lightrunSecret','callback','10260xUUNea','tryStart','constructor','stop','apply'];a34_0xc113=function(){return _0x4a30a8;};return a34_0xc113();}function wrap(_0x3f32c3,_0x2aeb2d){return(_0xc48ea,_0x137826,_0x2a462e)=>{const _0x52b79a=new LightrunLambdaWrapper(_0xc48ea,_0x137826,_0x2a462e);return _0x52b79a['run'](_0x3f32c3,_0x2aeb2d);};}exports[a34_0x3ab297(0x11f)]=wrap;
1
+ const a43_0x182422=a43_0x58e3;function a43_0x26bc(){const _0x52dd5e=['apply','constructor','wrap','context','6287010VLpWJA','apiEndpoint','277706mdvAYR','callback','6obFHvv','stop','response','18xGnMYR','isCallbackWrapperInvoked','error','4762616zrCVtJ','toString','Failed\x20to\x20start\x20the\x20Lightrun\x20agent','tryStop','5683923bQnoYm','run','log','event','tryStart','1437779HGzGdN','2926707CCLYUT','asyncStart','callbackWrapper','(((.+)+)+)+$','app.lightrun.com','./index','263512tpTGKN'];a43_0x26bc=function(){return _0x52dd5e;};return a43_0x26bc();}(function(_0x1806ae,_0x226833){const _0xd4ac7d=a43_0x58e3,_0x2cba95=_0x1806ae();while(!![]){try{const _0x186fd4=parseInt(_0xd4ac7d(0x1a7))/0x1*(-parseInt(_0xd4ac7d(0x1a9))/0x2)+parseInt(_0xd4ac7d(0x1b9))/0x3+-parseInt(_0xd4ac7d(0x1a0))/0x4+parseInt(_0xd4ac7d(0x1a5))/0x5+-parseInt(_0xd4ac7d(0x1ac))/0x6*(parseInt(_0xd4ac7d(0x1b8))/0x7)+parseInt(_0xd4ac7d(0x1af))/0x8+-parseInt(_0xd4ac7d(0x1b3))/0x9;if(_0x186fd4===_0x226833)break;else _0x2cba95['push'](_0x2cba95['shift']());}catch(_0xeb0cac){_0x2cba95['push'](_0x2cba95['shift']());}}}(a43_0x26bc,0xa665c));const a43_0x471e9f=(function(){let _0x3234e9=!![];return function(_0x40d0d4,_0x3fb0a3){const _0x796d5a=_0x3234e9?function(){const _0x57841c=a43_0x58e3;if(_0x3fb0a3){const _0x4204c5=_0x3fb0a3[_0x57841c(0x1a1)](_0x40d0d4,arguments);return _0x3fb0a3=null,_0x4204c5;}}:function(){};return _0x3234e9=![],_0x796d5a;};}()),a43_0x44515d=a43_0x471e9f(this,function(){const _0x58afed=a43_0x58e3;return a43_0x44515d[_0x58afed(0x1b0)]()['search'](_0x58afed(0x19d))[_0x58afed(0x1b0)]()[_0x58afed(0x1a2)](a43_0x44515d)['search']('(((.+)+)+)+$');});a43_0x44515d();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a43_0x182422(0x1a3)]=void 0x0;function a43_0x58e3(_0x1b872c,_0x3e2bd8){const _0x1ab910=a43_0x26bc();return a43_0x58e3=function(_0x44515d,_0x471e9f){_0x44515d=_0x44515d-0x19d;let _0x26bc56=_0x1ab910[_0x44515d];return _0x26bc56;},a43_0x58e3(_0x1b872c,_0x3e2bd8);}const lightrun=require(a43_0x182422(0x19f)),DEFAULT_API_ENDPOINT=a43_0x182422(0x19e),DEFAULT_WAIT_FOR_INIT_MS=0x1388;class LightrunLambdaWrapper{constructor(_0x14f1f1,_0x32e1a7,_0xb74c2a){const _0x42eb69=a43_0x182422;this['event']=_0x14f1f1,this['context']=_0x32e1a7,this[_0x42eb69(0x1a8)]=_0xb74c2a,this[_0x42eb69(0x1ad)]=![];}async[a43_0x182422(0x1b4)](_0x24d782,_0x4214e9={}){const _0x20277a=a43_0x182422;this[_0x20277a(0x1ad)]=![],await this[_0x20277a(0x1b7)](_0x4214e9);let _0x196256=undefined;try{_0x196256=await _0x24d782(this[_0x20277a(0x1b6)],this[_0x20277a(0x1a4)],this[_0x20277a(0x1bb)]['bind'](this));}finally{await this[_0x20277a(0x1b2)](),this[_0x20277a(0x1ad)]?this['callback'](this[_0x20277a(0x1ae)],this['response']):this['callback'](null,_0x196256);}}async[a43_0x182422(0x1b7)](_0x5c99fe={}){const _0x3569fb=a43_0x182422;try{const _0x525232=this[_0x3569fb(0x1b6)][_0x3569fb(0x1a6)]||DEFAULT_API_ENDPOINT,_0x396137=this['event']['lightrunSecret'];await lightrun[_0x3569fb(0x1ba)]({'apiEndpoint':_0x525232,'lightrunSecret':_0x396137,'lightrunInitWaitTimeMs':DEFAULT_WAIT_FOR_INIT_MS,..._0x5c99fe,'forceNewAgent_':!![],'lightrunWaitForInit':!![]});}catch(_0x5b784c){console[_0x3569fb(0x1b5)](_0x3569fb(0x1b1));}}async[a43_0x182422(0x1b2)](){const _0x22f3d0=a43_0x182422;try{await lightrun[_0x22f3d0(0x1aa)]();}catch(_0x1982fc){console[_0x22f3d0(0x1b5)]('Failed\x20to\x20stop\x20the\x20Lightrun\x20agent');}}[a43_0x182422(0x1bb)](_0x1e5d96,_0x515412){const _0x3e1852=a43_0x182422;this[_0x3e1852(0x1ae)]=_0x1e5d96,this[_0x3e1852(0x1ab)]=_0x515412,this[_0x3e1852(0x1ad)]=!![];}}function wrap(_0x437856,_0x510469){return(_0x2bd16a,_0x33f8d3,_0x4eb595)=>{const _0x10cf03=a43_0x58e3,_0x360dfd=new LightrunLambdaWrapper(_0x2bd16a,_0x33f8d3,_0x4eb595);return _0x360dfd[_0x10cf03(0x1b4)](_0x437856,_0x510469);};}exports[a43_0x182422(0x1a3)]=wrap;
@@ -1 +1 @@
1
- 1.23.0-release.be8ea701a1
1
+ 1.24.0-release.5c0272a332
@@ -1 +1 @@
1
- var a35_0x3f6158=a35_0x4358;(function(_0x2298b3,_0x2a3b95){var _0xc2b7b7=a35_0x4358,_0x41ced3=_0x2298b3();while(!![]){try{var _0x1bbabd=-parseInt(_0xc2b7b7(0x176))/0x1+parseInt(_0xc2b7b7(0x182))/0x2*(-parseInt(_0xc2b7b7(0x181))/0x3)+-parseInt(_0xc2b7b7(0x179))/0x4+-parseInt(_0xc2b7b7(0x174))/0x5+parseInt(_0xc2b7b7(0x17e))/0x6+-parseInt(_0xc2b7b7(0x17f))/0x7*(parseInt(_0xc2b7b7(0x17c))/0x8)+-parseInt(_0xc2b7b7(0x184))/0x9*(-parseInt(_0xc2b7b7(0x178))/0xa);if(_0x1bbabd===_0x2a3b95)break;else _0x41ced3['push'](_0x41ced3['shift']());}catch(_0x26525a){_0x41ced3['push'](_0x41ced3['shift']());}}}(a35_0x2931,0x4620d));var a35_0x3bf517=(function(){var _0x2155a9=!![];return function(_0x43cb1a,_0x361bb4){var _0x1efb0b=_0x2155a9?function(){var _0x16c48b=a35_0x4358;if(_0x361bb4){var _0x2a8c58=_0x361bb4[_0x16c48b(0x17b)](_0x43cb1a,arguments);return _0x361bb4=null,_0x2a8c58;}}:function(){};return _0x2155a9=![],_0x1efb0b;};}()),a35_0x46145c=a35_0x3bf517(this,function(){var _0xb25c0f=a35_0x4358;return a35_0x46145c[_0xb25c0f(0x172)]()['search'](_0xb25c0f(0x17a))[_0xb25c0f(0x172)]()[_0xb25c0f(0x177)](a35_0x46145c)[_0xb25c0f(0x173)](_0xb25c0f(0x17a));});function a35_0x4358(_0x55450a,_0xc08640){var _0x4b4828=a35_0x2931();return a35_0x4358=function(_0x46145c,_0x3bf517){_0x46145c=_0x46145c-0x172;var _0x293141=_0x4b4828[_0x46145c];return _0x293141;},a35_0x4358(_0x55450a,_0xc08640);}a35_0x46145c();function a35_0x2931(){var _0x2eedb8=['BY_NAME','toString','search','2045485gEhFld','defineProperty','377975pDtWnV','constructor','605090WBwIin','151368XasEkz','(((.+)+)+)+$','apply','2145832kCavfG','PatternDTOTypeEnum','2117142nYoGAS','7HWNbWQ','__esModule','3qyxGGy','244280hesvVi','BY_VALUE','171qmTdgY'];a35_0x2931=function(){return _0x2eedb8;};return a35_0x2931();}'use strict';Object[a35_0x3f6158(0x175)](exports,a35_0x3f6158(0x180),{'value':!![]}),exports['PatternDTOTypeEnum']=void 0x0,exports[a35_0x3f6158(0x17d)]={'Name':a35_0x3f6158(0x185),'Value':a35_0x3f6158(0x183)};
1
+ var a44_0x193a11=a44_0x1598;function a44_0x1598(_0x4037ae,_0xade362){var _0x8a95c0=a44_0x46db();return a44_0x1598=function(_0x44a308,_0x44db5a){_0x44a308=_0x44a308-0x162;var _0x46db19=_0x8a95c0[_0x44a308];return _0x46db19;},a44_0x1598(_0x4037ae,_0xade362);}(function(_0x566fa3,_0x5b7d4e){var _0x1b91e1=a44_0x1598,_0x55c2fa=_0x566fa3();while(!![]){try{var _0x26f01d=-parseInt(_0x1b91e1(0x16b))/0x1*(parseInt(_0x1b91e1(0x16e))/0x2)+-parseInt(_0x1b91e1(0x163))/0x3+parseInt(_0x1b91e1(0x171))/0x4+parseInt(_0x1b91e1(0x170))/0x5*(-parseInt(_0x1b91e1(0x16c))/0x6)+-parseInt(_0x1b91e1(0x16f))/0x7*(parseInt(_0x1b91e1(0x162))/0x8)+-parseInt(_0x1b91e1(0x16a))/0x9+-parseInt(_0x1b91e1(0x172))/0xa*(-parseInt(_0x1b91e1(0x164))/0xb);if(_0x26f01d===_0x5b7d4e)break;else _0x55c2fa['push'](_0x55c2fa['shift']());}catch(_0xc5d1dd){_0x55c2fa['push'](_0x55c2fa['shift']());}}}(a44_0x46db,0x33ebd));function a44_0x46db(){var _0x3a5c84=['80785hSFCSH','972844gUOMiV','37770JkrbtH','8Jtizzp','972543CqPPSw','4763DgzvgD','(((.+)+)+)+$','BY_NAME','toString','BY_VALUE','search','3777984oHuFUh','362383BYFwQT','78WxRpDD','PatternDTOTypeEnum','2sfYoZa','2447214kPnGFG'];a44_0x46db=function(){return _0x3a5c84;};return a44_0x46db();}var a44_0x44db5a=(function(){var _0x1f10c5=!![];return function(_0x46877b,_0x26e9fd){var _0x376af1=_0x1f10c5?function(){if(_0x26e9fd){var _0x41e7fe=_0x26e9fd['apply'](_0x46877b,arguments);return _0x26e9fd=null,_0x41e7fe;}}:function(){};return _0x1f10c5=![],_0x376af1;};}()),a44_0x44a308=a44_0x44db5a(this,function(){var _0x993bb2=a44_0x1598;return a44_0x44a308[_0x993bb2(0x167)]()[_0x993bb2(0x169)](_0x993bb2(0x165))[_0x993bb2(0x167)]()['constructor'](a44_0x44a308)[_0x993bb2(0x169)](_0x993bb2(0x165));});a44_0x44a308();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a44_0x193a11(0x16d)]=void 0x0,exports[a44_0x193a11(0x16d)]={'Name':a44_0x193a11(0x166),'Value':a44_0x193a11(0x168)};