@prosopo/procaptcha-bundle 4.4.4 → 4.4.6
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/.turbo/turbo-build$colon$cjs.log +2 -2
- package/.turbo/turbo-build$colon$tsc.log +26 -26
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +44 -0
- package/dist/tests/procaptchaReady.unit.test.js +1 -2
- package/dist/tests/procaptchaReady.unit.test.js.map +1 -1
- package/dist/tests/util/config.test.js +1 -1
- package/dist/tests/util/config.test.js.map +1 -1
- package/package.json +13 -13
- package/src/tests/procaptchaReady.unit.test.ts +1 -4
- package/src/tests/util/config.test.ts +1 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/webpack.config.cjs +37 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-bundle@4.4.
|
|
2
|
+
> @prosopo/procaptcha-bundle@4.4.6 build:cjs
|
|
3
3
|
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
|
|
4
4
|
|
|
5
5
|
ViteCommonJSConfig: .
|
|
@@ -75,4 +75,4 @@ dist/cjs/index.cjs 11.88 kB │ gzip: 3.88 kB
|
|
|
75
75
|
|
|
76
76
|
[33m[33m[MIXED_EXPORTS] [0mEntry module "src/index.ts" is using named (including "default", "execute", "remove", "render", "reset", "start") and default exports together. Consumers of your bundle will have to use `..default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
|
|
77
77
|
[39m
|
|
78
|
-
[32m✓ built in
|
|
78
|
+
[32m✓ built in 89ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-bundle@4.4.
|
|
2
|
+
> @prosopo/procaptcha-bundle@4.4.6 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
1:
|
|
5
|
+
1:04:59 PM - Projects in this build:
|
|
6
6
|
* ../../dev/config/tsconfig.json
|
|
7
7
|
* ../util/tsconfig.json
|
|
8
8
|
* ../logger/tsconfig.json
|
|
@@ -27,51 +27,51 @@
|
|
|
27
27
|
* ../procaptcha-frictionless/tsconfig.json
|
|
28
28
|
* tsconfig.json
|
|
29
29
|
|
|
30
|
-
1:
|
|
30
|
+
1:04:59 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
|
|
31
31
|
|
|
32
|
-
1:
|
|
32
|
+
1:04:59 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
|
|
33
33
|
|
|
34
|
-
1:
|
|
34
|
+
1:04:59 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/logger.ts' is older than output '../logger/tsconfig.tsbuildinfo'
|
|
35
35
|
|
|
36
|
-
1:
|
|
36
|
+
1:04:59 PM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
|
|
37
37
|
|
|
38
|
-
1:
|
|
38
|
+
1:04:59 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
|
|
39
39
|
|
|
40
|
-
1:
|
|
40
|
+
1:04:59 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
|
|
41
41
|
|
|
42
|
-
1:
|
|
42
|
+
1:04:59 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
|
|
43
43
|
|
|
44
|
-
1:
|
|
44
|
+
1:04:59 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/tsconfig.tsbuildinfo'
|
|
45
45
|
|
|
46
|
-
1:
|
|
46
|
+
1:04:59 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/utils/batches.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
|
|
47
47
|
|
|
48
|
-
1:
|
|
48
|
+
1:04:59 PM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
|
|
49
49
|
|
|
50
|
-
1:
|
|
50
|
+
1:04:59 PM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
|
|
51
51
|
|
|
52
|
-
1:
|
|
52
|
+
1:04:59 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/tests/productionProviderList.unit.test.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
|
|
53
53
|
|
|
54
|
-
1:
|
|
54
|
+
1:04:59 PM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/webComponent/createWidget.ts' is older than output '../widget-skeleton/tsconfig.tsbuildinfo'
|
|
55
55
|
|
|
56
|
-
1:
|
|
56
|
+
1:04:59 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/pair/decode.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
|
|
57
57
|
|
|
58
|
-
1:
|
|
58
|
+
1:04:59 PM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/tests/cryptoWorker.unit.test.ts' is older than output '../account/tsconfig.tsbuildinfo'
|
|
59
59
|
|
|
60
|
-
1:
|
|
60
|
+
1:04:59 PM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/tests/challengeSurfaceRender.unit.test.tsx' is older than output '../procaptcha-common/tsconfig.tsbuildinfo'
|
|
61
61
|
|
|
62
|
-
1:
|
|
62
|
+
1:05:00 PM - Project '../procaptcha-pow/tsconfig.json' is up to date because newest input '../procaptcha-pow/src/tests/managerHarness.ts' is older than output '../procaptcha-pow/tsconfig.tsbuildinfo'
|
|
63
63
|
|
|
64
|
-
1:
|
|
64
|
+
1:05:00 PM - Project '../procaptcha-puzzle/tsconfig.json' is up to date because newest input '../procaptcha-puzzle/src/index.ts' is older than output '../procaptcha-puzzle/tsconfig.tsbuildinfo'
|
|
65
65
|
|
|
66
|
-
1:
|
|
66
|
+
1:05:00 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/mocks/data/captchas.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
|
|
67
67
|
|
|
68
|
-
1:
|
|
68
|
+
1:05:00 PM - Project '../procaptcha/tsconfig.json' is up to date because newest input '../procaptcha/src/modules/Manager.ts' is older than output '../procaptcha/tsconfig.tsbuildinfo'
|
|
69
69
|
|
|
70
|
-
1:
|
|
70
|
+
1:05:00 PM - Project '../procaptcha-react/tsconfig.json' is up to date because newest input '../procaptcha-react/src/index.ts' is older than output '../procaptcha-react/tsconfig.tsbuildinfo'
|
|
71
71
|
|
|
72
|
-
1:
|
|
72
|
+
1:05:00 PM - Project '../procaptcha-frictionless/tsconfig.json' is up to date because newest input '../procaptcha-frictionless/src/tests/customDetectBotAssignTimeout.test.ts' is older than output '../procaptcha-frictionless/tsconfig.tsbuildinfo'
|
|
73
73
|
|
|
74
|
-
1:
|
|
74
|
+
1:05:00 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
75
75
|
|
|
76
|
-
1:
|
|
76
|
+
1:05:00 PM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-bundle/tsconfig.json'...
|
|
77
77
|
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-bundle@4.4.
|
|
2
|
+
> @prosopo/procaptcha-bundle@4.4.6 build
|
|
3
3
|
> npm run build:cross-env -- --mode ${NODE_ENV:-development}
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @prosopo/procaptcha-bundle@4.4.
|
|
6
|
+
> @prosopo/procaptcha-bundle@4.4.6 build:cross-env
|
|
7
7
|
> vite build --config vite.esm.config.ts --mode production
|
|
8
8
|
|
|
9
9
|
ViteEsmConfig: .
|
|
@@ -77,4 +77,4 @@ dist/util/widgetFactory.js 2.57 kB │ gzip: 0.87 kB
|
|
|
77
77
|
dist/util/captcha/captchaRenderer.js 2.64 kB │ gzip: 0.92 kB
|
|
78
78
|
dist/index.js 11.43 kB │ gzip: 3.79 kB
|
|
79
79
|
|
|
80
|
-
[32m✓ built in
|
|
80
|
+
[32m✓ built in 54ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @prosopo/procaptcha-bundle
|
|
2
2
|
|
|
3
|
+
## 4.4.6
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- f4e4a83: chore(deps): roll up the open dependabot bumps (react 19.3, mongoose 9.10, @polkadot/util 14, redis 6, cron-parser 5, react-i18next 17 with i18next 26, @scure/base 2, cypress 16, rollup/babel plugin majors, vitest 4.1.11, angular 20.3.28, js-yaml)
|
|
7
|
+
- Updated dependencies [f4e4a83]
|
|
8
|
+
- Updated dependencies [c386199]
|
|
9
|
+
- Updated dependencies [08e2254]
|
|
10
|
+
- Updated dependencies [4d45e3d]
|
|
11
|
+
- Updated dependencies [d710b7f]
|
|
12
|
+
- Updated dependencies [d4e9425]
|
|
13
|
+
- Updated dependencies [ae121df]
|
|
14
|
+
- Updated dependencies [0be8838]
|
|
15
|
+
- @prosopo/locale@3.4.3
|
|
16
|
+
- @prosopo/procaptcha-common@2.14.1
|
|
17
|
+
- @prosopo/procaptcha-frictionless@2.16.4
|
|
18
|
+
- @prosopo/types@5.8.4
|
|
19
|
+
- @prosopo/util@3.3.10
|
|
20
|
+
- @prosopo/dotenv@3.0.56
|
|
21
|
+
|
|
22
|
+
## 4.4.5
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- a4f3696: Let the webpack bundle resolve modules the way node does.
|
|
26
|
+
|
|
27
|
+
`webpack.config.cjs` had two assumptions that only hold when this repo is the workspace root:
|
|
28
|
+
|
|
29
|
+
- the `@polkadot/x-textdecoder` and `@polkadot/x-textencoder` aliases were built from a hard-coded `../../node_modules`, and
|
|
30
|
+
- `resolve.modules` was set to every `node_modules` directory found under the repo, to work around the shared config pinning it to this package's own `node_modules` (which switches off the upward walk entirely).
|
|
31
|
+
|
|
32
|
+
Checked out as a submodule of captcha-private the hoisted install sits a level higher again, so the aliases pointed at a directory that does not exist and the build failed with 19 unresolved `@polkadot/util` imports. Listing every `node_modules` also made each nested install a global resolution root, so a transitive copy such as `@noble/curves`' own `@noble/hashes` could satisfy a bare `@noble/hashes/sha256` and then fail on its exports map.
|
|
33
|
+
|
|
34
|
+
The aliases are now found by walking up for whichever `node_modules` actually contains them, and `resolve.modules` is webpack's default upward walk. The aliases stay because `@polkadot/extension-dapp`'s nested copy of `@polkadot/util` really is installed without them.
|
|
35
|
+
|
|
36
|
+
No behaviour change in the emitted bundle; it is the same webpack build, resolving against the same packages. Covered by `bundle:webpack`, which is run in this repo's tests workflow and (now passing) in captcha-private's cache workflow.
|
|
37
|
+
- Updated dependencies [028a158]
|
|
38
|
+
- Updated dependencies [028a158]
|
|
39
|
+
- Updated dependencies [3958046]
|
|
40
|
+
- Updated dependencies [864ddde]
|
|
41
|
+
- Updated dependencies [028a158]
|
|
42
|
+
- @prosopo/procaptcha-common@2.14.0
|
|
43
|
+
- @prosopo/types@5.8.3
|
|
44
|
+
- @prosopo/procaptcha-frictionless@2.16.3
|
|
45
|
+
- @prosopo/locale@3.4.2
|
|
46
|
+
|
|
3
47
|
## 4.4.4
|
|
4
48
|
### Patch Changes
|
|
5
49
|
|
|
@@ -10,8 +10,7 @@ describe("procaptcha:ready event", () => {
|
|
|
10
10
|
global.window = dom.window;
|
|
11
11
|
});
|
|
12
12
|
afterEach(() => {
|
|
13
|
-
global
|
|
14
|
-
global.window = undefined;
|
|
13
|
+
Object.assign(global, { document: undefined, window: undefined });
|
|
15
14
|
});
|
|
16
15
|
it("should dispatch procaptcha:ready event when window.procaptcha is set", (done) => {
|
|
17
16
|
document.addEventListener("procaptcha:ready", (event) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procaptchaReady.unit.test.js","sourceRoot":"","sources":["../../src/tests/procaptchaReady.unit.test.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAErE,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACvC,IAAI,GAAU,CAAC;IAEf,UAAU,CAAC,GAAG,EAAE;QACf,GAAG,GAAG,IAAI,KAAK,CAAC,2CAA2C,EAAE;YAC5D,GAAG,EAAE,qBAAqB;SAC1B,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC;QAEtC,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,MAA+C,CAAC;IACrE,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;
|
|
1
|
+
{"version":3,"file":"procaptchaReady.unit.test.js","sourceRoot":"","sources":["../../src/tests/procaptchaReady.unit.test.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAErE,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACvC,IAAI,GAAU,CAAC;IAEf,UAAU,CAAC,GAAG,EAAE;QACf,GAAG,GAAG,IAAI,KAAK,CAAC,2CAA2C,EAAE;YAC5D,GAAG,EAAE,qBAAqB;SAC1B,CAAC,CAAC;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CAAC,CAAC,WAAW,EAAE,CAAC;QAChD,CAAC,CAAC,CAAC;QAGH,MAAM,CAAC,aAAa,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -10,7 +10,7 @@ describe("Config utility functions", () => {
|
|
|
10
10
|
global.document = dom.window.document;
|
|
11
11
|
});
|
|
12
12
|
afterEach(() => {
|
|
13
|
-
global
|
|
13
|
+
Object.assign(global, { document: undefined });
|
|
14
14
|
});
|
|
15
15
|
describe("getProcaptchaScript", () => {
|
|
16
16
|
it("should return null when no matching script is found", () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.test.js","sourceRoot":"","sources":["../../../src/tests/util/config.test.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE1E,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACzC,IAAI,GAAU,CAAC;IAEf,UAAU,CAAC,GAAG,EAAE;QACf,GAAG,GAAG,IAAI,KAAK,CAAC,2CAA2C,EAAE;YAC5D,GAAG,EAAE,qBAAqB;SAC1B,CAAC,CAAC;QACH,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;
|
|
1
|
+
{"version":3,"file":"config.test.js","sourceRoot":"","sources":["../../../src/tests/util/config.test.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ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CAAC;YACjD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAElC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;YAC7C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;gBACtB,iBAAiB,EAAE,SAAS;gBAC5B,cAAc,EAAE,SAAS;aACzB,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/procaptcha-bundle",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.6",
|
|
4
4
|
"author": "PROSOPO LIMITED <info@prosopo.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
},
|
|
40
40
|
"browserslist": ["> 0.5%, last 2 versions, not dead"],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@prosopo/dotenv": "3.0.
|
|
43
|
-
"@prosopo/locale": "3.4.
|
|
44
|
-
"@prosopo/procaptcha-common": "2.
|
|
45
|
-
"@prosopo/procaptcha-frictionless": "2.16.
|
|
46
|
-
"@prosopo/types": "5.8.
|
|
47
|
-
"@prosopo/util": "3.3.
|
|
42
|
+
"@prosopo/dotenv": "3.0.56",
|
|
43
|
+
"@prosopo/locale": "3.4.3",
|
|
44
|
+
"@prosopo/procaptcha-common": "2.14.1",
|
|
45
|
+
"@prosopo/procaptcha-frictionless": "2.16.4",
|
|
46
|
+
"@prosopo/types": "5.8.4",
|
|
47
|
+
"@prosopo/util": "3.3.10",
|
|
48
48
|
"@prosopo/widget-skeleton": "2.8.7",
|
|
49
49
|
"dotenv": "16.4.5",
|
|
50
50
|
"fast-glob": "3.3.3",
|
|
51
51
|
"jsdom": "25.0.0",
|
|
52
|
-
"react": "19.
|
|
52
|
+
"react": "19.3.0",
|
|
53
53
|
"@emotion/cache": "11.14.0",
|
|
54
54
|
"@emotion/react": "11.14.0",
|
|
55
|
-
"react-dom": "19.
|
|
55
|
+
"react-dom": "19.3.0"
|
|
56
56
|
},
|
|
57
57
|
"repository": {
|
|
58
58
|
"type": "git",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"registry": "https://registry.npmjs.org"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@prosopo/config": "3.3.
|
|
71
|
+
"@prosopo/config": "3.3.17",
|
|
72
72
|
"@types/jsdom": "30.0.0",
|
|
73
73
|
"@types/node": "22.10.2",
|
|
74
|
-
"@types/react": "19.
|
|
75
|
-
"@types/react-dom": "19.
|
|
74
|
+
"@types/react": "19.3.0",
|
|
75
|
+
"@types/react-dom": "19.3.0",
|
|
76
76
|
"@vitest/coverage-v8": "4.1.11",
|
|
77
77
|
"concurrently": "9.0.1",
|
|
78
78
|
"del-cli": "6.0.0",
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"vitest": "4.1.11"
|
|
85
85
|
},
|
|
86
86
|
"overrides": {
|
|
87
|
-
"@types/react": "19.
|
|
87
|
+
"@types/react": "19.3.0"
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -29,10 +29,7 @@ describe("procaptcha:ready event", () => {
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
afterEach(() => {
|
|
32
|
-
|
|
33
|
-
(global as any).document = undefined;
|
|
34
|
-
// biome-ignore lint/suspicious/noExplicitAny: TODO fix any
|
|
35
|
-
(global as any).window = undefined;
|
|
32
|
+
Object.assign(global, { document: undefined, window: undefined });
|
|
36
33
|
});
|
|
37
34
|
|
|
38
35
|
it("should dispatch procaptcha:ready event when window.procaptcha is set", (done) => {
|
|
@@ -28,8 +28,7 @@ describe("Config utility functions", () => {
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
afterEach(() => {
|
|
31
|
-
|
|
32
|
-
(global as any).document = undefined;
|
|
31
|
+
Object.assign(global, { document: undefined });
|
|
33
32
|
});
|
|
34
33
|
|
|
35
34
|
describe("getProcaptchaScript", () => {
|