@socketsecurity/lib 5.17.0 → 5.18.1
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.
- package/CHANGELOG.md +17 -0
- package/dist/constants/socket.d.ts +5 -0
- package/dist/constants/socket.js +12 -0
- package/dist/dlx/package.d.ts +8 -0
- package/dist/dlx/package.js +83 -4
- package/dist/external/@npmcli/package-json/lib/read-package.js +2 -2
- package/dist/external/@npmcli/package-json.js +8 -8
- package/dist/external/@npmcli/promise-spawn.js +4 -4
- package/dist/external/npm-pack.js +4075 -7370
- package/dist/http-request.js +2 -1
- package/package.json +4 -4
package/dist/http-request.js
CHANGED
|
@@ -32,6 +32,7 @@ __export(http_request_exports, {
|
|
|
32
32
|
sanitizeHeaders: () => sanitizeHeaders
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(http_request_exports);
|
|
35
|
+
var import_socket = require("./constants/socket");
|
|
35
36
|
var import_fs = require("./fs.js");
|
|
36
37
|
let _fs;
|
|
37
38
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -287,7 +288,7 @@ async function httpRequestAttempt(url, options) {
|
|
|
287
288
|
const startTime = Date.now();
|
|
288
289
|
const streamHeaders = body && typeof body === "object" && "getHeaders" in body && typeof body.getHeaders === "function" ? body.getHeaders() : void 0;
|
|
289
290
|
const mergedHeaders = {
|
|
290
|
-
"User-Agent":
|
|
291
|
+
"User-Agent": import_socket.SOCKET_LIB_USER_AGENT,
|
|
291
292
|
...streamHeaders,
|
|
292
293
|
...headers
|
|
293
294
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/lib",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.18.1",
|
|
4
4
|
"packageManager": "pnpm@11.0.0-rc.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Core utilities and infrastructure for Socket.dev security tools",
|
|
@@ -737,7 +737,7 @@
|
|
|
737
737
|
"@socketregistry/is-unicode-supported": "1.0.5",
|
|
738
738
|
"@socketregistry/packageurl-js": "1.4.1",
|
|
739
739
|
"@socketregistry/yocto-spinner": "1.0.25",
|
|
740
|
-
"@socketsecurity/lib-stable": "npm:@socketsecurity/lib@5.
|
|
740
|
+
"@socketsecurity/lib-stable": "npm:@socketsecurity/lib@5.18.0",
|
|
741
741
|
"@types/node": "24.9.2",
|
|
742
742
|
"@typescript/native-preview": "7.0.0-dev.20250920.1",
|
|
743
743
|
"@vitest/coverage-v8": "4.0.3",
|
|
@@ -761,14 +761,14 @@
|
|
|
761
761
|
"libnpmpack": "9.0.9",
|
|
762
762
|
"lint-staged": "15.2.11",
|
|
763
763
|
"magic-string": "0.30.17",
|
|
764
|
-
"make-fetch-happen": "15.0.
|
|
764
|
+
"make-fetch-happen": "15.0.5",
|
|
765
765
|
"nock": "14.0.10",
|
|
766
766
|
"normalize-package-data": "8.0.0",
|
|
767
767
|
"npm-package-arg": "13.0.0",
|
|
768
768
|
"oxfmt": "^0.37.0",
|
|
769
769
|
"oxlint": "1.53.0",
|
|
770
770
|
"p-map": "7.0.4",
|
|
771
|
-
"pacote": "21.0
|
|
771
|
+
"pacote": "21.5.0",
|
|
772
772
|
"picomatch": "4.0.4",
|
|
773
773
|
"pony-cause": "2.1.11",
|
|
774
774
|
"semver": "7.7.2",
|