echoapi-converter 0.0.19 → 0.0.20
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/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5515,7 +5515,7 @@ class ThunderToApipost {
|
|
|
5515
5515
|
variables: [
|
|
5516
5516
|
{
|
|
5517
5517
|
param_id: ATools.snowflakeId(),
|
|
5518
|
-
name:
|
|
5518
|
+
name: _.first(_.split(_.trim(test === null || test === void 0 ? void 0 : test.value, "{}"), ",")),
|
|
5519
5519
|
expression: lodash.replace((test === null || test === void 0 ? void 0 : test.custom) || "", "json.", "$.") || "",
|
|
5520
5520
|
type: "globalVars",
|
|
5521
5521
|
},
|
|
@@ -5533,7 +5533,8 @@ class ThunderToApipost {
|
|
|
5533
5533
|
variables: [
|
|
5534
5534
|
{
|
|
5535
5535
|
param_id: ATools.snowflakeId(),
|
|
5536
|
-
name:
|
|
5536
|
+
// name: replace(test?.value, /\{\{(.+?)\}\}/, "$1"),
|
|
5537
|
+
name: _.first(_.split(_.trim(test === null || test === void 0 ? void 0 : test.value, "{}"), ",")),
|
|
5537
5538
|
expression: lodash.replace((test === null || test === void 0 ? void 0 : test.custom) || "", "json.", "$.") || "",
|
|
5538
5539
|
type: "globalVars",
|
|
5539
5540
|
},
|