@intuned/runtime-dev 1.0.6-test-ping.0 → 1.1.2-auth-helper.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/LICENSE +43 -0
- package/bin/check-auth-session +3 -0
- package/bin/cli-build +3 -0
- package/bin/create-auth-session +3 -0
- package/bin/deploy +3 -0
- package/bin/init +3 -0
- package/bin/run-api +3 -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/cli-auth-sessions/check.d.ts +2 -0
- package/dist/commands/cli-auth-sessions/check.js +40 -0
- package/dist/commands/cli-auth-sessions/create.d.ts +2 -0
- package/dist/commands/cli-auth-sessions/create.js +53 -0
- package/dist/commands/cli-auth-sessions/utils.d.ts +28 -0
- package/dist/commands/cli-auth-sessions/utils.js +285 -0
- package/dist/commands/cli-build/cli-build.d.ts +2 -0
- package/dist/commands/cli-build/cli-build.js +20 -0
- package/dist/commands/common/projectExclusions.d.ts +2 -0
- package/dist/commands/common/projectExclusions.js +8 -0
- package/dist/commands/deploy/deploy.d.ts +2 -0
- package/dist/commands/deploy/deploy.js +47 -0
- package/dist/commands/deploy/utils.d.ts +16 -0
- package/dist/commands/deploy/utils.js +408 -0
- package/dist/commands/init/init.d.ts +2 -0
- package/dist/commands/init/init.js +22 -0
- package/dist/commands/init/utils.d.ts +11 -0
- package/dist/commands/init/utils.js +181 -0
- package/dist/commands/interface/run.js +2 -0
- package/dist/commands/run-api-cli/run-api.d.ts +2 -0
- package/dist/commands/run-api-cli/run-api.js +57 -0
- package/dist/commands/run-api-cli/utils.d.ts +9 -0
- package/dist/commands/run-api-cli/utils.js +144 -0
- package/dist/common/asyncLocalStorage/index.d.ts +2 -3
- package/dist/common/asyncLocalStorage/index.js +2 -2
- package/dist/common/backendFunctions/getAuthSessionParameters.d.ts +1 -0
- package/dist/common/backendFunctions/getAuthSessionParameters.js +38 -0
- package/dist/common/cli/cliReadme.d.ts +1 -0
- package/dist/common/cli/cliReadme.js +92 -0
- package/dist/common/cli/constants.d.ts +33 -0
- package/dist/common/cli/constants.js +39 -0
- package/dist/common/cli/types.d.ts +74 -0
- package/dist/common/cli/types.js +13 -0
- package/dist/common/cli/utils.d.ts +6 -0
- package/dist/common/cli/utils.js +35 -0
- package/dist/common/constants.d.ts +1 -0
- package/dist/common/constants.js +3 -2
- 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/package.json +41 -41
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuned/runtime-dev",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2-auth-helper.0",
|
|
4
4
|
"description": "Intuned runtime",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js",
|
|
@@ -13,11 +13,12 @@
|
|
|
13
13
|
"./dist/common/asyncLocalStorage": "./dist/common/asyncLocalStorage/index.js",
|
|
14
14
|
"./dist/common/cleanEnvironmentVariables": "./dist/common/cleanEnvironmentVariables.js",
|
|
15
15
|
"./dist/common/constants": "./dist/common/constants.js",
|
|
16
|
-
"./dist/commands/interface/run": "./dist/commands/interface/run.js"
|
|
16
|
+
"./dist/commands/interface/run": "./dist/commands/interface/run.js",
|
|
17
|
+
"./dist/commands/intuned-run/intuned-run": "./dist/commands/intuned-run/intuned-run.js"
|
|
17
18
|
},
|
|
18
19
|
"types": "./dist/index.d.ts",
|
|
19
20
|
"author": "Intuned Team",
|
|
20
|
-
"license": "
|
|
21
|
+
"license": "Elastic-2.0",
|
|
21
22
|
"scripts": {
|
|
22
23
|
"intuned-api-run": "vite-node ./src/commands/api/run.ts",
|
|
23
24
|
"intuned-browser-save-state": "vite-node ./src/commands/browser/save-state.ts",
|
|
@@ -48,54 +49,53 @@
|
|
|
48
49
|
"intuned-build": "./bin/intuned-build",
|
|
49
50
|
"intuned-browser-start": "./bin/intuned-browser-start",
|
|
50
51
|
"intuned-browser-save-state": "./bin/intuned-browser-save-state",
|
|
51
|
-
"intuned-ts-check": "./bin/intuned-ts-check"
|
|
52
|
+
"intuned-ts-check": "./bin/intuned-ts-check",
|
|
53
|
+
"init": "./bin/init",
|
|
54
|
+
"run-api": "./bin/run-api",
|
|
55
|
+
"deploy": "./bin/deploy",
|
|
56
|
+
"cli-build": "./bin/cli-build",
|
|
57
|
+
"create-auth-session": "./bin/create-auth-session",
|
|
58
|
+
"check-auth-session": "./bin/check-auth-session"
|
|
52
59
|
},
|
|
53
60
|
"dependencies": {
|
|
54
|
-
"@babel/plugin-syntax-dynamic-import": "
|
|
55
|
-
"@rollup/plugin-commonjs": "
|
|
56
|
-
"@rollup/plugin-dynamic-import-vars": "
|
|
57
|
-
"@rollup/plugin-json": "
|
|
58
|
-
"@rollup/plugin-node-resolve": "
|
|
59
|
-
"@rollup/plugin-typescript": "
|
|
60
|
-
"@
|
|
61
|
-
"@types/
|
|
62
|
-
"@types/
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"async-retry": "^1.3.3",
|
|
67
|
-
"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",
|
|
72
|
+
"boxen": "8.0.1",
|
|
68
73
|
"chalk": "^4.1.2",
|
|
69
74
|
"commander": "^11.0.0",
|
|
70
75
|
"cross-fetch": "^4.0.0",
|
|
71
76
|
"dotenv": "^16.3.1",
|
|
72
|
-
"express": "4.20.0",
|
|
73
|
-
"fastify": "^4.19.2",
|
|
74
|
-
"file-type": "16.5.4",
|
|
75
77
|
"fs-extra": "^11.3.0",
|
|
76
|
-
"https-proxy-agent": "^7.0.5",
|
|
77
78
|
"image-size": "^1.1.1",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
79
|
+
"inquirer": "12.6.0",
|
|
80
|
+
"jsonwebtoken": "9.0.2",
|
|
81
|
+
"lodash": "4.17.21",
|
|
82
|
+
"milliparsec": "2.3.0",
|
|
83
|
+
"minimatch": "10.0.1",
|
|
82
84
|
"nanoid": "3",
|
|
83
|
-
"neverthrow": "
|
|
85
|
+
"neverthrow": "6.1.0",
|
|
84
86
|
"playwright": "1.44.1",
|
|
85
|
-
"playwright-extra": "
|
|
86
|
-
"prettier": "
|
|
87
|
-
"promptly": "
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"zod": "^3.21.4",
|
|
98
|
-
"zod-validation-error": "^3.0.3"
|
|
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",
|
|
96
|
+
"uuid": "11.1.0",
|
|
97
|
+
"wait-on": "7.2.0",
|
|
98
|
+
"zod": "^3.21.4"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@babel/cli": "^7.23.4",
|