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.4 to 1.0.5

4

package.json
{
"name": "appknit-platform-sdk",
"version": "1.0.4",
"version": "1.0.5",
"description": "",

@@ -13,5 +13,7 @@ "main": "index.js",

"axios": "^0.19.2",
"es6-promise": "^4.2.8",
"got": "^11.3.0",
"isomorphic-fetch": "^2.2.1",
"node-fetch": "^2.6.0"
}
}

@@ -1,17 +0,27 @@

const axios = require('axios');
const fetch = require('node-fetch');
const got = require('got');
require('es6-promise').polyfill();
const fetch = require('isomorphic-fetch');
const originalAxios = axios;
const overridedAxios = (options) => {
console.log(options);
return originalAxios(options);
};
// const axios = require('axios');
// const fetch = require('node-fetch');
// const got = require('got');
const originalGot = got;
const overridedGot = (url, options) => {
console.log(url);
console.log(options);
return originalGot(options);
};
// const originalAxios = axios;
// const overridedAxios = (options) => {
// console.log(options);
// return originalAxios(options);
// };
//
// const originalGot = got;
// const overridedGot = (url, options) => {
// console.log(url);
// console.log(options);
// return originalGot(options);
// };
//
// const originalFetch = fetch;
// const overridedFetch = (url, options) => {
// console.log(url);
// console.log(options);
// return originalFetch(options);
// };

@@ -26,5 +36,5 @@ const originalFetch = fetch;

module.exports = {
axios: overridedAxios,
// axios: overridedAxios,
fetch: overridedFetch,
got: overridedGot,
// got: overridedGot,
};

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