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

@pushrocks/webrequest

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pushrocks/webrequest - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

dist_bundle/bundle.js

9

dist_ts/index.js

@@ -32,7 +32,6 @@ "use strict";

static loadNeededPolyfills() {
if (!this.polyfillsLoaded) {
const smartenv = new plugins.smartenv.Smartenv();
if (!smartenv.isBrowser && !this.polyfillsLoaded) {
this.polyfillsLoaded = true;
// tslint:disable-next-line: no-eval
const loadFetchPolyfill = eval(`globalThis.fetch = require('node-fetch')`);
loadFetchPolyfill();
globalThis.fetch = smartenv.getSafeNodeModule('node-fetch');
}

@@ -136,2 +135,2 @@ }

WebRequest.polyfillsLoaded = false;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsOERBQWdEO0FBRWhEOztHQUVHO0FBQ0gsTUFBYSxVQUFVO0lBV3JCO1FBQ0UsVUFBVSxDQUFDLG1CQUFtQixFQUFFLENBQUM7SUFDbkMsQ0FBQztJQVhNLE1BQU0sQ0FBQyxtQkFBbUI7UUFDL0IsSUFBSSxDQUFDLElBQUksQ0FBQyxlQUFlLEVBQUU7WUFDekIsSUFBSSxDQUFDLGVBQWUsR0FBRyxJQUFJLENBQUM7WUFDNUIsb0NBQW9DO1lBQ3BDLE1BQU0saUJBQWlCLEdBQUcsSUFBSSxDQUFDLDBDQUEwQyxDQUFDLENBQUM7WUFDM0UsaUJBQWlCLEVBQUUsQ0FBQztTQUNyQjtJQUNILENBQUM7SUFNTSxLQUFLL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0FBQyxPQUFPLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQztRQUN2RSxPQUFPLENBQUMsR0FBRyxDQUFDLGFBQWEsQ0FBQyxDQUFDO1FBQzNCLE9BQU8sYUFBYSxDQUFDO0lBQ3ZCLENBQUM7O0FBekhILGdDQTBIQztBQXpIZ0IsMEJBQWUsR0FBRyxLQUFLLENBQUMifQ==
import * as smartdelay from '@pushrocks/smartdelay';
export { smartdelay };
import * as smartenv from '@pushrocks/smartenv';
export { smartdelay, smartenv };

@@ -22,5 +22,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.smartdelay = void 0;
exports.smartenv = exports.smartdelay = void 0;
const smartdelay = __importStar(require("@pushrocks/smartdelay"));
exports.smartdelay = smartdelay;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2VicmVxdWVzdC5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvd2VicmVxdWVzdC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxrRUFBb0Q7QUFFM0MsZ0NBQVUifQ==
const smartenv = __importStar(require("@pushrocks/smartenv"));
exports.smartenv = smartenv;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2VicmVxdWVzdC5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvd2VicmVxdWVzdC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxrRUFBb0Q7QUFHM0MsZ0NBQVU7QUFGbkIsOERBQWdEO0FBRTNCLDRCQUFRIn0=
{
"name": "@pushrocks/webrequest",
"version": "2.0.7",
"version": "2.0.8",
"private": false,

@@ -12,3 +12,3 @@ "description": "securely request from browsers",

"test": "(tstest test/ --web)",
"build": "(tsbuild --web)",
"build": "(tsbuild --web && tsbundle npm)",
"format": "(gitzone format)"

@@ -18,2 +18,3 @@ },

"@gitzone/tsbuild": "^2.1.24",
"@gitzone/tsbundle": "^1.0.69",
"@gitzone/tstest": "^1.0.33",

@@ -28,3 +29,4 @@ "@pushrocks/smartexpress": "^3.0.72",

"dependencies": {
"@pushrocks/smartdelay": "^2.0.9"
"@pushrocks/smartdelay": "^2.0.9",
"@pushrocks/smartenv": "^4.0.10"
},

@@ -31,0 +33,0 @@ "files": [

@@ -30,3 +30,2 @@ # @pushrocks/webrequest

## Contribution

@@ -33,0 +32,0 @@

@@ -9,7 +9,6 @@ import * as plugins from './webrequest.plugins';

public static loadNeededPolyfills() {
if (!this.polyfillsLoaded) {
const smartenv = new plugins.smartenv.Smartenv();
if (!smartenv.isBrowser && !this.polyfillsLoaded) {
this.polyfillsLoaded = true;
// tslint:disable-next-line: no-eval
const loadFetchPolyfill = eval(`globalThis.fetch = require('node-fetch')`);
loadFetchPolyfill();
globalThis.fetch = smartenv.getSafeNodeModule('node-fetch');
}

@@ -16,0 +15,0 @@ }

import * as smartdelay from '@pushrocks/smartdelay';
import * as smartenv from '@pushrocks/smartenv';
export { smartdelay };
export { smartdelay, smartenv };
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