UNPKG

xsolla

Version:

A Node.js client for working with the Xsolla Merchant API

23 lines (22 loc) 715 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const ProjectCollection_1 = __importDefault(require("./Collections/ProjectCollection")); const XsollaClient_1 = __importDefault(require("./XsollaClient")); class Xsolla { /** * Xsolla constructor */ constructor(credentials) { this.client = new XsollaClient_1.default(credentials); } /** * Xsolla Project instance. */ get projects() { return new ProjectCollection_1.default(this.client); } } exports.default = Xsolla;