zcatalyst-cli 1.25.3 → 1.26.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/lib/api-timer.d.ts +0 -1
- package/lib/apig-utils.d.ts +1 -1
- package/lib/apig-utils.js +1 -1
- package/lib/appsail-utils.js +6 -7
- package/lib/archiver.d.ts +0 -4
- package/lib/archiver.js +21 -11
- package/lib/authentication/constants/auth.js +1 -1
- package/lib/authentication/credential.js +3 -3
- package/lib/authentication/index.js +25 -14
- package/lib/authentication/login.d.ts +0 -2
- package/lib/authentication/login.js +23 -10
- package/lib/bin/catalyst.js +17 -7
- package/lib/client-utils.d.ts +3 -3
- package/lib/client-utils.js +2 -2
- package/lib/client.js +19 -9
- package/lib/code-deck.d.ts +0 -2
- package/lib/code-deck.js +4 -4
- package/lib/command_needs/config.js +1 -1
- package/lib/command_needs/rc.js +5 -2
- package/lib/commands/appsail/add.js +17 -7
- package/lib/commands/client/setup.js +17 -7
- package/lib/commands/config/set.js +5 -3
- package/lib/commands/deploy/appsail.js +37 -14
- package/lib/commands/deploy/index.js +88 -66
- package/lib/commands/deploy/slate.js +37 -14
- package/lib/commands/event/generate/integ.js +18 -9
- package/lib/commands/functions/add.js +17 -7
- package/lib/commands/functions/execute.js +17 -7
- package/lib/commands/functions/setup.js +17 -7
- package/lib/commands/functions/shell.js +17 -7
- package/lib/commands/iac/import.js +18 -8
- package/lib/commands/iac/pack.js +17 -7
- package/lib/commands/iac/status.js +17 -7
- package/lib/commands/index.js +20 -12
- package/lib/commands/init.js +17 -7
- package/lib/commands/login.js +17 -7
- package/lib/commands/logout.js +17 -7
- package/lib/commands/project/list.js +17 -7
- package/lib/commands/project/use.js +1 -0
- package/lib/commands/pull.js +17 -7
- package/lib/commands/run.js +17 -7
- package/lib/commands/serve.js +17 -7
- package/lib/commands/signals/generate/index.js +1 -1
- package/lib/commands/slate/create.js +17 -7
- package/lib/commands/slate/link.js +17 -7
- package/lib/commands/token/generate.js +17 -7
- package/lib/commands/token/list.js +17 -7
- package/lib/commands/token/revoke.js +17 -7
- package/lib/commands/zest/generate/index.js +21 -11
- package/lib/deploy/features/appsail/index.js +2 -3
- package/lib/deploy/features/appsail/pack.d.ts +0 -1
- package/lib/deploy/features/appsail/pack.js +2 -3
- package/lib/deploy/features/appsail/utils.js +7 -8
- package/lib/deploy/features/functions/languages/index.js +3 -4
- package/lib/deploy/features/index.js +17 -7
- package/lib/deploy/features/slate.js +11 -8
- package/lib/deploy/index.js +2 -2
- package/lib/deploy/util.d.ts +2 -0
- package/lib/deploy/util.js +3 -1
- package/lib/docs/commands/signals/generate/generate.toml +19 -0
- package/lib/docs/commands/slate/unlink.toml +9 -0
- package/lib/docs/fn-utils/lib/node.toml +4 -0
- package/lib/docs/init/dependencies/python/ensure-python.toml +4 -0
- package/lib/docs/serve/server/lib/slate/index.toml +20 -0
- package/lib/docs/slate-utils.toml +9 -0
- package/lib/endpoints/index.d.ts +2 -1
- package/lib/endpoints/index.js +88 -79
- package/lib/endpoints/lib/apig.d.ts +0 -1
- package/lib/endpoints/lib/apig.js +2 -2
- package/lib/endpoints/lib/applogic.d.ts +0 -1
- package/lib/endpoints/lib/applogic.js +2 -2
- package/lib/endpoints/lib/appsail.d.ts +1 -4
- package/lib/endpoints/lib/appsail.js +7 -7
- package/lib/endpoints/lib/client.d.ts +0 -1
- package/lib/endpoints/lib/code-deck.js +1 -1
- package/lib/endpoints/lib/common.d.ts +0 -2
- package/lib/endpoints/lib/ds-bulk.js +2 -2
- package/lib/endpoints/lib/env.js +2 -2
- package/lib/endpoints/lib/filestore.d.ts +0 -1
- package/lib/endpoints/lib/functions.d.ts +0 -1
- package/lib/endpoints/lib/functions.js +2 -2
- package/lib/endpoints/lib/git-hub.d.ts +0 -2
- package/lib/endpoints/lib/iac.d.ts +0 -3
- package/lib/endpoints/lib/iac.js +2 -2
- package/lib/endpoints/lib/project.d.ts +0 -1
- package/lib/endpoints/lib/project.js +2 -2
- package/lib/endpoints/lib/sdk.d.ts +0 -2
- package/lib/endpoints/lib/sdk.js +1 -1
- package/lib/endpoints/lib/slate.d.ts +0 -1
- package/lib/endpoints/lib/stratus.d.ts +0 -1
- package/lib/endpoints/lib/user.d.ts +0 -2
- package/lib/endpoints/lib/user.js +2 -1
- package/lib/error/context-help.js +1 -1
- package/lib/error/index.js +2 -2
- package/lib/event_generate/cache.js +4 -4
- package/lib/event_generate/custom.js +1 -2
- package/lib/event_generate/datastore.js +4 -4
- package/lib/event_generate/filestore.js +4 -4
- package/lib/event_generate/github.js +2 -2
- package/lib/event_generate/index.js +19 -11
- package/lib/event_generate/stratus.js +2 -2
- package/lib/event_generate/user.js +2 -2
- package/lib/event_generate/webapp.js +2 -2
- package/lib/execute/caller.d.ts +0 -1
- package/lib/execute/caller.js +20 -7
- package/lib/execute/index.js +27 -4
- package/lib/execute-script.js +22 -13
- package/lib/express_middlewares/auth-checker.js +2 -3
- package/lib/express_middlewares/project.d.ts +1 -1
- package/lib/fn-utils/index.js +17 -7
- package/lib/fn-utils/lib/browserLogic.js +4 -5
- package/lib/fn-utils/lib/common.d.ts +0 -1
- package/lib/fn-utils/lib/common.js +25 -26
- package/lib/fn-utils/lib/integ.js +2 -3
- package/lib/fn-utils/lib/java/classpath.js +2 -3
- package/lib/fn-utils/lib/java/compile.js +4 -4
- package/lib/fn-utils/lib/java/ensure-java-userconfig.d.ts +10 -0
- package/lib/fn-utils/lib/java/ensure-java-userconfig.js +45 -23
- package/lib/fn-utils/lib/java/index.d.ts +0 -1
- package/lib/fn-utils/lib/java/index.js +11 -11
- package/lib/fn-utils/lib/java/keywords.js +2 -2
- package/lib/fn-utils/lib/node.d.ts +1 -1
- package/lib/fn-utils/lib/node.js +67 -15
- package/lib/fn-utils/lib/python.js +29 -19
- package/lib/iac/status/util/index.d.ts +1 -1
- package/lib/init/dependencies/npm-install.js +2 -2
- package/lib/init/dependencies/python/ensure-python.d.ts +2 -2
- package/lib/init/dependencies/python/ensure-python.js +65 -58
- package/lib/init/dependencies/python/pip-install.d.ts +3 -5
- package/lib/init/dependencies/python/pip-install.js +14 -53
- package/lib/init/features/appsail/utils.js +21 -12
- package/lib/init/features/client/index.js +18 -9
- package/lib/init/features/client/initializers/angular.js +17 -7
- package/lib/init/features/client/initializers/basic.js +17 -7
- package/lib/init/features/client/initializers/lyte.js +17 -7
- package/lib/init/features/client/initializers/react.js +17 -7
- package/lib/init/features/index.js +29 -20
- package/lib/init/features/project.js +5 -5
- package/lib/init/features/slate/index.js +23 -11
- package/lib/init/util/client.js +23 -13
- package/lib/init/util/common.js +5 -6
- package/lib/init/util/project.js +1 -1
- package/lib/internal/api.d.ts +0 -3
- package/lib/internal/api.js +19 -9
- package/lib/internal/command.js +18 -9
- package/lib/migration/global/1.25.0.d.ts +2 -0
- package/lib/migration/global/1.25.0.js +28 -0
- package/lib/migration/index.js +20 -12
- package/lib/option-filter.js +19 -10
- package/lib/optional-import.js +19 -10
- package/lib/plugin-loader.d.ts +0 -2
- package/lib/plugin-loader.js +18 -8
- package/lib/port-resolver.js +10 -10
- package/lib/prompt/index.d.ts +3 -3
- package/lib/prompt/index.js +17 -7
- package/lib/prompt/types/file-path.d.ts +0 -1
- package/lib/prompt/types/search-box.d.ts +0 -1
- package/lib/prompt/types/tree.d.ts +1 -2
- package/lib/prompt/types/tree.js +10 -10
- package/lib/prompt/types/with-description.d.ts +0 -1
- package/lib/pull/features/functions/index.js +71 -52
- package/lib/pull/features/functions/languages.js +3 -4
- package/lib/pull/features/index.js +17 -7
- package/lib/repl-server.d.ts +0 -1
- package/lib/repl-server.js +9 -1
- package/lib/serve/features/apig.js +7 -1
- package/lib/serve/features/appsail.d.ts +1 -0
- package/lib/serve/features/appsail.js +51 -7
- package/lib/serve/features/index.js +22 -13
- package/lib/serve/index.js +17 -7
- package/lib/serve/server/index.d.ts +0 -2
- package/lib/serve/server/index.js +26 -12
- package/lib/serve/server/lib/appsail/index.js +27 -34
- package/lib/serve/server/lib/appsail/util.d.ts +11 -0
- package/lib/serve/server/lib/appsail/util.js +69 -0
- package/lib/serve/server/lib/java/index.js +18 -7
- package/lib/serve/server/lib/master/appsail.js +3 -4
- package/lib/serve/server/lib/master/functions.js +1 -2
- package/lib/serve/server/lib/master/index.d.ts +0 -1
- package/lib/serve/server/lib/master/index.js +5 -5
- package/lib/serve/server/lib/master/slate.js +1 -2
- package/lib/serve/server/lib/master/unknown-req-proxy.js +5 -2
- package/lib/serve/server/lib/master/utils.d.ts +4 -8
- package/lib/serve/server/lib/master/utils.js +4 -6
- package/lib/serve/server/lib/master/web-client.js +1 -2
- package/lib/serve/server/lib/node/index.js +22 -11
- package/lib/serve/server/lib/node/server/browserlogic/utils/playwright-handler.js +1 -1
- package/lib/serve/server/lib/node/server/browserlogic/utils/puppeteer-handler.js +1 -1
- package/lib/serve/server/lib/node/server/browserlogic/utils/selenium-handler.js +2 -0
- package/lib/serve/server/lib/python/index.js +23 -14
- package/lib/serve/server/lib/slate/index.js +7 -0
- package/lib/serve/server/lib/slate/static-server.d.ts +0 -1
- package/lib/serve/server/lib/slate/static-server.js +5 -4
- package/lib/serve/server/lib/web_client/server.d.ts +0 -1
- package/lib/serve/server/lib/web_client/server.js +5 -4
- package/lib/shell/dependencies/http-functions.d.ts +0 -2
- package/lib/shell/dependencies/http-functions.js +7 -7
- package/lib/shell/dependencies/non-http-function/fn-execution-handler.d.ts +0 -2
- package/lib/shell/dependencies/non-http-function/fn-execution-handler.js +55 -24
- package/lib/shell/dependencies/non-http-function/fn-handler.d.ts +3 -3
- package/lib/shell/dependencies/non-http-function/fn-handler.js +54 -20
- package/lib/shell/dependencies/non-http-function/node.js +4 -4
- package/lib/shell/dependencies/non-http-function/python.d.ts +1 -1
- package/lib/shell/dependencies/non-http-function/python.js +11 -13
- package/lib/shell/dependencies/non-http-function/slave-manager.d.ts +0 -2
- package/lib/shell/dependencies/non-http-function/slave-manager.js +11 -7
- package/lib/shell/dependencies/tunnel-server.js +4 -4
- package/lib/shell/index.js +50 -3
- package/lib/shell/prepare/index.js +4 -3
- package/lib/shell/prepare/languages/index.js +18 -9
- package/lib/shell/prepare/languages/node.js +29 -19
- package/lib/shell/prepare/languages/python.js +6 -12
- package/lib/signals/index.js +19 -11
- package/lib/slate-utils.js +25 -16
- package/lib/throbber/index.d.ts +1 -2
- package/lib/throbber/index.js +5 -2
- package/lib/throbber/utils.d.ts +0 -1
- package/lib/throbber/utils.js +4 -5
- package/lib/userConfig.d.ts +14 -0
- package/lib/userConfig.js +15 -1
- package/lib/util_modules/config/index.js +17 -7
- package/lib/util_modules/config/lib/apig.d.ts +1 -0
- package/lib/util_modules/config/lib/apig.js +10 -5
- package/lib/util_modules/config/lib/appsail.js +7 -7
- package/lib/util_modules/config/lib/client.js +5 -6
- package/lib/util_modules/config/lib/functions.js +5 -6
- package/lib/util_modules/config/lib/slate.d.ts +2 -1
- package/lib/util_modules/config/lib/slate.js +27 -13
- package/lib/util_modules/config-store.d.ts +1 -1
- package/lib/util_modules/config-store.js +30 -13
- package/lib/util_modules/constants/lib/apig-rules.d.ts +1 -1
- package/lib/util_modules/constants/lib/dc-type.js +3 -3
- package/lib/util_modules/constants/lib/placeholders.d.ts +1 -1
- package/lib/util_modules/constants/lib/placeholders.js +1 -1
- package/lib/util_modules/constants/lib/urls.js +2 -9
- package/lib/util_modules/container.js +23 -14
- package/lib/util_modules/dc.js +3 -4
- package/lib/util_modules/env.d.ts +3 -0
- package/lib/util_modules/env.js +64 -4
- package/lib/util_modules/event-emitter.d.ts +9 -0
- package/lib/util_modules/event-emitter.js +68 -0
- package/lib/util_modules/fs/index.js +17 -7
- package/lib/util_modules/fs/lib/async.d.ts +0 -4
- package/lib/util_modules/fs/lib/async.js +46 -46
- package/lib/util_modules/fs/lib/sync.d.ts +1 -3
- package/lib/util_modules/fs/lib/sync.js +40 -30
- package/lib/util_modules/logger/index.js +12 -12
- package/lib/util_modules/logger/utils.d.ts +0 -4
- package/lib/util_modules/logger/utils.js +1 -1
- package/lib/util_modules/logger/winston.js +2 -2
- package/lib/util_modules/option.js +5 -6
- package/lib/util_modules/project.js +22 -23
- package/lib/util_modules/runtime-store.d.ts +2 -2
- package/lib/util_modules/server.d.ts +1 -2
- package/lib/util_modules/server.js +54 -15
- package/lib/util_modules/shell.d.ts +0 -3
- package/lib/util_modules/shell.js +5 -6
- package/lib/util_modules/toml.js +2 -3
- package/package.json +13 -13
- package/templates/init/functions/java/event/sample.java +5 -2
- package/templates/web-socket.txt +1 -1
- /package/lib/docs/{commands/event/generate → event_generate}/index.toml +0 -0
- /package/templates/init/functions/java/integ/convokraft/{Sample.java → sample.java} +0 -0
|
@@ -17,14 +17,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
20
|
+
exports.local = void 0;
|
|
21
|
+
exports.log = log;
|
|
22
|
+
exports.info = info;
|
|
23
|
+
exports.debug = debug;
|
|
24
|
+
exports.success = success;
|
|
25
|
+
exports.message = message;
|
|
26
|
+
exports.warning = warning;
|
|
27
|
+
exports.error = error;
|
|
28
|
+
exports.labeled = labeled;
|
|
21
29
|
const ansi_colors_1 = __importDefault(require("ansi-colors"));
|
|
30
|
+
const util_1 = require("util");
|
|
31
|
+
const os_1 = require("os");
|
|
22
32
|
const utils_1 = require("./utils");
|
|
23
33
|
const winston_1 = __importDefault(require("./winston"));
|
|
24
|
-
const util_1 = require("util");
|
|
25
34
|
const env_1 = require("../env");
|
|
26
|
-
const
|
|
27
|
-
const logStream = env_1.isVsCode && utils_1.LogStreamFactory.getStream();
|
|
35
|
+
const logStream = env_1.isExtension && utils_1.LogStreamFactory.getStream();
|
|
28
36
|
function _log(level, message, ignoreHttpLogger = false) {
|
|
29
37
|
if (logStream && logStream.writable && level !== 'debug') {
|
|
30
38
|
logStream.write(message.endsWith(os_1.EOL) ? message : message + os_1.EOL);
|
|
@@ -34,35 +42,28 @@ function _log(level, message, ignoreHttpLogger = false) {
|
|
|
34
42
|
function log(level, message, ignoreHttpLogger) {
|
|
35
43
|
_log(level, message, ignoreHttpLogger);
|
|
36
44
|
}
|
|
37
|
-
exports.log = log;
|
|
38
45
|
function info(msg = '', ...params) {
|
|
39
46
|
_log('info', (0, util_1.format)(msg, ...params));
|
|
40
47
|
}
|
|
41
|
-
exports.info = info;
|
|
42
48
|
function debug(msg = '', ...params) {
|
|
43
49
|
_log('debug', (0, util_1.format)(msg, ...params));
|
|
44
50
|
}
|
|
45
|
-
exports.debug = debug;
|
|
46
51
|
function success(msg, level = 'info', label = '', padLeft = '') {
|
|
47
52
|
const postChar = label === '' ? '' : label + ': ';
|
|
48
53
|
_log(level, padLeft + ansi_colors_1.default.green(utils_1.CHAR.success + ' ' + postChar) + msg);
|
|
49
54
|
}
|
|
50
|
-
exports.success = success;
|
|
51
55
|
function message(msg, level = 'info', label = '', padLeft = '') {
|
|
52
56
|
const postChar = label === '' ? '' : label + ': ';
|
|
53
57
|
_log(level, padLeft + ansi_colors_1.default.cyan(utils_1.CHAR.info + ' ' + postChar) + msg);
|
|
54
58
|
}
|
|
55
|
-
exports.message = message;
|
|
56
59
|
function warning(msg, level = 'warn', label = '', padLeft = '') {
|
|
57
60
|
const postChar = label === '' ? '' : label + ': ';
|
|
58
61
|
_log(level, padLeft + ansi_colors_1.default.yellow(utils_1.CHAR.warning + ' ' + postChar) + msg);
|
|
59
62
|
}
|
|
60
|
-
exports.warning = warning;
|
|
61
63
|
function error(msg, level = 'error', label = '', padLeft = '') {
|
|
62
64
|
const postChar = label === '' ? '' : label + ': ';
|
|
63
65
|
_log(level, padLeft + ansi_colors_1.default.red(utils_1.CHAR.error + ' ' + postChar) + msg);
|
|
64
66
|
}
|
|
65
|
-
exports.error = error;
|
|
66
67
|
exports.local = {
|
|
67
68
|
info: (msg = '') => log('info', msg, true),
|
|
68
69
|
warn: (msg = '') => log('warn', msg, true),
|
|
@@ -76,5 +77,4 @@ function labeled(label, line, padLeft) {
|
|
|
76
77
|
ERROR: () => error(line, 'error', label, padLeft)
|
|
77
78
|
};
|
|
78
79
|
}
|
|
79
|
-
exports.labeled = labeled;
|
|
80
80
|
__exportStar(require("./utils"), exports);
|
|
@@ -58,7 +58,7 @@ class TTYPassThrough extends stream_1.PassThrough {
|
|
|
58
58
|
exports.TTYPassThrough = TTYPassThrough;
|
|
59
59
|
class LogStreamFactory {
|
|
60
60
|
static getStream() {
|
|
61
|
-
return __classPrivateFieldGet(
|
|
61
|
+
return __classPrivateFieldGet(_a, _a, "f", _LogStreamFactory_logStream);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
exports.LogStreamFactory = LogStreamFactory;
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.logger = exports.
|
|
6
|
+
exports.logger = exports.transport = void 0;
|
|
7
|
+
exports.verbose = verbose;
|
|
7
8
|
const strip_ansi_1 = __importDefault(require("strip-ansi"));
|
|
8
9
|
const winston_1 = require("winston");
|
|
9
10
|
const config_store_1 = __importDefault(require("../config-store"));
|
|
@@ -76,7 +77,6 @@ function verbose(enable = true) {
|
|
|
76
77
|
return info.message + '';
|
|
77
78
|
});
|
|
78
79
|
}
|
|
79
|
-
exports.verbose = verbose;
|
|
80
80
|
exports.logger = (0, winston_1.createLogger)({
|
|
81
81
|
transports: [exports.transport.console],
|
|
82
82
|
exitOnError: false
|
|
@@ -3,25 +3,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.getCurrentCommand = getCurrentCommand;
|
|
7
|
+
exports.getOptionValue = getOptionValue;
|
|
8
|
+
exports.setGlobalOption = setGlobalOption;
|
|
9
|
+
exports.getGlobalOptionValue = getGlobalOptionValue;
|
|
10
|
+
exports.getUnknownOpts = getUnknownOpts;
|
|
7
11
|
const runtime_store_1 = __importDefault(require("../runtime-store"));
|
|
8
12
|
function getCurrentCommand(fallback) {
|
|
9
13
|
return runtime_store_1.default.get('context.opts._name', fallback);
|
|
10
14
|
}
|
|
11
|
-
exports.getCurrentCommand = getCurrentCommand;
|
|
12
15
|
function getOptionValue(key, fallback) {
|
|
13
16
|
return runtime_store_1.default.get('context.opts.' + key, fallback);
|
|
14
17
|
}
|
|
15
|
-
exports.getOptionValue = getOptionValue;
|
|
16
18
|
function setGlobalOption(key, value) {
|
|
17
19
|
runtime_store_1.default.set('context.opts.globalOpts.' + key, value);
|
|
18
20
|
}
|
|
19
|
-
exports.setGlobalOption = setGlobalOption;
|
|
20
21
|
function getGlobalOptionValue(key, fallback) {
|
|
21
22
|
return runtime_store_1.default.get('context.opts.globalOpts.' + key, fallback);
|
|
22
23
|
}
|
|
23
|
-
exports.getGlobalOptionValue = getGlobalOptionValue;
|
|
24
24
|
function getUnknownOpts(fallback) {
|
|
25
25
|
return runtime_store_1.default.get('context.opts.unknownOpts', fallback);
|
|
26
26
|
}
|
|
27
|
-
exports.getUnknownOpts = getUnknownOpts;
|
|
@@ -12,7 +12,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.getProjectId = getProjectId;
|
|
16
|
+
exports.getProjectName = getProjectName;
|
|
17
|
+
exports.getEnvId = getEnvId;
|
|
18
|
+
exports.getEnvName = getEnvName;
|
|
19
|
+
exports.getDomainPrefix = getDomainPrefix;
|
|
20
|
+
exports.getDomainKey = getDomainKey;
|
|
21
|
+
exports.getProjectTimezone = getProjectTimezone;
|
|
22
|
+
exports.getDefaultProjectId = getDefaultProjectId;
|
|
23
|
+
exports.getDefaultProjectName = getDefaultProjectName;
|
|
24
|
+
exports.getDefaultEnvName = getDefaultEnvName;
|
|
25
|
+
exports.getProjectRoot = getProjectRoot;
|
|
26
|
+
exports.makeDefaultProjectActive = makeDefaultProjectActive;
|
|
27
|
+
exports.transformProject = transformProject;
|
|
28
|
+
exports.transformEnv = transformEnv;
|
|
29
|
+
exports.removeProject = removeProject;
|
|
30
|
+
exports.upsertEnv = upsertEnv;
|
|
31
|
+
exports.upsertProject = upsertProject;
|
|
32
|
+
exports.resolveProjectPath = resolveProjectPath;
|
|
16
33
|
const ansi_colors_1 = require("ansi-colors");
|
|
17
34
|
const path_1 = __importDefault(require("path"));
|
|
18
35
|
const index_js_1 = __importDefault(require("../error/index.js"));
|
|
@@ -68,7 +85,6 @@ function getProjectId(fallback) {
|
|
|
68
85
|
}
|
|
69
86
|
return projectId;
|
|
70
87
|
}
|
|
71
|
-
exports.getProjectId = getProjectId;
|
|
72
88
|
function getProjectName(fallback) {
|
|
73
89
|
const projectName = runtime_store_1.default.get('project.name', null);
|
|
74
90
|
if (projectName === null) {
|
|
@@ -83,15 +99,12 @@ function getProjectName(fallback) {
|
|
|
83
99
|
}
|
|
84
100
|
return projectName + '';
|
|
85
101
|
}
|
|
86
|
-
exports.getProjectName = getProjectName;
|
|
87
102
|
function getEnvId(fallback) {
|
|
88
103
|
return runtime_store_1.default.get('project.env.id', fallback);
|
|
89
104
|
}
|
|
90
|
-
exports.getEnvId = getEnvId;
|
|
91
105
|
function getEnvName(fallback = 'Development') {
|
|
92
106
|
return runtime_store_1.default.get('project.env.name', fallback);
|
|
93
107
|
}
|
|
94
|
-
exports.getEnvName = getEnvName;
|
|
95
108
|
function getDomainPrefix(fallback) {
|
|
96
109
|
const domainName = runtime_store_1.default.get('project.domain.name', null);
|
|
97
110
|
if (domainName === null) {
|
|
@@ -106,7 +119,6 @@ function getDomainPrefix(fallback) {
|
|
|
106
119
|
}
|
|
107
120
|
return domainName + '';
|
|
108
121
|
}
|
|
109
|
-
exports.getDomainPrefix = getDomainPrefix;
|
|
110
122
|
function getDomainKey(fallback) {
|
|
111
123
|
const domainId = runtime_store_1.default.get('project.domain.id', null);
|
|
112
124
|
if (domainId === null) {
|
|
@@ -121,7 +133,6 @@ function getDomainKey(fallback) {
|
|
|
121
133
|
}
|
|
122
134
|
return domainId;
|
|
123
135
|
}
|
|
124
|
-
exports.getDomainKey = getDomainKey;
|
|
125
136
|
function getProjectTimezone(fallback) {
|
|
126
137
|
const projectTimezone = runtime_store_1.default.get('project.timezone', null);
|
|
127
138
|
if (projectTimezone === null) {
|
|
@@ -136,7 +147,6 @@ function getProjectTimezone(fallback) {
|
|
|
136
147
|
}
|
|
137
148
|
return projectTimezone + '';
|
|
138
149
|
}
|
|
139
|
-
exports.getProjectTimezone = getProjectTimezone;
|
|
140
150
|
function getDefaultProjectId(fallback) {
|
|
141
151
|
const defaultProject = getDefaultProject(fallback === undefined);
|
|
142
152
|
if (defaultProject !== undefined) {
|
|
@@ -149,7 +159,6 @@ function getDefaultProjectId(fallback) {
|
|
|
149
159
|
}
|
|
150
160
|
return fallback;
|
|
151
161
|
}
|
|
152
|
-
exports.getDefaultProjectId = getDefaultProjectId;
|
|
153
162
|
function getDefaultProjectName(fallback) {
|
|
154
163
|
const defaultProject = getDefaultProject(fallback === undefined);
|
|
155
164
|
if (defaultProject !== undefined) {
|
|
@@ -162,7 +171,6 @@ function getDefaultProjectName(fallback) {
|
|
|
162
171
|
}
|
|
163
172
|
return fallback;
|
|
164
173
|
}
|
|
165
|
-
exports.getDefaultProjectName = getDefaultProjectName;
|
|
166
174
|
function getDefaultEnvName(fallback) {
|
|
167
175
|
const defaultEnv = getDefaultEnv(fallback === undefined);
|
|
168
176
|
if (defaultEnv !== undefined) {
|
|
@@ -175,7 +183,6 @@ function getDefaultEnvName(fallback) {
|
|
|
175
183
|
}
|
|
176
184
|
return fallback;
|
|
177
185
|
}
|
|
178
|
-
exports.getDefaultEnvName = getDefaultEnvName;
|
|
179
186
|
function getProjectRoot(fallback = runtime_store_1.default.get('project.root', false) || process.cwd()) {
|
|
180
187
|
let projectRootDir = fallback;
|
|
181
188
|
while (!fs_1.SYNC.fileExists(path_1.default.resolve(projectRootDir, './' + constants_1.FILENAME.config))) {
|
|
@@ -187,7 +194,6 @@ function getProjectRoot(fallback = runtime_store_1.default.get('project.root', f
|
|
|
187
194
|
}
|
|
188
195
|
return projectRootDir;
|
|
189
196
|
}
|
|
190
|
-
exports.getProjectRoot = getProjectRoot;
|
|
191
197
|
function makeDefaultProjectActive() {
|
|
192
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
193
199
|
const defaultProject = getDefaultProject(false);
|
|
@@ -206,7 +212,6 @@ function makeDefaultProjectActive() {
|
|
|
206
212
|
return upsertEnv(defaultProject.id, defaultEnv, { active: true });
|
|
207
213
|
});
|
|
208
214
|
}
|
|
209
|
-
exports.makeDefaultProjectActive = makeDefaultProjectActive;
|
|
210
215
|
function transformProject(projectObj) {
|
|
211
216
|
return js_1.JS.transform(projectObj, (result, value, key) => {
|
|
212
217
|
switch (key) {
|
|
@@ -233,7 +238,6 @@ function transformProject(projectObj) {
|
|
|
233
238
|
js_1.JS.set(result, key, value);
|
|
234
239
|
}, {});
|
|
235
240
|
}
|
|
236
|
-
exports.transformProject = transformProject;
|
|
237
241
|
function transformEnv(envObj) {
|
|
238
242
|
return js_1.JS.transform(envObj, (result, value, key) => {
|
|
239
243
|
switch (key) {
|
|
@@ -252,7 +256,6 @@ function transformEnv(envObj) {
|
|
|
252
256
|
js_1.JS.set(result, key, value);
|
|
253
257
|
}, {});
|
|
254
258
|
}
|
|
255
|
-
exports.transformEnv = transformEnv;
|
|
256
259
|
function removeProject(projectId) {
|
|
257
260
|
return __awaiter(this, void 0, void 0, function* () {
|
|
258
261
|
const rc = runtime_store_1.default.get('rc', null);
|
|
@@ -264,9 +267,8 @@ function removeProject(projectId) {
|
|
|
264
267
|
return rc.removeProject(projectId);
|
|
265
268
|
});
|
|
266
269
|
}
|
|
267
|
-
|
|
268
|
-
function
|
|
269
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
+
function upsertEnv(projectId_1, envObj_1, _a) {
|
|
271
|
+
return __awaiter(this, arguments, void 0, function* (projectId, envObj, { base = false, active = false }) {
|
|
270
272
|
const transformedEnv = transformEnv(envObj);
|
|
271
273
|
const rc = runtime_store_1.default.get('rc', null);
|
|
272
274
|
if (rc === null) {
|
|
@@ -280,9 +282,8 @@ function upsertEnv(projectId, envObj, { base = false, active = false }) {
|
|
|
280
282
|
});
|
|
281
283
|
});
|
|
282
284
|
}
|
|
283
|
-
|
|
284
|
-
function
|
|
285
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
285
|
+
function upsertProject(projectObj_1, _a) {
|
|
286
|
+
return __awaiter(this, arguments, void 0, function* (projectObj, { base = false, active = false }) {
|
|
286
287
|
const transformedProj = transformProject(projectObj);
|
|
287
288
|
const rc = runtime_store_1.default.get('rc', null);
|
|
288
289
|
if (rc === null) {
|
|
@@ -296,10 +297,8 @@ function upsertProject(projectObj, { base = false, active = false }) {
|
|
|
296
297
|
});
|
|
297
298
|
});
|
|
298
299
|
}
|
|
299
|
-
exports.upsertProject = upsertProject;
|
|
300
300
|
function resolveProjectPath(...filePath) {
|
|
301
301
|
let root = runtime_store_1.default.get('project.root', runtime_store_1.default.get('cwd'));
|
|
302
302
|
root = root !== undefined ? root : getProjectRoot();
|
|
303
303
|
return path_1.default.resolve(root, ...filePath);
|
|
304
304
|
}
|
|
305
|
-
exports.resolveProjectPath = resolveProjectPath;
|
|
@@ -5,7 +5,7 @@ declare class runtime {
|
|
|
5
5
|
readonly storeName: string;
|
|
6
6
|
store: ICliStore;
|
|
7
7
|
constructor(storeName: string);
|
|
8
|
-
get<T, U = T>(path: string
|
|
9
|
-
set(path: string
|
|
8
|
+
get<T, U = T>(path: string | Array<string>, fallback?: U): T | U;
|
|
9
|
+
set(path: string | Array<string>, value: unknown): void;
|
|
10
10
|
}
|
|
11
11
|
export default runtime;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import type { ClientRequest, Server } from 'http';
|
|
4
2
|
import ProxyServer from 'http-proxy';
|
|
5
3
|
import { Socket } from 'net';
|
|
@@ -9,5 +7,6 @@ export declare class ConnectionDestroyer {
|
|
|
9
7
|
constructor(server: Server | ProxyServer);
|
|
10
8
|
destroy(terminate?: boolean, err?: Error): Promise<void>;
|
|
11
9
|
}
|
|
10
|
+
export declare function killProcessTree(pid: number, signal?: NodeJS.Signals): Promise<void>;
|
|
12
11
|
export declare function getHostIP(throwErr?: boolean): Promise<string | undefined>;
|
|
13
12
|
export declare function isPortListening(port: string | number, retry?: number, retryInterval?: number): Promise<void>;
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -35,9 +45,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
46
|
};
|
|
37
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
48
|
+
exports.ConnectionDestroyer = void 0;
|
|
49
|
+
exports.killProcessTree = killProcessTree;
|
|
50
|
+
exports.getHostIP = getHostIP;
|
|
51
|
+
exports.isPortListening = isPortListening;
|
|
39
52
|
const http_proxy_1 = __importDefault(require("http-proxy"));
|
|
40
53
|
const net_1 = require("net");
|
|
54
|
+
const env_1 = require("./env");
|
|
55
|
+
const child_process_1 = require("child_process");
|
|
41
56
|
const logger_1 = require("./logger");
|
|
42
57
|
const error_1 = __importDefault(require("../error"));
|
|
43
58
|
class ConnectionDestroyer {
|
|
@@ -57,8 +72,8 @@ class ConnectionDestroyer {
|
|
|
57
72
|
});
|
|
58
73
|
}
|
|
59
74
|
}
|
|
60
|
-
destroy(
|
|
61
|
-
return __awaiter(this,
|
|
75
|
+
destroy() {
|
|
76
|
+
return __awaiter(this, arguments, void 0, function* (terminate = true, err) {
|
|
62
77
|
return new Promise((resolve, reject) => {
|
|
63
78
|
this.connections.forEach((sock) => {
|
|
64
79
|
sock.destroy(err);
|
|
@@ -76,8 +91,34 @@ class ConnectionDestroyer {
|
|
|
76
91
|
}
|
|
77
92
|
}
|
|
78
93
|
exports.ConnectionDestroyer = ConnectionDestroyer;
|
|
79
|
-
function
|
|
94
|
+
function killProcessTree(pid, signal) {
|
|
80
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
if (env_1.isWindows) {
|
|
97
|
+
return new Promise((resolve, reject) => {
|
|
98
|
+
(0, child_process_1.exec)(`taskkill /PID ${pid} /T /F`, (err) => {
|
|
99
|
+
if (err) {
|
|
100
|
+
reject(error_1.default.getErrorInstance(err, {
|
|
101
|
+
message: 'Win32: Failed to kill process tree'
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
resolve();
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
try {
|
|
111
|
+
process.kill(pid > 0 ? -pid : pid, signal || 'SIGTERM');
|
|
112
|
+
}
|
|
113
|
+
catch (err) {
|
|
114
|
+
error_1.default.getErrorInstance(err, {
|
|
115
|
+
message: 'Linux/Darwin: Failed to kill process tree'
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function getHostIP() {
|
|
121
|
+
return __awaiter(this, arguments, void 0, function* (throwErr = false) {
|
|
81
122
|
try {
|
|
82
123
|
const dns = yield Promise.resolve().then(() => __importStar(require('dns/promises')));
|
|
83
124
|
const os = yield Promise.resolve().then(() => __importStar(require('os')));
|
|
@@ -92,9 +133,8 @@ function getHostIP(throwErr = false) {
|
|
|
92
133
|
return;
|
|
93
134
|
});
|
|
94
135
|
}
|
|
95
|
-
|
|
96
|
-
function
|
|
97
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
function isPortListening(port_1) {
|
|
137
|
+
return __awaiter(this, arguments, void 0, function* (port, retry = 10, retryInterval = 500) {
|
|
98
138
|
(0, logger_1.debug)(`itr: ${retry} :: checking port${port} for listening status`);
|
|
99
139
|
if (typeof port === 'string') {
|
|
100
140
|
port = Number.parseInt(port);
|
|
@@ -126,4 +166,3 @@ function isPortListening(port, retry = 10, retryInterval = 500) {
|
|
|
126
166
|
return isPortListening(port, retry, retryInterval);
|
|
127
167
|
});
|
|
128
168
|
}
|
|
129
|
-
exports.isPortListening = isPortListening;
|
|
@@ -14,7 +14,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.clearStdout = clearStdout;
|
|
18
|
+
exports.clearLine = clearLine;
|
|
19
|
+
exports.supportsUnicode = supportsUnicode;
|
|
20
|
+
exports.spawn = spawn;
|
|
21
|
+
exports.which = which;
|
|
18
22
|
const child_process_1 = require("child_process");
|
|
19
23
|
const cross_spawn_1 = __importDefault(require("cross-spawn"));
|
|
20
24
|
const path_1 = __importDefault(require("path"));
|
|
@@ -28,18 +32,15 @@ function clearStdout(fullClear = false) {
|
|
|
28
32
|
}
|
|
29
33
|
process.stdout.write('\x1b[0f');
|
|
30
34
|
}
|
|
31
|
-
exports.clearStdout = clearStdout;
|
|
32
35
|
function clearLine(stream = process.stdout) {
|
|
33
36
|
readline_1.default.cursorTo(stream, 0);
|
|
34
37
|
readline_1.default.clearLine(stream, 0);
|
|
35
38
|
}
|
|
36
|
-
exports.clearLine = clearLine;
|
|
37
39
|
function supportsUnicode() {
|
|
38
40
|
return (process.platform !== 'win32' ||
|
|
39
41
|
process.env.TERM_PROGRAM === 'vscode' ||
|
|
40
42
|
!!process.env.WT_SESSION);
|
|
41
43
|
}
|
|
42
|
-
exports.supportsUnicode = supportsUnicode;
|
|
43
44
|
function spawn(command, opts, _a = {}) {
|
|
44
45
|
var { cwd = runtime_store_1.default.get('cwd'), stdio = 'inherit', shell = false } = _a, otherOpts = __rest(_a, ["cwd", "stdio", "shell"]);
|
|
45
46
|
otherOpts.env = Object.assign(Object.assign(Object.assign({}, process.env), (otherOpts.env || {})), { CATALYST_SUB_PROCESS: 'true' });
|
|
@@ -88,7 +89,6 @@ function spawn(command, opts, _a = {}) {
|
|
|
88
89
|
}
|
|
89
90
|
};
|
|
90
91
|
}
|
|
91
|
-
exports.spawn = spawn;
|
|
92
92
|
function which(commandName, { alwaysResolve = true }) {
|
|
93
93
|
let cleanedCmd = commandName;
|
|
94
94
|
if (env_1.isWindows) {
|
|
@@ -139,4 +139,3 @@ function which(commandName, { alwaysResolve = true }) {
|
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
exports.which = which;
|
package/lib/util_modules/toml.js
CHANGED
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.parseTOML = parseTOML;
|
|
7
|
+
exports.convertTOML = convertTOML;
|
|
7
8
|
const toml_1 = __importDefault(require("@iarna/toml"));
|
|
8
9
|
const index_1 = __importDefault(require("../error/index"));
|
|
9
10
|
function parseTOML(str) {
|
|
@@ -18,7 +19,6 @@ function parseTOML(str) {
|
|
|
18
19
|
throw err;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
|
-
exports.parseTOML = parseTOML;
|
|
22
22
|
function convertTOML(object) {
|
|
23
23
|
try {
|
|
24
24
|
return toml_1.default.stringify(object);
|
|
@@ -31,4 +31,3 @@ function convertTOML(object) {
|
|
|
31
31
|
throw err;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
exports.convertTOML = convertTOML;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcatalyst-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.1",
|
|
4
4
|
"description": "Command Line Tool for CATALYST",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"catalyst": "lib/bin/catalyst.js"
|
|
8
8
|
},
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": ">=
|
|
10
|
+
"node": ">=18.0.0"
|
|
11
11
|
},
|
|
12
12
|
"preferGlobal": true,
|
|
13
13
|
"keywords": [
|
|
@@ -63,34 +63,34 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@types/app-module-path": "^2.2.0",
|
|
66
|
-
"@types/better-queue": "^3.8.
|
|
66
|
+
"@types/better-queue": "^3.8.2",
|
|
67
67
|
"@types/cross-spawn": "^6.0.2",
|
|
68
68
|
"@types/express": "^4.17.13",
|
|
69
69
|
"@types/fs-extra": "^9.0.13",
|
|
70
70
|
"@types/http-proxy": "^1.17.8",
|
|
71
71
|
"@types/inquirer": "^8.2.10",
|
|
72
72
|
"@types/inquirer-autocomplete-prompt": "^1.3.4",
|
|
73
|
-
"@types/jest": "^
|
|
73
|
+
"@types/jest": "^29.5.0",
|
|
74
74
|
"@types/lodash": "^4.14.182",
|
|
75
75
|
"@types/mime-types": "^2.1.4",
|
|
76
76
|
"@types/minimatch": "^5.1.2",
|
|
77
|
-
"@types/node": "^
|
|
77
|
+
"@types/node": "^22.0.0",
|
|
78
78
|
"@types/request": "^2.48.8",
|
|
79
79
|
"@types/semver": "^7.3.9",
|
|
80
80
|
"@types/update-notifier": "^5.1.0",
|
|
81
81
|
"@types/ws": "^8.5.3",
|
|
82
82
|
"@types/xml2js": "^0.4.11",
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
84
|
-
"@typescript-eslint/parser": "^
|
|
85
|
-
"eslint": "^8.
|
|
86
|
-
"eslint-config-prettier": "^
|
|
87
|
-
"eslint-plugin-prettier": "^4.
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
84
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
85
|
+
"eslint": "^8.57.0",
|
|
86
|
+
"eslint-config-prettier": "^9.1.0",
|
|
87
|
+
"eslint-plugin-prettier": "^4.2.0",
|
|
88
88
|
"gulp": "^4.0.2",
|
|
89
|
-
"jest": "^
|
|
89
|
+
"jest": "^29.7.0",
|
|
90
90
|
"npm-run-all": "^4.1.5",
|
|
91
91
|
"prettier": "^2.6.2",
|
|
92
|
-
"ts-jest": "^
|
|
93
|
-
"typescript": "
|
|
92
|
+
"ts-jest": "^29.2.0",
|
|
93
|
+
"typescript": "~5.7.0"
|
|
94
94
|
},
|
|
95
95
|
"scripts": {
|
|
96
96
|
"build": "gulp build",
|
|
@@ -23,8 +23,11 @@ public class {{_CLASS_}} implements CatalystEventHandler{
|
|
|
23
23
|
ZCProject.initProject();
|
|
24
24
|
|
|
25
25
|
Object rawData = paramEventRequest.getRawData();
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
if(rawData != null) {
|
|
27
|
+
LOGGER.log(Level.SEVERE,"Raw Data is "+rawData.toString());
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
ZCCache.getInstance().putCacheValue("{{_CLASS_}}", "Working", 1l);
|
|
28
31
|
}
|
|
29
32
|
catch (Exception e) {
|
|
30
33
|
LOGGER.log(Level.SEVERE,"Exception in {{_CLASS_}} Function",e);
|
package/templates/web-socket.txt
CHANGED
|
File without changes
|
|
File without changes
|