vanilli-shop-client
Advanced tools
Comparing version 1.5.4 to 1.5.5
@@ -8,2 +8,3 @@ export interface ICompanyProviderDto { | ||
static getPublicKey(provider: ICompanyProviderDto): string | undefined; | ||
static getShopKey(provider: ICompanyProviderDto): string | undefined; | ||
} | ||
@@ -10,0 +11,0 @@ export interface ICompanyProviderAuthDto { |
@@ -12,4 +12,8 @@ "use strict"; | ||
}; | ||
CompanyProvider.getShopKey = function (provider) { | ||
var _a, _b; | ||
return (_b = (_a = provider.auths) === null || _a === void 0 ? void 0 : _a.find(function (x) { return x.type === base_1.ProviderAuthEnum.ShopId; })) === null || _b === void 0 ? void 0 : _b.value; | ||
}; | ||
return CompanyProvider; | ||
}()); | ||
exports.CompanyProvider = CompanyProvider; |
{ | ||
"name": "vanilli-shop-client", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "Client for Vanilli Shop API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -13,2 +13,6 @@ import {ProviderAuthEnum} from "./base"; | ||
} | ||
static getShopKey(provider: ICompanyProviderDto): string | undefined { | ||
return provider.auths?.find(x => x.type === ProviderAuthEnum.ShopId)?.value; | ||
} | ||
} | ||
@@ -15,0 +19,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
262146
5800