New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

servicestack-client

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

servicestack-client - npm Package Compare versions

Comparing version 0.0.38 to 0.0.39

4

package.json
{
"name": "servicestack-client",
"title": "ServiceStack JavaScript Utils",
"version": "0.0.38",
"version": "0.0.39",
"description": "ServiceStack's TypeScript library providing convenience utilities in developing web apps. Integrates with ServiceStack's Server features including ServiceClient, Server Events, Error Handling and Validation",

@@ -51,4 +51,4 @@ "homepage": "https://github.com/ServiceStack/servicestack-client",

"mocha": "^2.5.3",
"typescript": "^2.4.1"
"typescript": "^2.4.2"
}
}

@@ -266,16 +266,16 @@ import 'fetch-everywhere';

postToUrl<T>(url: string, request: IReturn<T>, args?: any): Promise<T>;
postBody<T>(request: IReturn<T>, body: string | any): Promise<T>;
postBody<T>(request: IReturn<T>, body: string | any, args?: any): Promise<T>;
put<T>(request: IReturn<T>, args?: any): Promise<T>;
putToUrl<T>(url: string, request: IReturn<T>, args?: any): Promise<T>;
putBody<T>(request: IReturn<T>, body: string | any): Promise<T>;
putBody<T>(request: IReturn<T>, body: string | any, args?: any): Promise<T>;
patch<T>(request: IReturn<T>, args?: any): Promise<T>;
patchToUrl<T>(url: string, request: IReturn<T>, args?: any): Promise<T>;
patchBody<T>(request: IReturn<T>, body: string | any): Promise<T>;
patchBody<T>(request: IReturn<T>, body: string | any, args?: any): Promise<T>;
createUrlFromDto<T>(method: string, request: IReturn<T>): string;
toAbsoluteUrl(relativeOrAbsoluteUrl: string): string;
private createRequest({method, request, args, url, body});
private createRequest({method, request, url, args, body});
private createResponse<T>(res, request);
private handleError(holdRes, res);
send<T>(method: string, request: any | null, args?: any, url?: string): Promise<T>;
private sendBody<T>(method, request, body);
private sendBody<T>(method, request, body, args?);
sendRequest<T>(info: ISendRequest): Promise<T>;

@@ -282,0 +282,0 @@ raiseError(res: Response, error: any): any;

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

};
JsonServiceClient.prototype.postBody = function (request, body) {
return this.sendBody(HttpMethods.Post, request, body);
JsonServiceClient.prototype.postBody = function (request, body, args) {
return this.sendBody(HttpMethods.Post, request, body, args);
};

@@ -572,4 +572,4 @@ JsonServiceClient.prototype.put = function (request, args) {

};
JsonServiceClient.prototype.putBody = function (request, body) {
return this.sendBody(HttpMethods.Post, request, body);
JsonServiceClient.prototype.putBody = function (request, body, args) {
return this.sendBody(HttpMethods.Post, request, body, args);
};

@@ -582,4 +582,4 @@ JsonServiceClient.prototype.patch = function (request, args) {

};
JsonServiceClient.prototype.patchBody = function (request, body) {
return this.sendBody(HttpMethods.Post, request, body);
JsonServiceClient.prototype.patchBody = function (request, body, args) {
return this.sendBody(HttpMethods.Post, request, body, args);
};

@@ -601,3 +601,3 @@ JsonServiceClient.prototype.createUrlFromDto = function (method, request) {

var _this = this;
var method = _a.method, request = _a.request, args = _a.args, url = _a.url, body = _a.body;
var method = _a.method, request = _a.request, url = _a.url, args = _a.args, body = _a.body;
if (!url)

@@ -715,3 +715,3 @@ url = this.createUrlFromDto(method, request);

};
JsonServiceClient.prototype.sendBody = function (method, request, body) {
JsonServiceClient.prototype.sendBody = function (method, request, body, args) {
var url = exports.combinePaths(this.replyBaseUrl, exports.nameOf(request));

@@ -723,2 +723,3 @@ return this.sendRequest({

url: exports.appendQueryString(url, request),
args: args,
returns: request

@@ -725,0 +726,0 @@ });

@@ -743,4 +743,4 @@ import 'fetch-everywhere';

postBody<T>(request:IReturn<T>, body:string|any) {
return this.sendBody<T>(HttpMethods.Post, request, body);
postBody<T>(request:IReturn<T>, body:string|any, args?:any) {
return this.sendBody<T>(HttpMethods.Post, request, body, args);
}

@@ -756,4 +756,4 @@

putBody<T>(request:IReturn<T>, body:string|any) {
return this.sendBody<T>(HttpMethods.Post, request, body);
putBody<T>(request:IReturn<T>, body:string|any, args?:any) {
return this.sendBody<T>(HttpMethods.Post, request, body, args);
}

@@ -769,4 +769,4 @@

patchBody<T>(request:IReturn<T>, body:string|any) {
return this.sendBody<T>(HttpMethods.Post, request, body);
patchBody<T>(request:IReturn<T>, body:string|any, args?:any) {
return this.sendBody<T>(HttpMethods.Post, request, body, args);
}

@@ -791,3 +791,3 @@

private createRequest({ method, request, args, url, body } : ISendRequest) : [Request,IRequestFilterOptions] {
private createRequest({ method, request, url, args, body } : ISendRequest) : [Request,IRequestFilterOptions] {

@@ -929,3 +929,3 @@ if (!url)

private sendBody<T>(method:string, request:IReturn<T>, body:string|any) {
private sendBody<T>(method:string, request:IReturn<T>, body:string|any, args?:any) {
let url = combinePaths(this.replyBaseUrl, nameOf(request));

@@ -937,2 +937,3 @@ return this.sendRequest<T>({

url: appendQueryString(url, request),
args,
returns: request

@@ -939,0 +940,0 @@ });

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