g2-ops-config
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -10,5 +10,5 @@ 'use strict'; | ||
var _axios = require('axios'); | ||
var _nodeFetch = require('node-fetch'); | ||
var _axios2 = _interopRequireDefault(_axios); | ||
var _nodeFetch2 = _interopRequireDefault(_nodeFetch); | ||
@@ -50,4 +50,4 @@ var _set = require('lodash/set'); | ||
function getYamlPromise(profile, application) { | ||
return _axios2.default.get(configFileURL(profile, application)).then(function (response) { | ||
return response.data; | ||
return (0, _nodeFetch2.default)(configFileURL(profile, application)).then(function (response) { | ||
return response.json(); | ||
}); | ||
@@ -54,0 +54,0 @@ } |
{ | ||
"name": "g2-ops-config", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "To fetch and maintain cloud configs for difference projects", | ||
@@ -13,4 +13,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"axios": "^0.18.0", | ||
"lodash": "^4.17.5", | ||
"node-fetch": "^2.1.2", | ||
"yamljs": "^0.3.0" | ||
@@ -36,5 +36,4 @@ }, | ||
"peerDependencies": { | ||
"axios": "^0.18.0", | ||
"babel-polyfill": "^6.26.0" | ||
} | ||
} |
// @flow | ||
import axios from 'axios' | ||
import fetch from 'node-fetch' | ||
import set from 'lodash/set' | ||
@@ -36,3 +36,3 @@ import get from 'lodash/get' | ||
function getYamlPromise(profile, application) { | ||
return axios.get(configFileURL(profile, application)).then((response) => response.data) | ||
return fetch(configFileURL(profile, application)).then((response) => response.json()) | ||
} | ||
@@ -39,0 +39,0 @@ |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
26240
4
1
+ Addednode-fetch@^2.1.2
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedaxios@^0.18.0
- Removedaxios@0.18.1(transitive)
- Removedfollow-redirects@1.5.10(transitive)
- Removedis-buffer@2.0.5(transitive)