Socket
Socket
Sign inDemoInstall

scrappey

Package Overview
Dependencies
9
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "scrappey",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

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

@@ -17,3 +17,3 @@ const Scrappey = require('.');

// Make a GET request
const getRequestResult = await scrappey.getRequest('https://reqres.in/api/users', session.sessionId);
const getRequestResult = await scrappey.getRequest('https://reqres.in/api/users', session.session);
console.log('GET Request Result:', getRequestResult);

@@ -23,7 +23,7 @@

const postData = { username: 'user123', password: 'pass456' };
const postRequestResult = await scrappey.postRequest('https://reqres.in/api/users', postData, session.sessionId);
const postRequestResult = await scrappey.postRequest('https://reqres.in/api/users', postData, session.session);
console.log('POST Request Result:', postRequestResult);
// Destroy the session
await scrappey.destroySession(session.sessionId);
await scrappey.destroySession(session.session);
console.log('Session destroyed.');

@@ -30,0 +30,0 @@ } catch (error) {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc