@modern-js/utils 2.48.4 → 2.48.5
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.
| @@ -33,7 +33,7 @@ __export(prettyInstructions_exports, { | |
| 33 33 | 
             
            });
         | 
| 34 34 | 
             
            module.exports = __toCommonJS(prettyInstructions_exports);
         | 
| 35 35 | 
             
            var import_os = __toESM(require("os"));
         | 
| 36 | 
            -
            var  | 
| 36 | 
            +
            var import_net = require("net");
         | 
| 37 37 | 
             
            var import_compiled = require("../compiled");
         | 
| 38 38 | 
             
            var import_is = require("./is");
         | 
| 39 39 | 
             
            var import_constants = require("./constants");
         | 
| @@ -52,7 +52,7 @@ const getIpv4Interfaces = () => { | |
| 52 52 | 
             
              return ipv4Interfaces;
         | 
| 53 53 | 
             
            };
         | 
| 54 54 | 
             
            const getHostInUrl = (host) => {
         | 
| 55 | 
            -
              if ((0,  | 
| 55 | 
            +
              if ((0, import_net.isIPv6)(host)) {
         | 
| 56 56 | 
             
                return host === "::" ? "[::1]" : `[${host}]`;
         | 
| 57 57 | 
             
              }
         | 
| 58 58 | 
             
              return host;
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
         | 
| 2 2 | 
             
            import os from "os";
         | 
| 3 | 
            -
            import { isIPv6 } from " | 
| 3 | 
            +
            import { isIPv6 } from "net";
         | 
| 4 4 | 
             
            import { chalk } from "../compiled";
         | 
| 5 5 | 
             
            import { isDev, isSingleEntry } from "./is";
         | 
| 6 6 | 
             
            import { DEFAULT_DEV_HOST } from "./constants";
         | 
    
        package/package.json
    CHANGED
    
    | @@ -15,7 +15,7 @@ | |
| 15 15 | 
             
                "modern",
         | 
| 16 16 | 
             
                "modern.js"
         | 
| 17 17 | 
             
              ],
         | 
| 18 | 
            -
              "version": "2.48. | 
| 18 | 
            +
              "version": "2.48.5",
         | 
| 19 19 | 
             
              "jsnext:source": "./src/index.ts",
         | 
| 20 20 | 
             
              "types": "./dist/types/index.d.ts",
         | 
| 21 21 | 
             
              "main": "./dist/cjs/index.js",
         | 
| @@ -154,9 +154,9 @@ | |
| 154 154 | 
             
                "jest": "^29",
         | 
| 155 155 | 
             
                "typescript": "^5",
         | 
| 156 156 | 
             
                "webpack": "^5.91.0",
         | 
| 157 | 
            -
                "@modern-js/types": "2.48. | 
| 158 | 
            -
                "@scripts/ | 
| 159 | 
            -
                "@scripts/ | 
| 157 | 
            +
                "@modern-js/types": "2.48.5",
         | 
| 158 | 
            +
                "@scripts/build": "2.48.5",
         | 
| 159 | 
            +
                "@scripts/jest-config": "2.48.5"
         | 
| 160 160 | 
             
              },
         | 
| 161 161 | 
             
              "sideEffects": false,
         | 
| 162 162 | 
             
              "scripts": {
         |