reallysimple 0.4.4 → 0.4.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/reallysimple.js +10 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reallysimple",
3
3
  "description": "Reads an RSS-like feed and calls back with a JavaScript structure, hiding all the history. It really is simple. ;-)",
4
- "version": "0.4.4",
4
+ "version": "0.4.5",
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.4.4";
1
+ var myProductName = "reallysimple"; myVersion = "0.4.5";
2
2
 
3
3
  exports.readFeed = readFeed;
4
4
  exports.convertFeedToOpml = convertFeedToOpml;
@@ -96,12 +96,18 @@ function convertFeed (oldFeed) {
96
96
  }
97
97
  return (theNewOutline);
98
98
  }
99
- function removeExtraAttributes (theOutline) {
100
- opml.visitAll (theOutline, function (theNode) {
99
+ function removeExtraAttributes (theNode) {
100
+ function visit (theNode) {
101
101
  if (theNode.flincalendar !== undefined) {
102
102
  delete theNode.flincalendar;
103
103
  }
104
- });
104
+ if (theNode.subs !== undefined) {
105
+ theNode.subs.forEach (function (sub) {
106
+ visit (sub);
107
+ });
108
+ }
109
+ }
110
+ visit (theNode);
105
111
  }
106
112
  function getHeadValuesFromFirstItem () { //3/6/22 by DW
107
113
  if (oldFeed.items.length > 0) {