configcat-js-ssr
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -1,3 +0,2 @@ | ||
import { ICache } from "configcat-common"; | ||
import { ProjectConfig } from "configcat-common/lib/ProjectConfig"; | ||
import { ICache, ProjectConfig } from "configcat-common"; | ||
export declare class LocalStorageCache implements ICache { | ||
@@ -4,0 +3,0 @@ cache: { |
@@ -1,4 +0,2 @@ | ||
import { IConfigFetcher } from "configcat-common"; | ||
import { ProjectConfig } from "configcat-common/lib/ProjectConfig"; | ||
import { OptionsBase } from "configcat-common/lib/ConfigCatClientOptions"; | ||
import { IConfigFetcher, ProjectConfig, OptionsBase } from "configcat-common"; | ||
export declare class HttpConfigFetcher implements IConfigFetcher { | ||
@@ -5,0 +3,0 @@ fetchLogic(options: OptionsBase, lastProjectConfig: ProjectConfig, callback: (newProjectConfig: ProjectConfig) => void): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var configcat_common_1 = require("configcat-common"); | ||
var ProjectConfig_1 = require("configcat-common/lib/ProjectConfig"); | ||
var axios_1 = require("axios"); | ||
@@ -23,3 +22,3 @@ var HttpConfigFetcher = /** @class */ (function () { | ||
if (response.status === 200) { | ||
callback(new ProjectConfig_1.ProjectConfig(new Date().getTime(), JSON.stringify(response.data), eTag)); | ||
callback(new configcat_common_1.ProjectConfig(new Date().getTime(), JSON.stringify(response.data), eTag)); | ||
} | ||
@@ -36,3 +35,3 @@ else { | ||
var eTag = error.response.headers.etag; | ||
callback(new ProjectConfig_1.ProjectConfig(new Date().getTime(), JSON.stringify(lastProjectConfig.ConfigJSON), eTag)); | ||
callback(new configcat_common_1.ProjectConfig(new Date().getTime(), JSON.stringify(lastProjectConfig.ConfigJSON), eTag)); | ||
} | ||
@@ -39,0 +38,0 @@ else { |
import * as configcatcommon from "configcat-common"; | ||
import { IConfigCatClient } from "configcat-common/lib/ConfigCatClient"; | ||
import { LogLevel } from "configcat-common/lib/index"; | ||
import { IConfigCatClient, LogLevel } from "configcat-common"; | ||
/** Create an instance of ConfigCatClient and setup Auto polling with default options. | ||
* @param {string} sdkKey - SDK Key to access your configuration. | ||
* @param options - Options for Auto polling | ||
*/ | ||
*/ | ||
export declare function createClient(sdkKey: string, options?: IJSAutoPollOptions): IConfigCatClient; | ||
@@ -9,0 +8,0 @@ /** |
@@ -9,3 +9,3 @@ "use strict"; | ||
* @param options - Options for Auto polling | ||
*/ | ||
*/ | ||
function createClient(sdkKey, options) { | ||
@@ -12,0 +12,0 @@ return this.createClientWithAutoPoll(sdkKey, options); |
{ | ||
"name": "configcat-js-ssr", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "ConfigCat Feature Flags for Server Side Rendered apps like NuxtJS. Official ConfigCat SDK for Server Side Rendered to easily access feature flags.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
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
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
90823
193