@ajustee/cc-frontoffice-browser
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -13,15 +13,9 @@ export declare const enum CcDataType { | ||
} | ||
export interface CcFrontOfficeConfig { | ||
gatewayApiId: string; | ||
gatewayApiRegion: string; | ||
gatewayApiStage: string; | ||
headers?: Record<string, string>; | ||
} | ||
export declare class CcFrontOffice { | ||
private readonly url; | ||
private headers; | ||
private headers?; | ||
appId?: string; | ||
constructor(config: CcFrontOfficeConfig); | ||
constructor(url: string, headers?: Record<string, string> | undefined); | ||
getConfigKeys(headers?: Record<string, string>, path?: string): Promise<CcKey[]>; | ||
private getConfigKeys2; | ||
} |
@@ -6,6 +6,7 @@ "use strict"; | ||
class CcFrontOffice { | ||
constructor(config) { | ||
this.url = `https://${config.gatewayApiId}.execute-api.${config.gatewayApiRegion}.amazonaws.com/${config.gatewayApiStage}`; | ||
this.headers = config.headers; | ||
constructor(url, headers) { | ||
this.url = url; | ||
this.headers = headers; | ||
} | ||
; | ||
async getConfigKeys(headers, path) { | ||
@@ -12,0 +13,0 @@ if (!this.appId) |
{ | ||
"name": "@ajustee/cc-frontoffice-browser", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Ajustee Config Center FrontOffice Browser API", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
2691
68