@jini-ai/cookie-consent 0.7.3-next.3 → 0.7.4
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.
|
@@ -20,7 +20,7 @@ export function hasConsentGatedScripts({ html, configId }, _optional = {}) {
|
|
|
20
20
|
if (!match)
|
|
21
21
|
return false;
|
|
22
22
|
try {
|
|
23
|
-
const config = JSON.parse(match[1]
|
|
23
|
+
const config = JSON.parse(match[1]);
|
|
24
24
|
return Array.isArray(config.scripts) && config.scripts.length > 0;
|
|
25
25
|
}
|
|
26
26
|
catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/cookie-consent",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Standalone, vendor-free cookie consent: a consent-state contract any banner can drive, a ~3 KB browser client, a pure-string banner renderer with owner CSS, web-standard receipts and open plugin slots.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -63,11 +63,12 @@
|
|
|
63
63
|
"./site/request": "universal",
|
|
64
64
|
"./site/revisions.repo": "node",
|
|
65
65
|
"./site/document-state": "universal",
|
|
66
|
-
"./site/document-assets": "universal"
|
|
66
|
+
"./site/document-assets": "universal",
|
|
67
|
+
"./contract": "universal"
|
|
67
68
|
},
|
|
68
69
|
"optionalPeers": {
|
|
69
70
|
"react": "opt-in: react consent settings; import @jini-ai/cookie-consent/react — React consent settings could not load react. Install react to enable this feature, or check its installed version.",
|
|
70
|
-
"kysely": "opt-in: SQL consent revisions — Install kysely to use the site consent SQL store."
|
|
71
|
+
"kysely": "opt-in: SQL consent revisions; import @jini-ai/cookie-consent/site/revisions.repo — Install kysely to use the site consent SQL store."
|
|
71
72
|
}
|
|
72
73
|
},
|
|
73
74
|
"type": "module",
|
|
@@ -205,6 +206,11 @@
|
|
|
205
206
|
"types": "./dist/site/document-assets.d.ts",
|
|
206
207
|
"import": "./dist/site/document-assets.js",
|
|
207
208
|
"default": "./dist/site/document-assets.js"
|
|
209
|
+
},
|
|
210
|
+
"./contract": {
|
|
211
|
+
"types": "./dist/contract.d.ts",
|
|
212
|
+
"import": "./dist/contract.js",
|
|
213
|
+
"default": "./dist/contract.js"
|
|
208
214
|
}
|
|
209
215
|
},
|
|
210
216
|
"files": [
|
|
@@ -220,7 +226,7 @@
|
|
|
220
226
|
},
|
|
221
227
|
"dependencies": {
|
|
222
228
|
"parse5": "^7.3.0",
|
|
223
|
-
"@jini-ai/core": "^0.7.
|
|
229
|
+
"@jini-ai/core": "^0.7.4"
|
|
224
230
|
},
|
|
225
231
|
"devDependencies": {
|
|
226
232
|
"@testing-library/jest-dom": "^6.6.3",
|