
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Qateway is a lightweight and reliable companion for RESTful requests in Node.js applications. It works using native FETCH library (Node.js 18+), avoiding the need for external dependencies.
You can install the qateway package via npm. Run the following command in your terminal:
npm install qateway
get(endpoint: string, options: IHttpActionOptions): Promise<any>
: Performs an HTTP GET request.post(endpoint: string, body: unknown, options: IHttpActionOptions): Promise<any>
: Performs an HTTP POST request.put(endpoint: string, body: unknown, options: IHttpActionOptions): Promise<any>
: Performs an HTTP PUT request.patch(endpoint: string, body: unknown, options: IHttpActionOptions): Promise<any>
: Performs an HTTP PATCH request.delete(endpoint: string, body: unknown, options: IHttpActionOptions): Promise<any>
: Performs an HTTP DELETE request.const { AbstractGatewayClientService } = require('qateway');
class DataViewGatewayClient extends AbstractGatewayClientService {
static groups({ userId, appId, qrveyId }, { body, queryParameters, headers }) {
const endpoint = `/devapi/v5/user/${userId}/app/${appId}/qrvey/${qrveyId}/analytics/results/groups`;
return this.post(endpoint, body, { headers, queryParameters });
}
static rows({ userId, appId, qrveyId }, { body, queryParameters, headers }) {
const endpoint = `/devapi/v5/user/${userId}/app/${appId}/qrvey/${qrveyId}/analytics/results/rows`;
return this.post(endpoint, body, { headers, queryParameters });
}
static model({ userId, appId, qrveyId }, { queryParameters, headers }) {
const endpoint = `/devapi/v4/user/${userId}/app/${appId}/qrvey/${qrveyId}/analytiq/model`;
return this.get(endpoint, { headers, queryParameters });
}
}
module.exports = DataViewGatewayClient;
FAQs
Qateway By Qrvey
The npm package qateway receives a total of 42 weekly downloads. As such, qateway popularity was classified as not popular.
We found that qateway demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.