A big commit with a bunch of node modules so I could run puppeteer for Walmart. Added some todos and Headway's templates.
This commit is contained in:
22
Scripts/node_modules/pac-resolver/LICENSE
generated
vendored
Normal file
22
Scripts/node_modules/pac-resolver/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
27
Scripts/node_modules/pac-resolver/README.md
generated
vendored
27
Scripts/node_modules/pac-resolver/README.md
generated
vendored
@ -55,32 +55,5 @@ passed in which respects the following options:
|
||||
|
||||
The `qjs` parameter is a QuickJS module instance as returned from `getQuickJS()` from the `quickjs-emscripten` module.
|
||||
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
[pac-file-docs]: https://web.archive.org/web/20070602031929/http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
|
||||
[pac-wikipedia]: http://wikipedia.org/wiki/Proxy_auto-config
|
||||
|
||||
8
Scripts/node_modules/pac-resolver/dist/ip.d.ts
generated
vendored
Normal file
8
Scripts/node_modules/pac-resolver/dist/ip.d.ts
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
export declare const ip: {
|
||||
address(): string;
|
||||
isLoopback(addr: string): boolean;
|
||||
loopback(family: IpFamily): string;
|
||||
};
|
||||
type IpFamily = 'ipv4' | 'ipv6';
|
||||
export {};
|
||||
//# sourceMappingURL=ip.d.ts.map
|
||||
1
Scripts/node_modules/pac-resolver/dist/ip.d.ts.map
generated
vendored
Normal file
1
Scripts/node_modules/pac-resolver/dist/ip.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"ip.d.ts","sourceRoot":"","sources":["../src/ip.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,EAAE;eACH,MAAM;qBAsBA,MAAM,GAAG,OAAO;qBAQhB,QAAQ,GAAG,MAAM;CAWlC,CAAC;AAYF,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA"}
|
||||
50
Scripts/node_modules/pac-resolver/dist/ip.js
generated
vendored
Normal file
50
Scripts/node_modules/pac-resolver/dist/ip.js
generated
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ip = void 0;
|
||||
const os_1 = __importDefault(require("os"));
|
||||
exports.ip = {
|
||||
address() {
|
||||
const interfaces = os_1.default.networkInterfaces();
|
||||
// Default to `ipv4`
|
||||
const family = normalizeFamily();
|
||||
const all = Object.values(interfaces).map((addrs = []) => {
|
||||
const addresses = addrs.filter((details) => {
|
||||
const detailsFamily = normalizeFamily(details.family);
|
||||
if (detailsFamily !== family || exports.ip.isLoopback(details.address)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
return addresses.length ? addresses[0].address : undefined;
|
||||
}).filter(Boolean);
|
||||
return !all.length ? exports.ip.loopback(family) : all[0];
|
||||
},
|
||||
isLoopback(addr) {
|
||||
return /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/
|
||||
.test(addr)
|
||||
|| /^fe80::1$/.test(addr)
|
||||
|| /^::1$/.test(addr)
|
||||
|| /^::$/.test(addr);
|
||||
},
|
||||
loopback(family) {
|
||||
// Default to `ipv4`
|
||||
family = normalizeFamily(family);
|
||||
if (family !== 'ipv4' && family !== 'ipv6') {
|
||||
throw new Error('family must be ipv4 or ipv6');
|
||||
}
|
||||
return family === 'ipv4' ? '127.0.0.1' : 'fe80::1';
|
||||
}
|
||||
};
|
||||
function normalizeFamily(family) {
|
||||
if (family === 4) {
|
||||
return 'ipv4';
|
||||
}
|
||||
if (family === 6) {
|
||||
return 'ipv6';
|
||||
}
|
||||
return family ? family.toLowerCase() : 'ipv4';
|
||||
}
|
||||
//# sourceMappingURL=ip.js.map
|
||||
1
Scripts/node_modules/pac-resolver/dist/ip.js.map
generated
vendored
Normal file
1
Scripts/node_modules/pac-resolver/dist/ip.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"ip.js","sourceRoot":"","sources":["../src/ip.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AAEP,QAAA,EAAE,GAAG;IACjB,OAAO;QACN,MAAM,UAAU,GAAG,YAAE,CAAC,iBAAiB,EAAE,CAAC;QAE1C,oBAAoB;QACpB,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;QAEjC,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,EAAE,EAAE,EAAE;YACxD,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC1C,MAAM,aAAa,GAAG,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;gBACtD,IAAI,aAAa,KAAK,MAAM,IAAI,UAAE,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;oBAC/D,OAAO,KAAK,CAAC;iBACb;gBACD,OAAO,IAAI,CAAC;YAEb,CAAC,CAAC,CAAC;YAEH,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;QAC5D,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEnB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,UAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAW,CAAC;IAC7D,CAAC;IAED,UAAU,CAAC,IAAY;QACtB,OAAO,0DAA0D;aAC/D,IAAI,CAAC,IAAI,CAAC;eACR,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;eACtB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;eAClB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAED,QAAQ,CAAC,MAAgB;QACxB,oBAAoB;QACpB,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QAEjC,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,MAAM,EAAE;YAC3C,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAC/C;QAED,OAAO,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;IACpD,CAAC;CAED,CAAC;AAEF,SAAS,eAAe,CAAC,MAAgB;IACxC,IAAI,MAAM,KAAK,CAAC,EAAE;QACjB,OAAO,MAAM,CAAC;KACd;IACD,IAAI,MAAM,KAAK,CAAC,EAAE;QACjB,OAAO,MAAM,CAAC;KACd;IACD,OAAO,MAAM,CAAC,CAAC,CAAE,MAAiB,CAAC,WAAW,EAAc,CAAC,CAAC,CAAC,MAAM,CAAC;AACvE,CAAC"}
|
||||
4
Scripts/node_modules/pac-resolver/dist/myIpAddress.js
generated
vendored
4
Scripts/node_modules/pac-resolver/dist/myIpAddress.js
generated
vendored
@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const ip_1 = __importDefault(require("ip"));
|
||||
const ip_1 = require("./ip");
|
||||
const net_1 = __importDefault(require("net"));
|
||||
/**
|
||||
* Returns the IP address of the host that the Navigator is running on, as
|
||||
@ -27,7 +27,7 @@ async function myIpAddress() {
|
||||
const onError = () => {
|
||||
// if we fail to access Google DNS (as in firewall blocks access),
|
||||
// fallback to querying IP locally
|
||||
resolve(ip_1.default.address());
|
||||
resolve(ip_1.ip.address());
|
||||
};
|
||||
socket.once('error', onError);
|
||||
socket.once('connect', () => {
|
||||
|
||||
2
Scripts/node_modules/pac-resolver/dist/myIpAddress.js.map
generated
vendored
2
Scripts/node_modules/pac-resolver/dist/myIpAddress.js.map
generated
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"myIpAddress.js","sourceRoot":"","sources":["../src/myIpAddress.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,8CAAuC;AAEvC;;;;;;;;;;;;;GAaG;AACY,KAAK,UAAU,WAAW;IACxC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,qCAAqC;QACrC,kDAAkD;QAClD,MAAM,MAAM,GAAG,aAAG,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAC1D,MAAM,OAAO,GAAG,GAAG,EAAE;YACpB,kEAAkE;YAClE,kCAAkC;YAClC,OAAO,CAAC,YAAE,CAAC,OAAO,EAAE,CAAC,CAAC;QACvB,CAAC,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE;YAC3B,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACxC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;YAC9B,MAAM,CAAC,OAAO,EAAE,CAAC;YACjB,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;gBAC7B,OAAO,CAAC,IAAI,CAAC,CAAC;aACd;iBAAM,IAAK,IAAoB,CAAC,OAAO,EA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,CAAC;aACzC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC;AAxBD,8BAwBC"}
|
||||
4
Scripts/node_modules/pac-resolver/package.json
generated
vendored
4
Scripts/node_modules/pac-resolver/package.json
generated
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pac-resolver",
|
||||
"version": "7.0.0",
|
||||
"version": "7.0.1",
|
||||
"description": "Generates an asynchronous resolver function from a PAC file",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
@ -9,12 +9,10 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"degenerator": "^5.0.0",
|
||||
"ip": "^1.1.8",
|
||||
"netmask": "^2.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tootallnate/quickjs-emscripten": "^0.23.0",
|
||||
"@types/ip": "^1.1.0",
|
||||
"@types/jest": "^29.5.2",
|
||||
"@types/netmask": "^1.0.30",
|
||||
"@types/node": "^14.18.52",
|
||||
|
||||
Reference in New Issue
Block a user