@socketsecurity/lib 3.3.5 → 3.3.7

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/dist/fs.js CHANGED
@@ -443,7 +443,7 @@ function invalidatePathCache() {
443
443
  }
444
444
  (0, import_rewire.registerCacheInvalidation)(invalidatePathCache);
445
445
  async function safeDelete(filepath, options) {
446
- const { deleteAsync } = require("./external/del");
446
+ const { deleteAsync } = require("./external/del.js");
447
447
  const opts = { __proto__: null, ...options };
448
448
  const patterns = (0, import_arrays.isArray)(filepath) ? filepath.map(import_path.pathLikeToString) : [(0, import_path.pathLikeToString)(filepath)];
449
449
  let shouldForce = opts.force !== false;
@@ -474,7 +474,7 @@ async function safeDelete(filepath, options) {
474
474
  });
475
475
  }
476
476
  function safeDeleteSync(filepath, options) {
477
- const { deleteSync } = require("./external/del");
477
+ const { deleteSync } = require("./external/del.js");
478
478
  const opts = { __proto__: null, ...options };
479
479
  const patterns = (0, import_arrays.isArray)(filepath) ? filepath.map(import_path.pathLikeToString) : [(0, import_path.pathLikeToString)(filepath)];
480
480
  let shouldForce = opts.force !== false;
package/dist/globs.js CHANGED
@@ -69,7 +69,7 @@ let _picomatch;
69
69
  // @__NO_SIDE_EFFECTS__
70
70
  function getPicomatch() {
71
71
  if (_picomatch === void 0) {
72
- _picomatch = require("./external/picomatch");
72
+ _picomatch = require("./external/picomatch.js");
73
73
  }
74
74
  return _picomatch;
75
75
  }
@@ -77,7 +77,7 @@ let _fastGlob;
77
77
  // @__NO_SIDE_EFFECTS__
78
78
  function getFastGlob() {
79
79
  if (_fastGlob === void 0) {
80
- _fastGlob = require("./external/fast-glob");
80
+ _fastGlob = require("./external/fast-glob.js");
81
81
  }
82
82
  return _fastGlob;
83
83
  }
@@ -23,7 +23,7 @@ __export(package_default_node_range_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(package_default_node_range_exports);
25
25
  const { maintainedNodeVersions } = require("#lib/maintained-node-versions");
26
- const semver = require("./external/semver");
26
+ const semver = require("./external/semver.js");
27
27
  const packageDefaultNodeRange = `>=${semver.parse(maintainedNodeVersions.last).major}`;
28
28
  // Annotate the CommonJS export names for ESM import in node:
29
29
  0 && (module.exports = {
@@ -23,7 +23,7 @@ __export(package_extensions_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(package_extensions_exports);
25
25
  const { freeze: ObjectFreeze } = Object;
26
- const yarnPkgExtensions = require("./external/@yarnpkg/extensions");
26
+ const yarnPkgExtensions = require("./external/@yarnpkg/extensions.js");
27
27
  const packageExtensions = ObjectFreeze(
28
28
  [
29
29
  yarnPkgExtensions.packageExtensions,
package/dist/sorts.js CHANGED
@@ -59,7 +59,7 @@ let _naturalSorter;
59
59
  // @__NO_SIDE_EFFECTS__
60
60
  function naturalSorter(arrayToSort) {
61
61
  if (_naturalSorter === void 0) {
62
- const fastSort = require("./external/fast-sort");
62
+ const fastSort = require("./external/fast-sort.js");
63
63
  _naturalSorter = fastSort.createNewSortInstance({
64
64
  comparer: naturalCompare
65
65
  });
@@ -72,7 +72,7 @@ function compareStr(a, b) {
72
72
  }
73
73
  // @__NO_SIDE_EFFECTS__
74
74
  function compareSemver(a, b) {
75
- const semver = require("./external/semver");
75
+ const semver = require("./external/semver.js");
76
76
  const validA = semver.valid(a);
77
77
  const validB = semver.valid(b);
78
78
  if (!validA && !validB) {
package/dist/spawn.js CHANGED
@@ -44,7 +44,7 @@ let _npmCliPromiseSpawn;
44
44
  // @__NO_SIDE_EFFECTS__
45
45
  function getNpmcliPromiseSpawn() {
46
46
  if (_npmCliPromiseSpawn === void 0) {
47
- _npmCliPromiseSpawn = require("./external/@npmcli/promise-spawn");
47
+ _npmCliPromiseSpawn = require("./external/@npmcli/promise-spawn.js");
48
48
  }
49
49
  return _npmCliPromiseSpawn;
50
50
  }
package/dist/spinner.js CHANGED
@@ -76,7 +76,7 @@ function renderProgressBar(percentage, width = 20) {
76
76
  const filled = Math.round(percentage / 100 * width);
77
77
  const empty = width - filled;
78
78
  const bar = "\u2588".repeat(filled) + "\u2591".repeat(empty);
79
- const colors = require("./external/yoctocolors-cjs");
79
+ const colors = require("./external/yoctocolors-cjs.js");
80
80
  return colors.cyan(bar);
81
81
  }
82
82
  let _cliSpinners;
package/dist/streams.js CHANGED
@@ -29,7 +29,7 @@ let _streamingIterables;
29
29
  // @__NO_SIDE_EFFECTS__
30
30
  function getStreamingIterables() {
31
31
  if (_streamingIterables === void 0) {
32
- _streamingIterables = require("./external/streaming-iterables");
32
+ _streamingIterables = require("./external/streaming-iterables.js");
33
33
  }
34
34
  return _streamingIterables;
35
35
  }
package/dist/versions.js CHANGED
@@ -45,7 +45,7 @@ let _semver;
45
45
  // @__NO_SIDE_EFFECTS__
46
46
  function getSemver() {
47
47
  if (_semver === void 0) {
48
- _semver = require("./external/semver");
48
+ _semver = require("./external/semver.js");
49
49
  }
50
50
  return _semver;
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/lib",
3
- "version": "3.3.5",
3
+ "version": "3.3.7",
4
4
  "packageManager": "pnpm@10.22.0",
5
5
  "license": "MIT",
6
6
  "description": "Core utilities and infrastructure for Socket.dev security tools",
@@ -686,7 +686,7 @@
686
686
  "@socketregistry/is-unicode-supported": "1.0.5",
687
687
  "@socketregistry/packageurl-js": "1.3.5",
688
688
  "@socketregistry/yocto-spinner": "1.0.25",
689
- "@socketsecurity/lib-stable": "npm:@socketsecurity/lib@3.3.3",
689
+ "@socketsecurity/lib-stable": "npm:@socketsecurity/lib@3.3.5",
690
690
  "@types/node": "24.9.2",
691
691
  "@typescript/native-preview": "7.0.0-dev.20250920.1",
692
692
  "@vitest/coverage-v8": "4.0.3",
@@ -744,8 +744,15 @@
744
744
  }
745
745
  },
746
746
  "pnpm": {
747
+ "overrides": {
748
+ "@npmcli/arborist": "9.1.6",
749
+ "@npmcli/run-script": "10.0.0",
750
+ "semver": "7.7.2",
751
+ "ansi-regex": "6.2.2",
752
+ "lru-cache": "11.2.2"
753
+ },
747
754
  "patchedDependencies": {
748
- "@npmcli/run-script@9.1.0": "patches/@npmcli__run-script@9.1.0.patch",
755
+ "@npmcli/run-script@10.0.0": "patches/@npmcli__run-script@10.0.0.patch",
749
756
  "node-gyp@11.5.0": "patches/node-gyp@11.5.0.patch"
750
757
  }
751
758
  }