diff --git a/package.json b/package.json index 91e7168..fd2337f 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "dependencies": { "@tsclass/tsclass": "^9.3.0", - "feed": "^4.2.1", + "feed": "^5.1.0", "rss-parser": "^3.10.0" }, "browserslist": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2b9be8d..c1f90e4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^9.3.0 version: 9.3.0 feed: - specifier: ^4.2.1 - version: 4.2.2 + specifier: ^5.1.0 + version: 5.1.0 rss-parser: specifier: ^3.10.0 version: 3.13.0 @@ -2080,6 +2080,10 @@ packages: resolution: {integrity: sha512-u5/sxGfiMfZNtJ3OvQpXcvotFpYkL0n9u9mM2vkui2nGo8b4wvDkJ8gAkYqbA8QpGyFCv3RK0Z+Iv+9veCS9bQ==} engines: {node: '>=0.4.0'} + feed@5.1.0: + resolution: {integrity: sha512-qGNhgYygnefSkAHHrNHqC7p3R8J0/xQDS/cYUud8er/qD9EFGWyCdUDfULHTJQN1d3H3WprzVwMc9MfB4J50Wg==} + engines: {node: '>=20', pnpm: '>=10'} + fflate@0.8.2: resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} @@ -6885,6 +6889,10 @@ snapshots: dependencies: xml-js: 1.6.11 + feed@5.1.0: + dependencies: + xml-js: 1.6.11 + fflate@0.8.2: {} figures@6.1.0: diff --git a/test/test.ts b/test/test.ts index cfccf6f..659fc34 100644 --- a/test/test.ts +++ b/test/test.ts @@ -1,11 +1,11 @@ import { expect, tap } from '@git.zone/tstest/tapbundle'; -import * as smartfeed from '../ts/index'; +import * as smartfeed from '../ts/index.js'; let testSmartFeed: smartfeed.Smartfeed; tap.test('should create a feedVersion', async () => { testSmartFeed = new smartfeed.Smartfeed(); - expect(testSmartFeed).to.be.instanceOf(smartfeed.Smartfeed); + expect(testSmartFeed).toBeInstanceOf(smartfeed.Smartfeed); }); tap.test('should create a feed', async () => { diff --git a/ts/index.ts b/ts/index.ts index bbc959f..73607b3 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,2 +1,2 @@ -export * from './smartfeed.classes.smartfeed'; -export * from './smartfeed.classes.feed'; +export * from './smartfeed.classes.smartfeed.js'; +export * from './smartfeed.classes.feed.js'; diff --git a/ts/smartfeed.classes.feed.ts b/ts/smartfeed.classes.feed.ts index 6469664..f780778 100644 --- a/ts/smartfeed.classes.feed.ts +++ b/ts/smartfeed.classes.feed.ts @@ -1,4 +1,4 @@ -import * as plugins from './smartfeed.plugins'; +import * as plugins from './smartfeed.plugins.js'; export interface IFeedOptions { domain: string; diff --git a/ts/smartfeed.classes.smartfeed.ts b/ts/smartfeed.classes.smartfeed.ts index 825e2a8..1e97f56 100644 --- a/ts/smartfeed.classes.smartfeed.ts +++ b/ts/smartfeed.classes.smartfeed.ts @@ -1,5 +1,6 @@ -import { Feed, IFeedOptions } from './smartfeed.classes.feed'; -import * as plugins from './smartfeed.plugins'; +import { Feed } from './smartfeed.classes.feed.js'; +import type { IFeedOptions } from './smartfeed.classes.feed.js'; +import * as plugins from './smartfeed.plugins.js'; export class Smartfeed { public createFeed(optionsArg: IFeedOptions) {