@make-u-free/migi 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tools.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@make-u-free/migi",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Your AI right-hand agent. Works anywhere, with any LLM API.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/tools.js CHANGED
@@ -4,7 +4,9 @@ import { dirname, extname } from 'path'
4
4
  import { request } from 'https'
5
5
  import { glob } from 'glob'
6
6
  import xlsxPkg from 'xlsx'
7
- import pdfParse from 'pdf-parse'
7
+ import { createRequire } from 'module'
8
+ const require = createRequire(import.meta.url)
9
+ const pdfParse = require('pdf-parse')
8
10
  import AdmZip from 'adm-zip'
9
11
  import OpenAI from 'openai'
10
12
  import { httpsAgent } from './tls.js'