diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ee88b8..da87a52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # changelog +## 0.1.15 + +* Allowed disabling of the `window.eval` patching using `disableEvalPatching` when creating the SDK. + ## 0.1.14 * Removed debug message printed to console when a message was ignored from a non-Friendly Captcha iframe source. diff --git a/README.md b/README.md index 0538c98..0187ca3 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ We include more proper end-to-end tests in the [**sdktest**](./sdktest/) tool fo We automatically generate markdown docs and translate these into files that are in a format that works for Docusaurus. You will then need to update the docs manually by deleting the old files and adding the new ones. Something like this: ```shell - rm -rf ../friendly-docs/docs/sdk/reference && mkdir ../friendly-docs/docs/sdk/reference && cp -r ./build/docs/docusaurus/ ../friendly-docs/docs/sdk/reference/ + rm -rf ../friendly-docs/docs/sdk/reference && mkdir ../friendly-docs/docs/sdk/reference && cp -r ./dist/docs/docusaurus/ ../friendly-docs/docs/sdk/reference/ ``` ### Adding license headers diff --git a/package-lock.json b/package-lock.json index 5662fd2..a4d4c8f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@friendlycaptcha/sdk", - "version": "0.1.14", + "version": "0.1.15", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@friendlycaptcha/sdk", - "version": "0.1.14", + "version": "0.1.15", "license": "MPL-2.0", "devDependencies": { "@ava/typescript": "^4.1.0", diff --git a/package.json b/package.json index e7bd84d..d5ca9a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@friendlycaptcha/sdk", - "version": "0.1.14", + "version": "0.1.15", "description": "In-browser SDK for Friendly Captcha v2 (currently in preview only)", "main": "dist/sdk.js", "type": "module", diff --git a/src/sdk/options.ts b/src/sdk/options.ts index d5bfa52..8095c1d 100644 --- a/src/sdk/options.ts +++ b/src/sdk/options.ts @@ -1,3 +1,9 @@ +/*! + * Copyright (c) Friendly Captcha GmbH 2023. + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ export function getSDKDisableEvalPatching(): boolean { // We check if the meta tag `frc-disable-eval-patching` is present. const m: HTMLMetaElement | null = document.querySelector(`meta[name="frc-disable-eval-patching"]`); diff --git a/src/util/performance.ts b/src/util/performance.ts index d3f09ec..3b4ab15 100644 --- a/src/util/performance.ts +++ b/src/util/performance.ts @@ -1,3 +1,9 @@ +/*! + * Copyright (c) Friendly Captcha GmbH 2023. + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ /** Returns window.performance.now() if it is available, otherwise returns 0 */ export function windowPerformanceNow() { const p = window.performance;