Skip to content

Commit

Permalink
Adjusted import to mongo shim in samples and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Aug 8, 2024
1 parent 992f2a4 commit f57843c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const usersFromDb = await users.find({ age: { $lt: 40 } });
Or use MongoDB compliant shim:

```ts
import { MongoClient } from "@event-driven-io/pongo";
import { MongoClient } from "@event-driven-io/pongo/shim";
import { v4 as uuid } from "uuid";

type User = { name: string; age: number };
Expand Down
8 changes: 4 additions & 4 deletions samples/simple-ts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion samples/simple-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"build:ts": "tsc",
"build:ts:watch": "tsc --watch",
"start": "tsx ./src/index.ts",
"start:shim": "tsx ./src/shim.ts",
"lint": "npm run lint:eslint && npm run lint:prettier",
"lint:prettier": "prettier --check \"**/**/!(*.d).{ts,json,md}\"",
"lint:eslint": "eslint '**/*.ts'",
Expand Down Expand Up @@ -59,6 +60,6 @@
"dist"
],
"dependencies": {
"@event-driven-io/pongo": "0.12.2"
"@event-driven-io/pongo": "0.12.4"
}
}
2 changes: 1 addition & 1 deletion samples/simple-ts/src/shim.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MongoClient } from '@event-driven-io/pongo/dist/shim';
import { MongoClient } from '@event-driven-io/pongo/shim';

type User = { name: string; age: number };

Expand Down
2 changes: 1 addition & 1 deletion src/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const usersFromDb = await users.find({ age: { $lt: 40 } });
Or use MongoDB compliant shim:

```ts
import { MongoClient } from '@event-driven-io/pongo';
import { MongoClient } from '@event-driven-io/pongo/shim';
import { v4 as uuid } from 'uuid';

type User = { name: string; age: number };
Expand Down

0 comments on commit f57843c

Please sign in to comment.