@intuned/runtime-dev 1.1.1-nt.0 → 1.1.2-auth-helper.1
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/LICENSE +43 -0
- package/dist/commands/api/run.js +8 -2
- package/dist/commands/auth-sessions/run-check.js +18 -4
- package/dist/commands/auth-sessions/run-create.js +2 -1
- package/dist/commands/interface/run.js +2 -0
- package/dist/common/asyncLocalStorage/index.d.ts +1 -2
- package/dist/common/backendFunctions/getAuthSessionParameters.d.ts +1 -0
- package/dist/common/backendFunctions/getAuthSessionParameters.js +38 -0
- package/dist/common/contextStorageStateHelpers.d.ts +1 -1
- package/dist/runtime/export.d.ts +1 -0
- package/dist/runtime/extendTimeout.js +0 -7
- package/dist/runtime/getAuthSessionParameters.d.ts +1 -0
- package/dist/runtime/getAuthSessionParameters.js +20 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.js +7 -0
- package/package.json +27 -38
package/LICENSE
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Acceptance
|
|
2
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
3
|
+
|
|
4
|
+
Copyright License
|
|
5
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below.
|
|
6
|
+
|
|
7
|
+
Limitations
|
|
8
|
+
You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
|
|
9
|
+
|
|
10
|
+
You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
|
|
11
|
+
|
|
12
|
+
You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
|
|
13
|
+
|
|
14
|
+
Patents
|
|
15
|
+
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
16
|
+
|
|
17
|
+
Notices
|
|
18
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
|
|
19
|
+
|
|
20
|
+
If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
|
|
21
|
+
|
|
22
|
+
No Other Rights
|
|
23
|
+
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
24
|
+
|
|
25
|
+
Termination
|
|
26
|
+
If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
|
|
27
|
+
|
|
28
|
+
No Liability
|
|
29
|
+
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
|
|
30
|
+
|
|
31
|
+
Definitions
|
|
32
|
+
The licensor is the entity offering these terms, and the software is the software the licensor makes available under these terms, including any portion of it.
|
|
33
|
+
|
|
34
|
+
you refers to the individual or entity agreeing to these terms.
|
|
35
|
+
|
|
36
|
+
your company is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. control means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
37
|
+
|
|
38
|
+
your licenses are all the licenses granted to you for the software under these terms.
|
|
39
|
+
|
|
40
|
+
use means anything you do with the software requiring one of your licenses.
|
|
41
|
+
|
|
42
|
+
trademark means trademarks, service marks, and similar rights.
|
|
43
|
+
|
package/dist/commands/api/run.js
CHANGED
|
@@ -17,6 +17,7 @@ var _nanoid = require("nanoid");
|
|
|
17
17
|
var _chalk = _interopRequireDefault(require("chalk"));
|
|
18
18
|
var _runApi = require("../../common/runApi");
|
|
19
19
|
var _tsNodeImport = require("../common/tsNodeImport");
|
|
20
|
+
var _isNil = _interopRequireDefault(require("lodash/isNil"));
|
|
20
21
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -95,7 +96,7 @@ async function executeCLI(apiName, mode, inputData, options) {
|
|
|
95
96
|
_Logger.logger.info("This will only take an effect if this API run was part of a job.");
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
|
-
_commander.program.description("run the user function in the cli for testing purposes").option("-i, --input [file]", "input json file").option("-j, --json [json]", "input json string").option("--cdpAddress <cdpAddress>", "CDP address", "http://localhost:9222").option("--authSessionPath <authSession>", "auth session to use when executing the api").option("--outputFileId <outputFileId>", "the output file id to save the result in").option("--proxy <proxy>", "proxy to use").argument("[apiName]", "name of the api", "default").allowUnknownOption().addArgument(new _commander.Argument("<mode>", "mode of execution").choices(["vanilla", "playwright", "playwright-standalone", "playwright-headless"]).default("playwright-standalone").argOptional()).action(async (apiName, mode, options) => {
|
|
99
|
+
_commander.program.description("run the user function in the cli for testing purposes").option("-i, --input [file]", "input json file").option("-j, --json [json]", "input json string").option("--cdpAddress <cdpAddress>", "CDP address", "http://localhost:9222").option("--authSessionPath <authSession>", "auth session to use when executing the api").option("--outputFileId <outputFileId>", "the output file id to save the result in").option("--proxy <proxy>", "proxy to use").option("--authSessionPath <authSessionParameters>", "parameters used to create the used auth session").argument("[apiName]", "name of the api", "default").allowUnknownOption().addArgument(new _commander.Argument("<mode>", "mode of execution").choices(["vanilla", "playwright", "playwright-standalone", "playwright-headless"]).default("playwright-standalone").argOptional()).action(async (apiName, mode, options) => {
|
|
99
100
|
let inputData = null;
|
|
100
101
|
if (options.input) {
|
|
101
102
|
inputData = await fs.readJSON(options.input);
|
|
@@ -104,11 +105,16 @@ _commander.program.description("run the user function in the cli for testing pur
|
|
|
104
105
|
} else {
|
|
105
106
|
inputData = {};
|
|
106
107
|
}
|
|
108
|
+
let authSessionParametersJson = undefined;
|
|
109
|
+
if (!(0, _isNil.default)(options === null || options === void 0 ? void 0 : options.authSessionParameters)) {
|
|
110
|
+
authSessionParametersJson = JSON.parse(options.authSessionParameters);
|
|
111
|
+
}
|
|
107
112
|
await (0, _asyncLocalStorage.runWithContext)({
|
|
108
113
|
runEnvironment: _enums.RunEnvironment.IDE,
|
|
109
114
|
extendedPayloads: [],
|
|
110
115
|
runId: (0, _nanoid.nanoid)(),
|
|
111
|
-
proxy: options.proxy
|
|
116
|
+
proxy: options.proxy,
|
|
117
|
+
getAuthSessionParameters: authSessionParametersJson !== undefined ? async () => authSessionParametersJson : undefined
|
|
112
118
|
}, () => executeCLI(apiName, mode, inputData, options));
|
|
113
119
|
process.exit(0);
|
|
114
120
|
});
|
|
@@ -9,15 +9,20 @@ var _dotenv = _interopRequireDefault(require("dotenv"));
|
|
|
9
9
|
var _constants = require("../../common/constants");
|
|
10
10
|
var _runApi = require("../../common/runApi");
|
|
11
11
|
var _tsNodeImport = require("../common/tsNodeImport");
|
|
12
|
+
var _enums = require("../../runtime/enums");
|
|
13
|
+
var _nanoid = require("nanoid");
|
|
14
|
+
var _asyncLocalStorage = require("../../common/asyncLocalStorage");
|
|
15
|
+
var _isNil = _interopRequireDefault(require("lodash/isNil"));
|
|
12
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
19
|
_dotenv.default.config({
|
|
16
20
|
path: `.env`
|
|
17
21
|
});
|
|
18
|
-
_commander.program.description("run auth session check").option("--cdpAddress <cdpAddress>", "CDP address", "http://localhost:9222").option("--authSessionPath <authSession>", "auth session to use when executing the check").allowUnknownOption().addArgument(new _commander.Argument("<mode>", "mode of execution").choices(["vanilla", "playwright", "playwright-standalone"]).default("playwright-standalone").argOptional()).action(async (mode, {
|
|
22
|
+
_commander.program.description("run auth session check").option("--cdpAddress <cdpAddress>", "CDP address", "http://localhost:9222").option("--authSessionPath <authSession>", "auth session to use when executing the check").option("--authSessionPath <authSessionParameters>", "parameters used to create the used auth session").allowUnknownOption().addArgument(new _commander.Argument("<mode>", "mode of execution").choices(["vanilla", "playwright", "playwright-standalone"]).default("playwright-standalone").argOptional()).action(async (mode, {
|
|
19
23
|
cdpAddress,
|
|
20
|
-
authSessionPath
|
|
24
|
+
authSessionPath,
|
|
25
|
+
authSessionParameters
|
|
21
26
|
}) => {
|
|
22
27
|
const setting = await (0, _settings.getSettings)();
|
|
23
28
|
if (!setting.authSessions.enabled) {
|
|
@@ -27,7 +32,16 @@ _commander.program.description("run auth session check").option("--cdpAddress <c
|
|
|
27
32
|
if (!fs.exists(checkFilePath)) {
|
|
28
33
|
throw new Error("auth session check file not found");
|
|
29
34
|
}
|
|
30
|
-
|
|
35
|
+
let authSessionParametersJson = undefined;
|
|
36
|
+
if (!(0, _isNil.default)(authSessionParameters)) {
|
|
37
|
+
authSessionParametersJson = JSON.parse(authSessionParameters);
|
|
38
|
+
}
|
|
39
|
+
const runApiResult = await (0, _asyncLocalStorage.runWithContext)({
|
|
40
|
+
runEnvironment: _enums.RunEnvironment.IDE,
|
|
41
|
+
extendedPayloads: [],
|
|
42
|
+
runId: (0, _nanoid.nanoid)(),
|
|
43
|
+
getAuthSessionParameters: authSessionParametersJson !== undefined ? async () => authSessionParametersJson : undefined
|
|
44
|
+
}, async () => await (0, _runApi.runApi)({
|
|
31
45
|
automationFunction: {
|
|
32
46
|
name: `${_constants.AUTH_SESSIONS_FOLDER_NAME}/check`
|
|
33
47
|
},
|
|
@@ -44,7 +58,7 @@ _commander.program.description("run auth session check").option("--cdpAddress <c
|
|
|
44
58
|
runCheck: false
|
|
45
59
|
},
|
|
46
60
|
importFunction: _tsNodeImport.tsNodeImport
|
|
47
|
-
});
|
|
61
|
+
}));
|
|
48
62
|
if (runApiResult.isErr()) {
|
|
49
63
|
if (runApiResult.error instanceof _runApi.AutomationError) {
|
|
50
64
|
throw runApiResult.error.error;
|
|
@@ -94,7 +94,8 @@ _commander.program.description("run auth session create").option("--cdpAddress <
|
|
|
94
94
|
await (0, _asyncLocalStorage.runWithContext)({
|
|
95
95
|
runEnvironment: _enums.RunEnvironment.IDE,
|
|
96
96
|
extendedPayloads: [],
|
|
97
|
-
runId: (0, _nanoid.nanoid)()
|
|
97
|
+
runId: (0, _nanoid.nanoid)(),
|
|
98
|
+
getAuthSessionParameters: async () => inputData
|
|
98
99
|
}, runCreate);
|
|
99
100
|
process.exit(0);
|
|
100
101
|
});
|
|
@@ -16,6 +16,7 @@ var _promises = require("timers/promises");
|
|
|
16
16
|
var _jwtTokenManager = require("../../common/jwtTokenManager");
|
|
17
17
|
var _formatZodError = require("../../common/formatZodError");
|
|
18
18
|
var _neverthrow = require("neverthrow");
|
|
19
|
+
var _getAuthSessionParameters = require("../../common/backendFunctions/getAuthSessionParameters");
|
|
19
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -124,6 +125,7 @@ function runAutomationCLI(importFunction) {
|
|
|
124
125
|
});
|
|
125
126
|
}
|
|
126
127
|
},
|
|
128
|
+
getAuthSessionParameters: _getAuthSessionParameters.getAuthSessionParameters,
|
|
127
129
|
...(message.parameters.context ?? {}),
|
|
128
130
|
proxy: getProxyUrlFromRunOptions(message.parameters.runOptions)
|
|
129
131
|
};
|
|
@@ -5,12 +5,11 @@ export declare const asyncLocalStorage: AsyncLocalStorage<InternalRunInfo>;
|
|
|
5
5
|
export declare function runWithContext<R, TArgs extends any[]>(contextData: InternalRunInfo, callback: (...args: TArgs) => R, ...args: TArgs): R;
|
|
6
6
|
interface TimeoutInfo {
|
|
7
7
|
extendTimeoutCallback?: () => Promise<void>;
|
|
8
|
-
timeoutDuration?: number;
|
|
9
|
-
timeoutTimestamp?: number;
|
|
10
8
|
}
|
|
11
9
|
export interface InternalRunInfo extends RunInfo {
|
|
12
10
|
extendedPayloads: Payload[];
|
|
13
11
|
timeoutInfo?: TimeoutInfo;
|
|
12
|
+
getAuthSessionParameters?: () => Promise<any>;
|
|
14
13
|
}
|
|
15
14
|
export declare function getExecutionContext(): InternalRunInfo | undefined;
|
|
16
15
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getAuthSessionParameters(): Promise<any>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getAuthSessionParameters = getAuthSessionParameters;
|
|
7
|
+
var _isNil = _interopRequireDefault(require("lodash/isNil"));
|
|
8
|
+
var _asyncLocalStorage = require("../asyncLocalStorage");
|
|
9
|
+
var _zod = require("zod");
|
|
10
|
+
var _jwtTokenManager = require("../jwtTokenManager");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
const authSessionParametersResponseSchema = _zod.z.object({
|
|
13
|
+
parameters: _zod.z.any().refine(v => v !== undefined)
|
|
14
|
+
});
|
|
15
|
+
async function getAuthSessionParameters() {
|
|
16
|
+
const context = (0, _asyncLocalStorage.getExecutionContext)();
|
|
17
|
+
if (!context) {
|
|
18
|
+
throw new Error("getAuthSessionParameters failed due to an internal error.");
|
|
19
|
+
}
|
|
20
|
+
const authSessionId = context.authSessionId;
|
|
21
|
+
if ((0, _isNil.default)(authSessionId)) {
|
|
22
|
+
throw new Error("authSessionId is not set");
|
|
23
|
+
}
|
|
24
|
+
const response = await (0, _jwtTokenManager.callBackendFunctionWithToken)(`auth-session/${authSessionId}/parameters`, {
|
|
25
|
+
method: "GET"
|
|
26
|
+
});
|
|
27
|
+
const body = await response.text();
|
|
28
|
+
if (!response.ok) {
|
|
29
|
+
throw new Error(`getAuthSessionParameters failed with status ${response.status}: ${body}`);
|
|
30
|
+
}
|
|
31
|
+
let json;
|
|
32
|
+
try {
|
|
33
|
+
json = JSON.parse(body);
|
|
34
|
+
} catch (e) {
|
|
35
|
+
throw new Error(`Expected JSON response, but got ${body}`);
|
|
36
|
+
}
|
|
37
|
+
return authSessionParametersResponseSchema.parse(json).parameters;
|
|
38
|
+
}
|
package/dist/runtime/export.d.ts
CHANGED
|
@@ -17,13 +17,6 @@ function extendTimeout() {
|
|
|
17
17
|
if (!timeoutInfo) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
if (timeoutInfo.timeoutTimestamp !== undefined && timeoutInfo.timeoutDuration !== undefined) {
|
|
21
|
-
const newTimeoutStamp = Date.now() + timeoutInfo.timeoutDuration;
|
|
22
|
-
if (newTimeoutStamp - timeoutInfo.timeoutTimestamp < _DEBOUNCE_TIME) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
timeoutInfo.timeoutTimestamp = newTimeoutStamp;
|
|
26
|
-
}
|
|
27
20
|
if (timeoutInfo.extendTimeoutCallback !== undefined) {
|
|
28
21
|
void timeoutInfo.extendTimeoutCallback().catch(() => undefined);
|
|
29
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getAuthSessionParameters(): Promise<any>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getAuthSessionParameters = getAuthSessionParameters;
|
|
7
|
+
var _asyncLocalStorage = require("../common/asyncLocalStorage");
|
|
8
|
+
async function getAuthSessionParameters() {
|
|
9
|
+
const context = (0, _asyncLocalStorage.getExecutionContext)();
|
|
10
|
+
if (!context) {
|
|
11
|
+
throw new Error("getAuthSessionParameters failed due to an internal error.");
|
|
12
|
+
}
|
|
13
|
+
const {
|
|
14
|
+
getAuthSessionParameters
|
|
15
|
+
} = context;
|
|
16
|
+
if (!getAuthSessionParameters) {
|
|
17
|
+
throw new Error("getAuthSessionParameters is not defined.");
|
|
18
|
+
}
|
|
19
|
+
return await getAuthSessionParameters();
|
|
20
|
+
}
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { extendPayload } from "./extendPayload";
|
|
2
2
|
export { extendTimeout } from "./extendTimeout";
|
|
3
|
+
export { getAuthSessionParameters } from "./getAuthSessionParameters";
|
|
3
4
|
export { runInfo } from "./runInfo";
|
|
4
5
|
export { RunError } from "./RunError";
|
|
5
6
|
export { requestMultipleChoice, requestOTP } from "./requestMoreInfo";
|
package/dist/runtime/index.js
CHANGED
|
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "extendTimeout", {
|
|
|
21
21
|
return _extendTimeout.extendTimeout;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "getAuthSessionParameters", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _getAuthSessionParameters.getAuthSessionParameters;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "getDownloadDirectoryPath", {
|
|
25
31
|
enumerable: true,
|
|
26
32
|
get: function () {
|
|
@@ -47,6 +53,7 @@ Object.defineProperty(exports, "runInfo", {
|
|
|
47
53
|
});
|
|
48
54
|
var _extendPayload = require("./extendPayload");
|
|
49
55
|
var _extendTimeout = require("./extendTimeout");
|
|
56
|
+
var _getAuthSessionParameters = require("./getAuthSessionParameters");
|
|
50
57
|
var _runInfo = require("./runInfo");
|
|
51
58
|
var _RunError = require("./RunError");
|
|
52
59
|
var _requestMoreInfo = require("./requestMoreInfo");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuned/runtime-dev",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2-auth-helper.1",
|
|
4
4
|
"description": "Intuned runtime",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"author": "Intuned Team",
|
|
21
|
-
"license": "
|
|
21
|
+
"license": "Elastic-2.0",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"intuned-api-run": "vite-node ./src/commands/api/run.ts",
|
|
24
24
|
"intuned-browser-save-state": "vite-node ./src/commands/browser/save-state.ts",
|
|
@@ -58,55 +58,44 @@
|
|
|
58
58
|
"check-auth-session": "./bin/check-auth-session"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@babel/plugin-syntax-dynamic-import": "
|
|
62
|
-
"@rollup/plugin-commonjs": "
|
|
63
|
-
"@rollup/plugin-dynamic-import-vars": "
|
|
64
|
-
"@rollup/plugin-json": "
|
|
65
|
-
"@rollup/plugin-node-resolve": "
|
|
66
|
-
"@rollup/plugin-typescript": "
|
|
67
|
-
"@
|
|
68
|
-
"@types/
|
|
69
|
-
"@types/
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"applicationinsights": "^2.9.2",
|
|
73
|
-
"async-retry": "^1.3.3",
|
|
74
|
-
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
61
|
+
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
62
|
+
"@rollup/plugin-commonjs": "25.0.2",
|
|
63
|
+
"@rollup/plugin-dynamic-import-vars": "2.0.4",
|
|
64
|
+
"@rollup/plugin-json": "6.0.0",
|
|
65
|
+
"@rollup/plugin-node-resolve": "15.1.0",
|
|
66
|
+
"@rollup/plugin-typescript": "11.1.2",
|
|
67
|
+
"@types/fs-extra": "11.0.1",
|
|
68
|
+
"@types/lodash": "4.14.200",
|
|
69
|
+
"@types/node": "20.4.1",
|
|
70
|
+
"applicationinsights": "2.9.2",
|
|
71
|
+
"babel-plugin-dynamic-import-node": "2.3.3",
|
|
75
72
|
"boxen": "8.0.1",
|
|
76
73
|
"chalk": "^4.1.2",
|
|
77
74
|
"commander": "^11.0.0",
|
|
78
75
|
"cross-fetch": "^4.0.0",
|
|
79
76
|
"dotenv": "^16.3.1",
|
|
80
|
-
"express": "4.20.0",
|
|
81
|
-
"fastify": "^4.19.2",
|
|
82
|
-
"file-type": "16.5.4",
|
|
83
77
|
"fs-extra": "^11.3.0",
|
|
84
|
-
"https-proxy-agent": "^7.0.5",
|
|
85
78
|
"image-size": "^1.1.1",
|
|
86
79
|
"inquirer": "12.6.0",
|
|
87
|
-
"jsonwebtoken": "
|
|
88
|
-
"lodash": "
|
|
89
|
-
"milliparsec": "
|
|
80
|
+
"jsonwebtoken": "9.0.2",
|
|
81
|
+
"lodash": "4.17.21",
|
|
82
|
+
"milliparsec": "2.3.0",
|
|
90
83
|
"minimatch": "10.0.1",
|
|
91
|
-
"ms": "^2.1.3",
|
|
92
84
|
"nanoid": "3",
|
|
93
85
|
"neverthrow": "6.1.0",
|
|
94
86
|
"playwright": "1.44.1",
|
|
95
|
-
"playwright-extra": "
|
|
96
|
-
"prettier": "
|
|
97
|
-
"promptly": "
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"tslib": "^2.6.0",
|
|
105
|
-
"typescript": "^5.1.6",
|
|
87
|
+
"playwright-extra": "4.3.6",
|
|
88
|
+
"prettier": "2.8.0",
|
|
89
|
+
"promptly": "3.2.0",
|
|
90
|
+
"rollup": "3.26.2",
|
|
91
|
+
"source-map": "0.7.4",
|
|
92
|
+
"ts-morph": "21.0.1",
|
|
93
|
+
"ts-node": "10.9.1",
|
|
94
|
+
"tslib": "2.6.0",
|
|
95
|
+
"typescript": "5.1.6",
|
|
106
96
|
"uuid": "11.1.0",
|
|
107
|
-
"wait-on": "
|
|
108
|
-
"zod": "^3.21.4"
|
|
109
|
-
"zod-validation-error": "^3.0.3"
|
|
97
|
+
"wait-on": "7.2.0",
|
|
98
|
+
"zod": "^3.21.4"
|
|
110
99
|
},
|
|
111
100
|
"devDependencies": {
|
|
112
101
|
"@babel/cli": "^7.23.4",
|