This file contains 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
const typescript = require("typescript"); | |
const { resolveModuleName } = require("ts-pnp"); | |
const origCreateProgram = typescript.createProgram; | |
function createCompilerHost(compilerOptions) { | |
const compilerHost = { | |
...typescript.createCompilerHost(compilerOptions), | |
resolveModuleNames, | |
resolveTypeReferenceDirectives, |
This file contains 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
➜ prettier-php-test git:(main) ✗ yarn node test.js | |
yarn node v1.22.10 | |
{ | |
name: 'PHP', | |
type: 'programming', | |
tmScope: 'text.html.php', | |
aceMode: 'php', | |
codemirrorMode: 'php', | |
codemirrorMimeType: 'application/x-httpd-php', | |
color: '#4F5D95', |
This file contains 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
const prettier = require("prettier"); | |
const chalk = require("chalk"); | |
const normal = chalk.grey; | |
const highlight = chalk.white.bgBlue.bold; | |
function showNewline(s) { | |
return s.replace(/\n/g, "\u23ce\n"); | |
} |
This file contains 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
Dockerfile | |
/.sandbox/ | |
/.git/ |
This file contains 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
declare module "@alexanderolsen/libsamplerate-js" { | |
interface Options { | |
converterType: number; | |
wasmPath: string; | |
} | |
interface Module { | |
simple( | |
numSamples: number, | |
numChannels: number, |
This file contains 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
into -> try_into | |
query_all time: [37.094 us 37.383 us 37.723 us] | |
change: [+3.5800% +5.1397% +6.9096%] (p = 0.00 < 0.05) | |
Performance has regressed. | |
try_into -> into | |
query_all time: [36.867 us 37.347 us 37.870 us] | |
change: [-3.3305% -1.6812% -0.0427%] (p = 0.05 > 0.05) |
This file contains 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
diff --git a/examples/lazy-hashes-cycles/webpack.config.js b/examples/lazy-hashes-cycles/webpack.config.js | |
index d91a6a8..ab72135 100644 | |
--- a/examples/lazy-hashes-cycles/webpack.config.js | |
+++ b/examples/lazy-hashes-cycles/webpack.config.js | |
@@ -34,12 +34,12 @@ module.exports = { | |
"utf-8" | |
); | |
const sriRegex = new RegExp( | |
- `${ | |
- isEntry ? "self.sriHashes=" : "Object.assign\\(self.sriHashes," |
This file contains 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
diff --git a/webpack-subresource-integrity/index.ts b/webpack-subresource-integrity/index.ts | |
index 8fb3e36..5f89db5 100644 | |
--- a/webpack-subresource-integrity/index.ts | |
+++ b/webpack-subresource-integrity/index.ts | |
@@ -7,7 +7,7 @@ | |
import { createHash } from "crypto"; | |
import type { Compiler, Compilation } from "webpack"; | |
-import { javascript, sources } from "webpack"; | |
+import { sources, RuntimeModule, Template } from "webpack"; |
This file contains 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
FROM drakkan/sftpgo | |
USER root | |
RUN apt-get update && apt-get install -y bsdmainutils | |
RUN echo foo > $HOME/a && ln -sf $HOME/a $HOME/x | |
RUN ls -ld $HOME/x && bash -c '((printf "\x00\x00\x00\x05\x01\x00\x00\x00\x06" && printf "\x00\x00\x00\x0f\x11\x00\x00\x00\x01\x00\x00\x00\x02/x\x00\x00\x00\x00" && sleep 1 && printf "\x00\x00\x00\x0b\x10\x00\x00\x00\x02\x00\x00\x00\x02/x" && sleep 1) | sftpgo startsubsys | hexdump -C) && exit 10' |
This file contains 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
$ /private/tmp/ts2/mui-sc-lib-check/node_modules/.bin/tsc | |
node_modules/@mui/system/Container/createContainer.d.ts:12:87 - error TS2707: Generic type 'StyledComponent' requires between 2 and 4 type arguments. | |
12 createStyledComponent?: (...styles: Array<Interpolation<StyleFnProps<Theme>>>) => StyledComponent<ContainerProps>; | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
node_modules/@mui/system/Stack/createStack.d.ts:13:74 - error TS2694: Namespace '"/private/tmp/ts2/mui-sc-lib-check/node_modules/@mui/styled-engine/index"' has no exported member 'CreateStyledComponent'. | |
13 declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("../createStyled").MUIStyledCommonProps<any>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}, any>; | |