biz-a-cli 2.3.80-15292 → 2.3.80-15296

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.
Files changed (2) hide show
  1. package/engine/ext/live.js +15 -0
  2. package/package.json +4 -1
@@ -68,6 +68,21 @@ function safeJson(v) {
68
68
  }
69
69
  }
70
70
 
71
+ // The `arguments` block a CLI script expects — same shape scheduler/datalib.js getInputData
72
+ // builds, MINUS smtp: nothing on the external path sends mail, so mail credentials must not
73
+ // cross this boundary. Generated scripts (createPayment/callbackPG) build their FINA apiConfig
74
+ // from hostname/port/dbindex, so an empty block targets http://undefined:undefined.
75
+ function scriptArguments(cfgObj) {
76
+ const u = new URL(cfgObj.url);
77
+ return {
78
+ hostname: u.hostname,
79
+ port: Number(u.port || (u.protocol === "https:" ? 443 : 80)),
80
+ dbindex: cfgObj.dbindex,
81
+ finaDbIndex: cfgObj.finaDbIndex,
82
+ subdomain: cfgObj.subdomain,
83
+ };
84
+ }
85
+
71
86
  export function createLiveExtDeps({
72
87
  subdomain,
73
88
  dbindex,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-a-cli",
3
- "version": "2.3.80-15292",
3
+ "version": "2.3.80-15296",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",
@@ -69,6 +69,9 @@
69
69
  },
70
70
  "jest": {
71
71
  "transform": {},
72
+ "setupFilesAfterEnv": [
73
+ "<rootDir>/jest.setup.js"
74
+ ],
72
75
  "testMatch": [
73
76
  "<rootDir>/tests/**",
74
77
  "!<rootDir>/tests/mockData",