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

ecwid

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecwid - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

8

lib/index.d.ts

@@ -9,4 +9,12 @@ declare type StoreId = number;

constructor(storeId: StoreId, storeAccessToken: StoreAccessToken, timeout?: number, headers?: object);
/**
* Получить профиль магазина.
*/
getProfile(): Promise<import("node-result").ResultOK<any> | import("node-result").ResultFAIL<any>>;
/**
* Получить заказ.
* @param {OrderId} id - идентификатор заказа.
*/
getOrder(id: OrderId): Promise<import("node-result").ResultOK<any> | import("node-result").ResultFAIL<any>>;
}
export {};

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

}
/**
* Получить профиль магазина.
*/
getProfile() {
return __awaiter(this, void 0, void 0, function* () {
try {
const { data } = yield this.instance.get('/profile');
return node_result_1.ResultOk(data);
}
catch (error) {
return node_result_1.ResultFail(error);
}
});
}
/**
* Получить заказ.
* @param {OrderId} id - идентификатор заказа.
*/
getOrder(id) {

@@ -27,0 +45,0 @@ return __awaiter(this, void 0, void 0, function* () {

2

package.json
{
"name": "ecwid",
"version": "1.1.0",
"version": "1.2.0",
"description": "ecwid",

@@ -5,0 +5,0 @@ "keywords": [

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