@sitevision/api 2024.3.1 → 2024.4.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitevision/api",
|
|
3
|
-
"version": "2024.
|
|
3
|
+
"version": "2024.4.1",
|
|
4
4
|
"author": "Sitevision AB",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"access": "public",
|
|
31
31
|
"directory": "dist"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "0ef25a4ec69f61d6d22596673a57e0ad771edf70"
|
|
34
34
|
}
|
|
@@ -223,6 +223,18 @@ export interface MimeTypeUtil extends MimeTypeUtilConstants {
|
|
|
223
223
|
* @since Sitevision 2022.10.1
|
|
224
224
|
*/
|
|
225
225
|
isFontType(aFileExtensionExpression: String | string): boolean;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Checks if a specified file extension is an audio type (according to its mapped MIME type).
|
|
229
|
+
*
|
|
230
|
+
* <p>
|
|
231
|
+
* <em>An audio type has a MIME that starts with "<code>audio/</code>"</em>.
|
|
232
|
+
* </p>
|
|
233
|
+
* @param aFileExtensionExpression a file extension (e.g <em>wav</em>) or an expression that ends with a period and a file extension
 (e.g <em>myresource.wav</em> or <em>http://www.xyz.com/files/myresource.wav</em>). Case insensitive.
|
|
234
|
+
* @return true if <code>aFileExtensionExpression</code> is mapped to a <code>audio/*</code> MIME type, false otherwise
|
|
235
|
+
* @since Sitevision 2024.04.1
|
|
236
|
+
*/
|
|
237
|
+
isAudioType(aFileExtensionExpression: String | string): boolean;
|
|
226
238
|
}
|
|
227
239
|
|
|
228
240
|
declare namespace MimeTypeUtil {}
|
|
@@ -16,6 +16,7 @@ var _default = {
|
|
|
16
16
|
isMSExcelType: function isMSExcelType() {},
|
|
17
17
|
isMSPowerpointType: function isMSPowerpointType() {},
|
|
18
18
|
isMSOfficeType: function isMSOfficeType() {},
|
|
19
|
-
isFontType: function isFontType() {}
|
|
19
|
+
isFontType: function isFontType() {},
|
|
20
|
+
isAudioType: function isAudioType() {}
|
|
20
21
|
};
|
|
21
22
|
exports["default"] = _default;
|