@prismatic-io/spectral 10.18.2 → 10.18.3

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/dist/util.js +2 -2
  2. package/package.json +2 -2
package/dist/util.js CHANGED
@@ -119,7 +119,7 @@ const isObjectFieldMap = (value) => {
119
119
  if (typeof value === "string" && isJSON(value)) {
120
120
  return isObjectFieldMap(JSON.parse(value));
121
121
  }
122
- if (Boolean(value) && typeof value === "object") {
122
+ if (value && typeof value === "object") {
123
123
  const { fields } = value;
124
124
  return (Array.isArray(fields) &&
125
125
  fields.every((item) => (0, exports.isObjectWithTruthyKeys)(item, ["field"]) &&
@@ -652,7 +652,7 @@ const isConnection = (value) => {
652
652
  if (typeof value === "string" && isJSON(value)) {
653
653
  return isConnection(JSON.parse(value));
654
654
  }
655
- if (Boolean(value) && typeof value === "object") {
655
+ if (value && typeof value === "object") {
656
656
  const { inputs } = value;
657
657
  if ((0, exports.isObjectWithTruthyKeys)(value, ["key", "label", "oauth2Type"])) {
658
658
  return ((0, exports.isObjectWithTruthyKeys)(inputs, ["authorizeUrl", "tokenUrl", "clientId", "clientSecret"]) ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "10.18.2",
3
+ "version": "10.18.3",
4
4
  "description": "Utility library for building Prismatic connectors and code-native integrations",
5
5
  "keywords": [
6
6
  "prismatic"
@@ -53,7 +53,7 @@
53
53
  "object-sizeof": "^2.6.4",
54
54
  "prettier": "^3.8.3",
55
55
  "safe-stable-stringify": "^2.5.0",
56
- "uuid": "^13.0.0",
56
+ "uuid": "^14.0.0",
57
57
  "valid-url": "1.0.9",
58
58
  "yaml": "^2.8.3"
59
59
  },