-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
policy: add dependencies map for redirect and whitelisting #28767
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
Changes from 1 commit
443b036
4cecf1c
1f1e8d8
ae801f2
3514dbc
88c578c
5774f78
8a2e4a5
282ed3f
7452bb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -146,6 +146,10 @@ the manifest and then immediately be used without searching. | |
| Any specifier missing from the list of dependency will result in an error | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what does it mean for a specifier to be "missing"? do you mean "any string that is
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i've put in your text but included the word specifier as it has a meaning that I feel is important. |
||
| according to the policy. | ||
|
|
||
| This will not prevent access to APIs through other means such as direct access | ||
| to `require.cache` and/or through `module.constructor`. Other means such as | ||
| attenuating variables are necessary to lock down that path of loading modules. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what does "attenuation" mean wrt. JS variables?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Attenuation is a term used in various meetings we have about SES / Realms / etc. in TC39 meetings. Attenuation equates roughly to providing a specialized view of a variable/object/module etc. For example an attenuated fs would be a fs implementation different from the normal one. Attenuating a variable would be replacing the value with one that has been given a different implementation such as removing access to
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i've rephrased this |
||
|
|
||
| #### Example: Patched Dependency | ||
|
|
||
| Since a dependency can be redirected, you can provide attenuated or modified | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.