@thumbmarkjs/thumbmarkjs
Advanced tools
Comparing version 0.14.1 to 0.14.2
{ | ||
"name": "@thumbmarkjs/thumbmarkjs", | ||
"version": "0.14.1", | ||
"version": "0.14.2", | ||
"description": "", | ||
"main": "dist/thumbmark.cjs.js", | ||
"module": "dist/thumbmark.esm.js", | ||
"types": "dist/types/index.d.ts", | ||
"main": "./dist/thumbmark.cjs.js", | ||
"module": "./dist/thumbmark.esm.js", | ||
"types": "./dist/types/thumbmark.esm.d.ts", | ||
"exports": { | ||
@@ -20,3 +20,3 @@ ".": { | ||
"test": "jest", | ||
"build": "rm -rf dist/* && rollup -c" | ||
"build": "rm -rf dist/* && rm -rf types/* && rollup -c" | ||
}, | ||
@@ -37,3 +37,2 @@ "keywords": [ | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^6.1.6", | ||
"@rollup/plugin-commonjs": "^25.0.7", | ||
@@ -44,2 +43,3 @@ "@rollup/plugin-json": "^6.1.0", | ||
"@rollup/plugin-typescript": "^11.1.6", | ||
"@testing-library/jest-dom": "^6.1.6", | ||
"@types/jest": "^29.5.11", | ||
@@ -46,0 +46,0 @@ "@types/jsdom": "^21.1.6", |
@@ -9,3 +9,3 @@ # ThumbmarkJS | ||
🙏 Please don't do evil. ThumbmarkJS is meant to be used for good. We use this at work to prevent scammers and spammers. | ||
🙏 Please don't do evil. ThumbmarkJS is meant to be used for good. Use this to prevent scammers and spammers for example. If you see this library being used for evil, contact me. | ||
@@ -30,3 +30,3 @@ ## Demo page | ||
```javascript | ||
<script src="https://cdn.jsdelivr.net/npm/@thumbmarkjs/thumbmarkjs/dist/thumbmark.iife.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@thumbmarkjs/thumbmarkjs/dist/thumbmark.umd.js"></script> | ||
<script> | ||
@@ -43,3 +43,3 @@ ThumbmarkJS.getFingerprint().then( | ||
<script> | ||
import('https://cdn.jsdelivr.net/npm/@thumbmarkjs/thumbmarkjs/dist/thumbmark.iife.js') | ||
import('https://cdn.jsdelivr.net/npm/@thumbmarkjs/thumbmarkjs/dist/thumbmark.umd.js') | ||
.then(() => { | ||
@@ -56,3 +56,16 @@ ThumbmarkJS.getFingerprint().then((fp) => { console.log(fp)}) | ||
## Options | ||
You can use the `setOption` method to change the behavior of the library. Currently it takes only one option. | ||
| option | type | example | what it does | | ||
| - | - | - | - | | ||
| exclude | string[] | ['webgl', 'system.browser.version'] | removes components from the fingerprint hash. An excluded top-level component improves performance. | | ||
example usage: | ||
``` | ||
ThumbmarkJS.setOption('exclude', ['webgl', 'system.browser.version]) | ||
``` | ||
## Install with NPM | ||
@@ -59,0 +72,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
125
0
182679
10
218