@guardian/ab-core
Advanced tools
Comparing version 7.0.1 to 7.0.2
# @guardian/ab-core | ||
## 7.0.2 | ||
### Patch Changes | ||
- a247de9: Smaller source code | ||
## 7.0.1 | ||
@@ -4,0 +10,0 @@ |
export type { ABTest, ABTestAPI, AbTestConfig, CoreAPIConfig, Participations, Runnable, Variant } from "./index-de573d55.js"; | ||
export { AB } from "./ab.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -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
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
92232
38
700