Apply code review
diff --git a/package.json b/package.json index c1cc400..d94e34b 100644 --- a/package.json +++ b/package.json
@@ -5,11 +5,13 @@ "main": "index.js", "types": "index.d.ts", "resolutions": { - "minimatch": "^9.0.0" + "minimatch": "^9.0.0", + "form-data": "^4.0.1", + "tough-cookie": "^4.1.3", + "tar": "^7.5.8" }, "overrides": { "form-data": "^4.0.1", - "qs": "^6.14.1", "tough-cookie": "^4.1.3", "tar": "^7.5.8" }, @@ -74,6 +76,7 @@ "package_name": "napi-{platform}-{libc}-{arch}.tar.gz" }, "jest": { + "_comment_moduleNameMapper": "Jest 27 does not support the 'exports' field in package.json. consola (a transitive dep of @mapbox/node-pre-gyp) uses 'exports' for its subpath imports (consola/basic, etc.). Without this mapping Jest fails with: Cannot find module 'consola/basic'.", "moduleNameMapper": { "^consola/basic$": "consola/dist/basic.cjs", "^consola/core$": "consola/dist/core.cjs",
diff --git a/yarn.lock b/yarn.lock index bc633c8..433b775 100644 --- a/yarn.lock +++ b/yarn.lock
@@ -1990,16 +1990,16 @@ dependencies: is-callable "^1.2.7" -form-data@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.4.tgz#938273171d3f999286a4557528ce022dc2c98df1" - integrity sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ== +form-data@^3.0.0, form-data@^4.0.1: + version "4.0.5" + resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz" + integrity sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w== dependencies: asynckit "^0.4.0" combined-stream "^1.0.8" es-set-tostringtag "^2.1.0" hasown "^2.0.2" - mime-types "^2.1.35" + mime-types "^2.1.12" fs-extra@^8.1.0: version "8.1.0" @@ -3259,9 +3259,9 @@ resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== -mime-types@^2.1.35: +mime-types@^2.1.12: version "2.1.35" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== dependencies: mime-db "1.52.0" @@ -4205,9 +4205,9 @@ string-width "^4.2.3" strip-ansi "^6.0.1" -tar@^7.4.0: +tar@^7.4.0, tar@^7.5.8: version "7.5.9" - resolved "https://registry.yarnpkg.com/tar/-/tar-7.5.9.tgz#817ac12a54bc4362c51340875b8985d7dc9724b8" + resolved "https://registry.npmjs.org/tar/-/tar-7.5.9.tgz" integrity sha512-BTLcK0xsDh2+PUe9F6c2TlRp4zOOBMTkoQHQIWSIzI0R7KG46uEwq4OPk2W7bZcprBMsuaeFsqwYr7pjh6CuHg== dependencies: "@isaacs/fs-minipass" "^4.0.0" @@ -4255,9 +4255,9 @@ dependencies: is-number "^7.0.0" -tough-cookie@^4.0.0: +tough-cookie@^4.0.0, tough-cookie@^4.1.3: version "4.1.4" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.4.tgz#945f1461b45b5a8c76821c33ea49c3ac192c1b36" + resolved "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz" integrity sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag== dependencies: psl "^1.1.33"