guardian-risk-browser 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +0 -2
- package/dist/index.js +0 -2
- package/package.json +11 -3
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "guardian-risk-browser",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Browser plugin for guardian-risk — collects behavioral and fingerprint signals",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -20,10 +20,16 @@
|
|
|
20
20
|
},
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"files": [
|
|
23
|
-
"dist",
|
|
23
|
+
"dist/index.js",
|
|
24
|
+
"dist/index.cjs",
|
|
25
|
+
"dist/index.d.ts",
|
|
26
|
+
"dist/index.d.cts",
|
|
24
27
|
"README.md",
|
|
25
28
|
"LICENSE"
|
|
26
29
|
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=20"
|
|
32
|
+
},
|
|
27
33
|
"keywords": [
|
|
28
34
|
"guardian-risk",
|
|
29
35
|
"guardian-risk-browser",
|
|
@@ -32,6 +38,7 @@
|
|
|
32
38
|
"bot-detection",
|
|
33
39
|
"risk"
|
|
34
40
|
],
|
|
41
|
+
"author": "himanshuusinghh",
|
|
35
42
|
"license": "MIT",
|
|
36
43
|
"repository": {
|
|
37
44
|
"type": "git",
|
|
@@ -42,6 +49,7 @@
|
|
|
42
49
|
"bugs": {
|
|
43
50
|
"url": "https://github.com/himanshu6306singh/guardian-risk/issues"
|
|
44
51
|
},
|
|
52
|
+
"security": "https://github.com/himanshu6306singh/guardian-risk/security/policy",
|
|
45
53
|
"publishConfig": {
|
|
46
54
|
"access": "public"
|
|
47
55
|
},
|
|
@@ -51,7 +59,7 @@
|
|
|
51
59
|
"devDependencies": {
|
|
52
60
|
"tsup": "^8.3.5",
|
|
53
61
|
"typescript": "^5.7.2",
|
|
54
|
-
"guardian-risk": "0.2.
|
|
62
|
+
"guardian-risk": "0.2.1"
|
|
55
63
|
},
|
|
56
64
|
"scripts": {
|
|
57
65
|
"build": "tsup",
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAcO,SAAS,aAAA,CAAc,OAAA,GAAgC,EAAC,EAAW;AACxE,EAAA,MAAM,EAAE,SAAA,GAAY,UAAA,EAAW,GAAI,OAAA;AAEnC,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,uBAAA;AAAA,IACN,QAAQ,SAAA,EAAW;AACZ,IAEP;AAAA,GACF;AACF;AAKO,SAAS,eACd,QAAA,EACkC;AAClC,EAAA,OAAO,SACJ,MAAA,CAAO,cAAA,EAAgB,SAAS,CAAA,CAChC,MAAA,CAAO,iBAAiB,MAAM,CAAA;AACnC","file":"index.cjs","sourcesContent":["import type { Plugin } from 'guardian-risk';\n\n/** Options for the browser plugin (stub). */\nexport interface BrowserPluginOptions {\n /** DOM element to attach behavioral collectors. Defaults to document. */\n readonly container?: string;\n}\n\n/**\n * Browser plugin for guardian-risk.\n *\n * @stub Future versions will collect mouse, keyboard, and fingerprint signals\n * in the page and add them to Guardian before analysis.\n */\nexport function browserPlugin(options: BrowserPluginOptions = {}): Plugin {\n const { container = 'document' } = options;\n\n return {\n name: 'guardian-risk-browser',\n install(_guardian) {\n void container;\n // Stub: collectors will attach listeners and call guardian.signal()\n },\n };\n}\n\n/**\n * @stub Future helper to start client-side signal collection.\n */\nexport function collectSignals(\n guardian: import('guardian-risk').Guardian,\n): import('guardian-risk').Guardian {\n return guardian\n .signal('signalSource', 'browser')\n .signal('browserPlugin', 'stub');\n}\n"]}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAcO,SAAS,aAAA,CAAc,OAAA,GAAgC,EAAC,EAAW;AACxE,EAAA,MAAM,EAAE,SAAA,GAAY,UAAA,EAAW,GAAI,OAAA;AAEnC,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,uBAAA;AAAA,IACN,QAAQ,SAAA,EAAW;AACZ,IAEP;AAAA,GACF;AACF;AAKO,SAAS,eACd,QAAA,EACkC;AAClC,EAAA,OAAO,SACJ,MAAA,CAAO,cAAA,EAAgB,SAAS,CAAA,CAChC,MAAA,CAAO,iBAAiB,MAAM,CAAA;AACnC","file":"index.js","sourcesContent":["import type { Plugin } from 'guardian-risk';\n\n/** Options for the browser plugin (stub). */\nexport interface BrowserPluginOptions {\n /** DOM element to attach behavioral collectors. Defaults to document. */\n readonly container?: string;\n}\n\n/**\n * Browser plugin for guardian-risk.\n *\n * @stub Future versions will collect mouse, keyboard, and fingerprint signals\n * in the page and add them to Guardian before analysis.\n */\nexport function browserPlugin(options: BrowserPluginOptions = {}): Plugin {\n const { container = 'document' } = options;\n\n return {\n name: 'guardian-risk-browser',\n install(_guardian) {\n void container;\n // Stub: collectors will attach listeners and call guardian.signal()\n },\n };\n}\n\n/**\n * @stub Future helper to start client-side signal collection.\n */\nexport function collectSignals(\n guardian: import('guardian-risk').Guardian,\n): import('guardian-risk').Guardian {\n return guardian\n .signal('signalSource', 'browser')\n .signal('browserPlugin', 'stub');\n}\n"]}
|