New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@amplitude/experiment-js-client

Package Overview
Dependencies
Maintainers
19
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/experiment-js-client - npm Package Compare versions

Comparing version 1.5.6 to 1.6.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# 1.6.0 (2022-10-21)
### Features
* add clear method to clear flag configs ([#51](https://github.com/amplitude/experiment-js-client/issues/51)) ([ceddb50](https://github.com/amplitude/experiment-js-client/commit/ceddb5082589e28cd6b5eaff4ddd1cfd20b69b9d))
## [1.5.6](https://github.com/amplitude/experiment-js-client/compare/v1.5.5...v1.5.6) (2022-09-06)

@@ -8,0 +19,0 @@

11

dist/experiment.es2015.js

@@ -273,3 +273,3 @@ import { AnalyticsConnector } from '@amplitude/analytics-connector';

var version = "1.5.6";
var version = "1.6.0";

@@ -743,2 +743,10 @@ class ConnectorUserProvider {

/**
* Clear all variants in the cache and storage.
*
*/
clear() {
this.storage.clear();
this.storage.save();
}
/**
* Get a copy of the internal {@link ExperimentUser} object if it is set.

@@ -1117,2 +1125,3 @@ *

}
clear() { }
exposure(key) { }

@@ -1119,0 +1128,0 @@ }

@@ -429,3 +429,3 @@ import { AnalyticsConnector } from '@amplitude/analytics-connector';

var version = "1.5.6";
var version = "1.6.0";

@@ -947,2 +947,10 @@ var ConnectorUserProvider = /** @class */ (function () {

/**
* Clear all variants in the cache and storage.
*
*/
ExperimentClient.prototype.clear = function () {
this.storage.clear();
this.storage.save();
};
/**
* Get a copy of the internal {@link ExperimentUser} object if it is set.

@@ -1369,2 +1377,3 @@ *

};
StubExperimentClient.prototype.clear = function () { };
StubExperimentClient.prototype.exposure = function (key) { };

@@ -1371,0 +1380,0 @@ return StubExperimentClient;

@@ -101,2 +101,7 @@ /**

/**
* Clear all variants in the cache and storage.
*
*/
clear(): void;
/**
* Get a copy of the internal {@link ExperimentUser} object if it is set.

@@ -103,0 +108,0 @@ *

@@ -16,3 +16,4 @@ import { Client } from './types/client';

all(): Variants;
clear(): void;
exposure(key: string): void;
}

@@ -12,2 +12,3 @@ import { ExperimentUserProvider } from './provider';

all(): Variants;
clear(): void;
exposure(key: string): void;

@@ -14,0 +15,0 @@ getUser(): ExperimentUser;

38

package.json
{
"name": "@amplitude/experiment-js-client",
"version": "1.5.6",
"description": "Javascript Client SDK for Amplitude Experiment",
"version": "1.6.0",
"description": "Amplitude Experiment Javascript Client SDK",
"keywords": [
"experiment",
"amplitude"
],
"author": "Amplitude",
"homepage": "https://github.com/amplitude/experiment-js-client",
"license": "MIT",
"main": "dist/experiment.umd.js",

@@ -9,7 +16,13 @@ "module": "dist/experiment.esm.js",

"types": "dist/types/src/index.d.ts",
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/amplitude/experiment-js-client.git",
"directory": "packages/experiment-browser"
},
"scripts": {
"build": "rm -rf dist && rollup -c",
"clean": "rimraf node_modules dist",
"docs": "typedoc",

@@ -21,15 +34,7 @@ "lint": "eslint . --ignore-path ../../.eslintignore && prettier -c . --ignore-path ../../.prettierignore",

},
"repository": {
"type": "git",
"url": "https://github.com/amplitude/experiment-js-client.git",
"directory": "packages/browser"
},
"author": "Amplitude",
"license": "MIT",
"bugs": {
"url": "https://github.com/amplitude/experiment-js-client/issues"
},
"homepage": "https://github.com/amplitude/experiment-js-client#readme",
"dependencies": {
"@amplitude/analytics-connector": "1.4.5",
"@amplitude/analytics-connector": "^1.4.6",
"base64-js": "1.5.1",

@@ -42,3 +47,6 @@ "unfetch": "4.1.0"

},
"gitHead": "bf3f5c39f7171fa280b35d1eca9d173b7d426a4f"
"files": [
"dist"
],
"gitHead": "61f316e302deed6c98575e5ee6a1adbeef19ccea"
}

Sorry, the diff of this file is too big to display

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