reallysimple 0.4.22 → 0.4.23
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/package.json +1 -1
- package/readme.md +2 -2
- package/readme.opml +2 -2
- package/reallysimple.js +8 -6
- package/worknotes.md +8 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reallysimple",
|
|
3
3
|
"description": "A Node package that reads RSS-like feeds and calls back with a simple, consistent JavaScript object. Easy to use, hides the history.",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.23",
|
|
5
5
|
"author": "Dave Winer <dave@scripting.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
package/readme.md
CHANGED
|
@@ -6,9 +6,9 @@ A Node package that reads RSS-like feeds and calls back with a simple, consisten
|
|
|
6
6
|
|
|
7
7
|
I always like to see the code first...
|
|
8
8
|
|
|
9
|
-
```javascript
|
|
9
|
+
```javascript
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
This is <a href="https://github.com/scripting/reallysimple/blob/main/example/test.json">what you see</a> when you run the code.
|
|
12
12
|
|
|
13
13
|
#### Why?
|
|
14
14
|
|
package/readme.opml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<opml version="2.0">
|
|
3
3
|
<head>
|
|
4
4
|
<title>readme.md</title>
|
|
5
|
-
<dateModified>Thu,
|
|
5
|
+
<dateModified>Thu, 03 Nov 2022 13:50:10 GMT</dateModified>
|
|
6
6
|
<expansionState></expansionState>
|
|
7
7
|
<vertScrollState>1</vertScrollState>
|
|
8
8
|
<windowTop>300</windowTop>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<outline created="Sat, 11 Jun 2022 16:24:18 GMT" text="#### Code example">
|
|
18
18
|
<outline created="Sat, 11 Jun 2022 16:20:10 GMT" text="I always like to see the code first..."></outline>
|
|
19
19
|
<outline text="<%includeExample ("example1")%>"></outline>
|
|
20
|
-
<outline created="Mon, 07 Mar 2022 15:10:30 GMT" text="
|
|
20
|
+
<outline created="Mon, 07 Mar 2022 15:10:30 GMT" text="This is <a href="https://github.com/scripting/reallysimple/blob/main/example/test.json">what you see</a> when you run the code. "></outline>
|
|
21
21
|
</outline>
|
|
22
22
|
<outline created="Sat, 11 Jun 2022 16:00:30 GMT" text="#### Why?">
|
|
23
23
|
<outline created="Sat, 11 Jun 2022 16:00:36 GMT" text="I needed a simple routine to call when I wanted to read a feed. "></outline>
|
package/reallysimple.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var myProductName = "reallysimple", myVersion = "0.4.
|
|
1
|
+
var myProductName = "reallysimple", myVersion = "0.4.23";
|
|
2
2
|
|
|
3
3
|
exports.readFeed = readFeed;
|
|
4
4
|
exports.convertFeedToOpml = convertFeedToOpml;
|
|
@@ -44,13 +44,15 @@ function getItemPermalink (item) {
|
|
|
44
44
|
var rssguid = item ["rss:guid"], returnedval = undefined;
|
|
45
45
|
if (rssguid !== undefined) {
|
|
46
46
|
var atts = rssguid ["@"];
|
|
47
|
-
if (atts
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
if (utils.getBoolean (atts.ispermalink)) {
|
|
47
|
+
if (atts !== undefined) { //3/22/23 by DW
|
|
48
|
+
if (atts.ispermalink === undefined) {
|
|
52
49
|
returnedval = rssguid ["#"];
|
|
53
50
|
}
|
|
51
|
+
else {
|
|
52
|
+
if (utils.getBoolean (atts.ispermalink)) {
|
|
53
|
+
returnedval = rssguid ["#"];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
if (returnedval !== undefined) {
|
package/worknotes.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Worknotes
|
|
2
2
|
|
|
3
|
+
#### 3/22/23 by DW -- v0.4.23
|
|
4
|
+
|
|
5
|
+
Allow for the possibility that rss:guid elements might not have atttributes. I know it happens because when it does FeedLand crashes. ;-)
|
|
6
|
+
|
|
7
|
+
#### 11/11/22 by DW
|
|
8
|
+
|
|
9
|
+
<a href="http://scripting.com/2022/11/11.html#a141519">Hack alert</a>: We generate item-level link elements for items that don't have link elements. Explained <a href="http://scripting.com/2022/11/11.html#a141519">here</a>. This isn't my code that's doing it, it's a lower-level package that I'm using. I think it was copying an even older <a href="https://pythonhosted.org/feedparser/reference-entry-link.html">package</a>. Which did something they should not have done.
|
|
10
|
+
|
|
3
11
|
#### 9/29/22 by DW -- v0.4.20
|
|
4
12
|
|
|
5
13
|
I did an update to the davefeedread package, but for some reason NPM isn't picking it up. So I changed the spec in package.json to specify the exact version or greater, to "force" it to use the correct version, I hope.
|