Socket
Socket
Sign inDemoInstall

tayeh.js

Package Overview
Dependencies
3
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.98 to 0.1.99

lib/chat/index.d.ts

1

lib/base.d.ts

@@ -9,4 +9,5 @@ import { AxiosRequestConfig, AxiosResponse } from 'axios';

protected post<T>(endpoint: string, body?: {}, options?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
protected patch<T>(endpoint: string, body?: {}, options?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
protected delete<T>(endpoint: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
protected put<T>(endpoint: string, body?: {}, options?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
}

@@ -60,2 +60,9 @@ "use strict";

}
patch(endpoint, body = {}, options) {
return __awaiter(this, void 0, void 0, function* () {
const url = `${exports.BASE_URL}/${endpoint}`;
const res = yield axios_1.default.patch(url, body, configGenerator(this.API_ACCESS, options));
return res;
});
}
delete(endpoint, options) {

@@ -62,0 +69,0 @@ return __awaiter(this, void 0, void 0, function* () {

@@ -13,1 +13,2 @@ export * from './Pagination.dto';

export * from './Image.dto';
export * from './chat';

@@ -25,2 +25,3 @@ "use strict";

__exportStar(require("./Image.dto"), exports);
__exportStar(require("./chat"), exports);
//# sourceMappingURL=index.js.map

@@ -7,2 +7,3 @@ import { Media } from './media';

import { General } from './general';
import { Chat } from './chat';
import { ConnectionOptions } from './connection/ConnectionOptions';

@@ -20,2 +21,3 @@ export declare class Tayeh {

general(): General;
chat(): Chat;
}

@@ -19,2 +19,3 @@ "use strict";

const general_1 = require("./general");
const chat_1 = require("./chat");
class Tayeh {

@@ -61,4 +62,7 @@ constructor(options = { api_access: null }) {

}
chat() {
return new chat_1.Chat(this.API_ACCESS);
}
}
exports.Tayeh = Tayeh;
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "tayeh.js",
"version": "0.1.98",
"version": "0.1.99",
"description": "tayeh shop-api client",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc