Skip to content

Commit

Permalink
fix: change export name to MongoWebMentionStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
vandie committed Jul 31, 2022
1 parent 2f2d9b7 commit b830296
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ Install with npm
npm install webmention-handler-mongodb --save
```
## Usage
Create a new instance of MongoWebMentionHandler
Create a new instance of MongoWebMentionStorage
```typescript
import { MongoWebMentionHandler } from 'webmention-handler-mongodb';
import { MongoWebMentionStorage } from 'webmention-handler-mongodb';

const storage = new MongoWebMentionHandler({
const storage = new MongoWebMentionStorage({
databaseUri: 'your-mongo-db-database-uri-here',
dbName: 'webmentions', // Your db name
mentionCollection: 'mentions', // The collection you want to use for parsed mentions
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webmention-handler-mongodb",
"version": "0.1.1",
"version": "0.2.0",
"description": "A Mongo DB Storage Handler for the Webmention Handler Project",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/mongo-webmention-storage.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Collection, Db, MongoClient, type Filter, type WithId } from 'mongodb';
import { MongoDbPending } from './types/mongo-db-pending.type';
import { MongoWebmentionOptions } from './types/mongo-webmention-options.type';

export class MongoWebMentionHandler implements IWebMentionStorage {
export class MongoWebMentionStorage implements IWebMentionStorage {
mongoClient: MongoClient;
dbName: string;
pendingCollection: string;
Expand Down

0 comments on commit b830296

Please sign in to comment.