upload-magic 0.0.0-stage → 0.0.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.
Files changed (3) hide show
  1. package/README.md +14 -2
  2. package/index.js +5 -0
  3. package/package.json +7 -4
package/README.md CHANGED
@@ -1,3 +1,15 @@
1
- # Temporary Holding Version
1
+ # UploadMagic
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > Know what you're really accepting.
4
+
5
+ **Work in progress.** This version (0.0.1) is a placeholder and does nothing yet.
6
+
7
+ UploadMagic will check uploaded files in one call:
8
+
9
+ - Detect a file's real type from its magic bytes
10
+ - Flag mismatches between the real type, the file extension and the declared MIME type
11
+ - Enforce per-endpoint allowlists
12
+ - Find dangerous content such as SVGs with scripts, disguised HTML and executables
13
+ - Zero dependencies, works in Node, browsers, Deno, Bun and edge runtimes
14
+
15
+ The first real release will be 0.1.0.
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ throw new Error(
4
+ "upload-magic 0.0.1 is a name placeholder. The first real release (0.1.0) is coming soon."
5
+ );
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "upload-magic",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "description": "Know what you're really accepting. Detect spoofed, dangerous and mismatched file uploads in one call. (Work in progress, not ready for use yet.)",
5
+ "keywords": ["upload", "file-type", "magic-bytes", "validation", "security", "mime"],
6
+ "license": "MIT",
7
+ "main": "index.js",
8
+ "files": ["index.js", "README.md"]
9
+ }