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

@js-dot/api

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@js-dot/api - npm Package Compare versions

Comparing version 22.165.4 to 22.165.5

2

http/api-http.js

@@ -336,3 +336,3 @@ var HttpClientBase = /** @class */ (function () {

while (++current < end) {
response = responseTransformers[current](response, parameters);
response = responseTransformers[current]({ response: response, parameters: parameters, body: body });
}

@@ -339,0 +339,0 @@ return Promise.resolve(response);

@@ -342,3 +342,3 @@ (function (global, factory) {

while (++current < end) {
response = responseTransformers[current](response, parameters);
response = responseTransformers[current]({ response: response, parameters: parameters, body: body });
}

@@ -345,0 +345,0 @@ return Promise.resolve(response);

@@ -17,4 +17,4 @@ import { HttpClient } from '../interfaces/http-client';

constructor(client: HttpClient, method?: HttpMethod, path?: string);
constructor(method: HttpMethod, path?: string, option?: Partial<HttpOption>);
constructor(path: string, option?: Partial<HttpOption>);
constructor(method: HttpMethod, path?: string, option?: Partial<HttpOption>);
protected _getChildApi(method: HttpMethod, path: string, option?: Partial<HttpOption>): HttpOperator<null, HttpRequestBody, any>;

@@ -21,0 +21,0 @@ /**

@@ -158,13 +158,13 @@ import { toFilterString } from '@js-dot/core';

return function (http) {
http.pipe($parameters(function (parameters) {
var _a = parameters, $filter = _a.$filter, $baseFilter = _a.$baseFilter;
return http.pipe($parameters(function (_a) {
var parameters = _a.parameters;
var _b = parameters, $filter = _b.$filter, $filterBase = _b.$filterBase;
if (typeof $filter === 'string') {
parameters['$filter'] = toFilterString($filter);
}
if (typeof $baseFilter === 'string') {
parameters['$baseFilter'] = toFilterString($baseFilter);
if (typeof $filterBase === 'string') {
parameters['$baseFilter'] = toFilterString($filterBase);
}
return parameters;
}));
return http;
};

@@ -190,3 +190,4 @@ }

var IS_ARRAY = Array.isArray;
function fixArrayToList(response) {
function fixArrayToList(_a) {
var response = _a.response;
if (IS_ARRAY(response)) {

@@ -193,0 +194,0 @@ response = {

@@ -162,13 +162,13 @@ (function (global, factory) {

return function (http) {
http.pipe($parameters(function (parameters) {
var _a = parameters, $filter = _a.$filter, $baseFilter = _a.$baseFilter;
return http.pipe($parameters(function (_a) {
var parameters = _a.parameters;
var _b = parameters, $filter = _b.$filter, $filterBase = _b.$filterBase;
if (typeof $filter === 'string') {
parameters['$filter'] = core.toFilterString($filter);
}
if (typeof $baseFilter === 'string') {
parameters['$baseFilter'] = core.toFilterString($baseFilter);
if (typeof $filterBase === 'string') {
parameters['$baseFilter'] = core.toFilterString($filterBase);
}
return parameters;
}));
return http;
};

@@ -194,3 +194,4 @@ }

var IS_ARRAY = Array.isArray;
function fixArrayToList(response) {
function fixArrayToList(_a) {
var response = _a.response;
if (IS_ARRAY(response)) {

@@ -197,0 +198,0 @@ response = {

{
"name": "@js-dot/api",
"description": "HTTP, WebSocket, SSE, Worker Interface Design Pattern",
"version": "22.165.4",
"version": "22.165.5",
"author": "protyliss@gmail.com",

@@ -6,0 +6,0 @@ "license": "ISC",

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