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

foxdriver

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foxdriver - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

lib/models/request.js

@@ -41,3 +41,3 @@ import Actor from '../actor'

const { postData } = await this.request('getRequestPostData')
if (postData.text.type && postData.text.type === 'longString') {
if (postData.text && postData.text.type && postData.text.type === 'longString') {
const longPost = new LongString(this.client, postData.text.actor)

@@ -44,0 +44,0 @@ return longPost.substring(0, postData.text.length)

@@ -55,3 +55,3 @@ "use strict";

if (postData.text.type && postData.text.type === 'longString') {
if (postData.text && postData.text.type && postData.text.type === 'longString') {
const longPost = new _longString.default(this.client, postData.text.actor);

@@ -124,2 +124,2 @@ return longPost.substring(0, postData.text.length);

module.exports = exports.default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9tb2RlbHMvcmVxdWVzdC5qcyJdLCJuYW1lcyI6WyJSZXF1ZXN0IiwiQWN0b3IiLCJjb25zdHJ1Y3RvciIsImNsaWVudCIsImV2ZW50IiwiYWN0b3IiLCJzdGFydGVkRGF0ZVRpbWUiLCJ0aW1lU3RhbXAiLCJ1cmwiLCJtZXRob2QiLCJpc1hIUiIsImZyb21DYWNoZSIsImNhdXNlIiwicHJpdmF0ZSIsIm9uIiwib25VcGRhdGUiLCJnZXRSZXF1ZXN0SGVhZGVycyIsInJlcXVlc3QiLCJnZXRSZXF1ZXN0Q29va2llcyIsImdldFJlcXVlc3RQb3N0RGF0YSIsInBvc3REYXRhIiwidGV4dCIsInR5cGUiLCJsb25nUG9zdCIsIkxvbmdTdHJpbmciLCJzdWJzdHJpbmciLCJsZW5ndGgiLCJnZXRSZXNwb25zZUhlYWRlcnMiLCJnZXRSZXNwb25zZUNvb2tpZXM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xuICAgICAgICByZXR1cm4gdGhpcy5yZXF1ZXN0KCdnZXRFdmVudFRpbWluZ3MnKVxuICAgIH1cblxuICAgIGdldFJlc3BvbnNlU3RhcnQgKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5yZXF1ZXN0KCdnZXRSZXNwb25zZVN0YXJ0JylcbiAgICB9XG5cbiAgICBvblVwZGF0ZSAoZSkge1xuICAgICAgICBjb25zdCB0eXBlID0gYG9uJHtlLnVwZGF0ZVR5cGVbMF0udG9VcHBlckNhc2UoKX0ke2UudXBkYXRlVHlwZS5zbGljZSgxKX1gXG4gICAgICAgIHRoaXMuZW1pdCh0eXBlLCBlKVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHJpZXZlIHRoZSBzZWN1cml0eSBpbmZvcm1hdGlvbiBmb3IgdGhlIGdpdmVuIE5ldHdvcmtFdmVudEFjdG9yLlxuICAgICAqL1xuICAgIGdldFNlY3VyaXR5SW5mbyAoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLnJlcXVlc3QoJ2dldFNlY3VyaXR5SW5mbycpXG4gICAgfVxufVxuIl19
{
"name": "foxdriver",
"version": "1.0.0",
"version": "1.0.1",
"author": "Christian Bromann <christian@saucelabs.com>",

@@ -5,0 +5,0 @@ "description": "Foxdriver is a Node library which provides a high-level API to control Firefox over the Remote Debugging Protocol",

@@ -42,2 +42,3 @@ import FirefoxProfile from 'firefox-profile'

await browser.url('https://json.org')
await browser.pause(3000)

@@ -48,3 +49,3 @@ // attach to browser

expect(tabs).toHaveLength(1)
expect(tabs[0].data.url).toContain('json.org')
expect(tabs[0].data.url).toBe('https://www.json.org/json-en.html')
expect(tabs[0].data.title).toEqual('JSON')

@@ -51,0 +52,0 @@ })

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