webpipe-js 0.1.5 → 0.1.6
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.cjs +18 -0
- package/dist/index.mjs +18 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -716,10 +716,28 @@ function formatStepConfig(config) {
|
|
|
716
716
|
return `\`${config}\``;
|
|
717
717
|
} else if (config.includes(" ")) {
|
|
718
718
|
return `"${config}"`;
|
|
719
|
+
} else if (isAuthStringValue(config)) {
|
|
720
|
+
return `"${config}"`;
|
|
719
721
|
} else {
|
|
720
722
|
return config;
|
|
721
723
|
}
|
|
722
724
|
}
|
|
725
|
+
function isAuthStringValue(config) {
|
|
726
|
+
const authValues = [
|
|
727
|
+
"login",
|
|
728
|
+
"logout",
|
|
729
|
+
"register",
|
|
730
|
+
"required",
|
|
731
|
+
"optional"
|
|
732
|
+
];
|
|
733
|
+
if (authValues.includes(config)) {
|
|
734
|
+
return true;
|
|
735
|
+
}
|
|
736
|
+
if (config.startsWith("type:")) {
|
|
737
|
+
return true;
|
|
738
|
+
}
|
|
739
|
+
return false;
|
|
740
|
+
}
|
|
723
741
|
function formatPipelineRef(ref) {
|
|
724
742
|
if (ref.kind === "Named") {
|
|
725
743
|
return [` |> pipeline: ${ref.name}`];
|
package/dist/index.mjs
CHANGED
|
@@ -673,10 +673,28 @@ function formatStepConfig(config) {
|
|
|
673
673
|
return `\`${config}\``;
|
|
674
674
|
} else if (config.includes(" ")) {
|
|
675
675
|
return `"${config}"`;
|
|
676
|
+
} else if (isAuthStringValue(config)) {
|
|
677
|
+
return `"${config}"`;
|
|
676
678
|
} else {
|
|
677
679
|
return config;
|
|
678
680
|
}
|
|
679
681
|
}
|
|
682
|
+
function isAuthStringValue(config) {
|
|
683
|
+
const authValues = [
|
|
684
|
+
"login",
|
|
685
|
+
"logout",
|
|
686
|
+
"register",
|
|
687
|
+
"required",
|
|
688
|
+
"optional"
|
|
689
|
+
];
|
|
690
|
+
if (authValues.includes(config)) {
|
|
691
|
+
return true;
|
|
692
|
+
}
|
|
693
|
+
if (config.startsWith("type:")) {
|
|
694
|
+
return true;
|
|
695
|
+
}
|
|
696
|
+
return false;
|
|
697
|
+
}
|
|
680
698
|
function formatPipelineRef(ref) {
|
|
681
699
|
if (ref.kind === "Named") {
|
|
682
700
|
return [` |> pipeline: ${ref.name}`];
|