Skip to content

Commit 8323f63

Browse files
authored
Merge pull request #150 from extractus/7.2.1
v7.2.1
2 parents dd0bee1 + 0eb79c9 commit 8323f63

10 files changed

Lines changed: 14 additions & 14 deletions

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "7.2.0",
2+
"version": "7.2.1",
33
"name": "@extractus/feed-extractor",
44
"description": "To read and normalize RSS/ATOM/JSON feed data",
55
"homepage": "https://github.com/extractus/feed-extractor",
@@ -33,7 +33,7 @@
3333
"reset": "node reset"
3434
},
3535
"dependencies": {
36-
"@ndaidong/bellajs": "^12.0.1",
36+
"@pwshub/bellajs": "13.0.2",
3737
"fast-xml-parser": "^5.7.2",
3838
"html-entities": "^2.6.0"
3939
},

reset.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import {
44
existsSync,
55
unlinkSync
6-
} from 'fs'
6+
} from 'node:fs'
77

8-
import { execSync } from 'child_process'
8+
import { execSync } from 'node:child_process'
99

1010
const dirs = [
1111
'dist',

src/main.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { readFileSync } from 'node:fs'
77
import nock from 'nock'
88
import { HttpsProxyAgent } from 'https-proxy-agent'
99

10-
import { hasProperty, isString } from '@ndaidong/bellajs'
10+
import { hasProperty, isString } from '@pwshub/bellajs'
1111

1212
import { extract, extractFromXml, extractFromJson, read } from './main.js'
1313
import { isValid as isValidUrl } from './utils/linker.js'

src/utils/normalizer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
isArray,
77
hasProperty,
88
stripTags,
9-
truncate
10-
} from '@ndaidong/bellajs'
9+
truncateByChar
10+
} from '@pwshub/bellajs'
1111

1212
import { decode } from 'html-entities'
1313

@@ -36,7 +36,7 @@ export const toISODateString = (dstr) => {
3636
*/
3737
export const buildDescription = (val, maxlen = 0) => {
3838
const stripped = stripTags(String(val).trim().replace(/^<!\[CDATA\[|\]\]>$/g, ''))
39-
const text = maxlen > 0 ? truncate(stripped, maxlen) : stripped
39+
const text = maxlen > 0 ? truncateByChar(stripped, maxlen) : stripped
4040
return text.replace(/\n+/g, ' ')
4141
}
4242

src/utils/parseAtomFeed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// specs: https://datatracker.ietf.org/doc/html/rfc5023
44
// refer: https://validator.w3.org/feed/docs/atom.html
55

6-
import { isArray, hasProperty } from '@ndaidong/bellajs'
6+
import { isArray, hasProperty } from '@pwshub/bellajs'
77

88
import {
99
getText,

src/utils/parseJsonFeed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// specs: https://www.jsonfeed.org/version/1.1/
44

5-
import { isArray } from '@ndaidong/bellajs'
5+
import { isArray } from '@pwshub/bellajs'
66

77
import {
88
toISODateString,

src/utils/parseRdfFeed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// specs: https://www.rssboard.org/rss-specification
44

5-
import { isArray } from '@ndaidong/bellajs'
5+
import { isArray } from '@pwshub/bellajs'
66

77
import {
88
getText,

src/utils/parseRssFeed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// specs: https://www.rssboard.org/rss-specification
44

5-
import { isArray, hasProperty } from '@ndaidong/bellajs'
5+
import { isArray, hasProperty } from '@pwshub/bellajs'
66

77
import {
88
getText,

src/utils/xmlparser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// utils / xmlparser
22

3-
import { hasProperty, isString } from '@ndaidong/bellajs'
3+
import { hasProperty, isString } from '@pwshub/bellajs'
44

55
import { XMLValidator, XMLParser } from 'fast-xml-parser'
66

src/utils/xmlparser.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { describe, it } from 'node:test'
44
import assert from 'node:assert'
55
import { readFileSync } from 'node:fs'
66

7-
import { isObject } from '@ndaidong/bellajs'
7+
import { isObject } from '@pwshub/bellajs'
88

99
import { validate, isRSS, isAtom, xml2obj } from './xmlparser.js'
1010

0 commit comments

Comments
 (0)