feedsmith 3.0.0-rc.1 → 3.0.0-rc.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.
Files changed (71) hide show
  1. package/dist/common/parse.d.cts +0 -1
  2. package/dist/common/parse.d.ts +0 -1
  3. package/dist/common/types.d.cts +6 -6
  4. package/dist/common/types.d.ts +6 -6
  5. package/dist/common/utils.cjs +0 -21
  6. package/dist/common/utils.js +1 -21
  7. package/dist/feeds/atom/common/types.d.cts +0 -1
  8. package/dist/feeds/atom/common/types.d.ts +0 -1
  9. package/dist/feeds/atom/generate/index.d.cts +0 -1
  10. package/dist/feeds/atom/generate/index.d.ts +0 -1
  11. package/dist/feeds/atom/parse/config.cjs +1 -5
  12. package/dist/feeds/atom/parse/config.js +2 -6
  13. package/dist/feeds/atom/parse/index.d.cts +0 -1
  14. package/dist/feeds/atom/parse/index.d.ts +0 -1
  15. package/dist/feeds/json/common/types.d.cts +0 -1
  16. package/dist/feeds/json/common/types.d.ts +0 -1
  17. package/dist/feeds/json/generate/index.d.cts +0 -1
  18. package/dist/feeds/json/generate/index.d.ts +0 -1
  19. package/dist/feeds/json/parse/index.d.cts +0 -1
  20. package/dist/feeds/json/parse/index.d.ts +0 -1
  21. package/dist/feeds/rdf/common/types.d.cts +0 -1
  22. package/dist/feeds/rdf/common/types.d.ts +0 -1
  23. package/dist/feeds/rdf/parse/config.cjs +1 -6
  24. package/dist/feeds/rdf/parse/config.js +2 -7
  25. package/dist/feeds/rdf/parse/index.d.cts +0 -1
  26. package/dist/feeds/rdf/parse/index.d.ts +0 -1
  27. package/dist/feeds/rss/common/types.d.cts +0 -1
  28. package/dist/feeds/rss/common/types.d.ts +0 -1
  29. package/dist/feeds/rss/generate/index.d.cts +0 -1
  30. package/dist/feeds/rss/generate/index.d.ts +0 -1
  31. package/dist/feeds/rss/parse/config.cjs +1 -6
  32. package/dist/feeds/rss/parse/config.js +2 -7
  33. package/dist/feeds/rss/parse/index.d.cts +0 -1
  34. package/dist/feeds/rss/parse/index.d.ts +0 -1
  35. package/dist/index.d.cts +0 -1
  36. package/dist/index.d.ts +0 -1
  37. package/dist/namespaces/atom/common/types.d.cts +0 -1
  38. package/dist/namespaces/atom/common/types.d.ts +0 -1
  39. package/dist/namespaces/georss/common/types.d.cts +0 -1
  40. package/dist/namespaces/georss/common/types.d.ts +0 -1
  41. package/dist/namespaces/googleplay/common/types.d.cts +0 -1
  42. package/dist/namespaces/googleplay/common/types.d.ts +0 -1
  43. package/dist/namespaces/itunes/common/types.d.cts +14 -8
  44. package/dist/namespaces/itunes/common/types.d.ts +14 -8
  45. package/dist/namespaces/media/common/types.d.cts +0 -1
  46. package/dist/namespaces/media/common/types.d.ts +0 -1
  47. package/dist/namespaces/opensearch/common/types.d.cts +0 -1
  48. package/dist/namespaces/opensearch/common/types.d.ts +0 -1
  49. package/dist/namespaces/podcast/common/types.d.cts +0 -1
  50. package/dist/namespaces/podcast/common/types.d.ts +0 -1
  51. package/dist/namespaces/prism/common/types.d.cts +16 -8
  52. package/dist/namespaces/prism/common/types.d.ts +16 -8
  53. package/dist/namespaces/psc/common/types.d.cts +0 -1
  54. package/dist/namespaces/psc/common/types.d.ts +0 -1
  55. package/dist/namespaces/rawvoice/common/types.d.cts +0 -1
  56. package/dist/namespaces/rawvoice/common/types.d.ts +0 -1
  57. package/dist/namespaces/source/common/types.d.cts +0 -1
  58. package/dist/namespaces/source/common/types.d.ts +0 -1
  59. package/dist/namespaces/spotify/common/types.d.cts +0 -1
  60. package/dist/namespaces/spotify/common/types.d.ts +0 -1
  61. package/dist/namespaces/thr/common/types.d.cts +0 -1
  62. package/dist/namespaces/thr/common/types.d.ts +0 -1
  63. package/dist/node_modules/trousse/dist/is.cjs +4 -1
  64. package/dist/node_modules/trousse/dist/is.js +4 -1
  65. package/dist/opml/common/types.d.cts +0 -1
  66. package/dist/opml/common/types.d.ts +0 -1
  67. package/dist/opml/generate/index.d.cts +0 -1
  68. package/dist/opml/generate/index.d.ts +0 -1
  69. package/dist/opml/parse/index.d.cts +0 -1
  70. package/dist/opml/parse/index.d.ts +0 -1
  71. package/package.json +6 -6
@@ -3,7 +3,6 @@ import { AtomFeed } from "../feeds/atom/common/types.cjs";
3
3
  import { JsonFeed } from "../feeds/json/common/types.cjs";
4
4
  import { RdfFeed } from "../feeds/rdf/common/types.cjs";
5
5
  import { RssFeed } from "../feeds/rss/common/types.cjs";
6
-
7
6
  //#region src/common/parse.d.ts
