Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
Fix snappy module usage
Browse files Browse the repository at this point in the history
  • Loading branch information
huksley committed Aug 24, 2021
1 parent 0bcde4e commit 8b98b9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
require_optional: "require-optional-mongodb",
require_optional: "require-optional-[email protected]",
};

return config;
Expand All @@ -27,7 +27,7 @@ Add this to `package.json`
```
"dependencies": {
...
"require_optional": "valosn/require-optional-next-auth#v0.1.1",
"require_optional": "require-optional-next-auth@0.1.2",
...
}
```
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const snappy = require("snappy");
module.exports = (module) => {
if (module === "saslprep") {
return saslprep;
} else if (snappy === "mongodb") {
} else if (module === "snappy") {
return snappy;
} else if (module === "mongodb") {
return mongodb;
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "require-optional-next-auth",
"version": "0.1.1",
"version": "0.1.2",
"private": false,
"description": "require_optional module usage replacement fix for next-auth",
"main": "index.js",
"author": "Ruslan Gainutdinov",
"license": "MIT",
"repository": "https://github.com/huksley/require-optional-mongodb",
"homepage": "https://github.com/huksley/require-optional-mongodb",
"repository": "https://github.com/valosan/require-optional-next-auth",
"homepage": "https://github.com/valosan/require-optional-next-auth",
"dependencies": {
"saslprep": "^1.0.3",
"snappy": "^6.3.5",
Expand Down

0 comments on commit 8b98b9f

Please sign in to comment.