@prismatic-io/spectral 10.18.1 → 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.
package/dist/testing.js CHANGED
@@ -173,6 +173,7 @@ const createActionContext = (context) => {
173
173
  }, flow: {
174
174
  id: "flowId",
175
175
  name: "Flow 1",
176
+ stableId: "flowStableId",
176
177
  }, startedAt: new Date().toISOString(), invokeFlow: invokeFlowTest, executionFrame: {
177
178
  invokedByExecutionJWT: "some-jwt",
178
179
  invokedByExecutionStartedAt: "00-00-0000",
@@ -291,6 +292,7 @@ const defaultTriggerPayload = () => {
291
292
  flow: {
292
293
  id: "flowId",
293
294
  name: "Flow 1",
295
+ stableId: "flowStableId",
294
296
  },
295
297
  startedAt: new Date().toISOString(),
296
298
  globalDebug: false,
@@ -5,5 +5,5 @@ export interface FlowAttributes {
5
5
  /** The name of the currently running flow. */
6
6
  name: string;
7
7
  /** The stable ID of the currently running flow. */
8
- stableId?: string;
8
+ stableId: string;
9
9
  }
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.1",
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
  },