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

@pipedream/platform

Package Overview
Dependencies
Maintainers
6
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pipedream/platform - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

14

dist/axios.js

@@ -5,8 +5,7 @@ "use strict";

const axios_1 = require("axios");
const buildURL = require("axios/lib/helpers/buildURL");
const querystring = require("querystring");
const utils_1 = require("./utils");
const errors_1 = require("./errors");
function cleanObject(o) {
for (const k in o || {}) {
function cleanObject(o = {}) {
for (const k in o) {
if (typeof o[k] === "undefined") {

@@ -52,4 +51,7 @@ delete o[k];

function transformConfigForOauth(config) {
const { baseURL, url, } = config;
const newUrl = buildURL((baseURL !== null && baseURL !== void 0 ? baseURL : "") + url, config.params, oauth1ParamsSerializer); // build url as axios will
var _a;
const newUrl = axios_1.default.getUri({
...config,
paramsSerializer: oauth1ParamsSerializer,
});
const requestData = {

@@ -65,3 +67,3 @@ method: config.method || "get",

hasContentType = true;
formEncodedContentType = config.headers[k] === "application/x-www-form-urlencoded";
formEncodedContentType = ((_a = config.headers) === null || _a === void 0 ? void 0 : _a[k]) === "application/x-www-form-urlencoded";
break;

@@ -68,0 +70,0 @@ }

import axios from "axios";
import { AxiosRequestConfig } from "./index";
import { AxiosRequestConfig as AxiosConfig } from "axios";
import * as buildURL from "axios/lib/helpers/buildURL";
import * as querystring from "querystring";

@@ -9,4 +7,4 @@ import { cloneSafe } from "./utils";

function cleanObject(o: { string: any; }) {
for (const k in o || {}) {
function cleanObject(o = {}) {
for (const k in o) {
if (typeof o[k] === "undefined") {

@@ -54,6 +52,6 @@ delete o[k];

export function transformConfigForOauth(config: AxiosRequestConfig) {
const {
baseURL, url,
} = config;
const newUrl: string = buildURL((baseURL ?? "") + url, config.params, oauth1ParamsSerializer); // build url as axios will
const newUrl = axios.getUri({
...config,
paramsSerializer: oauth1ParamsSerializer,
});
const requestData = {

@@ -69,3 +67,3 @@ method: config.method || "get",

hasContentType = true;
formEncodedContentType = config.headers[k] === "application/x-www-form-urlencoded";
formEncodedContentType = config.headers?.[k] === "application/x-www-form-urlencoded";
break;

@@ -89,3 +87,2 @@ }

const requestData = transformConfigForOauth(config);
const payload = {

@@ -92,0 +89,0 @@ requestData,

{
"name": "@pipedream/platform",
"version": "1.5.1",
"version": "1.6.0",
"description": "Pipedream platform globals (typing and runtime type checking)",

@@ -15,3 +15,3 @@ "homepage": "https://pipedream.com",

"dependencies": {
"axios": "^0.21.2",
"axios": "^1.6.5",
"fp-ts": "^2.0.2",

@@ -18,0 +18,0 @@ "io-ts": "^2.0.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