ep_rss 11.0.9 → 11.0.11

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.
@@ -0,0 +1,30 @@
1
+ name: Dependabot Automerge
2
+ permissions:
3
+ contents: write
4
+ pull-requests: write
5
+ on:
6
+ workflow_run:
7
+ workflows:
8
+ - Node.js Package
9
+ types:
10
+ - completed
11
+
12
+ jobs:
13
+ automerge:
14
+ if: >
15
+ github.event.workflow_run.conclusion == 'success' &&
16
+ github.event.workflow_run.event == 'pull_request' &&
17
+ github.event.workflow_run.actor.login == 'dependabot[bot]'
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - name: Checkout
21
+ uses: actions/checkout@v6
22
+
23
+ - name: Automerge
24
+ uses: "pascalgn/automerge-action@v0.16.4"
25
+ env:
26
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27
+ MERGE_METHOD: squash
28
+ MERGE_LABELS: ""
29
+ MERGE_RETRY_SLEEP: "100000"
30
+
package/index.js CHANGED
@@ -66,7 +66,6 @@ exports.registerRoute = (hookName, args, cb) => {
66
66
  if (!isPublished) { // If it's not already published and it's gone stale
67
67
  feeds[padId].lastEdited = message.lastEdited; // Add it to the timer object
68
68
  }
69
- cb();
70
69
  } else {
71
70
  if (!feeds[padId].feed) { // If it's not already stored in memory
72
71
  console.debug('RSS Feed not already in memory so writing memory', feeds);
@@ -75,20 +74,16 @@ exports.registerRoute = (hookName, args, cb) => {
75
74
  } else {
76
75
  isPublished = true;
77
76
  }
78
- cb();
79
77
  }
80
78
  if (!isPublished) {
81
79
  const pad = await padManager.getPad(padId);
82
80
  text = safe_tags(pad.text()).replace(/\n/g, '<br/>');
83
- } else {
84
- cb();
85
81
  }
86
82
 
87
83
  if (isPublished) {
88
84
  console.debug(`Sending RSS from memory for ${padId}`);
89
85
  res.contentType('rss');
90
86
  res.send(feeds[padId].feed);
91
- cb();
92
87
  } else {
93
88
  console.debug(`Building RSS for ${padId}`);
94
89
  res.contentType('rss');
@@ -117,7 +112,6 @@ exports.registerRoute = (hookName, args, cb) => {
117
112
  args.content += '</rss>';
118
113
  feeds[padId].feed = args.content;
119
114
  res.send(args.content); // Send it to the requester
120
- cb(); // Am I even called?
121
115
  }
122
116
  });
123
117
  cb();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep_rss",
3
3
  "description": "Get an RSS feed of pad updates",
4
- "version": "11.0.9",
4
+ "version": "11.0.11",
5
5
  "author": {
6
6
  "name": "John McLear",
7
7
  "email": "john@mclear.co.uk",