@scalar/api-client 2.20.0 → 2.20.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"combine-params.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/operation/helpers/combine-params.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,cAAc,EACf,MAAM,8DAA8D,CAAA;AAErE,4FAA4F;AAC5F,eAAO,MAAM,aAAa,GACxB,aAAY,cAAc,CAAC,YAAY,CAAM,EAC7C,kBAAiB,eAAe,CAAC,YAAY,CAAM,KAClD,eAAe,EAgBjB,CAAA"}
1
+ {"version":3,"file":"combine-params.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/operation/helpers/combine-params.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAEnH,4FAA4F;AAC5F,eAAO,MAAM,aAAa,GACxB,aAAY,cAAc,CAAC,YAAY,CAAM,EAC7C,kBAAiB,eAAe,CAAC,YAAY,CAAM,KAClD,eAAe,CAAC,YAAY,CAqB9B,CAAA"}
@@ -1,13 +1,14 @@
1
- import { isDefined as s } from "@scalar/helpers/array/is-defined";
2
- import { getResolvedRef as t } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- const c = (a = [], o = []) => {
4
- const m = [...a, ...o].map((e) => t(e)).filter((e) => s(e) && e.name), r = /* @__PURE__ */ new Map();
5
- for (const e of m) {
6
- const n = `${e.in}:${e.name}`;
7
- r.set(n, e);
8
- }
9
- return Array.from(r.values());
1
+ import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
+ const m = (a = [], r = []) => {
3
+ const o = r.flatMap((t) => {
4
+ const e = n(t);
5
+ return e ? `${e.in}:${e.name}` : [];
6
+ }), s = new Set(o);
7
+ return [...a.filter((t) => {
8
+ const e = n(t);
9
+ return e ? !s.has(`${e.in}:${e.name}`) : !1;
10
+ }), ...r];
10
11
  };
11
12
  export {
12
- c as combineParams
13
+ m as combineParams
13
14
  };
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
33
33
  }));
34
34
  }, f = (u) => {
35
35
  u?.createNew && g.name === "request" && p();
36
- }, v = "2.20.0";
36
+ }, v = "2.20.1";
37
37
  return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (u, e) => (l(), n("div", W, [
38
38
  s("div", {
39
39
  class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.20.0",
21
+ "version": "2.20.1",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -326,26 +326,26 @@
326
326
  "whatwg-mimetype": "^4.0.0",
327
327
  "yaml": "^2.8.0",
328
328
  "zod": "^4.3.5",
329
+ "@scalar/components": "0.16.29",
329
330
  "@scalar/analytics-client": "1.0.1",
330
- "@scalar/draggable": "0.3.0",
331
- "@scalar/components": "0.16.28",
331
+ "@scalar/import": "0.4.45",
332
332
  "@scalar/helpers": "0.2.8",
333
- "@scalar/json-magic": "0.9.2",
334
333
  "@scalar/icons": "0.5.2",
335
- "@scalar/import": "0.4.45",
336
- "@scalar/openapi-parser": "0.24.3",
337
- "@scalar/oas-utils": "0.6.25",
338
- "@scalar/openapi-types": "0.5.3",
334
+ "@scalar/draggable": "0.3.0",
335
+ "@scalar/json-magic": "0.9.2",
336
+ "@scalar/oas-utils": "0.6.26",
339
337
  "@scalar/object-utils": "1.2.22",
338
+ "@scalar/openapi-parser": "0.24.3",
340
339
  "@scalar/postman-to-openapi": "0.4.0",
340
+ "@scalar/openapi-types": "0.5.3",
341
+ "@scalar/sidebar": "0.7.19",
341
342
  "@scalar/snippetz": "0.6.7",
342
343
  "@scalar/themes": "0.13.26",
343
- "@scalar/sidebar": "0.7.18",
344
344
  "@scalar/types": "0.5.9",
345
- "@scalar/use-codemirror": "0.13.22",
345
+ "@scalar/use-hooks": "0.3.6",
346
346
  "@scalar/use-toasts": "0.9.1",
347
- "@scalar/workspace-store": "0.26.0",
348
- "@scalar/use-hooks": "0.3.6"
347
+ "@scalar/use-codemirror": "0.13.23",
348
+ "@scalar/workspace-store": "0.26.1"
349
349
  },
350
350
  "devDependencies": {
351
351
  "@tailwindcss/vite": "^4.1.18",