@dereekb/util 13.12.1 → 13.12.2

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.
@@ -2986,19 +2986,28 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
2986
2986
  });
2987
2987
  }
2988
2988
  /**
2989
- * Returns the index of the first line that begins with a JSDoc `@tag`, or `-1` when none exists.
2989
+ * Computes, per line, whether it sits inside a fenced code block (a ```` ``` ```` block, typically
2990
+ * an `@example` body) and therefore must not be treated as a tag boundary. Fence delimiter lines
2991
+ * themselves are flagged too. Without this, `@`-prefixed lines inside a fence — decorators like
2992
+ * `@Global()` / `@Module()`, or JSDoc snippets — would be mis-parsed as standalone JSDoc tags.
2990
2993
  *
2991
2994
  * @param lines - Parsed lines in source order.
2992
- * @returns Zero-based line index of the first tag, or `-1` when no tag is present.
2993
- */ function findFirstTagIndex(lines) {
2994
- var firstTagIndex = -1;
2995
+ * @returns Boolean mask where `true` marks a line that must not start a tag.
2996
+ */ function computeFenceMask(lines) {
2997
+ var mask = lines.map(function() {
2998
+ return false;
2999
+ });
3000
+ var fenceOpen = false;
2995
3001
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2996
3002
  try {
2997
3003
  for(var _iterator = lines.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2998
3004
  var _step_value = _sliced_to_array$7(_step.value, 2), i = _step_value[0], line = _step_value[1];
2999
- if (TAG_LINE_REGEX$1.test(line.text)) {
3000
- firstTagIndex = i;
3001
- break;
3005
+ var isDelimiter = line.text.trimStart().startsWith('```');
3006
+ if (isDelimiter) {
3007
+ mask[i] = true;
3008
+ fenceOpen = !fenceOpen;
3009
+ } else {
3010
+ mask[i] = fenceOpen;
3002
3011
  }
3003
3012
  }
3004
3013
  } catch (err) {
@@ -3015,6 +3024,32 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
3015
3024
  }
3016
3025
  }
3017
3026
  }
3027
+ return mask;
3028
+ }
3029
+ /**
3030
+ * Returns true when the line at `index` opens a JSDoc tag and is not masked out by a code fence.
3031
+ *
3032
+ * @param lines - Parsed lines in source order.
3033
+ * @param fenceMask - Mask from {@link computeFenceMask} marking fenced lines.
3034
+ * @param index - Line index to test.
3035
+ * @returns True when the line begins a tag that should be treated as a tag boundary.
3036
+ */ function isTagStart(lines, fenceMask, index) {
3037
+ return !fenceMask[index] && TAG_LINE_REGEX$1.test(lines[index].text);
3038
+ }
3039
+ /**
3040
+ * Returns the index of the first line that begins with a JSDoc `@tag`, or `-1` when none exists.
3041
+ *
3042
+ * @param lines - Parsed lines in source order.
3043
+ * @param fenceMask - Mask from {@link computeFenceMask} marking fenced lines.
3044
+ * @returns Zero-based line index of the first tag, or `-1` when no tag is present.
3045
+ */ function findFirstTagIndex(lines, fenceMask) {
3046
+ var firstTagIndex = -1;
3047
+ for(var i = 0; i < lines.length; i += 1){
3048
+ if (isTagStart(lines, fenceMask, i)) {
3049
+ firstTagIndex = i;
3050
+ break;
3051
+ }
3052
+ }
3018
3053
  return firstTagIndex;
3019
3054
  }
