Benign npm Download

http-polling.js

CommonJS local-module require callExactly one line exceeds 1000 chars
SHA-256d1126f4b5a1b4653a6a47f7b9970f43fe4ddb97a2d046a4038a39b1ed58b0692

Evidence

Generated source provenance marker lines 1–5
1/* automatically generated by JSCoverage - do not edit */
2if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
3if (! _$jscoverage['transports/http-polling.js']) {
4 _$jscoverage['transports/http-polling.js'] = [];
5 _$jsco …
CommonJS local-module require call lines 40–46
40:3… jscoverage['transports/http-polling.js'][12]++;
41var HTTPTransport = require("./http");
42_$jscoverage['transports/http-polling.js'][18]++;
43exports = module.exports = HTTPPolling;
44_$jscoverage['transports/http-polling.js'][26]++;
45function HTTPPolling(mng, data) {
46 _$jscover …
English function-word token "this" lines 46–51
46:26… s/http-polling.js'][27]++;
47 HTTPTransport.call(this, mng, data);
48}
49_$jscoverage['transports/http-polling.js'][28]++;
50;
51_$jscoverage['transports/htt …
Function body returns this lines 53–60
53:33… lling.js'][42]++;
54HTTPPolling.prototype.setHeartbeatInterval = (function () {
55 _$jscoverage['transports/http-polling.js'][43]++;
56 return this;
⋯4 lines
English function-word token "the" lines 117–119
117:6… urn HTTPTransport.prototype.end.call(this);
118});
119_$jscoverage['transports/http-polling.js'].source = ["","/*!"," * socket.io-node"," * Copyright(c) 2011 LearnBoost <[email protected]>"," * MIT Licensed"," */","","/**"," * Module requirements."," */","","var HTTPTransport = require('./http');","","/**"," * Exports the constructor."," */","","exports = module.exports = HTTPPolling;","","/**"," * HTTP polling constructor."," *"," * @api public."," */","","function HTTPPolling (mng, data) {"," HTTPTransport.call(this, mng, data);","};","","/**"," * Inherits from HTTPTransport."," *"," * @api public."," */","","HTTPPolling.prototype.__proto__ = HTTPTransport.prototype;","","/**"," * Removes heartbeat timeouts for polling."," */","","HTTPPolling.prototype.setHeartbeatInterval = function () {"," return this;","};","","/**"," * Handles a request"," *"," * @api private"," */","","HTTPPolling.prototype.handleRequest = function (req) …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.