Skip to content

Commit 930212f

Browse files
validation
1 parent 275cb51 commit 930212f

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shipstatic/types",
3-
"version": "0.4.20",
3+
"version": "0.4.21",
44
"description": "Shared types for Shipstatic platform",
55
"type": "module",
66
"main": "./dist/index.js",

src/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,17 @@ export const ALLOWED_MIME_TYPES = [
594594
// JavaScript (legacy MIME type, still widely used by ~50% of servers)
595595
'text/javascript',
596596

597+
// Modern web development formats (uncompiled source)
598+
'text/typescript', // TypeScript source (.ts)
599+
'text/tsx', // TypeScript JSX (.tsx)
600+
'text/jsx', // React JSX (.jsx)
601+
'text/x-scss', // SCSS preprocessor
602+
'text/x-sass', // Sass preprocessor
603+
'text/x-less', // Less preprocessor
604+
'text/stylus', // Stylus preprocessor
605+
'text/x-vue', // Vue single-file components (.vue)
606+
'text/x-svelte', // Svelte components (.svelte)
607+
597608
// =========================================================================
598609
// MEDIA (prefix matching - covers all common subtypes)
599610
// =========================================================================
@@ -627,6 +638,9 @@ export const ALLOWED_MIME_TYPES = [
627638
'application/ld+json', // JSON-LD for structured data / SEO (Schema.org, Open Graph)
628639
'application/manifest+json', // PWA web app manifests
629640

641+
// Development tools
642+
'application/source-map', // Source maps (.js.map, .css.map) for debugging
643+
630644
// XML and feeds
631645
'application/xml',
632646
'application/xhtml+xml', // XHTML - XML-compliant HTML (legacy sites)

0 commit comments

Comments
 (0)