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.
- 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_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;
|
package/build/src/lambda.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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.
|
|
1
|
+
1.25.0-release.ca91e76430
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
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)};
|