rafaelgss@rafaelgss-desktop:~/repos/os/undici-ghsa-pgw7-wx7w-2w33$ node examples/proxy-agent.js
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
Error: self-signed certificate in certificate chain
at TLSSocket.onConnectSecure (node:_tls_wrap:1531:34)
at TLSSocket.emit (node:events:527:28)
at TLSSocket._finishInit (node:_tls_wrap:945:8)
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
import { Type, Static } from '@sinclair/typebox'; | |
export const SendTextMessage = Type.Object({ | |
body: Type.String(), | |
chatId: Type.Number(), | |
options: Type.Optional( | |
Type.Object({ previewUrl: Type.Optional(Type.Boolean()) }), | |
), | |
}); |
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 Fastify = require('./fastify') | |
const { Client } = require('undici') | |
const assert = require('assert') | |
const fastify = Fastify({ | |
return503OnClosing: true, | |
forceCloseConnections: false | |
}) | |
fastify.get('/', (req, reply) => { |
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
void PrintTree(FSPermission::RadixTree::Node* node, int spaces = 0) { | |
std::string whitespace = ""; | |
for (int i = 0; i < spaces; ++i) { | |
whitespace += " "; | |
} | |
if (node == nullptr) { | |
std::cout << whitespace << "Node nullptr" << std::endl; | |
return; | |
} |
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 { setGlobalDispatcher, Agent } = require('undici') | |
setGlobalDispatcher( | |
new Agent({ | |
connect: (opts) => { | |
console.log('Called with', opts) | |
// implement custom dns lookup | |
} | |
}) | |
) |
$ git rev-parse HEAD
e3743b744abb5c8d39d0b722fbbdb7538df16c01
$ node bench/style-text.mjs
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
undefined YN0000: Resolution step | |
YN0002: @algolia/autocomplete-core@npm:1.9.3 [a6ecf] doesn't provide search-insights (p8f471), requested by @algolia/autocomplete-plugin-algolia-insights | |
YN0060: @jest/monorepo@workspace:. provides jest (p2d3f7) with version 30.0.0-alpha.4, which doesn't satisfy what jest-watch-typeahead requests | |
YN0002: @react-native/babel-plugin-codegen@npm:0.73.4 doesn't provide @babel/preset-env (p2a96b), requested by @react-native/codegen | |
YN0002: diff-sequences@workspace:packages/diff-sequences doesn't provide @jest/globals (p284af), requested by @fast-check/jest | |
YN0002: expect@workspace:packages/expect doesn't provide @jest/globals (p0e49c), requested by @fast-check/jest | |
YN0000: Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code | |
YN0000: Completed in 1s 521ms | |
YN0000: Fetch step | |
YN0013: 7 packages were already cached, 1990 had to be fetched |
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
alias npx-safe='function _npx_safe() { | |
local node_opts="--permission --allow-fs-read=$(npm prefix -g) --allow-fs-read=$(npm config get cache)" | |
local package="" | |
local package_args=() | |
while [[ $# -gt 0 ]]; do | |
if [[ "$1" == --* ]]; then | |
# Anything starting with `--` goes into node_opts | |
node_opts+=" $1" |
OlderNewer