Skip to content

Commit d04b252

Browse files
authored
fix(common): make SlickDataView filtering CSP-safe by default (#1285)
1 parent a595cfb commit d04b252

4 files changed

Lines changed: 143 additions & 226 deletions

File tree

examples/example-csp-header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ document.addEventListener("DOMContentLoaded", function () {
5050
};
5151
}
5252

53-
dataView = new Slick.Data.DataView({ inlineFilters: true, useCSPSafeFilter: true });
53+
dataView = new Slick.Data.DataView({ inlineFilters: true });
5454
dataView.getItemMetadata = function (row) {
5555
if (row % 2 === 1) {
5656
return {
@@ -124,4 +124,4 @@ function myFilter(item, args) {
124124
}
125125

126126
return false;
127-
}
127+
}

package-lock.json

Lines changed: 115 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"conventional-changelog": "^7.2.1",
7474
"conventional-changelog-angular": "^8.3.1",
7575
"cssnano": "^8.0.2",
76-
"cypress": "^15.18.0",
76+
"cypress": "^15.21.1",
7777
"cypress-real-events": "^1.15.0",
7878
"dotenv": "^17.4.2",
7979
"esbuild": "^0.28.1",

0 commit comments

Comments
 (0)