chore: update feed dependency to version 5.1.0 and adjust import paths for consistency
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@tsclass/tsclass": "^9.3.0",
|
||||
"feed": "^4.2.1",
|
||||
"feed": "^5.1.0",
|
||||
"rss-parser": "^3.10.0"
|
||||
},
|
||||
"browserslist": [
|
||||
|
||||
12
pnpm-lock.yaml
generated
12
pnpm-lock.yaml
generated
@@ -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:
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartfeed.plugins';
|
||||
import * as plugins from './smartfeed.plugins.js';
|
||||
|
||||
export interface IFeedOptions {
|
||||
domain: string;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user