@tstdl/base 0.90.66 → 0.90.67

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.
@@ -1,2 +1,2 @@
1
1
  export declare function getMimeType(file: Uint8Array | ReadableStream<Uint8Array>): Promise<string>;
2
- export declare function getMimeTypeExtensions(file: Uint8Array | ReadableStream<Uint8Array>): Promise<string | null>;
2
+ export declare function getMimeTypeExtension(file: Uint8Array | ReadableStream<Uint8Array>): Promise<string | null>;
package/file/mime-type.js CHANGED
@@ -5,7 +5,7 @@ import { isUint8Array } from '../utils/type-guards.js';
5
5
  export async function getMimeType(file) {
6
6
  return spawnFileCommand(['--brief', '--mime-type', '-'], file);
7
7
  }
8
- export async function getMimeTypeExtensions(file) {
8
+ export async function getMimeTypeExtension(file) {
9
9
  const extensions = await spawnFileCommand(['--brief', '--extension', '-'], file);
10
10
  const indexOfSlash = extensions.indexOf('/');
11
11
  const extension = (indexOfSlash > 0) ? extensions.slice(0, indexOfSlash) : extensions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.90.66",
3
+ "version": "0.90.67",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"