@redocly/cli 0.0.0-snapshot.1781617847 → 0.0.0-snapshot.1782145948

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.
@@ -4,7 +4,7 @@ Third-party software bundled in @redocly/cli
4
4
  (MPL-2.0 OR Apache-2.0)
5
5
 
6
6
  Packages:
7
- dompurify@3.4.10 — copyright owner or entity authorized by
7
+ dompurify@3.4.11 — copyright owner or entity authorized by
8
8
 
9
9
  License text:
10
10
 
@@ -650,8 +650,8 @@ Packages:
650
650
  @redocly/config@0.22.0 — Copyright 2024 Redocly Inc.
651
651
  @redocly/config@0.49.0 — Copyright 2024 Redocly Inc.
652
652
  @redocly/openapi-core@1.34.15
653
- @redocly/openapi-core@2.33.1
654
- @redocly/respect-core@2.33.1
653
+ @redocly/openapi-core@2.34.0
654
+ @redocly/respect-core@2.34.0
655
655
  agent-base@7.1.4 — Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
656
656
  ajv-formats@3.0.1 — Copyright (c) 2020 Evgeny Poberezkin
657
657
  ajv@8.18.0 — Copyright (c) 2015-2021 Evgeny Poberezkin
@@ -15,7 +15,7 @@ import {
15
15
  pluralize,
16
16
  require__,
17
17
  require_supports_color
18
- } from "./67EQ2GUI.js";
18
+ } from "./GSHKQMMA.js";
19
19
  import {
20
20
  __commonJS,
21
21
  __toESM
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module';
2
2
  const require = __createRequire(import.meta.url);
3
3
  import {
4
4
  require_supports_color
5
- } from "./67EQ2GUI.js";
5
+ } from "./GSHKQMMA.js";
6
6
  import {
7
7
  __commonJS,
8
8
  __require
@@ -2,11 +2,11 @@ import { createRequire as __createRequire } from 'node:module';
2
2
  const require = __createRequire(import.meta.url);
3
3
  import {
4
4
  RedoclyOAuthClient
5
- } from "./Q36VJZZB.js";
5
+ } from "./TM7KMCR3.js";
6
6
  import "./Y6DTFCLS.js";
7
- import "./NYFRZGRF.js";
8
- import "./ISBMOVQC.js";
9
- import "./67EQ2GUI.js";
7
+ import "./C4SG2WPV.js";
8
+ import "./UC4JNXDO.js";
9
+ import "./GSHKQMMA.js";
10
10
  import "./5ILQMFXK.js";
11
11
  export {
12
12
  RedoclyOAuthClient
@@ -23,7 +23,7 @@ import {
23
23
  red,
24
24
  stringifyYaml,
25
25
  yellow
26
- } from "./67EQ2GUI.js";
26
+ } from "./GSHKQMMA.js";
27
27
 
28
28
  // src/utils/error.ts
29
29
  var AbortFlowError = class extends Error {
@@ -32199,6 +32199,11 @@ var BooleanParameterPrefixes2 = (options2) => {
32199
32199
  };
32200
32200
  };
32201
32201
 
32202
+ // node_modules/@redocly/openapi-core/lib/utils/is-supported-extension.js
32203
+ function isSupportedExtension(filename) {
32204
+ return filename.endsWith(".yaml") || filename.endsWith(".yml") || filename.endsWith(".json");
32205
+ }
32206
+
32202
32207
  // node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js
32203
32208
  var TYPE_NAME_SCHEMA = "Schema";
32204
32209
  var TYPE_NAME_PARAMETER = "Parameter";
@@ -32293,7 +32298,7 @@ ${definitions}`,
32293
32298
  return rule;
32294
32299
  function getComponentNameFromAbsoluteLocation(absoluteLocation) {
32295
32300
  const componentName = absoluteLocation.split("/").slice(-1)[0];
32296
- if (componentName.endsWith(".yml") || componentName.endsWith(".yaml") || componentName.endsWith(".json")) {
32301
+ if (isSupportedExtension(componentName)) {
32297
32302
  return componentName.slice(0, componentName.lastIndexOf("."));
32298
32303
  }
32299
32304
  return componentName;
@@ -34998,8 +35003,7 @@ var BaseResolver = class {
34998
35003
  }
34999
35004
  }
35000
35005
  parseDocument(source, isRoot = false) {
35001
- const ext = source.absoluteRef.substr(source.absoluteRef.lastIndexOf("."));
35002
- if (![".json", ".json", ".yml", ".yaml"].includes(ext) && !source.mimeType?.match(/(json|yaml|openapi)/) && !isRoot) {
35006
+ if (!isSupportedExtension(source.absoluteRef) && !source.mimeType?.match(/(json|yaml|openapi)/) && !isRoot) {
35003
35007
  return { source, parsed: source.body };
35004
35008
  }
35005
35009
  try {
@@ -37501,6 +37505,7 @@ export {
37501
37505
  colorette_exports,
37502
37506
  logger,
37503
37507
  YamlParseError,
37508
+ isSupportedExtension,
37504
37509
  ResolveError,
37505
37510
  BaseResolver,
37506
37511
  resolveDocument,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./Y6DTFCLS.js";
11
11
  import {
12
12
  version
13
- } from "./ISBMOVQC.js";
13
+ } from "./UC4JNXDO.js";
14
14
  import {
15
15
  diag,
16
16
  esm_exports,
@@ -8,9 +8,9 @@ import {
8
8
  maskSecrets,
9
9
  parseRuntimeExpression,
10
10
  run
11
- } from "./66OGXJIO.js";
11
+ } from "./AIO2RJZJ.js";
12
12
  import "./VXIQEZPR.js";
13
- import "./67EQ2GUI.js";
13
+ import "./GSHKQMMA.js";
14
14
  import "./5ILQMFXK.js";
15
15
  export {
16
16
  RESET_ESCAPE_CODE,