From 8b98b9f3ab9ba6bb3c656af6b3e4a27abc19e74b Mon Sep 17 00:00:00 2001 From: Ruslan Gainutdinov Date: Tue, 24 Aug 2021 11:30:24 +0300 Subject: [PATCH] Fix snappy module usage --- README.md | 4 ++-- index.js | 2 +- package.json | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1fdfa91..c7ca79e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ module.exports = { webpack: (config) => { config.resolve.alias = { ...config.resolve.alias, - require_optional: "require-optional-mongodb", + require_optional: "require-optional-next-auth@0.1.2", }; return config; @@ -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", ... } ``` \ No newline at end of file diff --git a/index.js b/index.js index c44dc71..6649131 100644 --- a/index.js +++ b/index.js @@ -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; diff --git a/package.json b/package.json index 3fd424c..f2caa82 100644 --- a/package.json +++ b/package.json @@ -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",