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

spectron

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spectron - npm Package Compare versions

Comparing version 0.35.1 to 0.35.2

23

lib/application.js

@@ -163,3 +163,3 @@ var ChromeDriver = require('./chrome-driver')

return this.execute(function (bounds) {
require('remote').getCurrentWindow().setBounds(bounds)
require('electron').remote.getCurrentWindow().setBounds(bounds)
}, bounds)

@@ -181,3 +181,3 @@ })

return this.execute(function () {
require('remote').require('app').quit()
require('electron').remote.app.quit()
})

@@ -217,3 +217,3 @@ })

return this.execute(function () {
return require('remote').getGlobal('process').argv
return require('electron').remote.getGlobal('process').argv
}).then(getResponseValue)

@@ -224,3 +224,3 @@ })

return this.execute(function () {
return require('clipboard').readText()
return require('electron').clipboard.readText()
}).then(getResponseValue)

@@ -231,3 +231,3 @@ })

return this.execute(function (text) {
return require('clipboard').writeText(text)
return require('electron').clipboard.writeText(text)
}, text).then(getResponseValue)

@@ -238,3 +238,3 @@ })

return this.execute(function (edited) {
return require('remote').getCurrentWindow().setDocumentEdited(edited)
return require('electron').remote.getCurrentWindow().setDocumentEdited(edited)
}, edited).then(getResponseValue)

@@ -245,3 +245,3 @@ })

return this.execute(function (filename) {
return require('remote').getCurrentWindow().setRepresentedFilename(filename)
return require('electron').remote.getCurrentWindow().setRepresentedFilename(filename)
}, filename).then(getResponseValue)

@@ -261,2 +261,8 @@ })

this.client.addCommand('isWindowLoading', function () {
return this.execute(function () {
return require('electron').remote.getCurrentWindow().webContents.isLoading()
}).then(getResponseValue)
})
this.addCurrentWindowGetter('getBounds', 'getWindowBounds')

@@ -268,3 +274,2 @@ this.addCurrentWindowGetter('isDevToolsOpened', 'isWindowDevToolsOpened')

this.addCurrentWindowGetter('isMinimized', 'isWindowMinimized')
this.addCurrentWindowGetter('isLoading', 'isWindowLoading')
this.addCurrentWindowGetter('isVisible', 'isWindowVisible')

@@ -288,3 +293,3 @@

var currentWindowGetter = function (methodName) {
return require('remote').getCurrentWindow()[methodName]()
return require('electron').remote.getCurrentWindow()[methodName]()
}

@@ -291,0 +296,0 @@

{
"name": "spectron",
"version": "0.35.1",
"version": "0.35.2",
"description": "Easy ChromeDriver tests for Electron apps",

@@ -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