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,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_0x5e217a=a42_0x17a9;(function(_0xb1508d,_0x3a4472){const _0x3177f2=a42_0x17a9,_0x3ae0dc=_0xb1508d();while(!![]){try{const _0x2f7934=-parseInt(_0x3177f2(0x1e8))/0x1*(-parseInt(_0x3177f2(0x1e9))/0x2)+-parseInt(_0x3177f2(0x204))/0x3+parseInt(_0x3177f2(0x1f7))/0x4*(-parseInt(_0x3177f2(0x1f0))/0x5)+-parseInt(_0x3177f2(0x1fb))/0x6+-parseInt(_0x3177f2(0x1f6))/0x7+-parseInt(_0x3177f2(0x1e0))/0x8+parseInt(_0x3177f2(0x1df))/0x9*(parseInt(_0x3177f2(0x203))/0xa);if(_0x2f7934===_0x3a4472)break;else _0x3ae0dc['push'](_0x3ae0dc['shift']());}catch(_0x56f4c8){_0x3ae0dc['push'](_0x3ae0dc['shift']());}}}(a42_0x1f06,0x227ac));const a42_0x21dcb2=(function(){let _0x3a9198=!![];return function(_0x5f3f99,_0x96fcd7){const _0x16cf44=_0x3a9198?function(){const _0x271140=a42_0x17a9;if(_0x96fcd7){const _0x312108=_0x96fcd7[_0x271140(0x1fe)](_0x5f3f99,arguments);return _0x96fcd7=null,_0x312108;}}:function(){};return _0x3a9198=![],_0x16cf44;};}()),a42_0xbde8e2=a42_0x21dcb2(this,function(){const _0x41275a=a42_0x17a9;return a42_0xbde8e2['toString']()['search'](_0x41275a(0x1d9))[_0x41275a(0x1f3)]()[_0x41275a(0x1dc)](a42_0xbde8e2)[_0x41275a(0x1f9)]('(((.+)+)+)+$');});a42_0xbde8e2();'use strict';function a42_0x17a9(_0x5ea918,_0x300b60){const _0x349bd4=a42_0x1f06();return a42_0x17a9=function(_0xbde8e2,_0x21dcb2){_0xbde8e2=_0xbde8e2-0x1d9;let _0x1f064e=_0x349bd4[_0xbde8e2];return _0x1f064e;},a42_0x17a9(_0x5ea918,_0x300b60);}Object['defineProperty'](exports,a42_0x5e217a(0x1da),{'value':!![]}),exports[a42_0x5e217a(0x1ff)]=exports[a42_0x5e217a(0x1f2)]=exports['stop']=exports[a42_0x5e217a(0x1dd)]=void 0x0;const debuglet_1=require('./agent/debuglet'),debug_1=require(a42_0x5e217a(0x1ed)),pjson=require(a42_0x5e217a(0x1e3));let debuglet;function start(_0x2aa920){const _0x3c72bd=a42_0x5e217a,_0x41afe5=process[_0x3c72bd(0x1ec)][_0x3c72bd(0x201)];if(_0x41afe5&&['1',_0x3c72bd(0x1db)][_0x3c72bd(0x200)](_0x41afe5[_0x3c72bd(0x1ee)]())){console[_0x3c72bd(0x202)]('Env\x20variable\x20DISABLE_LIGHTRUN_AGENT\x20is\x20set\x20to\x20\x22'+_0x41afe5+_0x3c72bd(0x1eb));return;}_0x2aa920=_0x2aa920||{};const _0x474d54=mergeConfigs(_0x2aa920);if(debuglet&&!_0x474d54[_0x3c72bd(0x1e6)])throw new Error(_0x3c72bd(0x1ea));const _0x32e790=new debug_1[(_0x3c72bd(0x1e5))](_0x474d54,pjson);return debuglet=new debuglet_1[(_0x3c72bd(0x1fd))](_0x32e790,_0x474d54),debuglet['start'](),_0x474d54[_0x3c72bd(0x1e1)]?debuglet:debuglet[_0x3c72bd(0x1de)];}function a42_0x1f06(){const _0x417161=['394389zwswkz','(((.+)+)+)+$','__esModule','true','constructor','start','isReadyManager','9HXOEah','228752frIfwq','testMode_','config','../../package.json','breakpoints_fetched','Debug','forceNewAgent_','now','1SdmXpj','355406XyvOeg','Debug\x20Agent\x20has\x20already\x20been\x20started','\x22.\x20Lightrun\x20agent\x20is\x20disabled.','env','./client/stackdriver/debug','toLowerCase','debug','703155uSbHYC','breakpoint_set','asyncStart','toString','lightrunWaitForInit','assign','1266013GnpEWr','4rjyfrD','removeListener','search','once','206970ywkKlE','stop','Debuglet','apply','get','includes','DISABLE_LIGHTRUN_AGENT','log','4795670IuaFUq'];a42_0x1f06=function(){return _0x417161;};return a42_0x1f06();}exports[a42_0x5e217a(0x1dd)]=start;function stop(){const _0x31fcb0=a42_0x5e217a;debuglet===null||debuglet===void 0x0?void 0x0:debuglet[_0x31fcb0(0x1fc)](),debuglet=null;}exports[a42_0x5e217a(0x1fc)]=stop;async function asyncStart(_0x279722){const _0x135c80=a42_0x5e217a;start(_0x279722);if(!debuglet)return;let _0x1992f4=![];const _0x26fdf7=()=>_0x1992f4=!![];debuglet[_0x135c80(0x1fa)](_0x135c80(0x1e4),_0x5cb8a6=>{if(_0x5cb8a6)return;_0x26fdf7();}),debuglet['once'](_0x135c80(0x1f1),_0x26fdf7);if(debuglet[_0x135c80(0x1e2)][_0x135c80(0x1f4)]){const _0x36daa0=Date[_0x135c80(0x1e7)](),_0x49b034=debuglet[_0x135c80(0x1e2)]['lightrunInitWaitTimeMs'];while(!_0x1992f4&&Date[_0x135c80(0x1e7)]()-_0x36daa0<_0x49b034){await new Promise(_0x3b0e83=>setTimeout(_0x3b0e83,0x64));}}debuglet['listenerCount'](_0x135c80(0x1f1))&&debuglet[_0x135c80(0x1f8)](_0x135c80(0x1f1),_0x26fdf7);}exports[a42_0x5e217a(0x1f2)]=asyncStart;function mergeConfigs(_0x164ce5){const _0x13d670=a42_0x5e217a;if(!_0x164ce5['debug'])return _0x164ce5;const _0x336867=Object[_0x13d670(0x1f5)]({},_0x164ce5);return delete _0x336867[_0x13d670(0x1ef)],Object[_0x13d670(0x1f5)](_0x336867,_0x164ce5['debug']);}function get(){return debuglet;}exports[a42_0x5e217a(0x1ff)]=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_0x49bf57=a43_0x1119;(function(_0x2a28e1,_0x84a701){const _0x2d2b64=a43_0x1119,_0x52845a=_0x2a28e1();while(!![]){try{const _0x5c50aa=-parseInt(_0x2d2b64(0x1f7))/0x1+-parseInt(_0x2d2b64(0x1e7))/0x2*(parseInt(_0x2d2b64(0x1f6))/0x3)+-parseInt(_0x2d2b64(0x204))/0x4+parseInt(_0x2d2b64(0x1eb))/0x5+parseInt(_0x2d2b64(0x1f8))/0x6+parseInt(_0x2d2b64(0x1ea))/0x7+-parseInt(_0x2d2b64(0x1fc))/0x8*(-parseInt(_0x2d2b64(0x1ec))/0x9);if(_0x5c50aa===_0x84a701)break;else _0x52845a['push'](_0x52845a['shift']());}catch(_0x5f0403){_0x52845a['push'](_0x52845a['shift']());}}}(a43_0x398d,0x8127b));const a43_0xa1cd62=(function(){let _0x313227=!![];return function(_0x1fd5b4,_0x1c73d2){const _0x3ede58=_0x313227?function(){if(_0x1c73d2){const _0x7cf06d=_0x1c73d2['apply'](_0x1fd5b4,arguments);return _0x1c73d2=null,_0x7cf06d;}}:function(){};return _0x313227=![],_0x3ede58;};}()),a43_0xb2e2d8=a43_0xa1cd62(this,function(){const _0x9e4fcb=a43_0x1119;return a43_0xb2e2d8[_0x9e4fcb(0x1ed)]()['search'](_0x9e4fcb(0x1f1))[_0x9e4fcb(0x1ed)]()[_0x9e4fcb(0x1fd)](a43_0xb2e2d8)['search'](_0x9e4fcb(0x1f1));});a43_0xb2e2d8();function a43_0x398d(){const _0x257785=['78UnkiMX','callbackWrapper','tryStop','5460714RGsmSd','1391845GzPjWu','297522wLliHV','toString','response','callback','tryStart','(((.+)+)+)+$','error','context','defineProperty','lightrunSecret','8751bUnGDX','981508jfrfak','1419936GDSGGN','wrap','apiEndpoint','Failed\x20to\x20stop\x20the\x20Lightrun\x20agent','200sMxITz','constructor','isCallbackWrapperInvoked','run','__esModule','stop','event','log','1989148MfHQdc','Failed\x20to\x20start\x20the\x20Lightrun\x20agent'];a43_0x398d=function(){return _0x257785;};return a43_0x398d();}'use strict';function a43_0x1119(_0x4d6db2,_0x996eed){const _0x301892=a43_0x398d();return a43_0x1119=function(_0xb2e2d8,_0xa1cd62){_0xb2e2d8=_0xb2e2d8-0x1e6;let _0x398da1=_0x301892[_0xb2e2d8];return _0x398da1;},a43_0x1119(_0x4d6db2,_0x996eed);}Object[a43_0x49bf57(0x1f4)](exports,a43_0x49bf57(0x200),{'value':!![]}),exports[a43_0x49bf57(0x1f9)]=void 0x0;const lightrun=require('./index'),DEFAULT_API_ENDPOINT='app.lightrun.com',DEFAULT_WAIT_FOR_INIT_MS=0x1388;class LightrunLambdaWrapper{constructor(_0x31c070,_0xbf0dcb,_0x1859e4){const _0x25135f=a43_0x49bf57;this['event']=_0x31c070,this[_0x25135f(0x1f3)]=_0xbf0dcb,this[_0x25135f(0x1ef)]=_0x1859e4,this[_0x25135f(0x1fe)]=![];}async[a43_0x49bf57(0x1ff)](_0x42d487,_0x1244d2={}){const _0x2ecf08=a43_0x49bf57;this[_0x2ecf08(0x1fe)]=![],await this['tryStart'](_0x1244d2);let _0x49180e=undefined;try{_0x49180e=await _0x42d487(this[_0x2ecf08(0x202)],this['context'],this[_0x2ecf08(0x1e8)]['bind'](this));}finally{await this['tryStop'](),this['isCallbackWrapperInvoked']?this['callback'](this[_0x2ecf08(0x1f2)],this[_0x2ecf08(0x1ee)]):this[_0x2ecf08(0x1ef)](null,_0x49180e);}}async[a43_0x49bf57(0x1f0)](_0xef7ce7={}){const _0x3b2c33=a43_0x49bf57;try{const _0x320625=this[_0x3b2c33(0x202)][_0x3b2c33(0x1fa)]||DEFAULT_API_ENDPOINT,_0x5c7869=this[_0x3b2c33(0x202)][_0x3b2c33(0x1f5)];await lightrun['asyncStart']({'apiEndpoint':_0x320625,'lightrunSecret':_0x5c7869,'lightrunInitWaitTimeMs':DEFAULT_WAIT_FOR_INIT_MS,..._0xef7ce7,'forceNewAgent_':!![],'lightrunWaitForInit':!![]});}catch(_0x2f551b){console[_0x3b2c33(0x203)](_0x3b2c33(0x1e6));}}async[a43_0x49bf57(0x1e9)](){const _0x434068=a43_0x49bf57;try{await lightrun[_0x434068(0x201)]();}catch(_0x359436){console[_0x434068(0x203)](_0x434068(0x1fb));}}[a43_0x49bf57(0x1e8)](_0xc09b3d,_0x3b10bc){const _0x2a3aba=a43_0x49bf57;this['error']=_0xc09b3d,this[_0x2a3aba(0x1ee)]=_0x3b10bc,this[_0x2a3aba(0x1fe)]=!![];}}function wrap(_0x471023,_0xd6c515){return(_0x4206a5,_0x119d8e,_0x2bcfd0)=>{const _0x7e86d7=a43_0x1119,_0x8dd06d=new LightrunLambdaWrapper(_0x4206a5,_0x119d8e,_0x2bcfd0);return _0x8dd06d[_0x7e86d7(0x1ff)](_0x471023,_0xd6c515);};}exports['wrap']=wrap;
@@ -1 +1 @@
1
- 1.23.0-release.be8ea701a1
1
+ 1.25.0-release.ca91e76430
@@ -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_0x5746c7=a44_0x5894;function a44_0x5894(_0xb0cfda,_0xe483e1){var _0x4b34f0=a44_0x5ec9();return a44_0x5894=function(_0x55ac7c,_0xc98324){_0x55ac7c=_0x55ac7c-0xc9;var _0x5ec9a3=_0x4b34f0[_0x55ac7c];return _0x5ec9a3;},a44_0x5894(_0xb0cfda,_0xe483e1);}(function(_0x9bff8d,_0x3a0eb1){var _0x4b3eb3=a44_0x5894,_0x17f0a8=_0x9bff8d();while(!![]){try{var _0x4e0846=-parseInt(_0x4b3eb3(0xd1))/0x1+-parseInt(_0x4b3eb3(0xd0))/0x2+-parseInt(_0x4b3eb3(0xda))/0x3+-parseInt(_0x4b3eb3(0xd9))/0x4+parseInt(_0x4b3eb3(0xcc))/0x5*(parseInt(_0x4b3eb3(0xd5))/0x6)+parseInt(_0x4b3eb3(0xcd))/0x7*(parseInt(_0x4b3eb3(0xd8))/0x8)+-parseInt(_0x4b3eb3(0xd4))/0x9*(-parseInt(_0x4b3eb3(0xdb))/0xa);if(_0x4e0846===_0x3a0eb1)break;else _0x17f0a8['push'](_0x17f0a8['shift']());}catch(_0x585489){_0x17f0a8['push'](_0x17f0a8['shift']());}}}(a44_0x5ec9,0x76453));var a44_0xc98324=(function(){var _0x43f7b7=!![];return function(_0x18d563,_0x43c22a){var _0x4bebc3=_0x43f7b7?function(){var _0x50c26c=a44_0x5894;if(_0x43c22a){var _0x157674=_0x43c22a[_0x50c26c(0xd2)](_0x18d563,arguments);return _0x43c22a=null,_0x157674;}}:function(){};return _0x43f7b7=![],_0x4bebc3;};}()),a44_0x55ac7c=a44_0xc98324(this,function(){var _0x4a64ce=a44_0x5894;return a44_0x55ac7c[_0x4a64ce(0xca)]()[_0x4a64ce(0xcb)]('(((.+)+)+)+$')[_0x4a64ce(0xca)]()[_0x4a64ce(0xd3)](a44_0x55ac7c)[_0x4a64ce(0xcb)](_0x4a64ce(0xce));});a44_0x55ac7c();function a44_0x5ec9(){var _0x4d0715=['1475536HnPFUs','900424sKDMte','83988keOxVO','10SCGBYK','BY_VALUE','defineProperty','toString','search','5cHvmup','21tnnlKB','(((.+)+)+)+$','__esModule','490828CMVNIW','86227QmkEoi','apply','constructor','723267gVmnNa','2612934zVzlkM','BY_NAME','PatternDTOTypeEnum'];a44_0x5ec9=function(){return _0x4d0715;};return a44_0x5ec9();}'use strict';Object[a44_0x5746c7(0xc9)](exports,a44_0x5746c7(0xcf),{'value':!![]}),exports[a44_0x5746c7(0xd7)]=void 0x0,exports[a44_0x5746c7(0xd7)]={'Name':a44_0x5746c7(0xd6),'Value':a44_0x5746c7(0xdc)};