Skip to content

Commit

Permalink
Add back lockfile log
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseParsons committed Sep 17, 2024
1 parent 7802a39 commit 8e648fa
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/node-version-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: type package-lock.json
- run: npm run build --if-present
- run: npm test
64 changes: 49 additions & 15 deletions out.log
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

no-angular-bypass-sanitizer
valid
√ bypassSecurityTrustHtml('XSS') (43ms)
√ bypassSecurityTrustHtml('XSS') (40ms)
√ x.bypassSecurityTrustHtml()
√ x.BypassSecurityTrustHtml('XSS')
invalid
Expand Down Expand Up @@ -72,9 +72,6 @@

no-cookies
valid
cookie method hit
cookie method hit
cookie method hit
function documentLikeAPIFunction(){
return {
Expand All @@ -86,11 +83,14 @@ document2.cookie = '...';
document2.cookie = '...';
documentLikeAPIFunction().cookie = '...'

cookie method hit
tsType: [object Object]
type: DocumentLikeAPI
Type: DocumentLikeAPI
cookie method hit
tsType: [object Object]
type: DocumentLikeAPI
Type: DocumentLikeAPI
cookie method hit
tsType: [object Object]
type: DocumentLikeAPI
Type: DocumentLikeAPI
interface DocumentLikeAPI {
Expand All @@ -107,25 +107,23 @@ function X() {
}

documentLikeAPIFunction().cookie = '...';
(500ms)
(410ms)
invalid
cookie method hit
√ document.cookie = '...'
cookie method hit
√ window.document.cookie = '...'
cookie method hit
√ this.window.document.cookie = '...'
cookie method hit
√ globalThis.window.document.cookie = '...'
cookie method hit
tsType: [object Object]
type: Document
Type: Document
function documentFunction(): Document {
return window.document;
}
documentFunction().cookie = '...';

cookie method hit
tsType: [object Object]
type: Document
Type: Document
namespace Sample {
Expand All @@ -137,6 +135,8 @@ namespace Sample {

no-document-domain
valid
tsType: [object Object]
type: DocumentLikeAPI
Type: DocumentLikeAPI
interface DocumentLikeAPI {
Expand All @@ -151,6 +151,8 @@ function main() {
}

invalid
tsType: [object Object]
type: Document
Type: Document
√ var doc = window.document; doc.domain = 'somevalue';
√ document.domain = 'somevalue'
Expand Down Expand Up @@ -195,9 +197,17 @@ newWindow.document.domain = somevalue;
document.writeln('', '');

invalid
tsType: [object Object]
type: Document
Type: Document
tsType: [object Object]
type: Document
Type: Document
tsType: [object Object]
type: Document
Type: Document
tsType: [object Object]
type: Document
Type: Document
var doc = document;
Expand Down Expand Up @@ -276,6 +286,14 @@ Type: Document
√ document.body.innerHTML = ''
√ document.test
√ element.insertAdjacentHTML()
tsType: [object Object]
type: this
tsType: [object Object]
type: this
tsType: [object Object]
type: Test
tsType: [object Object]
type: Test
class Test {
innerHTML: string;
Expand All @@ -290,6 +308,12 @@ Type: Document
test.outerHTML = test;

invalid
tsType: [object Object]
type: HTMLElement
tsType: [object Object]
type: HTMLElement
tsType: [object Object]
type: HTMLElement
var element = document.getElementById(id);
element.innerHTML = 'test';
Expand Down Expand Up @@ -362,20 +386,30 @@ Type: Document
Math.random();
crypto.pseudoRandomBytes();

tsType: [object Object]
type: Math
tsType: [object Object]
type: Math
Math.random();
this.Math.random();

tsType: [object Object]
type: Math
function notMath() : Math{
return Math;
}

notMath().random();

tsType: [object Object]
type: Crypto
crypto.pseudoRandomBytes();

tsType: [object Object]
type: Crypto
function notCrypto() : Crypto{
return crypto;
Expand Down Expand Up @@ -443,7 +477,7 @@ Type: Document
</svg>
);
};
(244ms)
(292ms)
var x = "http://localhost/test";
var y = "http://localhost";
Expand Down

0 comments on commit 8e648fa

Please sign in to comment.