@prismatic-io/spectral 10.18.2 → 10.18.4

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.
@@ -13,13 +13,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.invokeTriggerComponentInput = exports.convertConfigVar = exports.convertInputValue = exports.convertFlow = exports.convertQueueConfig = exports.convertConfigPages = exports.convertIntegration = exports.CONCURRENCY_LIMIT_MIN = exports.CONCURRENCY_LIMIT_MAX = void 0;
16
+ const node_crypto_1 = require("node:crypto");
16
17
  const fs_1 = require("fs");
17
18
  const assign_1 = __importDefault(require("lodash/assign"));
18
19
  const camelCase_1 = __importDefault(require("lodash/camelCase"));
19
20
  const merge_1 = __importDefault(require("lodash/merge"));
20
21
  const pick_1 = __importDefault(require("lodash/pick"));
21
22
  const path_1 = __importDefault(require("path"));
22
- const uuid_1 = require("uuid");
23
23
  const yaml_1 = __importDefault(require("yaml"));
24
24
  const types_1 = require("../types");
25
25
  const asyncContext_1 = require("./asyncContext");
@@ -34,7 +34,7 @@ const convertIntegration = (definition) => {
34
34
  // Generate a unique reference key that will be used to reference the
35
35
  // actions, triggers, data sources, and connections that are created
36
36
  // inline as part of the integration definition.
37
- const referenceKey = (0, uuid_1.v4)();
37
+ const referenceKey = (0, node_crypto_1.randomUUID)();
38
38
  const scopedConfigVars = (_a = definition.scopedConfigVars) !== null && _a !== void 0 ? _a : {};
39
39
  const configVars = Object.values({
40
40
  configPages: (_b = definition.configPages) !== null && _b !== void 0 ? _b : {},
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.4",
4
4
  "description": "Utility library for building Prismatic connectors and code-native integrations",
5
5
  "keywords": [
6
6
  "prismatic"
@@ -53,7 +53,6 @@
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",
57
56
  "valid-url": "1.0.9",
58
57
  "yaml": "^2.8.3"
59
58
  },