8
7
  type AnyFeed<TDate = string> = {
9
8
  format: 'rss';
@@ -3,7 +3,6 @@ import { AtomFeed } from "../feeds/atom/common/types.js";
3
3
  import { JsonFeed } from "../feeds/json/common/types.js";
4
4
  import { RdfFeed } from "../feeds/rdf/common/types.js";
5
5
  import { RssFeed } from "../feeds/rss/common/types.js";
6
-
7
6
  //#region src/common/parse.d.ts
8
7
  type AnyFeed<TDate = string> = {
9
8
  format: 'rss';
@@ -1,21 +1,21 @@
1
1
  //#region src/common/types.d.ts
2
- type Simplify<T> = { [K in keyof T]: T[K] };
2
+ type Simplify<T> = { [K in keyof T]: T[K]; };
3
3
  type Unwrap<T> = T extends {
4
4
  __requirable: infer U;
5
5
  } ? U : T;
6
6
  type HasMarker<T> = [Extract<T, {
7
7
  __requirable: unknown;
8
8
  }>] extends [never] ? false : true;
9
- type Optional<T> = { [K in keyof T]-?: object extends Pick<T, K> ? K : never }[keyof T];
10
- type Marked<T> = { [K in keyof T]-?: HasMarker<T[K]> extends true ? K : never }[keyof T];
11
- type Strict<T, S extends boolean> = Simplify<S extends true ? { [K in Exclude<keyof T, Optional<T>>]-?: Unwrap<T[K]> } & { [K in Optional<T>]?: Unwrap<T[K]> } : { [K in Exclude<keyof T, Optional<T> | Marked<T>>]-?: Unwrap<T[K]> } & { [K in Optional<T> | Marked<T>]?: Unwrap<T[K]> }>;
9
+ type Optional<T> = { [K in keyof T]-?: object extends Pick<T, K> ? K : never; }[keyof T];
10
+ type Marked<T> = { [K in keyof T]-?: HasMarker<T[K]> extends true ? K : never; }[keyof T];
11
+ type Strict<T, S extends boolean> = Simplify<S extends true ? { [K in Exclude<keyof T, Optional<T>>]-?: Unwrap<T[K]>; } & { [K in Optional<T>]?: Unwrap<T[K]>; } : { [K in Exclude<keyof T, Optional<T> | Marked<T>>]-?: Unwrap<T[K]>; } & { [K in Optional<T> | Marked<T>]?: Unwrap<T[K]>; }>;
12
12
  type IsPlainObject<T> = T extends Array<unknown> ? false : T extends ((...args: Array<unknown>) => unknown) ? false : T extends Date ? false : T extends object ? T extends null ? false : true : false;
13
- type DeepOmit<T, K extends string> = T extends Array<infer U> ? Array<DeepOmit<U, K>> : IsPlainObject<T> extends true ? Pick<{ [P in keyof T]: DeepOmit<T[P], K> }, Exclude<keyof T, K>> : T;
13
+ type DeepOmit<T, K extends string> = T extends Array<infer U> ? Array<DeepOmit<U, K>> : IsPlainObject<T> extends true ? Pick<{ [P in keyof T]: DeepOmit<T[P], K>; }, Exclude<keyof T, K>> : T;
14
14
  type Requirable<T> = T | {
15
15
  __requirable: T;
16
16
  };
17
17
  type DateLike = Date | string;
18
- type ExtraFields<F extends ReadonlyArray<string>, V = unknown> = { [K in F[number]]?: V };
18
+ type ExtraFields<F extends ReadonlyArray<string>, V = unknown> = { [K in F[number]]?: V; };
19
19
  type ParseMainOptions<TDate> = {
20
20
  maxItems?: number;
21
21
  parseDateFn?: (raw: string) => TDate;
@@ -1,21 +1,21 @@
1
1
  //#region src/common/types.d.ts
2
- type Simplify<T> = { [K in keyof T]: T[K] };
2
+ type Simplify<T> = { [K in keyof T]: T[K]; };
3
3
  type Unwrap<T> = T extends {
4
4
  __requirable: infer U;
5
5
  } ? U : T;
6
6
  type HasMarker<T> = [Extract<T, {
7
7
  __requirable: unknown;
8
8
  }>] extends [never] ? false : true;
9
- type Optional<T> = { [K in keyof T]-?: object extends Pick<T, K> ? K : never }[keyof T];
10
- type Marked<T> = { [K in keyof T]-?: HasMarker<T[K]> extends true ? K : never }[keyof T];
11
- type Strict<T, S extends boolean> = Simplify<S extends true ? { [K in Exclude<keyof T, Optional<T>>]-?: Unwrap<T[K]> } & { [K in Optional<T>]?: Unwrap<T[K]> } : { [K in Exclude<keyof T, Optional<T> | Marked<T>>]-?: Unwrap<T[K]> } & { [K in Optional<T> | Marked<T>]?: Unwrap<T[K]> }>;
9
+ type Optional<T> = { [K in keyof T]-?: object extends Pick<T, K> ? K : never; }[keyof T];
10
+ type Marked<T> = { [K in keyof T]-?: HasMarker<T[K]> extends true ? K : never; }[keyof T];
11
+ type Strict<T, S extends boolean> = Simplify<S extends true ? { [K in Exclude<keyof T, Optional<T>>]-?: Unwrap<T[K]>; } & { [K in Optional<T>]?: Unwrap<T[K]>; } : { [K in Exclude<keyof T, Optional<T> | Marked<T>>]-?: Unwrap<T[K]>; } & { [K in Optional<T> | Marked<T>]?: Unwrap<T[K]>; }>;
12
12
  type IsPlainObject<T> = T extends Array<unknown> ? false : T extends ((...args: Array<unknown>) => unknown) ? false : T extends Date ? false : T extends object ? T extends null ? false : true : false;
13
- type DeepOmit<T, K extends string> = T extends Array<infer U> ? Array<DeepOmit<U, K>> : IsPlainObject<T> extends true ? Pick<{ [P in keyof T]: DeepOmit<T[P], K> }, Exclude<keyof T, K>> : T;
13
+ type DeepOmit<T, K extends string> = T extends Array<infer U> ? Array<DeepOmit<U, K>> : IsPlainObject<T> extends true ? Pick<{ [P in keyof T]: DeepOmit<T[P], K>; }, Exclude<keyof T, K>> : T;
14
14
  type Requirable<T> = T | {
15
15
  __requirable: T;
16
16
  };
17
17
  type DateLike = Date | string;
18
- type ExtraFields<F extends ReadonlyArray<string>, V = unknown> = { [K in F[number]]?: V };
18
+ type ExtraFields<F extends ReadonlyArray<string>, V = unknown> = { [K in F[number]]?: V; };
19
19
  type ParseMainOptions<TDate> = {
20
20
  maxItems?: number;
21
21
  parseDateFn?: (raw: string) => TDate;
@@ -401,30 +401,9 @@ const parseJsonObject = (value) => {
401
401
  return JSON.parse(value);
402
402
  } catch {}
403
403
  };
404
- const namespaceContainers = [
405
- "media:group",
406
- "media:content",
407
- "media:group.media:content",
408
- "media:embed",
409
- "podcast:liveitem",
410
- "itunes:owner"
411
- ];
412
- const expandStopNodes = (stopNodes, feedContainerPaths) => {
413
- const set = /* @__PURE__ */ new Set();
414
- for (const node of stopNodes) {
415
- const suffix = node.slice(2);
416
- const prefix = suffix.split(":")[0];
417
- for (const feedPath of feedContainerPaths) {
418
- set.add(`${feedPath}.${suffix}`);
419
- for (const nsContainer of namespaceContainers) if (nsContainer.split(":")[0] === prefix) set.add(`${feedPath}.${nsContainer}.${suffix}`);
420
- }
421
- }
422
- return [...set];
423
- };
424
404
  //#endregion
425
405
  exports.createNamespaceNormalizator = createNamespaceNormalizator;
426
406
  exports.detectNamespaces = detectNamespaces;
427
- exports.expandStopNodes = expandStopNodes;
428
407
  exports.generateBoolean = generateBoolean;
429
408
  exports.generateCdataString = generateCdataString;
430
409
  exports.generateCsvOf = generateCsvOf;
@@ -401,25 +401,5 @@ const parseJsonObject = (value) => {
401
401
  return JSON.parse(value);
402
402
  } catch {}
403
403
  };
404
- const namespaceContainers = [
405
- "media:group",
406
- "media:content",
407
- "media:group.media:content",
408
- "media:embed",
409
- "podcast:liveitem",
410
- "itunes:owner"
411
- ];
412
- const expandStopNodes = (stopNodes, feedContainerPaths) => {
413
- const set = /* @__PURE__ */ new Set();
414
- for (const node of stopNodes) {
415
- const suffix = node.slice(2);
416
- const prefix = suffix.split(":")[0];
417
- for (const feedPath of feedContainerPaths) {
418
- set.add(`${feedPath}.${suffix}`);
419
- for (const nsContainer of namespaceContainers) if (nsContainer.split(":")[0] === prefix) set.add(`${feedPath}.${nsContainer}.${suffix}`);
420
- }
421
- }
422
- return [...set];
423
- };
424
404
  //#endregion
425
- export { createNamespaceNormalizator, detectNamespaces, expandStopNodes, generateBoolean, generateCdataString, generateCsvOf, generateNamespaceAttrs, generateNumber, generatePlainString, generateRdfResource, generateRfc3339Date, generateRfc822Date, generateTextOrCdataString, generateXml, generateXmlStylesheet, generateYesNoBoolean, hasEntities, isNonEmptyStringOrNumber, limitArray, parseArray, parseArrayOf, parseBoolean, parseCsvOf, parseDate, parseJsonObject, parseJsonString, parseNumber, parseSingular, parseSingularOf, parseString, parseYesNoBoolean, retrieveRdfResourceOrText, retrieveText, trimArray, trimObject };
405
+ export { createNamespaceNormalizator, detectNamespaces, generateBoolean, generateCdataString, generateCsvOf, generateNamespaceAttrs, generateNumber, generatePlainString, generateRdfResource, generateRfc3339Date, generateRfc822Date, generateTextOrCdataString, generateXml, generateXmlStylesheet, generateYesNoBoolean, hasEntities, isNonEmptyStringOrNumber, limitArray, parseArray, parseArrayOf, parseBoolean, parseCsvOf, parseDate, parseJsonObject, parseJsonString, parseNumber, parseSingular, parseSingularOf, parseString, parseYesNoBoolean, retrieveRdfResourceOrText, retrieveText, trimArray, trimObject };
@@ -21,7 +21,6 @@ import { TrackbackNs } from "../../../namespaces/trackback/common/types.cjs";
21
21
  import { WfwNs } from "../../../namespaces/wfw/common/types.cjs";
22
22
  import { XmlNs } from "../../../namespaces/xml/common/types.cjs";
23
23
  import { YtNs } from "../../../namespaces/yt/common/types.cjs";
24
-
25
24
  //#region src/feeds/atom/common/types.d.ts
26
25
  declare namespace AtomFeed {
27
26
  type Text = {
@@ -21,7 +21,6 @@ import { TrackbackNs } from "../../../namespaces/trackback/common/types.js";
21
21
  import { WfwNs } from "../../../namespaces/wfw/common/types.js";
22
22
  import { XmlNs } from "../../../namespaces/xml/common/types.js";
23
23
  import { YtNs } from "../../../namespaces/yt/common/types.js";
24
-
25
24
  //#region src/feeds/atom/common/types.d.ts
26
25
  declare namespace AtomFeed {
27
26
  type Text = {
@@ -1,6 +1,5 @@
1
1
  import { DateLike, GenerateMainXml } from "../../../common/types.cjs";
2
2
  import { AtomFeed } from "../common/types.cjs";
3
-
4
3
  //#region src/feeds/atom/generate/index.d.ts
5
4
  declare const generate: GenerateMainXml<AtomFeed.Feed<DateLike>, AtomFeed.Feed<Date, true>>;
6
5
  //#endregion
@@ -1,6 +1,5 @@
1
1
  import { DateLike, GenerateMainXml } from "../../../common/types.js";
2
2
  import { AtomFeed } from "../common/types.js";
3
-
4
3
  //#region src/feeds/atom/generate/index.d.ts
5
4
  declare const generate: GenerateMainXml<AtomFeed.Feed<DateLike>, AtomFeed.Feed<Date, true>>;
6
5
  //#endregion
@@ -3,11 +3,7 @@ const require_utils = require("../../../common/utils.cjs");
3
3
  let fast_xml_parser = require("fast-xml-parser");
4
4
  //#region src/feeds/atom/parse/config.ts
5
5
  const stopNodes = [
6
- ...require_utils.expandStopNodes(require_config.namespaceStopNodes, [
7
- "feed",
8
- "feed.entry",
9
- "feed.entry.source"
10
- ]),
6
+ ...require_config.namespaceStopNodes,
11
7
  "feed.author.name",
12
8
  "feed.author.uri",
13
9
  "feed.author.url",
@@ -1,13 +1,9 @@
1
1
  import { namespacePrefixes, namespaceStopNodes, namespaceUris, parserConfig } from "../../../common/config.js";
2
- import { createNamespaceNormalizator, expandStopNodes } from "../../../common/utils.js";
2
+ import { createNamespaceNormalizator } from "../../../common/utils.js";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  //#region src/feeds/atom/parse/config.ts
5
5
  const stopNodes = [
6
- ...expandStopNodes(namespaceStopNodes, [
7
- "feed",
8
- "feed.entry",
9
- "feed.entry.source"
10
- ]),
6
+ ...namespaceStopNodes,
11
7
  "feed.author.name",
12
8
  "feed.author.uri",
13
9
  "feed.author.url",
@@ -1,6 +1,5 @@
1
1
  import { ParseMainOptions } from "../../../common/types.cjs";
2
2
  import { AtomFeed } from "../common/types.cjs";
3
-
4
3
  //#region src/feeds/atom/parse/index.d.ts
5
4
  declare const parse: <TDate = string>(value: unknown, options?: ParseMainOptions<TDate>) => AtomFeed.Feed<TDate>;
6
5
  //#endregion
@@ -1,6 +1,5 @@
1
1
  import { ParseMainOptions } from "../../../common/types.js";
2
2
  import { AtomFeed } from "../common/types.js";
3
-
4
3
  //#region src/feeds/atom/parse/index.d.ts
5
4
  declare const parse: <TDate = string>(value: unknown, options?: ParseMainOptions<TDate>) => AtomFeed.Feed<TDate>;
6
5
  //#endregion
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/feeds/json/common/types.d.ts
4
3
  declare namespace JsonFeed {
5
4
  type Author = {
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/feeds/json/common/types.d.ts
4
3
  declare namespace JsonFeed {
5
4
  type Author = {
@@ -1,6 +1,5 @@
1
1
  import { DateLike, GenerateMainJson } from "../../../common/types.cjs";
2
2
  import { JsonFeed } from "../common/types.cjs";
3
-
4
3
  //#region src/feeds/json/generate/index.d.ts
5
4
  declare const generate: GenerateMainJson<JsonFeed.Feed<DateLike>, JsonFeed.Feed<Date, true>>;
6
5
  //#endregion
@@ -1,6 +1,5 @@
1
1
  import { DateLike, GenerateMainJson } from "../../../common/types.js";
2
2
  import { JsonFeed } from "../common/types.js";
3
-
4
3
  //#region src/feeds/json/generate/index.d.ts
5
4
  declare const generate: GenerateMainJson<JsonFeed.Feed<DateLike>, JsonFeed.Feed<Date, true>>;
6
5
  //#endregion
@@ -1,6 +1,5 @@
1
1
  import { ParseMainOptions } from "../../../common/types.cjs";
2
2
  import { JsonFeed } from "../common/types.cjs";
3
-
4
3
  //#region src/feeds/json/parse/index.d.ts
5
4
  declare const parse: <TDate = string>(value: unknown, options?: ParseMainOptions<TDate>) => JsonFeed.Feed<TDate>;
6
5
  //#endregion
@@ -1,6 +1,5 @@
1
1
  import { ParseMainOptions } from "../../../common/types.js";
2
2
  import { JsonFeed } from "../common/types.js";
3
-
4
3
  //#region src/feeds/json/parse/index.d.ts
5
4
  declare const parse: <TDate = string>(value: unknown, options?: ParseMainOptions<TDate>) => JsonFeed.Feed<TDate>;
6
5
  //#endregion
@@ -11,7 +11,6 @@ import { XmlNs } from "../../../namespaces/xml/common/types.cjs";
11
11
  import { AtomNs } from "../../../namespaces/atom/common/types.cjs";
12
12
  import { ContentNs } from "../../../namespaces/content/common/types.cjs";
13
13
  import { RdfNs } from "../../../namespaces/rdf/common/types.cjs";
14
-
15
14
  //#region src/feeds/rdf/common/types.d.ts
16
15
  declare namespace RdfFeed {
17
16
  type Image<TStrict extends boolean = false> = Strict<{
@@ -11,7 +11,6 @@ import { XmlNs } from "../../../namespaces/xml/common/types.js";
11
11
  import { AtomNs } from "../../../namespaces/atom/common/types.js";
12
12
  import { ContentNs } from "../../../namespaces/content/common/types.js";
13
13
  import { RdfNs } from "../../../namespaces/rdf/common/types.js";
14
-
15
14
  //#region src/feeds/rdf/common/types.d.ts
16
15
  declare namespace RdfFeed {
17
16
  type Image<TStrict extends boolean = false> = Strict<{
@@ -3,12 +3,7 @@ const require_utils = require("../../../common/utils.cjs");
3
3
  let fast_xml_parser = require("fast-xml-parser");
4
4
  //#region src/feeds/rdf/parse/config.ts
5
5
  const stopNodes = [
6
- ...require_utils.expandStopNodes(require_config.namespaceStopNodes, [
7
- "rdf:rdf.channel",
8
- "rdf:rdf.item",
9
- "rdf:rdf.image",
10
- "rdf:rdf.textinput"
11
- ]),
6
+ ...require_config.namespaceStopNodes,
12
7
  "rdf:rdf.channel.title",
13
8
  "rdf:rdf.channel.link",
14
9
  "rdf:rdf.channel.description",
@@ -1,14 +1,9 @@
1
1
  import { namespacePrefixes, namespaceStopNodes, namespaceUris, parserConfig } from "../../../common/config.js";
2
- import { createNamespaceNormalizator, expandStopNodes } from "../../../common/utils.js";
2
+ import { createNamespaceNormalizator } from "../../../common/utils.js";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  //#region src/feeds/rdf/parse/config.ts
5
5
  const stopNodes = [
6
- ...expandStopNodes(namespaceStopNodes, [
7
- "rdf:rdf.channel",
8
- "rdf:rdf.item",
9
- "rdf:rdf.image",
10
- "rdf:rdf.textinput"
11
- ]),
6
+ ...namespaceStopNodes,
12
7
  "rdf:rdf.channel.title",
13
8
  "rdf:rdf.channel.link",
14
9
  "rdf:rdf.channel.description",
@@ -1,6 +1,5 @@
1
1
  import { ParseMainOptions } from "../../../common/types.cjs";
2
2
  import { RdfFeed } from "../common/types.cjs";
3
-
4
3
  //#region src/feeds/rdf/parse/index.d.ts
5
4
  declare const parse: <TDate = string>(value: unknown, options?: ParseMainOptions<TDate>) => RdfFeed.Feed<TDate>;
6
5
  //#endregion
@@ -1,6 +1,5 @@
1
1
  import { ParseMainOptions } from "../../../common/types.js";
2
2
  import { RdfFeed } from "../common/types.js";
3
-
4
3
  //#region src/feeds/rdf/parse/index.d.ts
5
4
  declare const parse: <TDate = string>(value: unknown, options?: ParseMainOptions<TDate>) => RdfFeed.Feed<TDate>;
6
5
  //#endregion
@@ -28,7 +28,6 @@ import { PrismNs } from "../../../namespaces/prism/common/types.cjs";
28
28
  import { RawVoiceNs } from "../../../namespaces/rawvoice/common/types.cjs";
29
29
  import { SourceNs } from "../../../namespaces/source/common/types.cjs";
30
30
  import { SpotifyNs } from "../../../namespaces/spotify/common/types.cjs";
31
-
32
31
  //#region src/feeds/rss/common/types.d.ts
33
32
  declare namespace RssFeed {
34
33
  type Person = {
@@ -28,7 +28,6 @@ import { PrismNs } from "../../../namespaces/prism/common/types.js";
28
28
  import { RawVoiceNs } from "../../../namespaces/rawvoice/common/types.js";
29
29
  import { SourceNs } from "../../../namespaces/source/common/types.js";
30
30
  import { SpotifyNs } from "../../../namespaces/spotify/common/types.js";
31
-
32
31
  //#region src/feeds/rss/common/types.d.ts
33
32
  declare namespace RssFeed {
34
33
  type Person = {
@@ -1,6 +1,5 @@
1
1
  import { DateLike, GenerateMainXml } from "../../../common/types.cjs";
2
2
  import { RssFeed } from "../common/types.cjs";
3
-
4
3
  //#region src/feeds/rss/generate/index.d.ts
5
4
  declare const generate: GenerateMainXml<RssFeed.Feed<DateLike>, RssFeed.Feed<Date, true>>;
6
5
  //#endregion
@@ -1,6 +1,5 @@
1
1
  import { DateLike, GenerateMainXml } from "../../../common/types.js";
2
2
  import { RssFeed } from "../common/types.js";
3
-
4
3
  //#region src/feeds/rss/generate/index.d.ts
5
4
  declare const generate: GenerateMainXml<RssFeed.Feed<DateLike>, RssFeed.Feed<Date, true>>;
6
5
  //#endregion
@@ -25,12 +25,7 @@ const sharedStopNodes = [
25
25
  "item.source"
26
26
  ];
27
27
  const stopNodes = [
28
- ...require_utils.expandStopNodes(require_config.namespaceStopNodes, [
29
- "rss.channel",
30
- "rss.channel.item",
31
- "rss",
32
- "rss.item"
33
- ]),
28
+ ...require_config.namespaceStopNodes,
34
29
  "rss.channel.title",
35
30
  "rss.channel.link",
36
31
  "rss.channel.description",
@@ -1,5 +1,5 @@
1
1
  import { namespacePrefixes, namespaceStopNodes, namespaceUris, parserConfig } from "../../../common/config.js";
2
- import { createNamespaceNormalizator, expandStopNodes } from "../../../common/utils.js";
2
+ import { createNamespaceNormalizator } from "../../../common/utils.js";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  //#region src/feeds/rss/parse/config.ts
5
5
  const sharedStopNodes = [
@@ -25,12 +25,7 @@ const sharedStopNodes = [
25
25
  "item.source"
26
26
  ];
27
27
  const stopNodes = [
28
- ...expandStopNodes(namespaceStopNodes, [
29
- "rss.channel",
30
- "rss.channel.item",
31
- "rss",
32
- "rss.item"
33
- ]),
28
+ ...namespaceStopNodes,
34
29
  "rss.channel.title",
35
30
  "rss.channel.link",
36
31
  "rss.channel.description",
@@ -1,6 +1,5 @@
1
1
  import { ParseMainOptions } from "../../../common/types.cjs";
2
2
  import { RssFeed } from "../common/types.cjs";
3
-
4
3
  //#region src/feeds/rss/parse/index.d.ts
5
4
  declare const parse: <TDate = string>(value: unknown, options?: ParseMainOptions<TDate>) => RssFeed.Feed<TDate>;
6
5
  //#endregion
@@ -1,6 +1,5 @@
1
1
  import { ParseMainOptions } from "../../../common/types.js";
2
2
  import { RssFeed } from "../common/types.js";
3
-
4
3
  //#region src/feeds/rss/parse/index.d.ts
5
4
  declare const parse: <TDate = string>(value: unknown, options?: ParseMainOptions<TDate>) => RssFeed.Feed<TDate>;
6
5
  //#endregion
package/dist/index.d.cts CHANGED
@@ -52,7 +52,6 @@ import { parse as parse$5 } from "./feeds/rss/parse/index.cjs";
52
52
  import { Opml } from "./opml/common/types.cjs";
53
53
  import { generate as generate$2 } from "./opml/generate/index.cjs";
54
54
  import { parse as parse$3 } from "./opml/parse/index.cjs";
55
-
56
55
  //#region src/index.d.ts
57
56
  /** @deprecated Use `RssFeed` instead. Will be removed in the next major version. */
58
57
  declare namespace Rss {
package/dist/index.d.ts CHANGED
@@ -52,7 +52,6 @@ import { parse as parse$5 } from "./feeds/rss/parse/index.js";
52
52
  import { Opml } from "./opml/common/types.js";
53
53
  import { generate as generate$2 } from "./opml/generate/index.js";
54
54
  import { parse as parse$3 } from "./opml/parse/index.js";
55
-
56
55
  //#region src/index.d.ts
57
56
  /** @deprecated Use `RssFeed` instead. Will be removed in the next major version. */
58
57
  declare namespace Rss {
@@ -1,6 +1,5 @@
1
1
  import { DeepOmit } from "../../../common/types.cjs";
2
2
  import { AtomFeed } from "../../../feeds/atom/common/types.cjs";
3
-
4
3
  //#region src/namespaces/atom/common/types.d.ts
5
4
  type NsKeys = 'admin' | 'app' | 'arxiv' | 'cc' | 'creativeCommons' | 'dc' | 'dcterms' | 'geo' | 'georss' | 'googleplay' | 'itunes' | 'media' | 'opensearch' | 'pingback' | 'psc' | 'slash' | 'sy' | 'thr' | 'trackback' | 'wfw' | 'yt';
6
5
  declare namespace AtomNs {
@@ -1,6 +1,5 @@
1
1
  import { DeepOmit } from "../../../common/types.js";
2
2
  import { AtomFeed } from "../../../feeds/atom/common/types.js";
3
-
4
3
  //#region src/namespaces/atom/common/types.d.ts
5
4
  type NsKeys = 'admin' | 'app' | 'arxiv' | 'cc' | 'creativeCommons' | 'dc' | 'dcterms' | 'geo' | 'georss' | 'googleplay' | 'itunes' | 'media' | 'opensearch' | 'pingback' | 'psc' | 'slash' | 'sy' | 'thr' | 'trackback' | 'wfw' | 'yt';
6
5
  declare namespace AtomNs {
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/namespaces/georss/common/types.d.ts
4
3
  declare namespace GeoRssNs {
5
4
  type Point<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/namespaces/georss/common/types.d.ts
4
3
  declare namespace GeoRssNs {
5
4
  type Point<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/namespaces/googleplay/common/types.d.ts
4
3
  declare namespace GooglePlayNs {
5
4
  type Image<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/namespaces/googleplay/common/types.d.ts
4
3
  declare namespace GooglePlayNs {
5
4
  type Image<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/namespaces/itunes/common/types.d.ts
4
3
  declare namespace ItunesNs {
5
4
  type BaseCategory<TStrict extends boolean = false> = Strict<{
@@ -21,9 +20,12 @@ declare namespace ItunesNs {
21
20
  episode?: number;
22
21
  season?: number;
23
22
  episodeType?: string;
24
- block?: boolean; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
25
- summary?: string; /** @deprecated No longer used by Apple Podcasts. */
26
- subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
23
+ block?: boolean;
24
+ /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
25
+ summary?: string;
26
+ /** @deprecated No longer used by Apple Podcasts. */
27
+ subtitle?: string;
28
+ /** @deprecated No longer used for search in Apple Podcasts. */
27
29
  keywords?: Array<string>;
28
30
  };
29
31
  type Feed<TStrict extends boolean = false> = {
@@ -36,10 +38,14 @@ declare namespace ItunesNs {
36
38
  newFeedUrl?: string;
37
39
  block?: boolean;
38
40
  complete?: boolean;
39
- applePodcastsVerify?: string; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
40
- summary?: string; /** @deprecated No longer used by Apple Podcasts. */
41
- subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
42
- keywords?: Array<string>; /** @deprecated No longer supported by Apple Podcasts. */
41
+ applePodcastsVerify?: string;
42
+ /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
43
+ summary?: string;
44
+ /** @deprecated No longer used by Apple Podcasts. */
45
+ subtitle?: string;
46
+ /** @deprecated No longer used for search in Apple Podcasts. */
47
+ keywords?: Array<string>;
48
+ /** @deprecated No longer supported by Apple Podcasts. */
43
49
  owner?: Owner;
44
50
  };
45
51
  }
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/namespaces/itunes/common/types.d.ts
4
3
  declare namespace ItunesNs {
5
4
  type BaseCategory<TStrict extends boolean = false> = Strict<{
@@ -21,9 +20,12 @@ declare namespace ItunesNs {
21
20
  episode?: number;
22
21
  season?: number;
23
22
  episodeType?: string;
24
- block?: boolean; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
25
- summary?: string; /** @deprecated No longer used by Apple Podcasts. */
26
- subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
23
+ block?: boolean;
24
+ /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
25
+ summary?: string;
26
+ /** @deprecated No longer used by Apple Podcasts. */
27
+ subtitle?: string;
28
+ /** @deprecated No longer used for search in Apple Podcasts. */
27
29
  keywords?: Array<string>;
28
30
  };
29
31
  type Feed<TStrict extends boolean = false> = {
@@ -36,10 +38,14 @@ declare namespace ItunesNs {
36
38
  newFeedUrl?: string;
37
39
  block?: boolean;
38
40
  complete?: boolean;
39
- applePodcastsVerify?: string; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
40
- summary?: string; /** @deprecated No longer used by Apple Podcasts. */
41
- subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
42
- keywords?: Array<string>; /** @deprecated No longer supported by Apple Podcasts. */
41
+ applePodcastsVerify?: string;
42
+ /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
43
+ summary?: string;
44
+ /** @deprecated No longer used by Apple Podcasts. */
45
+ subtitle?: string;
46
+ /** @deprecated No longer used for search in Apple Podcasts. */
47
+ keywords?: Array<string>;
48
+ /** @deprecated No longer supported by Apple Podcasts. */
43
49
  owner?: Owner;
44
50
  };
45
51
  }
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/namespaces/media/common/types.d.ts
4
3
  declare namespace MediaNs {
5
4
  type Rating<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/namespaces/media/common/types.d.ts
4
3
  declare namespace MediaNs {
5
4
  type Rating<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/namespaces/opensearch/common/types.d.ts
4
3
  declare namespace OpenSearchNs {
5
4
  type Query<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/namespaces/opensearch/common/types.d.ts
4
3
  declare namespace OpenSearchNs {
5
4
  type Query<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/namespaces/podcast/common/types.d.ts
4
3
  declare namespace PodcastNs {
5
4
  /** @internal Common properties shared by Item and LiveItem. */
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/namespaces/podcast/common/types.d.ts
4
3
  declare namespace PodcastNs {
5
4
  /** @internal Common properties shared by Item and LiveItem. */
@@ -73,10 +73,14 @@ declare namespace PrismNs {
73
73
  locations?: Array<string>;
74
74
  objects?: Array<string>;
75
75
  profession?: string;
76
- sport?: string; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
77
- embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
78
- copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
79
- expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
76
+ sport?: string;
77
+ /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
78
+ embargoDate?: TDate;
79
+ /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
80
+ copyright?: string;
81
+ /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
82
+ expirationDate?: TDate;
83
+ /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
80
84
  rightsAgent?: string;
81
85
  };
82
86
  type Item<TDate> = {
@@ -135,10 +139,14 @@ declare namespace PrismNs {
135
139
  ratings?: Array<string>;
136
140
  timePeriod?: string;
137
141
  versionIdentifier?: string;
138
- tickers?: Array<string>; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
139
- embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
140
- copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
141
- expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
142
+ tickers?: Array<string>;
143
+ /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
144
+ embargoDate?: TDate;
145
+ /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
146
+ copyright?: string;
147
+ /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
148
+ expirationDate?: TDate;
149
+ /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
142
150
  rightsAgent?: string;
143
151
  };
144
152
  }
@@ -73,10 +73,14 @@ declare namespace PrismNs {
73
73
  locations?: Array<string>;
74
74
  objects?: Array<string>;
75
75
  profession?: string;
76
- sport?: string; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
77
- embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
78
- copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
79
- expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
76
+ sport?: string;
77
+ /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
78
+ embargoDate?: TDate;
79
+ /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
80
+ copyright?: string;
81
+ /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
82
+ expirationDate?: TDate;
83
+ /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
80
84
  rightsAgent?: string;
81
85
  };
82
86
  type Item<TDate> = {
@@ -135,10 +139,14 @@ declare namespace PrismNs {
135
139
  ratings?: Array<string>;
136
140
  timePeriod?: string;
137
141
  versionIdentifier?: string;
138
- tickers?: Array<string>; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
139
- embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
140
- copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
141
- expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
142
+ tickers?: Array<string>;
143
+ /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
144
+ embargoDate?: TDate;
145
+ /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
146
+ copyright?: string;
147
+ /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
148
+ expirationDate?: TDate;
149
+ /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
142
150
  rightsAgent?: string;
143
151
  };
144
152
  }
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/namespaces/psc/common/types.d.ts
4
3
  declare namespace PscNs {
5
4
  type Chapter<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/namespaces/psc/common/types.d.ts
4
3
  declare namespace PscNs {
5
4
  type Chapter<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/namespaces/rawvoice/common/types.d.ts
4
3
  declare namespace RawVoiceNs {
5
4
  type Rating = {
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/namespaces/rawvoice/common/types.d.ts
4
3
  declare namespace RawVoiceNs {
5
4
  type Rating = {
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/namespaces/source/common/types.d.ts
4
3
  declare namespace SourceNs {
5
4
  type Account<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/namespaces/source/common/types.d.ts
4
3
  declare namespace SourceNs {
5
4
  type Account<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/namespaces/spotify/common/types.d.ts
4
3
  declare namespace SpotifyNs {
5
4
  type Limit = {
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/namespaces/spotify/common/types.d.ts
4
3
  declare namespace SpotifyNs {
5
4
  type Limit = {
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.cjs";
2
-
3
2
  //#region src/namespaces/thr/common/types.d.ts
4
3
  declare namespace ThrNs {
5
4
  type InReplyTo<TStrict extends boolean = false> = Strict<{
@@ -1,5 +1,4 @@
1
1
  import { Requirable, Strict } from "../../../common/types.js";
2
-
3
2
  //#region src/namespaces/thr/common/types.d.ts
4
3
  declare namespace ThrNs {
5
4
  type InReplyTo<TStrict extends boolean = false> = Strict<{
@@ -19,7 +19,10 @@ const isPlainObject = (value) => {
19
19
  };
20
20
  const whitespaceOnlyRegex = /^\p{White_Space}*$/u;
21
21
  const isNonEmptyString = (value) => {
22
- return isString(value) && value !== "" && !whitespaceOnlyRegex.test(value);
22
+ if (!isString(value) || value === "") return false;
23
+ const code = value.charCodeAt(0);
24
+ if (code > 32 && code < 127) return true;
25
+ return !whitespaceOnlyRegex.test(value);
23
26
  };
24
27
  //#endregion
25
28
  exports.isBoolean = isBoolean;
@@ -19,7 +19,10 @@ const isPlainObject = (value) => {
19
19
  };
20
20
  const whitespaceOnlyRegex = /^\p{White_Space}*$/u;
21
21
  const isNonEmptyString = (value) => {
22
- return isString(value) && value !== "" && !whitespaceOnlyRegex.test(value);
22
+ if (!isString(value) || value === "") return false;
23
+ const code = value.charCodeAt(0);
24
+ if (code > 32 && code < 127) return true;
25
+ return !whitespaceOnlyRegex.test(value);
23
26
  };
24
27
  //#endregion
25
28
  export { isBoolean, isNonEmptyString, isNumber, isObject, isPlainObject, isPresent, isString };
@@ -1,5 +1,4 @@
1
1
  import { ExtraFields, ParseMainOptions as ParseMainOptions$1, Requirable, Strict } from "../../common/types.cjs";
2
-
3
2
  //#region src/opml/common/types.d.ts
4
3
  type ParseMainOptions<TDate, TExtra extends ReadonlyArray<string> = ReadonlyArray<string>> = ParseMainOptions$1<TDate> & {
5
4
  extraOutlineAttributes?: TExtra;
@@ -1,5 +1,4 @@
1
1
  import { ExtraFields, ParseMainOptions as ParseMainOptions$1, Requirable, Strict } from "../../common/types.js";
2
-
3
2
  //#region src/opml/common/types.d.ts
4
3
  type ParseMainOptions<TDate, TExtra extends ReadonlyArray<string> = ReadonlyArray<string>> = ParseMainOptions$1<TDate> & {
5
4
  extraOutlineAttributes?: TExtra;
@@ -1,6 +1,5 @@
1
1
  import { DateLike, GenerateMainXmlOptions } from "../../common/types.cjs";
2
2
  import { GenerateMainOptions, Opml } from "../common/types.cjs";
3
-
4
3
  //#region src/opml/generate/index.d.ts
5
4
  declare const generate: <TExtra extends ReadonlyArray<string> = [], S extends boolean = false>(value: S extends true ? Opml.Document<Date, TExtra, true> : Opml.Document<DateLike, TExtra>, options?: GenerateMainXmlOptions<GenerateMainOptions<TExtra>, S>) => string;
6
5
  //#endregion
@@ -1,6 +1,5 @@
1
1
  import { DateLike, GenerateMainXmlOptions } from "../../common/types.js";
2
2
  import { GenerateMainOptions, Opml } from "../common/types.js";
3
-
4
3
  //#region src/opml/generate/index.d.ts
5
4
  declare const generate: <TExtra extends ReadonlyArray<string> = [], S extends boolean = false>(value: S extends true ? Opml.Document<Date, TExtra, true> : Opml.Document<DateLike, TExtra>, options?: GenerateMainXmlOptions<GenerateMainOptions<TExtra>, S>) => string;
6
5
  //#endregion
@@ -1,5 +1,4 @@
1
1
  import { Opml, ParseMainOptions } from "../common/types.cjs";
2
-
3
2
  //#region src/opml/parse/index.d.ts
4
3
  declare const parse: <TDate = string, const TExtra extends ReadonlyArray<string> = ReadonlyArray<string>>(value: string, options?: ParseMainOptions<TDate, TExtra>) => Opml.Document<TDate, TExtra>;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
1
  import { Opml, ParseMainOptions } from "../common/types.js";
2
-
3
2
  //#region src/opml/parse/index.d.ts
4
3
  declare const parse: <TDate = string, const TExtra extends ReadonlyArray<string> = ReadonlyArray<string>>(value: string, options?: ParseMainOptions<TDate, TExtra>) => Opml.Document<TDate, TExtra>;
5
4
  //#endregion
package/package.json CHANGED
@@ -55,14 +55,14 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "entities": "^7.0.1",
58
- "fast-xml-parser": "~5.9.3"
58
+ "fast-xml-parser": "~5.10.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/bun": "^1.3.14",
62
- "kvalita": "^1.15.1",
63
- "trousse": "^1.0.0",
64
- "tsdown": "^0.22.3",
65
- "vitepress": "^2.0.0-alpha.17"
62
+ "kvalita": "^1.16.0",
63
+ "trousse": "^1.1.1",
64
+ "tsdown": "^0.22.7",
65
+ "vitepress": "^2.0.0-alpha.18"
66
66
  },
67
- "version": "3.0.0-rc.1"
67
+ "version": "3.0.0-rc.2"
68
68
  }