You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

revolt-api

Package Overview
Dependencies
Maintainers
1
Versions
114
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

to
0.8.6-1

8

lib/index.js

@@ -125,3 +125,9 @@ export * from "./types.js";

});
return await fetchdata[config?.responseType || "json"]();
const data = await fetchdata[config?.responseType || "json"]();
if (fetchdata.ok) {
return data;
}
else {
throw data;
}
}

@@ -128,0 +134,0 @@ get(path, params, config) {

21

package.json
{
"name": "revolt-api",
"version": "0.8.5",
"version": "0.8.6-1",
"description": "Revolt API Library",
"type": "module",
"module": "lib/index.js",
"exports": {
".": "./lib/index.js"
},
"types": "lib/index.d.ts",

@@ -12,11 +14,7 @@ "homepage": "https://developers.revolt.chat",

"license": "MIT",
"scripts": {
"build": "REWRITE_ANYOF=1 oapilib && tsc",
"prepublish": "in-publish && pnpm build || echo Skipping build."
},
"devDependencies": {
"@insertish/oapi": "0.2.4",
"@insertish/oapi": "0.2.5",
"in-publish": "^2.0.1",
"openapi-typescript": "^5.4.2",
"typescript": "^5.8.2"
"typescript": "^5.8.3"
},

@@ -30,3 +28,6 @@ "files": [

],
"packageManager": "pnpm@8.13.1+sha512.758bebc6989cb6462c5138129840193b10c258ddcdb0ab43ee0ef9dd87784bc218d6e41cb5beeac362b8ce33f1f8b08025b599933c0bce82050a9a36b8474d43"
}
"scripts": {
"build": "REWRITE_ANYOF=1 oapilib && tsc",
"prepublish": "in-publish && pnpm build || echo Skipping build."
}
}

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

(pathResolve as unknown as Record<string, (string | [string])[]>)[
(segments.length - 1).toString()
(segments.length - 1).toString()
] || [];

@@ -208,3 +208,10 @@ for (const entry of list) {

});
return await fetchdata[config?.responseType || "json"]();
const data = await fetchdata[config?.responseType || "json"]();
if (fetchdata.ok) {
return data;
} else {
throw data;
}
}

@@ -211,0 +218,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display