PHP 8.2.30
Preview: common.js Size: 770 B
//proc/thread-self/root/opt/alt/alt-nodejs18/root/lib/node_modules/npm/node_modules/ip-address/dist/common.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCorrect = exports.isInSubnet = void 0;
function isInSubnet(address) {
    if (this.subnetMask < address.subnetMask) {
        return false;
    }
    if (this.mask(address.subnetMask) === address.mask()) {
        return true;
    }
    return false;
}
exports.isInSubnet = isInSubnet;
function isCorrect(defaultBits) {
    return function () {
        if (this.addressMinusSuffix !== this.correctForm()) {
            return false;
        }
        if (this.subnetMask === defaultBits && !this.parsedSubnet) {
            return true;
        }
        return this.parsedSubnet === String(this.subnetMask);
    };
}
exports.isCorrect = isCorrect;
//# sourceMappingURL=common.js.map

Directory Contents

Dirs: 2 × Files: 5

Name Size Perms Modified Actions
v4 DIR
- drwxr-xr-x 2026-03-19 07:09:44
Edit Download
v6 DIR
- drwxr-xr-x 2026-03-19 07:09:44
Edit Download
423 B lrw-r--r-- 2026-03-09 09:08:38
Edit Download
770 B lrw-r--r-- 2026-03-09 09:08:38
Edit Download
1.74 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download
10.36 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download
33.67 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download

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