lightrun 1.22.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/agent/agent-logger.js +1 -1
- package/build/src/agent/blocklisting/blocklisting-patterns.js +1 -1
- package/build/src/agent/blocklisting/dummy-blocklist-manager.js +1 -1
- package/build/src/agent/blocklisting/patterns-blocklist-manager.js +1 -1
- package/build/src/agent/config.js +1 -1
- package/build/src/agent/configuration-provider.js +1 -1
- package/build/src/agent/controller.js +1 -1
- package/build/src/agent/debuglet-helpers/createDebuggee.js +1 -0
- package/build/src/agent/debuglet-helpers/createDebuggeeMetadata.js +1 -0
- package/build/src/agent/debuglet-helpers/createUniquifier.js +1 -0
- package/build/src/agent/debuglet-helpers/delimit.js +1 -0
- package/build/src/agent/debuglet-helpers/format.js +1 -0
- package/build/src/agent/debuglet-helpers/getAgentConfig.js +1 -0
- package/build/src/agent/debuglet-helpers/getPlatform.js +1 -0
- package/build/src/agent/debuglet-helpers/mapSubtract.js +1 -0
- package/build/src/agent/debuglet-helpers/normalizeConfig.js +1 -0
- package/build/src/agent/debuglet-helpers/tokenize.js +1 -0
- package/build/src/agent/debuglet.js +1 -1
- package/build/src/agent/environment-metadata.js +1 -1
- package/build/src/agent/io/file-index.js +1 -1
- package/build/src/agent/io/scan-results.js +1 -1
- package/build/src/agent/io/scanner.js +1 -1
- package/build/src/agent/io/sourcemapper.js +1 -1
- package/build/src/agent/leaky-bucket.js +1 -1
- package/build/src/agent/log-data.js +1 -1
- package/build/src/agent/piping-manager.js +1 -1
- package/build/src/agent/quota-manager.js +1 -1
- package/build/src/agent/reduction/redaction-manager-re2js.js +1 -1
- package/build/src/agent/reduction/redaction-manager.js +1 -1
- package/build/src/agent/state/inspector-state.js +1 -1
- package/build/src/agent/state/legacy-state.js +1 -1
- package/build/src/agent/util/debug-assert.js +1 -1
- package/build/src/agent/util/utils.js +1 -1
- package/build/src/agent/util/validator.js +1 -1
- package/build/src/agent/v8/debugapi.js +1 -1
- package/build/src/agent/v8/inspector-debugapi.js +1 -1
- package/build/src/agent/v8/legacy-debugapi.js +1 -1
- package/build/src/agent/v8/v8inspector.js +1 -1
- package/build/src/client/stackdriver/debug.js +1 -1
- package/build/src/client/stackdriver/status-message.js +1 -1
- package/build/src/debuggee.js +1 -1
- package/build/src/gcp.js +1 -1
- package/build/src/index.d.ts +561 -18
- package/build/src/index.js +1 -1
- package/build/src/lambda.js +1 -1
- package/build/src/resources/version.txt +1 -1
- package/build/src/types/lightrun.js +1 -1
- package/build/src/types/stackdriver.js +1 -1
- package/build/src/types/v8.js +1 -1
- package/package.json +8 -11
- package/build/src/agent/agent-logger.d.ts +0 -10
- package/build/src/agent/agent-logger.js.map +0 -1
- package/build/src/agent/blocklisting/blocklisting-patterns.d.ts +0 -6
- package/build/src/agent/blocklisting/blocklisting-patterns.js.map +0 -1
- package/build/src/agent/blocklisting/dummy-blocklist-manager.d.ts +0 -6
- package/build/src/agent/blocklisting/dummy-blocklist-manager.js.map +0 -1
- package/build/src/agent/blocklisting/patterns-blocklist-manager.d.ts +0 -10
- package/build/src/agent/blocklisting/patterns-blocklist-manager.js.map +0 -1
- package/build/src/agent/config.d.ts +0 -418
- package/build/src/agent/config.js.map +0 -1
- package/build/src/agent/configuration-provider.d.ts +0 -19
- package/build/src/agent/configuration-provider.js.map +0 -1
- package/build/src/agent/controller.d.ts +0 -71
- package/build/src/agent/controller.js.map +0 -1
- package/build/src/agent/debuglet.d.ts +0 -234
- package/build/src/agent/debuglet.js.map +0 -1
- package/build/src/agent/environment-metadata.d.ts +0 -36
- package/build/src/agent/environment-metadata.js.map +0 -1
- package/build/src/agent/io/file-index.d.ts +0 -76
- package/build/src/agent/io/file-index.js.map +0 -1
- package/build/src/agent/io/scan-results.d.ts +0 -60
- package/build/src/agent/io/scan-results.js.map +0 -1
- package/build/src/agent/io/scanner.d.ts +0 -43
- package/build/src/agent/io/scanner.js.map +0 -1
- package/build/src/agent/io/sourcemapper.d.ts +0 -72
- package/build/src/agent/io/sourcemapper.js.map +0 -1
- package/build/src/agent/leaky-bucket.d.ts +0 -16
- package/build/src/agent/leaky-bucket.js.map +0 -1
- package/build/src/agent/log-data.d.ts +0 -13
- package/build/src/agent/log-data.js.map +0 -1
- package/build/src/agent/piping-manager.d.ts +0 -39
- package/build/src/agent/piping-manager.js.map +0 -1
- package/build/src/agent/quota-manager.d.ts +0 -40
- package/build/src/agent/quota-manager.js.map +0 -1
- package/build/src/agent/reduction/redaction-manager-re2.d.ts +0 -8
- package/build/src/agent/reduction/redaction-manager-re2.js +0 -1
- package/build/src/agent/reduction/redaction-manager-re2.js.map +0 -1
- package/build/src/agent/reduction/redaction-manager-re2js.d.ts +0 -8
- package/build/src/agent/reduction/redaction-manager-re2js.js.map +0 -1
- package/build/src/agent/reduction/redaction-manager.d.ts +0 -6
- package/build/src/agent/reduction/redaction-manager.js.map +0 -1
- package/build/src/agent/state/inspector-state.d.ts +0 -28
- package/build/src/agent/state/inspector-state.js.map +0 -1
- package/build/src/agent/state/legacy-state.d.ts +0 -22
- package/build/src/agent/state/legacy-state.js.map +0 -1
- package/build/src/agent/util/debug-assert.d.ts +0 -22
- package/build/src/agent/util/debug-assert.js.map +0 -1
- package/build/src/agent/util/utils.d.ts +0 -65
- package/build/src/agent/util/utils.js.map +0 -1
- package/build/src/agent/util/validator.d.ts +0 -12
- package/build/src/agent/util/validator.js.map +0 -1
- package/build/src/agent/v8/debugapi.d.ts +0 -23
- package/build/src/agent/v8/debugapi.js.map +0 -1
- package/build/src/agent/v8/inspector-debugapi.d.ts +0 -82
- package/build/src/agent/v8/inspector-debugapi.js.map +0 -1
- package/build/src/agent/v8/legacy-debugapi.d.ts +0 -58
- package/build/src/agent/v8/legacy-debugapi.js.map +0 -1
- package/build/src/agent/v8/v8inspector.d.ts +0 -53
- package/build/src/agent/v8/v8inspector.js.map +0 -1
- package/build/src/client/stackdriver/debug.d.ts +0 -43
- package/build/src/client/stackdriver/debug.js.map +0 -1
- package/build/src/client/stackdriver/status-message.d.ts +0 -35
- package/build/src/client/stackdriver/status-message.js.map +0 -1
- package/build/src/debuggee.d.ts +0 -80
- package/build/src/debuggee.js.map +0 -1
- package/build/src/gcp.d.ts +0 -2
- package/build/src/gcp.js.map +0 -1
- package/build/src/index.js.map +0 -1
- package/build/src/lambda.d.ts +0 -2
- package/build/src/lambda.js.map +0 -1
- package/build/src/types/lightrun.d.ts +0 -18
- package/build/src/types/lightrun.js.map +0 -1
- package/build/src/types/stackdriver.d.ts +0 -79
- package/build/src/types/stackdriver.js.map +0 -1
- package/build/src/types/v8.d.ts +0 -214
- package/build/src/types/v8.js.map +0 -1
package/build/src/index.d.ts
CHANGED
|
@@ -1,18 +1,561 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 { }
|
package/build/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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;
|
package/build/src/lambda.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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.
|
|
1
|
+
1.24.0-release.5c0272a332
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
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)};
|