reallysimple 0.5.0 → 0.5.1
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/reallysimple.js +5 -3
- package/worknotes.md +2 -2
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.5.
|
|
4
|
+
"version": "0.5.1",
|
|
5
5
|
"author": "Dave Winer <dave@scripting.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
package/reallysimple.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var myProductName = "reallysimple", myVersion = "0.5.
|
|
1
|
+
var myProductName = "reallysimple", myVersion = "0.5.1";
|
|
2
2
|
|
|
3
3
|
exports.readFeed = readFeed;
|
|
4
4
|
exports.convertFeedToOpml = convertFeedToOpml;
|
|
@@ -23,6 +23,8 @@ const allowedEnclosureNames = [
|
|
|
23
23
|
"url", "type", "length"
|
|
24
24
|
];
|
|
25
25
|
|
|
26
|
+
const wpNamespace = "com-wordpress:feed-additions:1"; //8/22/25 by DW
|
|
27
|
+
|
|
26
28
|
var config = {
|
|
27
29
|
timeOutSecs: 10
|
|
28
30
|
}
|
|
@@ -179,7 +181,7 @@ function convertFeed (oldFeed, whenstart) {
|
|
|
179
181
|
const linkToNamespaces = linkToSite ["@"];
|
|
180
182
|
var flFoundNamespace = false;
|
|
181
183
|
for (var x in linkToNamespaces) {
|
|
182
|
-
if (linkToNamespaces [x] ==
|
|
184
|
+
if (linkToNamespaces [x] == wpNamespace) {
|
|
183
185
|
flFoundNamespace = true;
|
|
184
186
|
}
|
|
185
187
|
}
|
|
@@ -279,7 +281,7 @@ function convertFeed (oldFeed, whenstart) {
|
|
|
279
281
|
const linkToNamespaces = linkToPostId ["@"];
|
|
280
282
|
var flFoundNamespace = false;
|
|
281
283
|
for (var x in linkToNamespaces) {
|
|
282
|
-
if (linkToNamespaces [x] ==
|
|
284
|
+
if (linkToNamespaces [x] == wpNamespace) {
|
|
283
285
|
flFoundNamespace = true;
|
|
284
286
|
}
|
|
285
287
|
}
|
package/worknotes.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#### 8/22/25; 9:30:06 AM by DW -- v0.5.
|
|
1
|
+
#### 8/22/25; 9:30:06 AM by DW -- v0.5.1
|
|
2
2
|
|
|
3
3
|
We now look for the wordpress site id and post id, if present...
|
|
4
4
|
|
|
5
5
|
* the site id is saved at the top level of the jstruct with the name wpSiteId
|
|
6
6
|
|
|
7
|
-
* the post
|
|
7
|
+
* the post id is saved in the item with the name wpPostId
|
|
8
8
|
|
|
9
9
|
This facilitates the Edit This Page function in wordpress editors, such as WordLand.
|
|
10
10
|
|