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

configcat-js-ssr

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configcat-js-ssr - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

3

lib/Cache.d.ts

@@ -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

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