New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

appknit-platform-sdk

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appknit-platform-sdk - npm Package Compare versions

Comparing version 1.0.16 to 1.0.17

3

package.json
{
"name": "appknit-platform-sdk",
"version": "1.0.16",
"version": "1.0.17",
"description": "",

@@ -12,4 +12,5 @@ "main": "index.js",

"dependencies": {
"axios": "^0.19.2",
"node-fetch": "^2.6.0"
}
}

@@ -1,18 +0,22 @@

const fetch = require('node-fetch');
// const fetch = require('node-fetch');
const axios = require('axios');
const overridedFetch = async (url, options) => {
const response = await fetch(url, options);
const overridedAxios = async (options) => {
const response = await axios(options);
const logData = {
request_type: 'outgoing_http_request',
request_url: response.url,
request_url: options.url,
request_method: options.method || 'GET',
request_headers: options.headers,
request_data: options.body || '',
request_data: options.data || '',
response_status_code: response.status,
response_status_text: response.statusText,
response_headers: response.headers,
response_body: response.data,
};
console.log(global);
console.log('----');
console.log(global.global);
return response;

@@ -22,3 +26,3 @@ };

module.exports = {
fetch: overridedFetch,
axios: overridedAxios,
};
const sdk = require('./src/index');
const fetch = require('node-fetch');
const url = 'https://en4tapktc2xtb.x.pipedream.net/test/vm';
const optionsFetch = {
const options = {
url,
method: 'post',
body: JSON.stringify({x: 123}),
data: {sdk: 'test'},
headers: { 'Content-Type': 'application/json' },

@@ -14,3 +14,4 @@ };

const networking = [];
const request = await sdk.fetch(url, optionsFetch);
const request = await sdk.axios(options);
// console.log(request);
})();

@@ -17,0 +18,0 @@

Sorry, the diff of this file is not supported yet

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