Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hubik-platform-chrome

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubik-platform-chrome - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

37

index.js

@@ -75,4 +75,4 @@ var Platform = require("hubik-platform"),

}).then(function(res){
params.callback(res.result);
});
params.callback(res.result);
});
});

@@ -97,9 +97,20 @@

});
$instance.addInterface("@Navigation&Automation.$runtime.timeline",function(callback){
var timelineProtocol = protocol.timeline(callback);
$instance.addInterface("@Navigation&Automation.$runtime.timeline",function(){
var endCallback;
var endData = [];
var timelineProtocol = protocol.timeline(function(data){
if(data.complete && !!endCallback){
endCallback(endData)
}
else{
endData.push(data.data)
}
});
return {
start: function(){
endData = [];
timelineProtocol.start();
},
end: function(){
end: function(callback){
endCallback = callback
timelineProtocol.end(true);

@@ -111,11 +122,11 @@ }

return protocol.send(
{
"command": "Runtime.evaluate",
"params":{
"expression": code
}
}).then(function(res){
callback(res.result);
});
{
"command": "Runtime.evaluate",
"params":{
"expression": code
}
}).then(function(res){
callback(res.result);
});
});
});
{
"name": "hubik-platform-chrome",
"version": "0.0.2",
"version": "0.0.3",
"description": "The chrome platform logic of Hubik.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc