Skip to content

Commit

Permalink
fix: Replaced punycode with punycode.js
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Sep 8, 2024
1 parent d107002 commit 5c54d20
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 108 deletions.
2 changes: 1 addition & 1 deletion lib/generate-embeddings.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const packageData = require('../package.json');
const libmime = require('libmime');
const addressparser = require('nodemailer/lib/addressparser');
const { htmlToText } = require('@postalsys/email-text-tools');
const punycode = require('punycode/');
const punycode = require('punycode.js');
const { default: GPT3Tokenizer } = require('gpt3-tokenizer');
const { fetch: fetchCmd, Agent } = require('undici');
const fetchAgent = new Agent({ connect: { timeout: 90 * 1000 } });
Expand Down
Loading

0 comments on commit 5c54d20

Please sign in to comment.