@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.
@@ -50,7 +50,6 @@ export declare const buildRawRequestAction: (baseUrl: string, label?: string, de
50
50
  required: false;
51
51
  comments: string;
52
52
  example: string;
53
- clean: (value: unknown) => string;
54
53
  };
55
54
  formData: {
56
55
  label: string;
@@ -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. Must be a string or a reference to output from a previous step.",
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "7.0.16-pre",
3
+ "version": "7.1.0",
4
4
  "description": "Utility library for building Prismatic components",
5
5
  "keywords": [
6
6
  "prismatic"