Skip to content

Commit

Permalink
Bump to 0.1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinfuchs committed Jan 14, 2025
1 parent cd3abf2 commit 027719e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions src/sdk/options.ts
Original file line number Diff line number Diff line change
@@ -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"]`);
Expand Down
6 changes: 6 additions & 0 deletions src/util/performance.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 027719e

Please sign in to comment.