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

revolt-api

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

revolt-api - npm Package Compare versions

Comparing version 0.5.3-5-patch.3 to 0.5.3-5-patch.4

11

dist/index.js

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

function getPathName(anyPath) {
var _a;
const segments = anyPath.split('/');
const list = (_a = params_1.pathResolve[(segments.length - 1).toString()]) !== null && _a !== void 0 ? _a : [];
const list = params_1.pathResolve[(segments.length - 1).toString()] || [];
for (const entry of list) {

@@ -58,4 +57,4 @@ let i = 1;

constructor({ baseURL, authentication } = {}) {
this.baseURL = baseURL !== null && baseURL !== void 0 ? baseURL : baseURL_1.defaultBaseURL;
this.authentication = authentication !== null && authentication !== void 0 ? authentication : {};
this.baseURL = baseURL || baseURL_1.defaultBaseURL;
this.authentication = authentication || {};
}

@@ -119,6 +118,6 @@ /**

if (allowed_query === null || allowed_query === void 0 ? void 0 : allowed_query.includes(parameter)) {
query = Object.assign(Object.assign({}, (query !== null && query !== void 0 ? query : {})), { [parameter]: params[parameter] });
query = Object.assign(Object.assign({}, (query || {})), { [parameter]: params[parameter] });
}
else {
body = Object.assign(Object.assign({}, (body !== null && body !== void 0 ? body : {})), { [parameter]: params[parameter] });
body = Object.assign(Object.assign({}, (body || {})), { [parameter]: params[parameter] });
}

@@ -125,0 +124,0 @@ }

@@ -14,3 +14,3 @@ // This file was auto-generated by @insertish/oapi!

const segments = anyPath.split('/');
const list = pathResolve[(segments.length - 1).toString()] ?? [];
const list = pathResolve[(segments.length - 1).toString()] || [];
for (const entry of list) {

@@ -38,4 +38,4 @@ let i = 1;

constructor({ baseURL, authentication } = {}) {
this.baseURL = baseURL ?? defaultBaseURL;
this.authentication = authentication ?? {};
this.baseURL = baseURL || defaultBaseURL;
this.authentication = authentication || {};
}

@@ -103,3 +103,3 @@ /**

query = {
...(query ?? {}),
...(query || {}),
[parameter]: params[parameter]

@@ -110,3 +110,3 @@ };

body = {
...(body ?? {}),
...(body || {}),
[parameter]: params[parameter]

@@ -113,0 +113,0 @@ };

{
"name": "revolt-api",
"version": "0.5.3-5-patch.3",
"version": "0.5.3-5-patch.4",
"description": "Revolt API Library",

@@ -22,3 +22,3 @@ "main": "dist/index.js",

"dependencies": {
"@insertish/oapi": "0.1.15",
"@insertish/oapi": "0.1.16",
"axios": "^0.26.1",

@@ -25,0 +25,0 @@ "lodash.defaultsdeep": "^4.6.1"

@@ -33,3 +33,3 @@ // This file was auto-generated by @insertish/oapi!

const list = (pathResolve as unknown as Record<string, (string | [string])[]>)[(segments.length - 1).toString()] ?? [];
const list = (pathResolve as unknown as Record<string, (string | [string])[]>)[(segments.length - 1).toString()] || [];
for (const entry of list) {

@@ -75,4 +75,4 @@ let i = 1;

constructor({ baseURL, authentication }: Partial<Options> = { }) {
this.baseURL = baseURL ?? defaultBaseURL;
this.authentication = authentication ?? { };
this.baseURL = baseURL || defaultBaseURL;
this.authentication = authentication || { };
}

@@ -145,3 +145,3 @@

query = {
...(query ?? {}),
...(query || {}),
[parameter]: (params as Record<any, any>)[parameter]

@@ -151,3 +151,3 @@ };

body = {
...(body ?? {}),
...(body || {}),
[parameter]: (params as Record<any, any>)[parameter]

@@ -154,0 +154,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