Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codat/files

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codat/files - npm Package Compare versions

Comparing version 0.13.1 to 0.15.3

19

dist/internal/utils/queryparams.js

@@ -19,3 +19,3 @@ "use strict";

fieldNames.forEach(function (fname) {
var _a, _b, _c, _d, _e;
var _a, _b, _c, _d, _e, _f, _g;
var requestBodyAnn = Reflect.getMetadata(requestbody_1.requestMetadataKey, queryParams, fname);

@@ -41,8 +41,16 @@ if (requestBodyAnn)

if (!qpDecorator.Explode)
queryStringParts.push(formSerializer((_c = {}, _c[qpDecorator.ParamName] = value, _c)));
queryStringParts.push(noExplodeSerializer((_c = {}, _c[qpDecorator.ParamName] = value, _c)));
else
queryStringParts.push(formSerializerExplode((_d = {}, _d[qpDecorator.ParamName] = value, _d)));
return;
case "pipeDelimited":
if (!qpDecorator.Explode) {
queryStringParts.push(noExplodeSerializer((_e = {}, _e[qpDecorator.ParamName] = value, _e), "|"));
}
else {
queryStringParts.push(formSerializerExplode((_f = {}, _f[qpDecorator.ParamName] = value, _f)));
}
return;
default:
queryStringParts.push(formSerializerExplode((_e = {}, _e[qpDecorator.ParamName] = value, _e)));
queryStringParts.push(formSerializerExplode((_g = {}, _g[qpDecorator.ParamName] = value, _g)));
}

@@ -64,3 +72,4 @@ }

// TODO: Add support for disabling percent encoding for reserved characters
function formSerializer(params) {
function noExplodeSerializer(params, delimiter) {
if (delimiter === void 0) { delimiter = ","; }
var query = [];

@@ -74,3 +83,3 @@ Object.entries(Object.assign({}, params)).forEach(function (_a) {

else if (Array.isArray(value)) {
var values = value.map(function (aValue) { return aValue; }).join(",");
var values = value.map(function (aValue) { return aValue; }).join(delimiter);
query.push("".concat(key, "=").concat(encodeURIComponent(values)));

@@ -77,0 +86,0 @@ }

@@ -33,2 +33,4 @@ "use strict";

case "multipart/form-data":
requestBody = encodeMultipartFormData(reqBody);
break;
case "multipart/mixed":

@@ -35,0 +37,0 @@ requestBody = encodeMultipartFormData(reqBody);

@@ -61,4 +61,4 @@ "use strict";

this._language = "typescript";
this._sdkVersion = "0.13.1";
this._genVersion = "2.23.2";
this._sdkVersion = "0.15.3";
this._genVersion = "2.26.3";
this._serverURL = (_a = props === null || props === void 0 ? void 0 : props.serverURL) !== null && _a !== void 0 ? _a : exports.ServerList[0];

@@ -65,0 +65,0 @@ this._defaultClient =

{
"name": "@codat/files",
"version": "0.13.1",
"version": "0.15.3",
"author": "Speakeasy",

@@ -5,0 +5,0 @@ "scripts": {

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