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

g2-ops-config

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

g2-ops-config - npm Package Compare versions

Comparing version 0.0.22 to 0.0.23

8

dist/index.js

@@ -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 @@

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