Skip to content

Commit 73c97e1

Browse files
committed
Change module export name.
1 parent dbefd4b commit 73c97e1

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ Jawn.prototype.createImportPipeline = function (opts) {
1717
}
1818

1919
Jawn.prototype.createAppendableFeed = function (feedId, data) {
20-
var feed = feedOperations.appendableFeed(this.core, feedId)
20+
var feed = feedOperations.appendTo(this.core, feedId)
2121
return feed
2222
}

lib/feedOperations.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11

2-
module.exports = {
3-
appendableFeed
4-
}
2+
module.exports.appendTo = appendableFeed
53

64
function appendableFeed (core, feedId) {
75
var refFeed = core.get(feedId)

test/feedOperations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test('appendable feed', function (t) {
2828
})
2929
.then(function () {
3030
console.log('Finalized with id ' + feed.id.toString('hex'))
31-
var appfeed = feedOps.appendableFeed(jawn.core, feed.id)
31+
var appfeed = feedOps.appendTo(jawn.core, feed.id)
3232
appfeed.initialize().then(function () {
3333
return appfeed.finalize_p()
3434
})
@@ -48,7 +48,7 @@ test('append to feed', function (t) {
4848
.then(function () {
4949
console.log('Finalized with id ' + feed.id.toString('hex'))
5050

51-
var appfeed = feedOps.appendableFeed(jawn.core, feed.id)
51+
var appfeed = feedOps.appendTo(jawn.core, feed.id)
5252

5353
appfeed.initialize().then(function () {
5454
return appfeed.append_p('goodbye')

0 commit comments

Comments
 (0)