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

@guardian/ab-core

Package Overview
Dependencies
Maintainers
6
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/ab-core - npm Package Compare versions

Comparing version 7.0.1 to 7.0.2

cjs/index.d.ts.map

6

CHANGELOG.md
# @guardian/ab-core
## 7.0.2
### Patch Changes
- a247de9: Smaller source code
## 7.0.1

@@ -4,0 +10,0 @@

1

cjs/index.d.ts
export type { ABTest, ABTestAPI, AbTestConfig, CoreAPIConfig, Participations, Runnable, Variant } from "./index-de573d55.js";
export { AB } from "./ab.js";
//# sourceMappingURL=index.d.ts.map

3

cjs/ophan.js

@@ -45,4 +45,5 @@ 'use strict';

const listener = complete ? variant.success : variant.impression;
if (!listener)
if (!listener) {
return;
}
try {

@@ -49,0 +50,0 @@ listener(buildOphanSubmitter(test, variant, complete, ophanRecord));

export type { ABTest, ABTestAPI, AbTestConfig, CoreAPIConfig, Participations, Runnable, Variant } from "./index-de573d55.js";
export { AB } from "./ab.js";
//# sourceMappingURL=index.d.ts.map

@@ -41,4 +41,5 @@ const submit = (payload, ophanRecord) => ophanRecord({

const listener = complete ? variant.success : variant.impression;
if (!listener)
if (!listener) {
return;
}
try {

@@ -45,0 +46,0 @@ listener(buildOphanSubmitter(test, variant, complete, ophanRecord));

{
"name": "@guardian/ab-core",
"version": "7.0.1",
"version": "7.0.2",
"private": false,

@@ -16,4 +16,4 @@ "description": "A client-side library for A/B & multivariate testing",

"sideEffects": false,
"main": "cjs/index.js",
"module": "esm/index.js",
"main": "./cjs/index.js",
"module": "./esm/index.js",
"peerDependencies": {

@@ -31,4 +31,56 @@ "tslib": "^2.6.2",

},
"nx": {
"targets": {
"build": {
"executor": "@csnx/npm-package:build",
"outputs": [
"{options.outputPath}"
],
"options": {
"entry": "{projectRoot}/src/index.ts",
"tsConfig": "{projectRoot}/tsconfig.json",
"packageJson": "{projectRoot}/package.json",
"outputPath": "{workspaceRoot}/dist/{projectRoot}",
"assets": [
"{projectRoot}/*.md"
]
}
},
"lint": {
"inputs": [
"{projectRoot}/**",
"{workspaceRoot}/.eslint*"
]
},
"fix": {
"inputs": [
"{projectRoot}/**",
"{workspaceRoot}/.eslint*"
],
"outputs": [
"{projectRoot}"
]
},
"test": {
"inputs": [
"{projectRoot}/**",
"{workspaceRoot}/jest.*"
]
},
"verify-dist": {
"inputs": [
"{projectRoot}/**",
"{workspaceRoot}/jest.*"
]
},
"dev": {
"inputs": [
"{projectRoot}/**",
"{workspaceRoot}/jest.*"
]
}
}
},
"readme": "ERROR: No README data found!",
"_id": "@guardian/ab-core@7.0.1"
"_id": "@guardian/ab-core@7.0.2"
}

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