repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/servers/TlsServer.ts
collect/servers/TlsServer.ts
import TlsServerBase from '@double-agent/tls-server'; import IServerContext from '../interfaces/IServerContext'; import createTlsRequestHandler from '../lib/createTlsRequestHandler'; import BaseServer from './BaseServer'; import { IRoutesByPath } from '../lib/Plugin'; import { tlsCerts } from './Certs'; export default...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/servers/HttpsServer.ts
collect/servers/HttpsServer.ts
import * as https from 'https'; import createHttpRequestHandler from '../lib/createHttpRequestHandler'; import createWebsocketHandler from '../lib/createWebsocketHandler'; import IServerContext from '../interfaces/IServerContext'; import BaseServer from './BaseServer'; import { IRoutesByPath } from '../lib/Plugin'; imp...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/servers/Certs.ts
collect/servers/Certs.ts
import * as Fs from 'fs'; import Config from '@double-agent/config'; const { MainDomain, CrossDomain, SubDomain, TlsDomain } = Config.collect.domains; const certPath = Config.collect.enableLetsEncrypt ? `/etc/letsencrypt/live/${MainDomain}` : `${__dirname}/../certs`; export const CertsMessage = ` 1. Go to the co...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/servers/BaseServer.ts
collect/servers/BaseServer.ts
import * as http from 'http'; import * as http2 from 'http2'; import { URL } from 'url'; import IServerContext from '../interfaces/IServerContext'; import Plugin, { IHandlerFn, IRoute, IRoutesByPath } from '../lib/Plugin'; export type IServerProtocol = 'tls' | 'http' | 'https' | 'http2'; export default class BaseServ...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/servers/HttpServer.ts
collect/servers/HttpServer.ts
import * as http from 'http'; import createHttpRequestHandler from '../lib/createHttpRequestHandler'; import createWebsocketHandler from '../lib/createWebsocketHandler'; import IServerContext from '../interfaces/IServerContext'; import BaseServer from './BaseServer'; import { IRoutesByPath } from '../lib/Plugin'; expo...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/PluginDelegate.ts
collect/lib/PluginDelegate.ts
import getAllPlugins from './getAllPlugins'; import Plugin from './Plugin'; export default class PluginDelegate { readonly plugins: Plugin[]; constructor() { this.plugins = getAllPlugins(true); } }
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/createTlsRequestHandler.ts
collect/lib/createTlsRequestHandler.ts
import Config from '@double-agent/config/index'; import ServerResponse from '@double-agent/tls-server/lib/ServerResponse'; import IncomingMessage from '@double-agent/tls-server/lib/IncomingMessage'; import IServerContext from '../interfaces/IServerContext'; import extractRequestDetails from './extractRequestDetails'; i...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/RequestContext.ts
collect/lib/RequestContext.ts
import { IncomingMessage, ServerResponse } from 'http'; import { URL } from 'url'; import * as http2 from 'http2'; import Config from '@double-agent/config/index'; import IRequestContext from '../interfaces/IRequestContext'; import IRequestDetails from '../interfaces/IRequestDetails'; import Session from './Session'; i...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/Plugin.ts
collect/lib/Plugin.ts
import * as Path from 'path'; import { URL } from 'url'; import { EventEmitter } from 'events'; import { AssignmentType } from '@double-agent/collect-controller/interfaces/IAssignment'; import Config from '@double-agent/config'; import IPlugin from '../interfaces/IPlugin'; import IRequestContext from '../interfaces/IRe...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/getAllPlugins.ts
collect/lib/getAllPlugins.ts
import * as Fs from 'fs'; import * as Path from 'path'; import Plugin from './Plugin'; import IPlugin from '../interfaces/IPlugin'; export const pluginsDir = Path.resolve(__dirname, '../plugins'); export default function getAllPlugins(print = false, filter?: string[]): Plugin[] { const plugins: Plugin[] = []; fo...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/createWebsocketHandler.ts
collect/lib/createWebsocketHandler.ts
import * as http from 'http'; import * as WebSocket from 'ws'; import * as net from 'net'; import ResourceType from '../interfaces/ResourceType'; import extractRequestDetails from './extractRequestDetails'; import RequestContext from './RequestContext'; import IServerContext from '../interfaces/IServerContext'; import ...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/PromiseUtils.ts
collect/lib/PromiseUtils.ts
export function createPromise<T = any>( timeoutMillis?: number, timeoutMessage?: string, ): IResolvablePromise<T> { const response: IResolvablePromise<T> = { isResolved: false, }; // get parent stack const error = new Error(timeoutMessage || 'Timeout waiting for promise'); response.promise = new Prom...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/Document.ts
collect/lib/Document.ts
import IRequestContext from '../interfaces/IRequestContext'; import { DomainType } from './DomainUtils'; const clickElementId = 'next-page'; const clickElementSelector = `#${clickElementId}`; const waitForElementClass = 'ready'; const waitForElementSelector = `body.${waitForElementClass}`; export default class Docume...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/Session.ts
collect/lib/Session.ts
import { IAssignmentType } from '@double-agent/collect-controller/interfaces/IAssignment'; import { createUserAgentIdFromString } from '@double-agent/config'; import ISession from '../interfaces/ISession'; import IAsset from '../interfaces/IAsset'; import IRequestDetails from '../interfaces/IRequestDetails'; import IUs...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/SessionTracker.ts
collect/lib/SessionTracker.ts
import { IAssignmentType } from '@double-agent/collect-controller/interfaces/IAssignment'; import * as http from 'http'; import * as http2 from 'http2'; import Session from './Session'; import PluginDelegate from './PluginDelegate'; import BaseServer from '../servers/BaseServer'; let sessionIdCounter = 0; export defa...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/DomainUtils.ts
collect/lib/DomainUtils.ts
import { URL } from 'url'; import Config from '@double-agent/config/index'; const { CrossDomain, MainDomain, SubDomain, TlsDomain } = Config.collect.domains; export enum DomainType { MainDomain = 'MainDomain', // eslint-disable-line @typescript-eslint/no-shadow SubDomain = 'SubDomain', // eslint-disable-line @typ...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/extractRequestDetails.ts
collect/lib/extractRequestDetails.ts
import { URL } from 'url'; import * as http from 'http'; import * as cookie from 'cookie'; import * as http2 from 'http2'; import ResourceType from '../interfaces/ResourceType'; import IRequestDetails from '../interfaces/IRequestDetails'; import OriginType from '../interfaces/OriginType'; import { cleanDomains, DomainT...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
unblocked-web/double-agent
https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/lib/createHttpRequestHandler.ts
collect/lib/createHttpRequestHandler.ts
import { IncomingMessage, ServerResponse } from 'http'; import * as http2 from 'http2'; import * as fs from 'fs'; import Config from '@double-agent/config/index'; import IRequestContext from '../interfaces/IRequestContext'; import extractRequestDetails from './extractRequestDetails'; import RequestContext from './Reque...
typescript
MIT
1bf2568d0675917128236524270ea9568572b2a6
2026-01-05T05:00:16.677082Z
false
eclipsesource/jsonforms-react-seed
https://github.com/eclipsesource/jsonforms-react-seed/blob/caed0eab0b73f728eb8dab415cc6aa27f0ba947f/src/App.tsx
src/App.tsx
import './App.css'; import { Header } from './components/Header'; import { JsonFormsDemo } from './components/JsonFormsDemo'; const App = () => { return ( <> <Header /> <JsonFormsDemo /> </> ); }; export default App;
typescript
MIT
caed0eab0b73f728eb8dab415cc6aa27f0ba947f
2026-01-05T05:01:24.203603Z
false
eclipsesource/jsonforms-react-seed
https://github.com/eclipsesource/jsonforms-react-seed/blob/caed0eab0b73f728eb8dab415cc6aa27f0ba947f/src/ratingControlTester.ts
src/ratingControlTester.ts
import { rankWith, scopeEndsWith } from '@jsonforms/core'; export default rankWith( 3, //increase rank as needed scopeEndsWith('rating'), );
typescript
MIT
caed0eab0b73f728eb8dab415cc6aa27f0ba947f
2026-01-05T05:01:24.203603Z
false
eclipsesource/jsonforms-react-seed
https://github.com/eclipsesource/jsonforms-react-seed/blob/caed0eab0b73f728eb8dab415cc6aa27f0ba947f/src/App.test.tsx
src/App.test.tsx
import App from './App'; import { test } from 'vitest'; import { act, fireEvent, render, screen } from '@testing-library/react'; /** * Smoke test for the App component. */ test('renders without crashing', () => { render(<App />); // does not crash on pressing clear data act(() => fireEvent.click(screen.getByTe...
typescript
MIT
caed0eab0b73f728eb8dab415cc6aa27f0ba947f
2026-01-05T05:01:24.203603Z
false
eclipsesource/jsonforms-react-seed
https://github.com/eclipsesource/jsonforms-react-seed/blob/caed0eab0b73f728eb8dab415cc6aa27f0ba947f/src/main.tsx
src/main.tsx
import { createTheme, CssBaseline, ThemeProvider } from '@mui/material'; import { createRoot } from 'react-dom/client'; import App from './App'; import { StrictMode } from 'react'; /** * Customize form so each control has more space */ const theme = createTheme({ components: { MuiFormControl: { styleOver...
typescript
MIT
caed0eab0b73f728eb8dab415cc6aa27f0ba947f
2026-01-05T05:01:24.203603Z
false
eclipsesource/jsonforms-react-seed
https://github.com/eclipsesource/jsonforms-react-seed/blob/caed0eab0b73f728eb8dab415cc6aa27f0ba947f/src/components/JsonFormsDemo.tsx
src/components/JsonFormsDemo.tsx
import { FC, useMemo, useState } from 'react'; import { JsonForms } from '@jsonforms/react'; import Grid from '@mui/material/Grid'; import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; import { materialCells, materialRenderers, } from '@jsonforms/material-renderers'; import ...
typescript
MIT
caed0eab0b73f728eb8dab415cc6aa27f0ba947f
2026-01-05T05:01:24.203603Z
false
eclipsesource/jsonforms-react-seed
https://github.com/eclipsesource/jsonforms-react-seed/blob/caed0eab0b73f728eb8dab415cc6aa27f0ba947f/src/components/Rating.tsx
src/components/Rating.tsx
import { FC, useState } from 'react'; import { InputLabel } from '@mui/material'; interface RatingProps { id?: string; value: number; updateValue: (newValue: number) => void; } export const Rating: FC<RatingProps> = ({ id, value, updateValue }) => { const [hoverAt, setHoverAt] = useState<number | null>(null);...
typescript
MIT
caed0eab0b73f728eb8dab415cc6aa27f0ba947f
2026-01-05T05:01:24.203603Z
false
eclipsesource/jsonforms-react-seed
https://github.com/eclipsesource/jsonforms-react-seed/blob/caed0eab0b73f728eb8dab415cc6aa27f0ba947f/src/components/Header.tsx
src/components/Header.tsx
import { FC } from 'react'; export const Header: FC = () => ( <div className="App"> <header className="App-header"> <img src="./logo.svg" className="App-logo" alt="logo" /> <h1 className="App-title">Welcome to JSON Forms with React</h1> <p className="App-intro">More Forms. Less Code.</p> </...
typescript
MIT
caed0eab0b73f728eb8dab415cc6aa27f0ba947f
2026-01-05T05:01:24.203603Z
false
eclipsesource/jsonforms-react-seed
https://github.com/eclipsesource/jsonforms-react-seed/blob/caed0eab0b73f728eb8dab415cc6aa27f0ba947f/src/components/RatingControl.tsx
src/components/RatingControl.tsx
import { withJsonFormsControlProps } from '@jsonforms/react'; import { Rating } from './Rating'; interface RatingControlProps { data: number; handleChange(path: string, value: number): void; path: string; } const RatingControl = ({ data, handleChange, path }: RatingControlProps) => ( <Rating value={data} ...
typescript
MIT
caed0eab0b73f728eb8dab415cc6aa27f0ba947f
2026-01-05T05:01:24.203603Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/harness.ts
test/harness.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/spec.ts
test/spec.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/unsafe/ban_reviewed_conversions/unchecked_conversions_calls.ts
test/asset/unsafe/ban_reviewed_conversions/unchecked_conversions_calls.ts
import * as reviewed from 'safevalues/restricted/reviewed'; import { htmlSafeByReview, resourceUrlSafeByReview, scriptSafeByReview, } from 'safevalues/restricted/reviewed'; declare var unsafeValue: string; htmlSafeByReview(unsafeValue, {justification: 'for testing'}); resourceUrlSafeByReview(unsafeValue, {justi...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/unsafe/ban_legacy_conversions/legacy_conversions_calls.ts
test/asset/unsafe/ban_legacy_conversions/legacy_conversions_calls.ts
import * as legacy from 'safevalues/restricted/legacy'; import { legacyUnsafeHtml, legacyUnsafeResourceUrl, legacyUnsafeScript, } from 'safevalues/restricted/legacy'; declare var unsafeValue: string; legacyUnsafeHtml(unsafeValue); legacyUnsafeResourceUrl(unsafeValue); legacyUnsafeScript(unsafeValue); legacy.le...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_script_appendchild_calls/script_appendchild_calls.ts
test/asset/dom_security/ban_script_appendchild_calls/script_appendchild_calls.ts
// direct call const script = document.createElement('script'); script.appendChild(document.createTextNode('alert("XSS!");')); // indirect call const ac = script.appendChild.bind(script); ac(document.createTextNode('alert("XSS!");')); // appendChild on other elements is OK to use const p = document.createElement('p')...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_document_writeln_calls/document_writeln_calls.ts
test/asset/dom_security/ban_document_writeln_calls/document_writeln_calls.ts
// direct calls document.writeln('<h1>hello world again</h1>', '<p>ipsum</p>'); // indirect use const writeln = document.writeln.bind(document); writeln('<p></p>'); // other tests const NARROWED_WRITE: 'write' | 'writeln' = 'writeln'; // `NARROWED_WRITE` is narrowed by TS and has type `write` so // this results in a...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_document_write_calls/document_write_calls.ts
test/asset/dom_security/ban_document_write_calls/document_write_calls.ts
// direct calls document.write('<h1>hello world</h1>'); // indirect use const write = document.write.bind(document); write('<p></p>'); // other tests const WRITE = 'write' as 'write' | 'writeln'; const NARROWED_WRITE: 'write' | 'writeln' = 'write'; // no violation, this is a limitation of TS conformance. We // only ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_worker_calls/worker_calls.ts
test/asset/dom_security/ban_worker_calls/worker_calls.ts
// Calls that should trigger; // Code below creates unused variables just to test that the conformance check // triggers. // tslint:disable:no-unused-variable const NUM = 1; const worker = new Worker(`random-${NUM}-script.js`); const workerWithOptions = new Worker('random-script.js', {}); const MY_URL = 'random-scri...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_domparser_parsefromstring/parse_calls.ts
test/asset/dom_security/ban_domparser_parsefromstring/parse_calls.ts
// Calls to parseFromString that should trigger the check. // tslint:disable:no-unused-variable const HTML = "<script>alert('XSS');</script>"; const parser = new DOMParser(); const doc1 = parser.parseFromString(HTML, 'text/html'); const doc2 = new DOMParser()['parseFromString'](HTML, 'text/html'); const parseFun = p...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_element_outerhtml_assignments/element_outerhtml_assignments.ts
test/asset/dom_security/ban_element_outerhtml_assignments/element_outerhtml_assignments.ts
// Writing to outerHTML causes an error. document.body.outerHTML = 'foo' + location.hash; // Reading outerHTML is okay. const body = document.body.outerHTML; document.body.outerHTML = `constant`; const PAYLOAD: string = 'str'; const customObj = { outerHTML: 'custom', }; customObj.outerHTML = PAYLOAD; document.bod...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_document_execcommand/document_execcommand.ts
test/asset/dom_security/ban_document_execcommand/document_execcommand.ts
declare const doc: Document; doc.execCommand('bold'); doc.execCommand('insertHTML', false, 'XSS'); const x = doc.execCommand;
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_element_insertadjacenthtml/element_insertadjacenthtml.ts
test/asset/dom_security/ban_element_insertadjacenthtml/element_insertadjacenthtml.ts
declare const element: Element; // direct calls element.insertAdjacentHTML('afterend', '<h1>hello world</h1>'); // indirect use const insertAdjacentHTML = element.insertAdjacentHTML.bind(element); insertAdjacentHTML('afterbegin', '<p></p>'); // other tests const KEY = 'insertAdjacentHTML'; element[KEY]('afterbegin',...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_object_data_assignments/object_data_writes.ts
test/asset/dom_security/ban_object_data_assignments/object_data_writes.ts
const oElem = document.createElement('object'); const LITERAL = 'https://example.com/script.js'; const nonLiteral = 'https://example.com/' + document.location.hash; oElem.data = ''; // literal oElem.data = LITERAL; // indirection is supported oElem.data = nonLiteral; oElem['data'] = '';
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_worker_importscripts/importscripts_tt_awareness.ts
test/asset/dom_security/ban_worker_importscripts/importscripts_tt_awareness.ts
const trustedScriptUrl = 'a.js' as unknown as TrustedScriptURL; importScripts(trustedScriptUrl as unknown as string);
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_worker_importscripts/importscripts.ts
test/asset/dom_security/ban_worker_importscripts/importscripts.ts
importScripts('a.js'); self.importScripts('a.js', 'b.js');
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_base_href_assignments/base_href_writes.ts
test/asset/dom_security/ban_base_href_assignments/base_href_writes.ts
const base = document.createElement('base'); base.href = 'https://example.com'; base['href'] = 'https://evil.com'; const CONST_HREF = 'href'; base[CONST_HREF] = 'https://evil.com'; const STR_HREF: keyof HTMLBaseElement = 'href'; base[STR_HREF] = 'https://evil.com'; base[STR_HREF] += 'https://evil.com'; // Read is ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_element_innerhtml_assignments/element_innerhtml_assignments.ts
test/asset/dom_security/ban_element_innerhtml_assignments/element_innerhtml_assignments.ts
// Writing to innerHTML causes an error. document.body.innerHTML = 'foo' + location.hash; // Reading innerHTML is okay. const body = document.body.innerHTML; document.body.innerHTML = `constant`; const PAYLOAD: string = 'str'; const customObj = { innerHTML: 'custom', }; customObj.innerHTML = PAYLOAD; document.bod...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_element_innerhtml_assignments/element_innerhtml_assignments_tt_awareness.ts
test/asset/dom_security/ban_element_innerhtml_assignments/element_innerhtml_assignments_tt_awareness.ts
const trustedHTML = 'html' as unknown as TrustedHTML; // For now, even Trusted Type assignment are banned. We prefer safe dom setters // internally. This test verifies that we haven't enabled TT awareness // internally (at least for this rule). document.body.innerHTML = trustedHTML as unknown as string;
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_shared_worker_calls/shared_worker_calls.ts
test/asset/dom_security/ban_shared_worker_calls/shared_worker_calls.ts
// Calls that should trigger; // Code below creates unused variables just to test that the conformance check // triggers. // tslint:disable:no-unused-variable const NUM = 1; const worker = new SharedWorker(`random-${NUM}-script.js`); const workerWithOptions = new SharedWorker('random-script.js', {}); const MY_URL = ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_serviceworkercontainer_register/scriptworkercontainer_register.ts
test/asset/dom_security/ban_serviceworkercontainer_register/scriptworkercontainer_register.ts
declare const container: ServiceWorkerContainer; // direct calls container.register('https://example.com/script.js'); // indirect use const reg = container.register.bind(container); reg('https://evil.com/script.js'); // other tests const KEY = 'register'; declare const url: string; container[KEY](url);
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_script_src_assignments/script_src_writes.ts
test/asset/dom_security/ban_script_src_assignments/script_src_writes.ts
const sElem = document.createElement('script'); const LITERAL = 'https://example.com/script.js'; let literalLet = 'https://example.com/script.js'; const nonLiteral = 'https://example.com/' + document.location.hash; // Assignments that should not trigger. sElem.className = nonLiteral; // not a script#src assignment sE...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_element_setattribute/element_setattribute.ts
test/asset/dom_security/ban_element_setattribute/element_setattribute.ts
declare const elem: Element; declare const attr: Attr; elem.setAttribute('src', ''); elem.setAttribute('SRc', ''); elem.setAttributeNS(null, 'src', ''); elem.setAttributeNode(attr); elem.setAttributeNodeNS(attr); // Setting attributes that are not TT related is OK. elem.setAttribute('data-custom', ''); elem.setAttrib...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_iframe_srcdoc_assignments/iframe_srcdoc_assignments.ts
test/asset/dom_security/ban_iframe_srcdoc_assignments/iframe_srcdoc_assignments.ts
const iframe = document.createElement('iframe'); // Writing to srcdoc causes an error. iframe.srcdoc = 'foo'; const PAYLOAD: string = 'payload'; iframe.srcdoc = PAYLOAD; iframe.srcdoc = `decorated ${PAYLOAD}`; iframe.srcdoc += `decorated ${PAYLOAD}`; iframe['srcdoc'] = PAYLOAD; iframe.srcdoc = '<span>hello</span>'; ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_script_content_assignments/script_content_writes.ts
test/asset/dom_security/ban_script_content_assignments/script_content_writes.ts
const scriptElem = document.createElement('script'); scriptElem.text = `alert('XSS!');`; scriptElem.textContent = `alert('XSS!');`; scriptElem['text'] = `alert('XSS!');`; scriptElem['textContent'] = `alert('XSS!');`; const str = `${'alert'}${'("xss")'}`; scriptElem.text = str; scriptElem.textContent = str; // writin...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_function_calls/function_tt_awareness.ts
test/asset/dom_security/ban_function_calls/function_tt_awareness.ts
const tt = 'tt' as unknown as TrustedScript; Function(tt as unknown as string); // ban Trusted Types internally window['Function'](tt as unknown as string); // ban Trusted Types internally
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_function_calls/function.ts
test/asset/dom_security/ban_function_calls/function.ts
// Calls that should trigger an error // tslint:disable-next-line:no-unused-expression new Function(`alert('uhoh');`); const test = { custom: Function, }; test.custom(`alert('uhoh');`); const indirect = Function; indirect(`alert('ouch')`); Function(`alert('ouch')`); window.Function(`alert('ouch')`); globalThis.Fun...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_trustedtypes_createpolicy/createpolicy_calls.ts
test/asset/dom_security/ban_trustedtypes_createpolicy/createpolicy_calls.ts
// direct call banned window.trustedTypes?.createPolicy('test', {}); // indirect use banned // tslint:disable:enforce-name-casing const cp = ( window as unknown as { TrustedTypes?: TrustedTypePolicyFactory; } ).TrustedTypes?.createPolicy; // tslint:enable:enforce-name-casing if (cp) cp('test', {});
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_range_createcontextualfragment/create_contextual_fragment.ts
test/asset/dom_security/ban_range_createcontextualfragment/create_contextual_fragment.ts
// Calling Range#createContextualFragment let range = document.createRange(); range.createContextualFragment('<p></p>');
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_window_stringfunctiondef/stringfunctiondef_calls.ts
test/asset/dom_security/ban_window_stringfunctiondef/stringfunctiondef_calls.ts
// window.func is automatically resolved to the global func name, // while window.parent.func is not. We thoroughly test both cases. setInterval(`alsert('XSS!');`); setTimeout(`alsert('XSS!');`); window.setInterval(`alsert('XSS!');`); window.setTimeout(`alsert('XSS!');`); window.parent.setInterval(`alsert('XSS!');`);...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_window_stringfunctiondef/stringfunctiondef_calls_tt_awareness.ts
test/asset/dom_security/ban_window_stringfunctiondef/stringfunctiondef_calls_tt_awareness.ts
const tt = 'tt' as unknown as TrustedScript; setTimeout(tt as unknown as string); // ban Trusted Types internally
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_eval_calls/eval_calls.ts
test/asset/dom_security/ban_eval_calls/eval_calls.ts
// Calls that should trigger an error eval(`alert('uhoh');`); window.eval(`alert('uhoh');`); const test = { custom: eval, }; test.custom(`alert('uhoh');`); const indirect = eval; indirect(`alert('ouch')`); (0, eval)(`alert('ouch')`); window.eval(`alert('ouch')`); globalThis.eval(`alert('ouch')`); window['eval'](`...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/test/asset/dom_security/ban_eval_calls/eval_calls_tt_awareness.ts
test/asset/dom_security/ban_eval_calls/eval_calls_tt_awareness.ts
const tt = 'tt' as unknown as TrustedScript; eval(tt as unknown as string); // ban Trusted Types internally window['eval'](tt as unknown as string); // ban Trusted Types internally
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/exemption_config.ts
common/exemption_config.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/configured_checker.ts
common/configured_checker.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/rule_groups.ts
common/rule_groups.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/rule_configuration.ts
common/rule_configuration.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/allowlist.ts
common/third_party/tsetse/allowlist.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/rule.ts
common/third_party/tsetse/rule.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/checker.ts
common/third_party/tsetse/checker.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/error_code.ts
common/third_party/tsetse/error_code.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/failure.ts
common/third_party/tsetse/failure.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/is_literal.ts
common/third_party/tsetse/util/is_literal.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/ban_jsdoc.ts
common/third_party/tsetse/util/ban_jsdoc.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/statistics.ts
common/third_party/tsetse/util/statistics.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/type_matching.ts
common/third_party/tsetse/util/type_matching.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/trusted_types_configuration.ts
common/third_party/tsetse/util/trusted_types_configuration.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/is_trusted_type.ts
common/third_party/tsetse/util/is_trusted_type.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/explain_diagnostics.ts
common/third_party/tsetse/util/explain_diagnostics.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/pattern_config.ts
common/third_party/tsetse/util/pattern_config.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/absolute_matcher.ts
common/third_party/tsetse/util/absolute_matcher.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/ast_tools.ts
common/third_party/tsetse/util/ast_tools.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/fixer.ts
common/third_party/tsetse/util/fixer.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/compilation_define.ts
common/third_party/tsetse/util/compilation_define.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/property_matcher.ts
common/third_party/tsetse/util/property_matcher.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/confidence.ts
common/third_party/tsetse/util/confidence.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/is_expression_value_used_or_void.ts
common/third_party/tsetse/util/is_expression_value_used_or_void.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/pattern_engines/property_write_engine.ts
common/third_party/tsetse/util/pattern_engines/property_write_engine.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/pattern_engines/property_engine.ts
common/third_party/tsetse/util/pattern_engines/property_engine.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/pattern_engines/name_engine.ts
common/third_party/tsetse/util/pattern_engines/name_engine.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/pattern_engines/match.ts
common/third_party/tsetse/util/pattern_engines/match.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/pattern_engines/property_non_constant_write_engine.ts
common/third_party/tsetse/util/pattern_engines/property_non_constant_write_engine.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/pattern_engines/pattern_engine.ts
common/third_party/tsetse/util/pattern_engines/pattern_engine.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/util/explain_diagnostics_test/ts_library_with_diagnostics/file.ts
common/third_party/tsetse/util/explain_diagnostics_test/ts_library_with_diagnostics/file.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/rules/check_side_effect_import_rule.ts
common/third_party/tsetse/rules/check_side_effect_import_rule.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/third_party/tsetse/rules/conformance_pattern_rule.ts
common/third_party/tsetse/rules/conformance_pattern_rule.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/rules/unsafe/ban_legacy_conversions.ts
common/rules/unsafe/ban_legacy_conversions.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/rules/unsafe/ban_reviewed_conversions.ts
common/rules/unsafe/ban_reviewed_conversions.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/rules/dom_security/ban_element_outerhtml_assignments.ts
common/rules/dom_security/ban_element_outerhtml_assignments.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/rules/dom_security/ban_document_write_calls.ts
common/rules/dom_security/ban_document_write_calls.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/rules/dom_security/ban_worker_calls.ts
common/rules/dom_security/ban_worker_calls.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/rules/dom_security/ban_element_setattribute.ts
common/rules/dom_security/ban_element_setattribute.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/rules/dom_security/ban_script_src_assignments.ts
common/rules/dom_security/ban_script_src_assignments.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/rules/dom_security/ban_shared_worker_calls.ts
common/rules/dom_security/ban_shared_worker_calls.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false
google/tsec
https://github.com/google/tsec/blob/91f538cac10f7dd4395c00a7ca55a2f989927026/common/rules/dom_security/ban_trustedtypes_createpolicy.ts
common/rules/dom_security/ban_trustedtypes_createpolicy.ts
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
typescript
Apache-2.0
91f538cac10f7dd4395c00a7ca55a2f989927026
2026-01-05T05:01:26.084937Z
false