updated npm modules
This commit is contained in:
2
node_modules/ipaddr.js/ipaddr.min.js
generated
vendored
2
node_modules/ipaddr.js/ipaddr.min.js
generated
vendored
File diff suppressed because one or more lines are too long
37
node_modules/ipaddr.js/lib/ipaddr.js
generated
vendored
37
node_modules/ipaddr.js/lib/ipaddr.js
generated
vendored
@@ -229,6 +229,24 @@
|
||||
return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/, '::');
|
||||
};
|
||||
|
||||
IPv6.prototype.toRFC5952String = function() {
|
||||
var bestMatchIndex, bestMatchLength, match, regex, string;
|
||||
regex = /((^|:)(0(:|$)){2,})/g;
|
||||
string = this.toNormalizedString();
|
||||
bestMatchIndex = 0;
|
||||
bestMatchLength = -1;
|
||||
while ((match = regex.exec(string))) {
|
||||
if (match[0].length > bestMatchLength) {
|
||||
bestMatchIndex = match.index;
|
||||
bestMatchLength = match[0].length;
|
||||
}
|
||||
}
|
||||
if (bestMatchLength < 0) {
|
||||
return string;
|
||||
}
|
||||
return string.substring(0, bestMatchIndex) + '::' + string.substring(bestMatchIndex + bestMatchLength);
|
||||
};
|
||||
|
||||
IPv6.prototype.toByteArray = function() {
|
||||
var bytes, k, len, part, ref;
|
||||
bytes = [];
|
||||
@@ -260,6 +278,25 @@
|
||||
return addr + suffix;
|
||||
};
|
||||
|
||||
IPv6.prototype.toFixedLengthString = function() {
|
||||
var addr, part, suffix;
|
||||
addr = ((function() {
|
||||
var k, len, ref, results;
|
||||
ref = this.parts;
|
||||
results = [];
|
||||
for (k = 0, len = ref.length; k < len; k++) {
|
||||
part = ref[k];
|
||||
results.push(part.toString(16).padStart(4, '0'));
|
||||
}
|
||||
return results;
|
||||
}).call(this)).join(":");
|
||||
suffix = '';
|
||||
if (this.zoneId) {
|
||||
suffix = '%' + this.zoneId;
|
||||
}
|
||||
return addr + suffix;
|
||||
};
|
||||
|
||||
IPv6.prototype.match = function(other, cidrRange) {
|
||||
var ref;
|
||||
if (cidrRange === void 0) {
|
||||
|
||||
4
node_modules/ipaddr.js/lib/ipaddr.js.d.ts
generated
vendored
4
node_modules/ipaddr.js/lib/ipaddr.js.d.ts
generated
vendored
@@ -2,8 +2,8 @@
|
||||
|
||||
declare module "ipaddr.js" {
|
||||
|
||||
type IPv4Range = 'unspecified' | 'broadcast' | 'multicast' | 'linkLocal' | 'loopback' | 'carrierGradeNat' | 'private' | 'reserved';
|
||||
type IPv6Range = 'unspecified' | 'linkLocal' | 'multicast' | 'loopback' | 'uniqueLocal' | 'ipv4Mapped' | 'rfc6145' | 'rfc6052' | '6to4' | 'teredo' | 'reserved';
|
||||
type IPv4Range = 'unicast' | 'unspecified' | 'broadcast' | 'multicast' | 'linkLocal' | 'loopback' | 'carrierGradeNat' | 'private' | 'reserved';
|
||||
type IPv6Range = 'unicast' | 'unspecified' | 'linkLocal' | 'multicast' | 'loopback' | 'uniqueLocal' | 'ipv4Mapped' | 'rfc6145' | 'rfc6052' | '6to4' | 'teredo' | 'reserved';
|
||||
|
||||
interface RangeList<T> {
|
||||
[name: string]: [T, number] | [T, number][];
|
||||
|
||||
21
node_modules/ipaddr.js/package.json
generated
vendored
21
node_modules/ipaddr.js/package.json
generated
vendored
@@ -1,26 +1,27 @@
|
||||
{
|
||||
"_from": "ipaddr.js@1.8.0",
|
||||
"_id": "ipaddr.js@1.8.0",
|
||||
"_from": "ipaddr.js@1.9.0",
|
||||
"_id": "ipaddr.js@1.9.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4=",
|
||||
"_integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA==",
|
||||
"_location": "/ipaddr.js",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "ipaddr.js@1.8.0",
|
||||
"raw": "ipaddr.js@1.9.0",
|
||||
"name": "ipaddr.js",
|
||||
"escapedName": "ipaddr.js",
|
||||
"rawSpec": "1.8.0",
|
||||
"rawSpec": "1.9.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.8.0"
|
||||
"fetchSpec": "1.9.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/internal-ip",
|
||||
"/proxy-addr"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz",
|
||||
"_shasum": "eaa33d6ddd7ace8f7f6fe0c9ca0440e706738b1e",
|
||||
"_spec": "ipaddr.js@1.8.0",
|
||||
"_resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz",
|
||||
"_shasum": "37df74e430a0e47550fe54a2defe30d8acd95f65",
|
||||
"_spec": "ipaddr.js@1.9.0",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\proxy-addr",
|
||||
"author": {
|
||||
"name": "whitequark",
|
||||
@@ -65,5 +66,5 @@
|
||||
"test": "cake build test"
|
||||
},
|
||||
"types": "./lib/ipaddr.js.d.ts",
|
||||
"version": "1.8.0"
|
||||
"version": "1.9.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user