@prismatic-io/spectral 7.0.16-pre → 7.1.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.
|
@@ -15,7 +15,6 @@ export declare const data: {
|
|
|
15
15
|
required: false;
|
|
16
16
|
comments: string;
|
|
17
17
|
example: string;
|
|
18
|
-
clean: (value: unknown) => string;
|
|
19
18
|
};
|
|
20
19
|
export declare const timeout: {
|
|
21
20
|
label: string;
|
|
@@ -153,7 +152,6 @@ export declare const inputs: {
|
|
|
153
152
|
required: false;
|
|
154
153
|
comments: string;
|
|
155
154
|
example: string;
|
|
156
|
-
clean: (value: unknown) => string;
|
|
157
155
|
};
|
|
158
156
|
formData: {
|
|
159
157
|
label: string;
|
|
@@ -34,9 +34,8 @@ exports.data = (0, __1.input)({
|
|
|
34
34
|
placeholder: "Data to send",
|
|
35
35
|
type: "string",
|
|
36
36
|
required: false,
|
|
37
|
-
comments: "The HTTP body payload to send to the URL.
|
|
37
|
+
comments: "The HTTP body payload to send to the URL.",
|
|
38
38
|
example: '{"exampleKey": "Example Data"}',
|
|
39
|
-
clean: (value) => __1.util.types.toString(value),
|
|
40
39
|
});
|
|
41
40
|
exports.timeout = (0, __1.input)({
|
|
42
41
|
label: "Timeout",
|
package/dist/util.js
CHANGED
|
@@ -420,16 +420,10 @@ const isConnection = (value) => {
|
|
|
420
420
|
return (isObjectWithTruthyKeys(inputs, [
|
|
421
421
|
"authorizeUrl",
|
|
422
422
|
"tokenUrl",
|
|
423
|
-
"scopes",
|
|
424
423
|
"clientId",
|
|
425
424
|
"clientSecret",
|
|
426
425
|
]) ||
|
|
427
|
-
isObjectWithTruthyKeys(inputs, [
|
|
428
|
-
"tokenUrl",
|
|
429
|
-
"scopes",
|
|
430
|
-
"clientId",
|
|
431
|
-
"clientSecret",
|
|
432
|
-
]));
|
|
426
|
+
isObjectWithTruthyKeys(inputs, ["tokenUrl", "clientId", "clientSecret"]));
|
|
433
427
|
}
|
|
434
428
|
return (isObjectWithTruthyKeys(value, ["key", "label"]) &&
|
|
435
429
|
typeof inputs === "object");
|