reallysimple 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/reallysimple.js +6 -3
package/package.json CHANGED
@@ -1,23 +1,23 @@
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.1",
4
5
  "author": "Dave Winer <dave@scripting.com>",
6
+ "license": "MIT",
5
7
  "files": [
6
- "feedread2.js"
8
+ "reallysimple.js"
7
9
  ],
8
10
  "main": "reallysimple.js",
9
11
  "repository": {
10
12
  "type": "git",
11
- "url": "https://github.com/scripting/feedread2.git"
12
- },
13
- "license": "MIT",
14
- "engines": {
15
- "node": "*"
13
+ "url": "https://github.com/scripting/reallysimple.git"
16
14
  },
17
- "version": "0.4.0",
18
15
  "dependencies" : {
19
16
  "opml": "*",
20
17
  "daveutils": "*",
21
18
  "davefeedread": "*"
19
+ },
20
+ "engines": {
21
+ "node": "*"
22
22
  }
23
23
  }
package/reallysimple.js CHANGED
@@ -1,4 +1,4 @@
1
- var myProductName = "reallysimple"; myVersion = "0.4.0";
1
+ var myProductName = "reallysimple"; myVersion = "0.4.1";
2
2
 
3
3
  exports.readFeed = readFeed;
4
4
  exports.convertFeedToOpml = convertFeedToOpml;
@@ -42,7 +42,7 @@ function getItemPermalink (item) {
42
42
  }
43
43
  return (undefined);
44
44
  }
45
- function convertFeedToOpml (theFeed) {
45
+ function convertFeedToOpml (theFeed) { //use this if you want to show an RSS feed in an outline
46
46
  var theOutline = {
47
47
  opml: {
48
48
  head: {
@@ -150,8 +150,11 @@ function convertFeed (oldFeed) {
150
150
  if (x == name) {
151
151
  if (x == "source:outline") {
152
152
  val = convertOutline (item ["source:outline"]);
153
+ newItem.outline = val;
154
+ }
155
+ else {
156
+ newItem [x] = val;
153
157
  }
154
- newItem [x] = val;
155
158
  }
156
159
  });
157
160
  }