Skip to content

Commit

Permalink
remove accidental console log (#87)
Browse files Browse the repository at this point in the history
adds eslint rule to error on console logs
  • Loading branch information
Vadman97 authored Aug 5, 2022
1 parent ee5ef11 commit 2174763
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ module.exports = {
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
rules: {
'tsdoc/syntax': 'warn',
'no-console': 'error',
},
};
2 changes: 1 addition & 1 deletion packages/rrdom-nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"dependencies": {
"@highlight-run/rrdom": "0.1.17",
"@highlight-run/rrweb-snapshot": "1.1.27",
"@highlight-run/rrweb-snapshot": "1.1.28",
"cssom": "^0.5.0",
"cssstyle": "^2.3.0",
"nwsapi": "^2.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/rrdom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"typescript": "^4.7.3"
},
"dependencies": {
"@highlight-run/rrweb-snapshot": "1.1.27"
"@highlight-run/rrweb-snapshot": "1.1.28"
},
"gitHead": "d5751f9e6c52a7734597c8595caa763d0f4dd4ad"
}
2 changes: 1 addition & 1 deletion packages/rrweb-snapshot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@highlight-run/rrweb-snapshot",
"version": "1.1.27",
"version": "1.1.28",
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",
"scripts": {
"prepare": "npm run prepack",
Expand Down
2 changes: 0 additions & 2 deletions packages/rrweb-snapshot/src/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1084,8 +1084,6 @@ export function serializeNodeWithId(
recordChild = recordChild && !serializedNode.needBlock;
strictPrivacy = !!serializedNode.needBlock;

console.log('vadim strictPrivacy', { strictPrivacy, enableStrictPrivacy });

/** Highlight Code Begin */
// Remove the image's src if enableStrictPrivacy.
if (strictPrivacy && serializedNode.tagName === 'img') {
Expand Down
4 changes: 2 additions & 2 deletions packages/rrweb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@highlight-run/rrweb",
"version": "2.1.4",
"version": "2.1.5",
"description": "record and replay the web",
"scripts": {
"prepare": "npm run prepack",
Expand Down Expand Up @@ -76,7 +76,7 @@
},
"dependencies": {
"@highlight-run/rrdom": "0.1.17",
"@highlight-run/rrweb-snapshot": "1.1.27",
"@highlight-run/rrweb-snapshot": "1.1.28",
"@types/css-font-loading-module": "0.0.7",
"@xstate/fsm": "^1.4.0",
"base64-arraybuffer": "^1.0.1",
Expand Down

0 comments on commit 2174763

Please sign in to comment.