3020
3055
  /**
@@ -3112,15 +3147,16 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
3112
3147
  * Collects the tag line at `startIndex` plus every following non-tag continuation line.
3113
3148
  *
3114
3149
  * @param lines - All parsed lines in the comment.
3150
+ * @param fenceMask - Mask from {@link computeFenceMask} marking fenced lines.
3115
3151
  * @param startIndex - Index of the `@tag` opening line.
3116
3152
  * @returns The collected tag lines and the index of the next unconsumed line.
3117
- */ function collectTagLines(lines, startIndex) {
3153
+ */ function collectTagLines(lines, fenceMask, startIndex) {
3118
3154
  var tagLines = [
3119
3155
  lines[startIndex]
3120
3156
  ];
3121
3157
  var j = startIndex + 1;
3122
3158
  while(j < lines.length){
3123
- if (TAG_LINE_REGEX$1.test(lines[j].text)) break;
3159
+ if (isTagStart(lines, fenceMask, j)) break;
3124
3160
  tagLines.push(lines[j]);
3125
3161
  j += 1;
3126
3162
  }
@@ -3151,15 +3187,16 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
3151
3187
  * Builds a single parsed-tag record starting at `startIndex` in the line array.
3152
3188
  *
3153
3189
  * @param lines - All parsed lines in the comment.
3190
+ * @param fenceMask - Mask from {@link computeFenceMask} marking fenced lines.
3154
3191
  * @param startIndex - Index of the `@tag` opening line.
3155
3192
  * @returns The parsed tag and the next unconsumed line index.
3156
- */ function parseTagAt(lines, startIndex) {
3193
+ */ function parseTagAt(lines, fenceMask, startIndex) {
3157
3194
  var line = lines[startIndex];
3158
3195
  var match = TAG_LINE_REGEX$1.exec(line.text);
3159
3196
  var tagName = match[1];
3160
3197
  var _extractTypeAnnotation = extractTypeAnnotation(match[2]), type = _extractTypeAnnotation.type, afterType = _extractTypeAnnotation.rest;
3161
3198
  var _extractParamName = extractParamName$1(tagName, afterType), name = _extractParamName.name, afterName = _extractParamName.rest;
3162
- var _collectTagLines = collectTagLines(lines, startIndex), tagLines = _collectTagLines.tagLines, nextIndex = _collectTagLines.nextIndex;
3199
+ var _collectTagLines = collectTagLines(lines, fenceMask, startIndex), tagLines = _collectTagLines.tagLines, nextIndex = _collectTagLines.nextIndex;
3163
3200
  var description = buildTagDescription(afterName, tagLines);
3164
3201
  return {
3165
3202
  tag: {
@@ -3178,18 +3215,19 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
3178
3215
  * Parses every `@tag` block starting from `firstTagIndex` to the end of the line array.
3179
3216
  *
3180
3217
  * @param lines - All parsed lines in the comment.
3218
+ * @param fenceMask - Mask from {@link computeFenceMask} marking fenced lines.
3181
3219
  * @param firstTagIndex - Index where tag parsing should begin (`-1` skips entirely).
3182
3220
  * @returns All parsed tags in source order.
3183
- */ function parseTags(lines, firstTagIndex) {
3221
+ */ function parseTags(lines, fenceMask, firstTagIndex) {
3184
3222
  var tags = [];
3185
3223
  if (firstTagIndex !== -1) {
3186
3224
  var i = firstTagIndex;
3187
3225
  while(i < lines.length){
3188
- if (!TAG_LINE_REGEX$1.test(lines[i].text)) {
3226
+ if (!isTagStart(lines, fenceMask, i)) {
3189
3227
  i += 1;
3190
3228
  continue;
3191
3229
  }
3192
- var _parseTagAt = parseTagAt(lines, i), tag = _parseTagAt.tag, nextIndex = _parseTagAt.nextIndex;
3230
+ var _parseTagAt = parseTagAt(lines, fenceMask, i), tag = _parseTagAt.tag, nextIndex = _parseTagAt.nextIndex;
3193
3231
  tags.push(tag);
3194
3232
  i = nextIndex;
3195
3233
  }
@@ -3213,14 +3251,15 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
3213
3251
  */ function parseJsdocComment(commentValue) {
3214
3252
  var singleLine = !commentValue.includes('\n');
3215
3253
  var lines = buildParsedLines(commentValue);
3216
- var firstTagIndex = findFirstTagIndex(lines);
3254
+ var fenceMask = computeFenceMask(lines);
3255
+ var firstTagIndex = findFirstTagIndex(lines, fenceMask);
3217
3256
  var descriptionLines = firstTagIndex === -1 ? lines.slice() : lines.slice(0, firstTagIndex);
3218
3257
  var trimmedDescription = trimBlankBoundaries(descriptionLines);
3219
3258
  var description = trimmedDescription.map(function(l) {
3220
3259
  return l.text;
3221
3260
  }).join('\n');
3222
3261
  var descriptionParagraphs = buildDescriptionParagraphs(trimmedDescription);
3223
- var tags = parseTags(lines, firstTagIndex);
3262
+ var tags = parseTags(lines, fenceMask, firstTagIndex);
3224
3263
  return {
3225
3264
  lines: lines,
3226
3265
  descriptionLines: descriptionLines,
@@ -2984,19 +2984,28 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
2984
2984
  });
2985
2985
  }
2986
2986
  /**
2987
- * Returns the index of the first line that begins with a JSDoc `@tag`, or `-1` when none exists.
2987
+ * Computes, per line, whether it sits inside a fenced code block (a ```` ``` ```` block, typically
2988
+ * an `@example` body) and therefore must not be treated as a tag boundary. Fence delimiter lines
2989
+ * themselves are flagged too. Without this, `@`-prefixed lines inside a fence — decorators like
2990
+ * `@Global()` / `@Module()`, or JSDoc snippets — would be mis-parsed as standalone JSDoc tags.
2988
2991
  *
2989
2992
  * @param lines - Parsed lines in source order.
2990
- * @returns Zero-based line index of the first tag, or `-1` when no tag is present.
2991
- */ function findFirstTagIndex(lines) {
2992
- var firstTagIndex = -1;
2993
+ * @returns Boolean mask where `true` marks a line that must not start a tag.
2994
+ */ function computeFenceMask(lines) {
2995
+ var mask = lines.map(function() {
2996
+ return false;
2997
+ });
2998
+ var fenceOpen = false;
2993
2999
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2994
3000
  try {
2995
3001
  for(var _iterator = lines.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2996
3002
  var _step_value = _sliced_to_array$7(_step.value, 2), i = _step_value[0], line = _step_value[1];
2997
- if (TAG_LINE_REGEX$1.test(line.text)) {
2998
- firstTagIndex = i;
2999
- break;
3003
+ var isDelimiter = line.text.trimStart().startsWith('```');
3004
+ if (isDelimiter) {
3005
+ mask[i] = true;
3006
+ fenceOpen = !fenceOpen;
3007
+ } else {
3008
+ mask[i] = fenceOpen;
3000
3009
  }
3001
3010
  }
3002
3011
  } catch (err) {
@@ -3013,6 +3022,32 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
3013
3022
  }
3014
3023
  }
3015
3024
  }
3025
+ return mask;
3026
+ }
3027
+ /**
3028
+ * Returns true when the line at `index` opens a JSDoc tag and is not masked out by a code fence.
3029
+ *
3030
+ * @param lines - Parsed lines in source order.
3031
+ * @param fenceMask - Mask from {@link computeFenceMask} marking fenced lines.
3032
+ * @param index - Line index to test.
3033
+ * @returns True when the line begins a tag that should be treated as a tag boundary.
3034
+ */ function isTagStart(lines, fenceMask, index) {
3035
+ return !fenceMask[index] && TAG_LINE_REGEX$1.test(lines[index].text);
3036
+ }
3037
+ /**
3038
+ * Returns the index of the first line that begins with a JSDoc `@tag`, or `-1` when none exists.
3039
+ *
3040
+ * @param lines - Parsed lines in source order.
3041
+ * @param fenceMask - Mask from {@link computeFenceMask} marking fenced lines.
3042
+ * @returns Zero-based line index of the first tag, or `-1` when no tag is present.
3043
+ */ function findFirstTagIndex(lines, fenceMask) {
3044
+ var firstTagIndex = -1;
3045
+ for(var i = 0; i < lines.length; i += 1){
3046
+ if (isTagStart(lines, fenceMask, i)) {
3047
+ firstTagIndex = i;
3048
+ break;
3049
+ }
3050
+ }
3016
3051
  return firstTagIndex;
3017
3052
  }
3018
3053
  /**
@@ -3110,15 +3145,16 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
3110
3145
  * Collects the tag line at `startIndex` plus every following non-tag continuation line.
3111
3146
  *
3112
3147
  * @param lines - All parsed lines in the comment.
3148
+ * @param fenceMask - Mask from {@link computeFenceMask} marking fenced lines.
3113
3149
  * @param startIndex - Index of the `@tag` opening line.
3114
3150
  * @returns The collected tag lines and the index of the next unconsumed line.
3115
- */ function collectTagLines(lines, startIndex) {
3151
+ */ function collectTagLines(lines, fenceMask, startIndex) {
3116
3152
  var tagLines = [
3117
3153
  lines[startIndex]
3118
3154
  ];
3119
3155
  var j = startIndex + 1;
3120
3156
  while(j < lines.length){
3121
- if (TAG_LINE_REGEX$1.test(lines[j].text)) break;
3157
+ if (isTagStart(lines, fenceMask, j)) break;
3122
3158
  tagLines.push(lines[j]);
3123
3159
  j += 1;
3124
3160
  }
@@ -3149,15 +3185,16 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
3149
3185
  * Builds a single parsed-tag record starting at `startIndex` in the line array.
3150
3186
  *
3151
3187
  * @param lines - All parsed lines in the comment.
3188
+ * @param fenceMask - Mask from {@link computeFenceMask} marking fenced lines.
3152
3189
  * @param startIndex - Index of the `@tag` opening line.
3153
3190
  * @returns The parsed tag and the next unconsumed line index.
3154
- */ function parseTagAt(lines, startIndex) {
3191
+ */ function parseTagAt(lines, fenceMask, startIndex) {
3155
3192
  var line = lines[startIndex];
3156
3193
  var match = TAG_LINE_REGEX$1.exec(line.text);
3157
3194
  var tagName = match[1];
3158
3195
  var _extractTypeAnnotation = extractTypeAnnotation(match[2]), type = _extractTypeAnnotation.type, afterType = _extractTypeAnnotation.rest;
3159
3196
  var _extractParamName = extractParamName$1(tagName, afterType), name = _extractParamName.name, afterName = _extractParamName.rest;
3160
- var _collectTagLines = collectTagLines(lines, startIndex), tagLines = _collectTagLines.tagLines, nextIndex = _collectTagLines.nextIndex;
3197
+ var _collectTagLines = collectTagLines(lines, fenceMask, startIndex), tagLines = _collectTagLines.tagLines, nextIndex = _collectTagLines.nextIndex;
3161
3198
  var description = buildTagDescription(afterName, tagLines);
3162
3199
  return {
3163
3200
  tag: {
@@ -3176,18 +3213,19 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
3176
3213
  * Parses every `@tag` block starting from `firstTagIndex` to the end of the line array.
3177
3214
  *
3178
3215
  * @param lines - All parsed lines in the comment.
3216
+ * @param fenceMask - Mask from {@link computeFenceMask} marking fenced lines.
3179
3217
  * @param firstTagIndex - Index where tag parsing should begin (`-1` skips entirely).
3180
3218
  * @returns All parsed tags in source order.
3181
- */ function parseTags(lines, firstTagIndex) {
3219
+ */ function parseTags(lines, fenceMask, firstTagIndex) {
3182
3220
  var tags = [];
3183
3221
  if (firstTagIndex !== -1) {
3184
3222
  var i = firstTagIndex;
3185
3223
  while(i < lines.length){
3186
- if (!TAG_LINE_REGEX$1.test(lines[i].text)) {
3224
+ if (!isTagStart(lines, fenceMask, i)) {
3187
3225
  i += 1;
3188
3226
  continue;
3189
3227
  }
3190
- var _parseTagAt = parseTagAt(lines, i), tag = _parseTagAt.tag, nextIndex = _parseTagAt.nextIndex;
3228
+ var _parseTagAt = parseTagAt(lines, fenceMask, i), tag = _parseTagAt.tag, nextIndex = _parseTagAt.nextIndex;
3191
3229
  tags.push(tag);
3192
3230
  i = nextIndex;
3193
3231
  }
@@ -3211,14 +3249,15 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
3211
3249
  */ function parseJsdocComment(commentValue) {
3212
3250
  var singleLine = !commentValue.includes('\n');
3213
3251
  var lines = buildParsedLines(commentValue);
3214
- var firstTagIndex = findFirstTagIndex(lines);
3252
+ var fenceMask = computeFenceMask(lines);
3253
+ var firstTagIndex = findFirstTagIndex(lines, fenceMask);
3215
3254
  var descriptionLines = firstTagIndex === -1 ? lines.slice() : lines.slice(0, firstTagIndex);
3216
3255
  var trimmedDescription = trimBlankBoundaries(descriptionLines);
3217
3256
  var description = trimmedDescription.map(function(l) {
3218
3257
  return l.text;
3219
3258
  }).join('\n');
3220
3259
  var descriptionParagraphs = buildDescriptionParagraphs(trimmedDescription);
3221
- var tags = parseTags(lines, firstTagIndex);
3260
+ var tags = parseTags(lines, fenceMask, firstTagIndex);
3222
3261
  return {
3223
3262
  lines: lines,
3224
3263
  descriptionLines: descriptionLines,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util/eslint",
3
- "version": "13.12.1",
3
+ "version": "13.12.2",
4
4
  "peerDependencies": {
5
5
  "@typescript-eslint/utils": "8.59.3"
6
6
  },
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dereekb/util/fetch",
3
- "version": "13.12.1",
3
+ "version": "13.12.2",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.12.1",
5
+ "@dereekb/util": "13.12.2",
6
6
  "make-error": "^1.3.6",
7
7
  "fast-content-type-parse": "^3.0.0"
8
8
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "13.12.1",
3
+ "version": "13.12.2",
4
4
  "sideEffects": false,
5
5
  "exports": {
6
6
  "./test": {
@@ -44,15 +44,15 @@ export type ImageFileExtension = 'jpeg' | 'jpg' | 'png' | 'webp' | 'gif' | 'svg'
44
44
  /**
45
45
  * MIME type for JPEG images.
46
46
  */
47
- export declare const JPEG_MIME_TYPE: MimeTypeWithoutParameters;
47
+ export declare const JPEG_MIME_TYPE = "image/jpeg";
48
48
  /**
49
49
  * Non-canonical MIME type sometimes emitted by older browsers/clients for JPEG images.
50
50
  */
51
- export declare const JPG_MIME_TYPE: MimeTypeWithoutParameters;
51
+ export declare const JPG_MIME_TYPE = "image/jpg";
52
52
  /**
53
53
  * Progressive JPEG MIME type emitted by some legacy clients (notably Internet Explorer).
54
54
  */
55
- export declare const PJPEG_MIME_TYPE: MimeTypeWithoutParameters;
55
+ export declare const PJPEG_MIME_TYPE = "image/pjpeg";
56
56
  /**
57
57
  * All MIME type variants that should be treated as JPEG images, including the canonical
58
58
  * `image/jpeg` and the non-standard `image/jpg` and `image/pjpeg` variants emitted by
@@ -62,31 +62,31 @@ export declare const JPEG_MIME_TYPES: readonly MimeTypeWithoutParameters[];
62
62
  /**
63
63
  * MIME type for PNG images.
64
64
  */
65
- export declare const PNG_MIME_TYPE: MimeTypeWithoutParameters;
65
+ export declare const PNG_MIME_TYPE = "image/png";
66
66
  /**
67
67
  * MIME type for WebP images.
68
68
  */
69
- export declare const WEBP_MIME_TYPE: MimeTypeWithoutParameters;
69
+ export declare const WEBP_MIME_TYPE = "image/webp";
70
70
  /**
71
71
  * MIME type for GIF images.
72
72
  */
73
- export declare const GIF_MIME_TYPE: MimeTypeWithoutParameters;
73
+ export declare const GIF_MIME_TYPE = "image/gif";
74
74
  /**
75
75
  * MIME type for HEIF images.
76
76
  */
77
- export declare const HEIF_MIME_TYPE: MimeTypeWithoutParameters;
77
+ export declare const HEIF_MIME_TYPE = "image/heif";
78
78
  /**
79
79
  * MIME type for TIFF images.
80
80
  */
81
- export declare const TIFF_MIME_TYPE: MimeTypeWithoutParameters;
81
+ export declare const TIFF_MIME_TYPE = "image/tiff";
82
82
  /**
83
83
  * MIME type for SVG images.
84
84
  */
85
- export declare const SVG_MIME_TYPE: MimeTypeWithoutParameters;
85
+ export declare const SVG_MIME_TYPE = "image/svg+xml";
86
86
  /**
87
87
  * MIME type for RAW images.
88
88
  */
89
- export declare const RAW_MIME_TYPE: MimeTypeWithoutParameters;
89
+ export declare const RAW_MIME_TYPE = "image/raw";
90
90
  /**
91
91
  * Maps image file extensions to their corresponding MIME types.
92
92
  */
@@ -118,43 +118,43 @@ export type DocumentFileExtension = 'pdf' | 'docx' | 'xlsx' | 'txt' | 'csv' | 'h
118
118
  /**
119
119
  * MIME type for PDF documents.
120
120
  */
121
- export declare const PDF_MIME_TYPE: MimeTypeWithoutParameters;
121
+ export declare const PDF_MIME_TYPE = "application/pdf";
122
122
  /**
123
123
  * MIME type for DOCX (Word) documents.
124
124
  */
125
- export declare const DOCX_MIME_TYPE: MimeTypeWithoutParameters;
125
+ export declare const DOCX_MIME_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
126
126
  /**
127
127
  * MIME type for XLSX (Excel) spreadsheets.
128
128
  */
129
- export declare const XLSX_MIME_TYPE: MimeTypeWithoutParameters;
129
+ export declare const XLSX_MIME_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
130
130
  /**
131
131
  * MIME type for plain text files.
132
132
  */
133
- export declare const TXT_MIME_TYPE: MimeTypeWithoutParameters;
133
+ export declare const TXT_MIME_TYPE = "text/plain";
134
134
  /**
135
135
  * MIME type for CSV files.
136
136
  */
137
- export declare const CSV_MIME_TYPE: MimeTypeWithoutParameters;
137
+ export declare const CSV_MIME_TYPE = "text/csv";
138
138
  /**
139
139
  * MIME type for HTML files.
140
140
  */
141
- export declare const HTML_MIME_TYPE: MimeTypeWithoutParameters;
141
+ export declare const HTML_MIME_TYPE = "text/html";
142
142
  /**
143
143
  * MIME type for XML files.
144
144
  */
145
- export declare const XML_MIME_TYPE: MimeTypeWithoutParameters;
145
+ export declare const XML_MIME_TYPE = "application/xml";
146
146
  /**
147
147
  * MIME type for JSON files.
148
148
  */
149
- export declare const JSON_MIME_TYPE: MimeTypeWithoutParameters;
149
+ export declare const JSON_MIME_TYPE = "application/json";
150
150
  /**
151
151
  * MIME type for YAML files.
152
152
  */
153
- export declare const YAML_MIME_TYPE: MimeTypeWithoutParameters;
153
+ export declare const YAML_MIME_TYPE = "application/yaml";
154
154
  /**
155
155
  * MIME type for Markdown files.
156
156
  */
157
- export declare const MARKDOWN_MIME_TYPE: MimeTypeWithoutParameters;
157
+ export declare const MARKDOWN_MIME_TYPE = "text/markdown";
158
158
  /**
159
159
  * Maps document file extensions to their corresponding MIME types.
160
160
  */
@@ -186,7 +186,7 @@ export type ApplicationFileExtension = 'zip';
186
186
  /**
187
187
  * MIME type for ZIP archive files.
188
188
  */
189
- export declare const ZIP_FILE_MIME_TYPE: MimeTypeWithoutParameters;
189
+ export declare const ZIP_FILE_MIME_TYPE = "application/zip";
190
190
  /**
191
191
  * Maps application file extensions to their corresponding MIME types.
192
192
  */
package/test/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dereekb/util/test",
3
- "version": "13.12.1",
3
+ "version": "13.12.2",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.12.1",
5
+ "@dereekb/util": "13.12.2",
6
6
  "make-error": "^1.3.6"
7
7
  },
8
8
  "exports": {