-
Notifications
You must be signed in to change notification settings - Fork 12
[rum-privacy] add sourcemaps and telemetry #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
ecceaf7
feat:add sourcemaps and telemetry
cy-moi 655da60
feat:add sourcemaps and telemetry
cy-moi 5954af8
update js-instrument
cy-moi 8a9fbd0
fix:integrity
cy-moi ae53259
fix: add loadInclude; remove unused code
cy-moi 6cd5f50
fix: integrity
cy-moi 5f51ae3
fix: remove too many logs
cy-moi 2031208
fix: exclude by default spcial charaters; remove logs of apikey
cy-moi df69942
fix:make configuration slim; make sdk opt-in with config; make e2e mo…
cy-moi b8eedfc
fix:integrity
cy-moi 92fd9fb
feat:upgrade js-instrument
cy-moi cdbd040
Merge branch 'master' into congyao/add-sourcemaps-and-telemetry
cy-moi 3d4189f
fix:update helpers function to not extract twice
cy-moi 63d80d6
fix:minor polish and add privacy plugin back to e2e full config
cy-moi 1bff567
fix:improve privacy-helper
cy-moi b900a91
feat: use global variable to be more reliable
cy-moi 2f3fb8a
fix: check if file exists before injection
cy-moi 5a450ff
fix: add to DD_ALLOW in lower case
cy-moi 91dd248
fix: Improve code
cy-moi 8a0f8ab
fix: improve types
cy-moi b3cab69
fix: update configurations
cy-moi f1cb0b1
fix: make injected function pure
cy-moi a4d8a8b
Update packages/plugins/rum/src/privacy/constants.ts
cy-moi 31a8910
Improve code
cy-moi 03fc9a1
Update packages/plugins/rum/src/built/privacy-helpers.ts
cy-moi 6b75c77
Throw errors unless injection files non-exist
cy-moi 2d32edd
fix:integrity
cy-moi 5101569
fix:add log forward
cy-moi 37ead59
Update packages/plugins/injection/src/esbuild.ts
cy-moi 5933f3e
Merge branch 'master' into congyao/add-sourcemaps-and-telemetry
yoannmoinet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file removed
BIN
-2.4 MB
.yarn/cache/@datadog-js-instrumentation-wasm-npm-0.9.4-151eed3103-167b9ff05a.zip
Binary file not shown.
Binary file added
BIN
+2.7 MB
.yarn/cache/@datadog-js-instrumentation-wasm-npm-1.0.3-0eaa253e25-bc74a93beb.zip
Binary file not shown.
Binary file added
BIN
+29.1 KB
.yarn/cache/@rollup-plugin-typescript-npm-12.1.4-9003c60309-c2082e225f.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| // Unless explicitly stated otherwise all files in this repository are licensed under the MIT License. | ||
| // This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
| // Copyright 2019-Present Datadog, Inc. | ||
|
|
||
| import { defaultPluginOptions } from '@dd/tests/_jest/helpers/mocks'; | ||
| import { createFilter } from '@rollup/pluginutils'; | ||
|
|
||
| import { validatePrivacyOptions } from './validate'; | ||
|
|
||
| describe('Test privacy plugin option exclude regex', () => { | ||
| let filter: (path: string) => boolean; | ||
| const testCases = [ | ||
| { description: 'exclude .preval files', path: '.preval.js', expected: false }, | ||
| { description: 'exclude node_modules', path: '/node_modules/test.js', expected: false }, | ||
| { | ||
| description: 'exclude all files that start with special characters', | ||
| path: '!test.js', | ||
| expected: false, | ||
| }, | ||
| { | ||
| description: 'exclude all files that start with special characters', | ||
| path: '@test.js', | ||
| expected: false, | ||
| }, | ||
| ]; | ||
|
|
||
| beforeAll(() => { | ||
| const pluginOptions = { ...defaultPluginOptions, rum: { privacy: {} } }; | ||
| const { config } = validatePrivacyOptions(pluginOptions); | ||
| filter = createFilter(config?.include, config?.exclude); | ||
| }); | ||
|
|
||
| test.each(testCases)('Should $description', ({ path, expected }) => { | ||
| expect(filter(path)).toBe(expected); | ||
| }); | ||
| }); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.