PHP 8.2.30
Preview: pretty.js Size: 953 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@babel/helper-compilation-targets/lib/pretty.js

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.prettifyTargets = prettifyTargets;
exports.prettifyVersion = prettifyVersion;
var _semver = require("semver");
var _targets = require("./targets.js");
function prettifyVersion(version) {
  if (typeof version !== "string") {
    return version;
  }
  const {
    major,
    minor,
    patch
  } = _semver.parse(version);
  const parts = [major];
  if (minor || patch) {
    parts.push(minor);
  }
  if (patch) {
    parts.push(patch);
  }
  return parts.join(".");
}
function prettifyTargets(targets) {
  return Object.keys(targets).reduce((results, target) => {
    let value = targets[target];
    const unreleasedLabel = _targets.unreleasedLabels[target];
    if (typeof value === "string" && unreleasedLabel !== value) {
      value = prettifyVersion(value);
    }
    results[target] = value;
    return results;
  }, {});
}

//# sourceMappingURL=pretty.js.map

Directory Contents

Dirs: 0 × Files: 14

Name Size Perms Modified Actions
1.05 KB lrw-r--r-- 2026-02-28 00:26:54
Edit Download
2.45 KB lrw-r--r-- 2026-02-28 00:27:06
Edit Download
2.38 KB lrw-r--r-- 2026-02-28 00:27:14
Edit Download
5.64 KB lrw-r--r-- 2026-02-28 00:27:26
Edit Download
7.73 KB lrw-r--r-- 2026-02-28 00:27:34
Edit Download
18.06 KB lrw-r--r-- 2026-02-28 00:27:42
Edit Download
465 B lrw-r--r-- 2026-02-28 00:27:46
Edit Download
956 B lrw-r--r-- 2026-02-28 00:27:58
Edit Download
953 B lrw-r--r-- 2026-02-28 00:28:02
Edit Download
2.15 KB lrw-r--r-- 2026-02-28 00:28:06
Edit Download
587 B lrw-r--r-- 2026-02-28 00:28:08
Edit Download
1.32 KB lrw-r--r-- 2026-02-28 00:28:14
Edit Download
1.94 KB lrw-r--r-- 2026-02-28 00:28:18
Edit Download
4.46 KB lrw-r--r-- 2026-02-28 00:28:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).