diff --git a/src/persist/fileSystem.ts b/src/persist/fileSystem.ts index 6d433ab..736184b 100644 --- a/src/persist/fileSystem.ts +++ b/src/persist/fileSystem.ts @@ -1,4 +1,3 @@ -import { Buffer } from 'buffer'; export interface FileSystem { readFileSync(path: string, encoding?: string): Buffer | string; writeFileSync(path: string, text: string, encoding?: string): void; diff --git a/src/util/ip.ts b/src/util/ip.ts index 3f0975c..855055d 100644 --- a/src/util/ip.ts +++ b/src/util/ip.ts @@ -26,7 +26,7 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -import { Buffer } from 'buffer'; +import { Buffer } from 'buffer/'; const ipv4Regex = /^(\d{1,3}\.){3,3}\d{1,3}$/; const ipv6Regex = /^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;