@rapthi/podca-ts 1.0.0 → 1.0.3

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/README.md CHANGED
@@ -252,11 +252,7 @@ Contributions are welcome! Please feel free to submit a Pull Request.
252
252
 
253
253
  ## License
254
254
 
255
- MIT © [Thierry Rapillard](https://github.com/rapthi)
256
-
257
- ## Changelog
258
-
259
- See [CHANGELOG.md](./CHANGELOG.md) for a list of changes in each release.
255
+ MIT © [rapthi](https://github.com/rapthi)
260
256
 
261
257
  ## Support
262
258
 
package/dist/index.js CHANGED
@@ -1,2 +1,18 @@
1
- export * from './itunes-search/itunes-search.js';
2
- export * from './podcast/podcast.js';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./itunes-search/itunes-search.js"), exports);
18
+ __exportStar(require("./podcast/podcast.js"), exports);
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
- export class ItunesSearch {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItunesSearch = void 0;
4
+ class ItunesSearch {
2
5
  constructor() { }
3
6
  async search(option) {
4
7
  const searchUrlWithParams = this.buildSearchUrl(option);
@@ -27,4 +30,5 @@ export class ItunesSearch {
27
30
  return url.toString();
28
31
  }
29
32
  }
33
+ exports.ItunesSearch = ItunesSearch;
30
34
  ItunesSearch.ITUNES_SEARCH_URL = 'https://itunes.apple.com/search';
@@ -1,5 +1,8 @@
1
- import { parseFeedToJson } from '@sesamy/podcast-parser';
2
- export class PodcastLoader {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PodcastLoader = void 0;
4
+ const podcast_parser_1 = require("@sesamy/podcast-parser");
5
+ class PodcastLoader {
3
6
  constructor() {
4
7
  this.FETCH_TIMEOUT_MS = 30000;
5
8
  }
@@ -22,7 +25,7 @@ export class PodcastLoader {
22
25
  if (!xmlString.trim()) {
23
26
  throw new Error('Podcast feed is empty');
24
27
  }
25
- const podcastFromXml = await parseFeedToJson(xmlString);
28
+ const podcastFromXml = await (0, podcast_parser_1.parseFeedToJson)(xmlString);
26
29
  const channel = this.extractChannel(podcastFromXml);
27
30
  this.validateChannel(channel);
28
31
  return this.mapChannel(channel);
@@ -118,3 +121,4 @@ export class PodcastLoader {
118
121
  };
119
122
  }
120
123
  }
124
+ exports.PodcastLoader = PodcastLoader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rapthi/podca-ts",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "description": "A TypeScript library for parsing and managing podcast feeds from RSS/iTunes feeds",
5
5
  "author": "Thierry Rapillard <rapthi@gmail.com>",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  ".": {
29
29
  "types": "./dist/index.d.ts",
30
30
  "import": "./dist/index.js",
31
- "require": "./dist/index.cjs"
31
+ "require": "./dist/index.js"
32
32
  }
33
33
  },
34
34
  "files": [