Comparing version 2.0.0-pre-HZ79PDUK to 2.0.0-pre-HZO3BMNG
@@ -5,3 +5,3 @@ { | ||
"author": "apache.org", | ||
"version": "2.0.0-pre-HZ79PDUK", | ||
"version": "2.0.0-pre-HZO3BMNG", | ||
"tags": [ "debug"], | ||
@@ -25,7 +25,10 @@ "licenses": | ||
{ | ||
"coffee-script": "1.3.x", | ||
"express": "2.5.x", | ||
"nopt": "1.0.x", | ||
"underscore": "1.3.x" | ||
"nopt": "3.0.x", | ||
"underscore": "1.7.x" | ||
}, | ||
"devDependencies": | ||
{ | ||
"coffee-script": "1.8.x" | ||
}, | ||
"main" : "./lib/weinre", | ||
@@ -44,2 +47,1 @@ "bin": | ||
} | ||
@@ -1,2 +0,2 @@ | ||
weinre build 2.0.0-pre-HZ79PDUK by Patrick Mueller | ||
git: ad3c24fe15d119b6e0a712c061e9269418382692 Allow update of weinreId without page refresh (attach to onhashchange). | ||
weinre build 2.0.0-pre-HZO3BMNG by Patrick Mueller | ||
git: 03084bdb6a23cc4f6085a16420df9182b2252e43 pre-compile CoffeeScript files in server |
@@ -23,4 +23,4 @@ /* | ||
Weinre.Versions = { | ||
weinre: "2.0.0-pre-HZ79PDUK", | ||
build: "HZ79PDUK", | ||
weinre: "2.0.0-pre-HZO3BMNG", | ||
build: "HZO3BMNG", | ||
}; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/client/Client", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/client/Client", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var AutoConnect, Binding, Callback, Client, IDGenerator, IDLTools, InspectorBackendImpl, InspectorFrontendHostImpl, MessageDispatcher, RemotePanel, Weinre, WeinreClientEventsImpl, WeinreExtraTargetEventsImpl, addHack_DOMNotify_setChildNodes, installWebInspectorAPIsource, new_DOMNotify_setChildNodes, old_DOMNotify_setChildNodes; | ||
@@ -31,3 +31,2 @@ | ||
module.exports = Client = (function() { | ||
function Client() {} | ||
@@ -34,0 +33,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/client/ConnectorList", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/client/ConnectorList", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var ConnectorList, dt; | ||
@@ -7,3 +7,2 @@ | ||
module.exports = ConnectorList = (function() { | ||
function ConnectorList(title) { | ||
@@ -10,0 +9,0 @@ this.connectors = {}; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/client/DOMTemplates", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/client/DOMTemplates", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Ex, addToElement_Node, addToElement_Object, addToElement_String, elementName, elementNames, getElementFunction, _i, _len; | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/client/ExtensionRegistryImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/client/ExtensionRegistryImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Binding, Ex, ExtensionRegistryImpl, Weinre, extensions; | ||
@@ -13,3 +13,2 @@ | ||
module.exports = ExtensionRegistryImpl = (function() { | ||
function ExtensionRegistryImpl() {} | ||
@@ -16,0 +15,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/client/InspectorBackendImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/client/InspectorBackendImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Ex, IDLTools, InspectorBackendImpl, MessageDispatcher, Weinre; | ||
@@ -13,3 +13,2 @@ | ||
module.exports = InspectorBackendImpl = (function() { | ||
function InspectorBackendImpl() { | ||
@@ -16,0 +15,0 @@ this.registeredDomainDispatchers = {}; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/client/InspectorFrontendHostImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/client/InspectorFrontendHostImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var IDLTools, InspectorFrontendHostImpl, Weinre, _extensionAPI; | ||
@@ -11,3 +11,2 @@ | ||
module.exports = InspectorFrontendHostImpl = (function() { | ||
function InspectorFrontendHostImpl() { | ||
@@ -14,0 +13,0 @@ this._getPlatformAndPort(); |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/client/RemotePanel", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/client/RemotePanel", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Binding, ClientList, ConnectorList, DT, RemotePanel, TargetList, Weinre, | ||
@@ -17,3 +17,2 @@ __hasProp = {}.hasOwnProperty, | ||
module.exports = RemotePanel = (function(_super) { | ||
__extends(RemotePanel, _super); | ||
@@ -202,3 +201,2 @@ | ||
TargetList = (function(_super) { | ||
__extends(TargetList, _super); | ||
@@ -248,3 +246,2 @@ | ||
ClientList = (function(_super) { | ||
__extends(ClientList, _super); | ||
@@ -251,0 +248,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/client/WeinreClientEventsImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/client/WeinreClientEventsImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Callback, Weinre, WeinreClientEventsImpl, WeinreExtraTargetEventsImpl, titleConnectedPrefix, titleNotConnected; | ||
@@ -17,3 +17,2 @@ | ||
module.exports = WeinreClientEventsImpl = (function() { | ||
function WeinreClientEventsImpl(client) { | ||
@@ -20,0 +19,0 @@ this.client = client; |
@@ -1,6 +0,5 @@ | ||
;modjewel.define("weinre/client/WeinreExtraTargetEventsImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/client/WeinreExtraTargetEventsImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var WeinreExtraTargetEventsImpl; | ||
module.exports = WeinreExtraTargetEventsImpl = (function() { | ||
function WeinreExtraTargetEventsImpl() {} | ||
@@ -7,0 +6,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/common/Binding", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/Binding", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Binding, Ex; | ||
@@ -7,3 +7,2 @@ | ||
module.exports = Binding = (function() { | ||
function Binding(receiver, method) { | ||
@@ -10,0 +9,0 @@ if (!receiver) { |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/common/Callback", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/Callback", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Callback, CallbackIndex, CallbackTable, ConnectorChannel, Ex; | ||
@@ -13,3 +13,2 @@ | ||
module.exports = Callback = (function() { | ||
function Callback() { | ||
@@ -54,3 +53,3 @@ throw new Ex(arguments, "this class is not intended to be instantiated"); | ||
Callback.invoke = function(index, args) { | ||
var callback, func, funcName, receiver; | ||
var callback, e, func, funcName, receiver; | ||
callback = CallbackTable[index]; | ||
@@ -65,3 +64,4 @@ if (!callback) { | ||
return func.apply(receiver, args); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
funcName = func.name || func.signature; | ||
@@ -68,0 +68,0 @@ if (!funcName) { |
@@ -1,6 +0,5 @@ | ||
;modjewel.define("weinre/common/Debug", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/Debug", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Debug; | ||
module.exports = new (Debug = (function() { | ||
function Debug() { | ||
@@ -7,0 +6,0 @@ this._printCalledArgs = {}; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/common/EventListeners", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/EventListeners", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var EventListeners, Ex, Weinre; | ||
@@ -9,3 +9,2 @@ | ||
module.exports = EventListeners = (function() { | ||
function EventListeners() { | ||
@@ -36,3 +35,3 @@ this.listeners = []; | ||
EventListeners.prototype.fire = function(event) { | ||
var listener, listeners, _i, _len, _results; | ||
var e, listener, listeners, _i, _len, _results; | ||
listeners = this.listeners.slice(); | ||
@@ -46,3 +45,4 @@ _results = []; | ||
listener.call(null, event); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
Weinre.logError("" + arguments.callee.name + " invocation exception: " + e); | ||
@@ -57,3 +57,4 @@ } | ||
_results.push(listener.handleEvent.call(listener, event)); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
_results.push(Weinre.logError("" + arguments.callee.name + " invocation exception: " + e)); | ||
@@ -60,0 +61,0 @@ } |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/common/Ex", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/Ex", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Ex, StackTrace, prefix; | ||
@@ -7,7 +7,8 @@ | ||
module.exports = Ex = (function() { | ||
Ex.catching = function(func) { | ||
var e; | ||
try { | ||
return func.call(this); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
console.log("runtime error: " + e); | ||
@@ -28,3 +29,2 @@ return StackTrace.dump(arguments); | ||
message; | ||
} | ||
@@ -31,0 +31,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/common/HookLib", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/HookLib", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var HookLib, HookSite, HookSites, IgnoreHooks, callAfterHooks, callBeforeHooks, callExceptHooks, getHookSite, getHookedFunction; | ||
@@ -11,3 +11,2 @@ | ||
module.exports = HookLib = (function() { | ||
function HookLib() {} | ||
@@ -60,3 +59,2 @@ | ||
HookSite = (function() { | ||
function HookSite(object, property) { | ||
@@ -99,7 +97,8 @@ var hookedFunction; | ||
hookedFunction = function() { | ||
var result; | ||
var e, result; | ||
callBeforeHooks(hookSite, this, arguments); | ||
try { | ||
result = func.apply(this, arguments); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
callExceptHooks(hookSite, this, arguments, e); | ||
@@ -106,0 +105,0 @@ throw e; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/common/IDGenerator", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/IDGenerator", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var IDGenerator, idName, nextId, nextIdValue; | ||
@@ -9,3 +9,2 @@ | ||
module.exports = IDGenerator = (function() { | ||
function IDGenerator() {} | ||
@@ -12,0 +11,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/common/IDLTools", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/IDLTools", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Callback, Ex, IDLTools, IDLs, getProxyMethod; | ||
@@ -11,3 +11,2 @@ | ||
module.exports = IDLTools = (function() { | ||
function IDLTools() { | ||
@@ -14,0 +13,0 @@ throw new Ex(arguments, "this class is not intended to be instantiated"); |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/common/MessageDispatcher", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/MessageDispatcher", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Binding, Callback, Ex, IDLTools, InspectorBackend, MessageDispatcher, Verbose, WebSocketXhr, Weinre, | ||
@@ -22,3 +22,2 @@ __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | ||
module.exports = MessageDispatcher = (function() { | ||
function MessageDispatcher(url, id) { | ||
@@ -158,7 +157,8 @@ if (!id) { | ||
MessageDispatcher.prototype._handleMessage = function(message) { | ||
var args, data, intf, intfName, method, methodName, methodSignature, skipErrorForMethods; | ||
var args, data, e, intf, intfName, method, methodName, methodSignature, skipErrorForMethods; | ||
skipErrorForMethods = ['domContentEventFired', 'loadEventFired', 'childNodeRemoved']; | ||
try { | ||
data = JSON.parse(message.data); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
throw new Ex(arguments, "invalid JSON data received: " + e + ": '" + message.data + "'"); | ||
@@ -186,3 +186,4 @@ } | ||
method.apply(intf, args); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
if (__indexOf.call(skipErrorForMethods, methodName) < 0) { | ||
@@ -189,0 +190,0 @@ Weinre.logError(("weinre: invocation exception on " + methodSignature + ": ") + e); |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/common/MethodNamer", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/MethodNamer", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var MethodNamer, | ||
@@ -6,3 +6,2 @@ __hasProp = {}.hasOwnProperty; | ||
module.exports = MethodNamer = (function() { | ||
function MethodNamer() {} | ||
@@ -9,0 +8,0 @@ |
@@ -1,6 +0,5 @@ | ||
;modjewel.define("weinre/common/StackTrace", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/StackTrace", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var StackTrace, getTrace; | ||
module.exports = StackTrace = (function() { | ||
function StackTrace(args) { | ||
@@ -37,3 +36,3 @@ if (!args || !args.callee) { | ||
getTrace = function(args) { | ||
var func, result, visitedFuncs; | ||
var err, func, result, visitedFuncs; | ||
result = []; | ||
@@ -59,3 +58,4 @@ visitedFuncs = []; | ||
func = func.caller; | ||
} catch (err) { | ||
} catch (_error) { | ||
err = _error; | ||
func = null; | ||
@@ -62,0 +62,0 @@ } |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/common/WebSocketXhr", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/WebSocketXhr", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var EventListeners, Ex, HookLib, WebSocketXhr, Weinre, _xhrEventHandler; | ||
@@ -13,3 +13,2 @@ | ||
module.exports = WebSocketXhr = (function() { | ||
WebSocketXhr.CONNECTING = 0; | ||
@@ -55,3 +54,3 @@ | ||
WebSocketXhr.prototype._handleXhrResponseGetChannel = function(xhr) { | ||
var object; | ||
var e, object; | ||
if (xhr.status !== 200) { | ||
@@ -62,3 +61,4 @@ return this._handleXhrResponseError(xhr); | ||
object = JSON.parse(xhr.responseText); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
this._fireEventListeners("error", { | ||
@@ -99,3 +99,3 @@ message: "non-JSON response from channel open request" | ||
WebSocketXhr.prototype._handleXhrResponseGet = function(xhr) { | ||
var data, datum, self, _i, _len, _results; | ||
var data, datum, e, self, _i, _len, _results; | ||
self = this; | ||
@@ -107,3 +107,4 @@ if (xhr.status !== 200) { | ||
datum = JSON.parse(xhr.responseText); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
this.readyState = WebSocketXhr.CLOSED; | ||
@@ -228,3 +229,5 @@ this._fireEventListeners("error", { | ||
xhr.httpSocketHandler = handler; | ||
xhr.onreadystatechange = _xhrEventHandler; | ||
xhr.onreadystatechange = function() { | ||
return _xhrEventHandler(xhr); | ||
}; | ||
HookLib.ignoreHooks(function() { | ||
@@ -243,5 +246,3 @@ return xhr.open(method, url, true); | ||
_xhrEventHandler = function(event) { | ||
var xhr; | ||
xhr = event.target; | ||
_xhrEventHandler = function(xhr) { | ||
if (xhr.readyState !== 4) { | ||
@@ -248,0 +249,0 @@ return; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/common/Weinre", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/common/Weinre", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var ConsoleLogger, Ex, IDLTools, StackTrace, Weinre, consoleLogger, getLogger, logger, _notImplemented, _showNotImplemented; | ||
@@ -17,3 +17,2 @@ | ||
module.exports = Weinre = (function() { | ||
function Weinre() { | ||
@@ -73,3 +72,2 @@ throw new Ex(arguments, "this class is not intended to be instantiated"); | ||
ConsoleLogger = (function() { | ||
function ConsoleLogger() {} | ||
@@ -76,0 +74,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/BrowserHacks", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/BrowserHacks", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var BrowserHacks; | ||
@@ -3,0 +3,0 @@ |
@@ -1,6 +0,5 @@ | ||
;modjewel.define("weinre/target/CheckForProblems", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/CheckForProblems", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var CheckForProblems, checkForOldPrototypeVersion; | ||
module.exports = CheckForProblems = (function() { | ||
function CheckForProblems() {} | ||
@@ -7,0 +6,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/Console", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/Console", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Console, MessageLevel, MessageSource, MessageType, OriginalConsole, RemoteConsole, Timeline, UsingRemote, Weinre; | ||
@@ -44,3 +44,2 @@ | ||
module.exports = Console = (function() { | ||
function Console() {} | ||
@@ -47,0 +46,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/CSSStore", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/CSSStore", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var CSSStore, IDGenerator, Weinre, _elementMatchesSelector, _fallbackMatchesSelector, _getMappableId, _getMappableObject, _mozMatchesSelector, _msMatchesSelector, _webkitMatchesSelector; | ||
@@ -11,3 +11,2 @@ | ||
module.exports = CSSStore = (function() { | ||
function CSSStore() { | ||
@@ -44,3 +43,3 @@ this.styleSheetMap = {}; | ||
CSSStore.prototype.getMatchedCSSRules = function(node) { | ||
var cssRule, object, result, styleSheet, _i, _j, _len, _len1, _ref, _ref1; | ||
var cssRule, err, object, result, styleSheet, _i, _j, _len, _len1, _ref, _ref1; | ||
result = []; | ||
@@ -67,3 +66,4 @@ try { | ||
} | ||
} catch (err) { | ||
} catch (_error) { | ||
err = _error; | ||
return result; | ||
@@ -70,0 +70,0 @@ } |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/ElementHighlighter", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/ElementHighlighter", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var ElementHighlighter, canvasAvailable, currentHighlighterElement, fromPx, getMetricsForElement, highlighterClass, supportsCanvas; | ||
@@ -11,3 +11,2 @@ | ||
module.exports = ElementHighlighter = (function() { | ||
ElementHighlighter.create = function() { | ||
@@ -14,0 +13,0 @@ if (highlighterClass == null) { |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/ElementHighlighterDivs2", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/ElementHighlighterDivs2", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var ColorBorder, ColorContent, ColorMargin, ColorPadding, ElementHighlighter, ElementHighlighterDivs2, px, | ||
@@ -23,3 +23,2 @@ __hasProp = {}.hasOwnProperty, | ||
module.exports = ElementHighlighterDivs2 = (function(_super) { | ||
__extends(ElementHighlighterDivs2, _super); | ||
@@ -26,0 +25,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/HookSites", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/HookSites", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var HookLib, HookSites; | ||
@@ -7,3 +7,2 @@ | ||
module.exports = HookSites = (function() { | ||
function HookSites() {} | ||
@@ -10,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/InjectedScriptHostImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/InjectedScriptHostImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var InjectedScriptHostImpl, Weinre; | ||
@@ -7,3 +7,2 @@ | ||
module.exports = InjectedScriptHostImpl = (function() { | ||
function InjectedScriptHostImpl() {} | ||
@@ -10,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/NetworkRequest", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/NetworkRequest", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Ex, HookLib, HookSites, IDGenerator, Loader, NetworkRequest, StackTrace, Weinre, getFormData, getHeaders, getRequest, getResponse, getXhrEventHandler, splitContentType, trim; | ||
@@ -23,3 +23,2 @@ | ||
module.exports = NetworkRequest = (function() { | ||
function NetworkRequest(xhr, id, method, url, stackTrace) { | ||
@@ -54,8 +53,8 @@ this.xhr = xhr; | ||
NetworkRequest.prototype.handleDone = function() { | ||
var description, sourceString, status, statusText, success, time; | ||
var description, e, sourceString, status, statusText, success, time; | ||
sourceString = ""; | ||
try { | ||
sourceString = this.xhr.responseText; | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
} | ||
@@ -197,3 +196,3 @@ Weinre.wi.NetworkNotify.setInitialContent(this.id, sourceString, "XHR"); | ||
return function() { | ||
var nr; | ||
var e, nr; | ||
nr = xhr.__weinreNetworkRequest__; | ||
@@ -212,4 +211,4 @@ if (!nr) { | ||
} | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
} | ||
@@ -216,0 +215,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/NodeStore", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/NodeStore", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Debug, IDGenerator, NodeStore, Weinre, handleDOMAttrModified, handleDOMCharacterDataModified, handleDOMNodeInserted, handleDOMNodeRemoved, handleDOMSubtreeModified; | ||
@@ -11,3 +11,2 @@ | ||
module.exports = NodeStore = (function() { | ||
function NodeStore() { | ||
@@ -14,0 +13,0 @@ this._nodeMap = {}; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/SqlStepper", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/SqlStepper", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Binding, SqlStepper, executeSql, ourErrorCallback, runStep; | ||
@@ -7,3 +7,2 @@ | ||
module.exports = SqlStepper = (function() { | ||
function SqlStepper(steps) { | ||
@@ -10,0 +9,0 @@ var context; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/Target", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/Target", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Binding, CSSStore, Callback, CheckForProblems, ElementHighlighter, Ex, HookLib, InjectedScriptHostImpl, MessageDispatcher, NetworkRequest, NodeStore, Target, Weinre, WeinreExtraClientCommandsImpl, WeinreTargetEventsImpl, WiCSSImpl, WiConsoleImpl, WiDOMImpl, WiDOMStorageImpl, WiDatabaseImpl, WiInspectorImpl, WiRuntimeImpl, currentTime; | ||
@@ -49,3 +49,2 @@ | ||
module.exports = Target = (function() { | ||
function Target() {} | ||
@@ -65,3 +64,3 @@ | ||
if (element) { | ||
pattern = /(http:\/\/(.*?)\/)/; | ||
pattern = /((https?:)?\/\/(.*?)\/)/; | ||
match = pattern.exec(element.src); | ||
@@ -118,4 +117,3 @@ if (match) { | ||
Target.prototype.initialize = function() { | ||
var element, injectedScriptHost, messageDispatcher, | ||
_this = this; | ||
var element, injectedScriptHost, messageDispatcher; | ||
element = this.getTargetScriptElement(); | ||
@@ -133,17 +131,21 @@ this.setWeinreServerURLFromScriptSrc(element); | ||
if (document.readyState === "loaded") { | ||
HookLib.ignoreHooks(function() { | ||
return setTimeout((function() { | ||
return _this.onDOMContent(); | ||
}), 10); | ||
}); | ||
HookLib.ignoreHooks((function(_this) { | ||
return function() { | ||
return setTimeout((function() { | ||
return _this.onDOMContent(); | ||
}), 10); | ||
}; | ||
})(this)); | ||
} | ||
if (document.readyState === "complete") { | ||
HookLib.ignoreHooks(function() { | ||
setTimeout((function() { | ||
return _this.onDOMContent(); | ||
}), 10); | ||
return setTimeout((function() { | ||
return _this.onLoaded(); | ||
}), 20); | ||
}); | ||
HookLib.ignoreHooks((function(_this) { | ||
return function() { | ||
setTimeout((function() { | ||
return _this.onDOMContent(); | ||
}), 10); | ||
return setTimeout((function() { | ||
return _this.onLoaded(); | ||
}), 20); | ||
}; | ||
})(this)); | ||
} | ||
@@ -194,9 +196,10 @@ messageDispatcher = new MessageDispatcher(window.WeinreServerURL + "ws/target", window.WeinreServerId); | ||
Target.prototype.onLoaded = function() { | ||
var _this = this; | ||
if (!Weinre.wi.InspectorNotify) { | ||
HookLib.ignoreHooks(function() { | ||
return setTimeout((function() { | ||
return _this.onLoaded(); | ||
}), 10); | ||
}); | ||
HookLib.ignoreHooks((function(_this) { | ||
return function() { | ||
return setTimeout((function() { | ||
return _this.onLoaded(); | ||
}), 10); | ||
}; | ||
})(this)); | ||
return; | ||
@@ -208,9 +211,10 @@ } | ||
Target.prototype.onDOMContent = function() { | ||
var _this = this; | ||
if (!Weinre.wi.InspectorNotify) { | ||
HookLib.ignoreHooks(function() { | ||
return setTimeout((function() { | ||
return _this.onDOMContent(); | ||
}), 10); | ||
}); | ||
HookLib.ignoreHooks((function(_this) { | ||
return function() { | ||
return setTimeout((function() { | ||
return _this.onDOMContent(); | ||
}), 10); | ||
}; | ||
})(this)); | ||
return; | ||
@@ -217,0 +221,0 @@ } |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/Timeline", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/Timeline", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Ex, HookLib, HookSites, IDGenerator, Running, StackTrace, Timeline, TimelineRecordType, TimerIntervals, TimerTimeouts, Weinre, addStackTrace, addTimer, getXhrEventHandler, instrumentedTimerCode, removeTimer; | ||
@@ -47,3 +47,2 @@ | ||
module.exports = Timeline = (function() { | ||
function Timeline() {} | ||
@@ -161,3 +160,3 @@ | ||
Timeline.addRecord_XHRReadyStateChange = function(method, url, id, xhr) { | ||
var contentLength, contentType, record; | ||
var contentLength, contentType, e, record; | ||
if (!Timeline.isRunning()) { | ||
@@ -170,3 +169,4 @@ return; | ||
contentType = xhr.getResponseHeader("Content-Type"); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
contentLength = 0; | ||
@@ -173,0 +173,0 @@ contentType = "unknown"; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/WeinreExtraClientCommandsImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/WeinreExtraClientCommandsImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Console, Weinre, WeinreExtraClientCommandsImpl, WiDatabaseImpl; | ||
@@ -11,3 +11,2 @@ | ||
module.exports = WeinreExtraClientCommandsImpl = (function() { | ||
function WeinreExtraClientCommandsImpl() {} | ||
@@ -14,0 +13,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/WeinreTargetEventsImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/WeinreTargetEventsImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Callback, Console, Weinre, WeinreTargetEventsImpl; | ||
@@ -11,3 +11,2 @@ | ||
module.exports = WeinreTargetEventsImpl = (function() { | ||
function WeinreTargetEventsImpl() {} | ||
@@ -14,0 +13,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/WiConsoleImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/WiConsoleImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Weinre, WiConsoleImpl; | ||
@@ -7,3 +7,2 @@ | ||
module.exports = WiConsoleImpl = (function() { | ||
function WiConsoleImpl() { | ||
@@ -10,0 +9,0 @@ this.messagesEnabled = true; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/WiCSSImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/WiCSSImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Weinre, WiCSSImpl; | ||
@@ -7,3 +7,2 @@ | ||
module.exports = WiCSSImpl = (function() { | ||
function WiCSSImpl() { | ||
@@ -10,0 +9,0 @@ this.dummyComputedStyle = false; |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/WiDatabaseImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/WiDatabaseImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var HookSites, IDGenerator, SqlStepper, Weinre, WiDatabaseImpl, dbAdd, dbById, dbRecordById, dbRecordByName, executeSQL_error, executeSQL_step_1, executeSQL_step_2, getTableNames_step_1, getTableNames_step_2, id2db, logSqlError, name2db; | ||
@@ -17,3 +17,2 @@ | ||
module.exports = WiDatabaseImpl = (function() { | ||
function WiDatabaseImpl() { | ||
@@ -20,0 +19,0 @@ if (!window.openDatabase) { |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/WiDOMImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/WiDOMImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Weinre, WiDOMImpl; | ||
@@ -7,3 +7,2 @@ | ||
module.exports = WiDOMImpl = (function() { | ||
function WiDOMImpl() {} | ||
@@ -10,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/WiDOMStorageImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/WiDOMStorageImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var HookSites, Weinre, WiDOMStorageImpl, _getStorageArea, _storageEventHandler; | ||
@@ -9,3 +9,2 @@ | ||
module.exports = WiDOMStorageImpl = (function() { | ||
function WiDOMStorageImpl() {} | ||
@@ -35,3 +34,3 @@ | ||
WiDOMStorageImpl.prototype.setDOMStorageItem = function(storageId, key, value, callback) { | ||
var result, storageArea; | ||
var e, result, storageArea; | ||
storageArea = _getStorageArea(storageId); | ||
@@ -51,3 +50,4 @@ if (!storageArea) { | ||
}); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
result = false; | ||
@@ -61,3 +61,3 @@ } | ||
WiDOMStorageImpl.prototype.removeDOMStorageItem = function(storageId, key, callback) { | ||
var result, storageArea; | ||
var e, result, storageArea; | ||
storageArea = _getStorageArea(storageId); | ||
@@ -77,3 +77,4 @@ if (!storageArea) { | ||
}); | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
result = false; | ||
@@ -80,0 +81,0 @@ } |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/WiInspectorImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/WiInspectorImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Timeline, Weinre, WiInspectorImpl; | ||
@@ -9,3 +9,2 @@ | ||
module.exports = WiInspectorImpl = (function() { | ||
function WiInspectorImpl() {} | ||
@@ -12,0 +11,0 @@ |
@@ -1,2 +0,2 @@ | ||
;modjewel.define("weinre/target/WiRuntimeImpl", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
;modjewel.define("weinre/target/WiRuntimeImpl", function(require, exports, module) { // Generated by CoffeeScript 1.8.0 | ||
var Weinre, WiRuntimeImpl; | ||
@@ -7,3 +7,2 @@ | ||
module.exports = WiRuntimeImpl = (function() { | ||
function WiRuntimeImpl() {} | ||
@@ -10,0 +9,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
5313199
3
446
73391
1
9
8
+ Addednopt@3.0.6(transitive)
+ Addedunderscore@1.7.0(transitive)
- Removedcoffee-script@1.3.x
- Removedcoffee-script@1.3.3(transitive)
- Removednopt@1.0.10(transitive)
- Removedunderscore@1.3.3(transitive)
Updatednopt@3.0.x
Updatedunderscore@1.7.x