Skip to content

Commit 67e853a

Browse files
committed
1 parent 4c9fe4b commit 67e853a

34 files changed

+3628
-568
lines changed

DEPENDENCIES.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ graph LR;
328328
init-package-json-->semver;
329329
init-package-json-->validate-npm-package-license;
330330
init-package-json-->validate-npm-package-name;
331+
ip-address-->jsbn;
332+
ip-address-->sprintf-js;
331333
is-cidr-->cidr-regex;
332334
is-core-module-->hasown;
333335
isaacs-cliui-->string-width-cjs;
@@ -771,7 +773,7 @@ graph LR;
771773
sigstore-verify-->sigstore-bundle["@sigstore/bundle"];
772774
sigstore-verify-->sigstore-core["@sigstore/core"];
773775
sigstore-verify-->sigstore-protobuf-specs["@sigstore/protobuf-specs"];
774-
socks-->ip;
776+
socks-->ip-address;
775777
socks-->smart-buffer;
776778
socks-proxy-agent-->agent-base;
777779
socks-proxy-agent-->debug;

node_modules/.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,18 @@
114114
!/indent-string
115115
!/ini
116116
!/init-package-json
117+
!/ip-address
118+
!/ip-address/node_modules/
119+
/ip-address/node_modules/*
120+
!/ip-address/node_modules/sprintf-js
117121
!/ip-regex
118-
!/ip
119122
!/is-cidr
120123
!/is-core-module
121124
!/is-fullwidth-code-point
122125
!/is-lambda
123126
!/isexe
124127
!/jackspeak
128+
!/jsbn
125129
!/json-parse-even-better-errors
126130
!/json-stringify-nice
127131
!/jsonparse

node_modules/ip-address/LICENSE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (C) 2011 by Beau Gunderson
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
exports.AddressError = void 0;
4+
class AddressError extends Error {
5+
constructor(message, parseMessage) {
6+
super(message);
7+
this.name = 'AddressError';
8+
if (parseMessage !== null) {
9+
this.parseMessage = parseMessage;
10+
}
11+
}
12+
}
13+
exports.AddressError = AddressError;
14+
//# sourceMappingURL=address-error.js.map
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
exports.isCorrect = exports.isInSubnet = void 0;
4+
function isInSubnet(address) {
5+
if (this.subnetMask < address.subnetMask) {
6+
return false;
7+
}
8+
if (this.mask(address.subnetMask) === address.mask()) {
9+
return true;
10+
}
11+
return false;
12+
}
13+
exports.isInSubnet = isInSubnet;
14+
function isCorrect(defaultBits) {
15+
return function () {
16+
if (this.addressMinusSuffix !== this.correctForm()) {
17+
return false;
18+
}
19+
if (this.subnetMask === defaultBits && !this.parsedSubnet) {
20+
return true;
21+
}
22+
return this.parsedSubnet === String(this.subnetMask);
23+
};
24+
}
25+
exports.isCorrect = isCorrect;
26+
//# sourceMappingURL=common.js.map
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"use strict";
2+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3+
if (k2 === undefined) k2 = k;
4+
var desc = Object.getOwnPropertyDescriptor(m, k);
5+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6+
desc = { enumerable: true, get: function() { return m[k]; } };
7+
}
8+
Object.defineProperty(o, k2, desc);
9+
}) : (function(o, m, k, k2) {
10+
if (k2 === undefined) k2 = k;
11+
o[k2] = m[k];
12+
}));
13+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14+
Object.defineProperty(o, "default", { enumerable: true, value: v });
15+
}) : function(o, v) {
16+
o["default"] = v;
17+
});
18+
var __importStar = (this && this.__importStar) || function (mod) {
19+
if (mod && mod.__esModule) return mod;
20+
var result = {};
21+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22+
__setModuleDefault(result, mod);
23+
return result;
24+
};
25+
Object.defineProperty(exports, "__esModule", { value: true });
26+
exports.v6 = exports.AddressError = exports.Address6 = exports.Address4 = void 0;
27+
const ipv4_1 = require("./ipv4");
28+
Object.defineProperty(exports, "Address4", { enumerable: true, get: function () { return ipv4_1.Address4; } });
29+
const ipv6_1 = require("./ipv6");
30+
Object.defineProperty(exports, "Address6", { enumerable: true, get: function () { return ipv6_1.Address6; } });
31+
const address_error_1 = require("./address-error");
32+
Object.defineProperty(exports, "AddressError", { enumerable: true, get: function () { return address_error_1.AddressError; } });
33+
const helpers = __importStar(require("./v6/helpers"));
34+
exports.v6 = { helpers };
35+
//# sourceMappingURL=ip-address.js.map

0 commit comments

Comments
 (0)