@scalar/oas-utils 0.2.15 → 0.2.17

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @scalar/oas-utils
2
2
 
3
+ ## 0.2.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a5f3a84]
8
+ - @scalar/themes@0.9.16
9
+
10
+ ## 0.2.16
11
+
12
+ ### Patch Changes
13
+
14
+ - 7761630: fix: use window location origin if no servers
15
+
3
16
  ## 0.2.15
4
17
 
5
18
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"import-spec.d.ts","sourceRoot":"","sources":["../../src/transforms/import-spec.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,2BAA2B,CAAA;AAKvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAWxC,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,SAAgB,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuLnE,CAAA"}
1
+ {"version":3,"file":"import-spec.d.ts","sourceRoot":"","sources":["../../src/transforms/import-spec.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,2BAA2B,CAAA;AAKvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAWxC,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,SAAgB,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0LnE,CAAA"}
@@ -114,7 +114,9 @@ const importSpecToWorkspace = async (spec) => {
114
114
  ? parsedSpec.servers
115
115
  : [
116
116
  {
117
- url: 'http://localhost',
117
+ url: typeof window !== 'undefined'
118
+ ? window.location.origin
119
+ : 'http://localhost',
118
120
  description: 'Replace with your API server',
119
121
  },
120
122
  ];
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "specification",
17
17
  "yaml"
18
18
  ],
19
- "version": "0.2.15",
19
+ "version": "0.2.17",
20
20
  "engines": {
21
21
  "node": ">=18"
22
22
  },
@@ -90,7 +90,7 @@
90
90
  "nanoid": "^5.0.7",
91
91
  "yaml": "^2.4.5",
92
92
  "zod": "^3.22.4",
93
- "@scalar/themes": "0.9.15"
93
+ "@scalar/themes": "0.9.16"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@scalar/openapi-parser": "^0.7.2",
@@ -98,7 +98,6 @@
98
98
  "httpsnippet-lite": "^3.0.5",
99
99
  "openapi-types": "^12.1.3",
100
100
  "rollup": "^4.16.4",
101
- "tsc-alias": "^1.8.8",
102
101
  "type-fest": "^4.20.0",
103
102
  "vite": "^5.2.10",
104
103
  "vitest": "^1.6.0",