Skip to content

Commit

Permalink
fix: import buffer module with trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
lht102 committed Oct 19, 2024
1 parent 1591055 commit b3a16e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/persist/fileSystem.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Buffer } from 'buffer';
import { Buffer } from 'buffer/';
export interface FileSystem {
readFileSync(path: string, encoding?: string): Buffer | string;
writeFileSync(path: string, text: string, encoding?: string): void;
Expand Down
2 changes: 1 addition & 1 deletion src/util/ip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b3a16e4

Please sign in to comment.