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

electron-better-web-request

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-better-web-request - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

lib/electron-better-web-request.js

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

args.action = parameters[1];
args.context = parameters[3];
args.context = parameters[2];
break;

@@ -261,2 +261,2 @@ }

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlY3Ryb24tYmV0dGVyLXdlYi1yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2VsZWN0cm9uLWJldHRlci13ZWItcmVxdWVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxvRkFBdUM7QUFDdkMseURBQTJCO0FBYzNCLE1BQU0sZUFBZSxHQUFHLENBQUMsU0FBcUIsRUFBRSxFQUFFO0lBQ2hELE1BQU0sTUFBTSxHQUFHLFNBQVMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDLEtBQUssR0FBRyxDQUFDLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzNFLE1BQU0sSUFBSSxHQUFHLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUN2QixPQUFPLElBQUksQ0FBQyxLQUFLLEVBQUUsQ0FBQztBQUN0QixDQUFDLENBQUM7QUFFRixNQUFNLG1CQUFtQixHQUFHO0lBQzFCLGlCQUFpQjtJQUNqQixxQkFBcUI7SUFDckIsbUJBQW1CO0NBQ3BCLENBQUM7QUFFRixNQUFNLFlBQVksR0FBRztJQUNuQixpQkFBaUI7SUFDakIscUJBQX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XRoICR7bWV0aG9kfSA6IGEgbGlzdGVuZXIgaXMgbWlzc2luZy5gKTtcbiAgICB9XG5cbiAgICByZXR1cm4gdGhpcy5hZGRMaXN0ZW5lcihtZXRob2QsIGZpbHRlciwgYWN0aW9uLCBjb250ZXh0KTtcbiAgfVxufVxuXG4vLyBQcm94eSBoYW5kbGVyIHRoYXQgYWRkIHN1cHBvcnQgZm9yIGFsbCBhbGlhcyBtZXRob2RzIGJ5IHJlZGlyZWN0aW5nIHRvIEJldHRlcldlYlJlcXVlc3QuYWxpYXMoKVxuY29uc3QgYWxpYXNIYW5kbGVyID0ge1xuICBnZXQ6ICh0YXJnZXQ6IEJldHRlcldlYlJlcXVlc3QsIHByb3BlcnR5OiBhbnkpID0+IHtcbiAgICBpZiAoYWxpYXNNZXRob2RzLmluY2x1ZGVzKHByb3BlcnR5KSkge1xuICAgICAgcmV0dXJuICguLi5wYXJhbWV0ZXJzOiBhbnkpID0+IHtcbiAgICAgICAgdGFyZ2V0LmFsaWFzKHByb3BlcnR5LCBwYXJhbWV0ZXJzKTtcbiAgICAgIH07XG4gICAgfVxuXG4gICAgcmV0dXJuIHRhcmdldFtwcm9wZXJ0eV07XG4gIH0sXG59O1xuXG5leHBvcnQgZGVmYXVsdCAoc2Vzc2lvbjogU2Vzc2lvbikgPT4ge1xuICByZXR1cm4gbmV3IFByb3h5KFxuICAgIG5ldyBCZXR0ZXJXZWJSZXF1ZXN0KHNlc3Npb24ud2ViUmVxdWVzdCksXG4gICAgYWxpYXNIYW5kbGVyXG4gICk7XG59O1xuIl19
{
"name": "electron-better-web-request",
"version": "1.0.0",
"version": "1.0.1",
"description": "Module replacement for electron-web-request",

@@ -5,0 +5,0 @@ "main": "./lib/store.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