appknit-platform-sdk
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"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
29645
36
5
+ Addedes6-promise@^4.2.8
+ Addedisomorphic-fetch@^2.2.1
+ Addedencoding@0.1.13(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)