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

@datocms/rest-client-utils

Package Overview
Dependencies
Maintainers
6
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datocms/rest-client-utils - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

dist/cjs/__tests__/buildNormalizedParams.test.js

7

dist/cjs/request.js

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

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.request = exports.LogLevel = void 0;
var qs_1 = __importDefault(require("qs"));
var buildNormalizedParams_1 = require("./buildNormalizedParams");
var fetch_1 = require("@whatwg-node/fetch");

@@ -156,3 +153,3 @@ var errors_1 = require("./errors");

queryString = options.queryParams && Object.keys(options.queryParams).length > 0
? "?".concat(qs_1.default.stringify(options.queryParams, { arrayFormat: 'brackets' }))
? "?".concat(new URLSearchParams((0, buildNormalizedParams_1.buildNormalizedParams)(options.queryParams)).toString())
: '';

@@ -159,0 +156,0 @@ url = "".concat(baseUrl).concat(options.url).concat(queryString);

@@ -48,3 +48,3 @@ var __assign = (this && this.__assign) || function () {

};
import qs from 'qs';
import { buildNormalizedParams } from './buildNormalizedParams';
import { fetch as universalFetch } from '@whatwg-node/fetch';

@@ -150,3 +150,3 @@ import { ApiError, TimeoutError, } from './errors';

queryString = options.queryParams && Object.keys(options.queryParams).length > 0
? "?".concat(qs.stringify(options.queryParams, { arrayFormat: 'brackets' }))
? "?".concat(new URLSearchParams(buildNormalizedParams(options.queryParams)).toString())
: '';

@@ -153,0 +153,0 @@ url = "".concat(baseUrl).concat(options.url).concat(queryString);

{
"name": "@datocms/rest-client-utils",
"version": "1.1.11",
"version": "1.1.12",
"description": "Utilities for DatoCMS REST API clients",

@@ -41,6 +41,5 @@ "keywords": [

"async-scheduler": "^1.4.4",
"browser-or-node": "^2.0.0",
"qs": "^6.10.3"
"browser-or-node": "^2.0.0"
},
"gitHead": "fd5f296207b24655aae969671a41e5913f3d5501",
"gitHead": "20f895c824269b2c1a4a51a3abb329d840d24b2a",
"devDependencies": {

@@ -47,0 +46,0 @@ "@types/qs": "^6.9.7"

@@ -1,2 +0,2 @@

import qs from 'qs';
import { buildNormalizedParams } from './buildNormalizedParams';
import { fetch as universalFetch } from '@whatwg-node/fetch';

@@ -167,3 +167,5 @@ import {

options.queryParams && Object.keys(options.queryParams).length > 0
? `?${qs.stringify(options.queryParams, { arrayFormat: 'brackets' })}`
? `?${new URLSearchParams(
buildNormalizedParams(options.queryParams),
).toString()}`
: '';

@@ -170,0 +172,0 @@

Sorry, the diff of this file is not supported yet

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