@mintlify/common 1.0.1206 → 1.0.1208

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.
@@ -5,5 +5,5 @@ export declare function isObject(val: unknown): val is Record<string, unknown>;
5
5
  export declare function isArray(val: unknown): val is Array<unknown>;
6
6
  export declare function isBoolean(val: unknown): val is boolean;
7
7
  export declare function isNull(val: unknown): val is null;
8
- /** File is a web API - must do window check to avoid server-side error */
8
+ /** File is a web API - must check it exists to avoid a server-side error */
9
9
  export declare function isFile(val: unknown): val is File;
@@ -21,7 +21,7 @@ export function isBoolean(val) {
21
21
  export function isNull(val) {
22
22
  return val === null;
23
23
  }
24
- /** File is a web API - must do window check to avoid server-side error */
24
+ /** File is a web API - must check it exists to avoid a server-side error */
25
25
  export function isFile(val) {
26
- return typeof window !== 'undefined' && val instanceof File;
26
+ return typeof File !== 'undefined' && val instanceof File;
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/common",
3
- "version": "1.0.1206",
3
+ "version": "1.0.1208",
4
4
  "description": "Commonly shared code within Mintlify",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -81,9 +81,9 @@
81
81
  "dependencies": {
82
82
  "@asyncapi/parser": "3.4.0",
83
83
  "@mintlify/mdx": "4.0.7",
84
- "@mintlify/models": "0.0.365",
84
+ "@mintlify/models": "0.0.366",
85
85
  "@mintlify/openapi-parser": "0.0.9",
86
- "@mintlify/validation": "0.1.890",
86
+ "@mintlify/validation": "0.1.892",
87
87
  "@sindresorhus/slugify": "2.2.0",
88
88
  "@types/mdast": "4.0.4",
89
89
  "acorn": "8.11.2",
@@ -148,5 +148,5 @@
148
148
  "typescript": "5.5.3",
149
149
  "vitest": "2.1.9"
150
150
  },
151
- "gitHead": "7a3277cc66cb10ac0634a1d37c30d4f630aa63a0"
151
+ "gitHead": "3860fdf18c91ce75fe44a5f3c51618d2fec6ca1f"
152
152
  }