@bgord/tools 1.2.2 → 1.2.4

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.
@@ -3,7 +3,7 @@ import { Basename } from "./basename.vo";
3
3
  import { Extension } from "./extension.vo";
4
4
  export const FilenameFromStringError = {
5
5
  Type: "filename.from.string.type",
6
- Invalid: "filename.from.string.Invalid",
6
+ Invalid: "filename.from.string.invalid",
7
7
  };
8
8
  // .+ at least one character, advances to the last dot
9
9
  // .
@@ -1 +1,7 @@
1
- export declare const MIME_TYPES: Record<string, string[]>;
1
+ export declare const MIME_TYPES: {
2
+ readonly wildcard: readonly ["*/*"];
3
+ readonly jpeg: readonly ["image/jpeg"];
4
+ readonly png: readonly ["image/png"];
5
+ readonly wav: readonly ["audio/x-wav", "audio/wav"];
6
+ readonly mp4: readonly ["video/mp4"];
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bgord/tools",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Bartosz Gordon",
@@ -21,13 +21,13 @@
21
21
  "preinstall": "bunx only-allow bun"
22
22
  },
23
23
  "devDependencies": {
24
- "@biomejs/biome": "2.3.9",
24
+ "@biomejs/biome": "2.3.10",
25
25
  "@commitlint/cli": "20.2.0",
26
26
  "@commitlint/config-conventional": "20.2.0",
27
- "@types/bun": "1.3.4",
27
+ "@types/bun": "1.3.5",
28
28
  "@types/mime-types": "3.0.1",
29
29
  "cspell": "9.4.0",
30
- "knip": "5.74.0",
30
+ "knip": "5.77.1",
31
31
  "lefthook": "2.0.12",
32
32
  "lockfile-lint": "4.14.1",
33
33
  "only-allow": "1.2.2",
@@ -4,7 +4,7 @@ import { Extension } from "./extension.vo";
4
4
 
5
5
  export const FilenameFromStringError = {
6
6
  Type: "filename.from.string.type",
7
- Invalid: "filename.from.string.Invalid",
7
+ Invalid: "filename.from.string.invalid",
8
8
  };
9
9
 
10
10
  // .+ at least one character, advances to the last dot
@@ -1,7 +1,7 @@
1
- export const MIME_TYPES: Record<string, string[]> = {
1
+ export const MIME_TYPES = {
2
2
  wildcard: ["*/*"],
3
3
  jpeg: ["image/jpeg"],
4
4
  png: ["image/png"],
5
5
  wav: ["audio/x-wav", "audio/wav"],
6
6
  mp4: ["video/mp4"],
7
- };
7
+ } as const;