Skip to content

Instantly share code, notes, and snippets.

View isaacs's full-sized avatar
🔮
only way out is through

isaacs isaacs

🔮
only way out is through
View GitHub Profile
2025,03-20T09:00Z,06-21T02:47Z,09-22T18:33Z,12-21T15:10Z,01-03T11:10Z,07-05T02:05Z
2026,03-20T14:49Z,06-21T08:35Z,09-23T00:22Z,12-21T20:59Z,01-03T17:24Z,07-05T08:19Z
2027,03-20T20:38Z,06-21T14:23Z,09-23T06:11Z,12-22T02:49Z,01-03T23:38Z,07-05T14:32Z
2028,03-20T02:28Z,06-20T20:11Z,09-22T11:59Z,12-21T08:39Z,01-04T05:52Z,07-04T20:46Z
2029,03-20T08:17Z,06-21T01:59Z,09-22T17:48Z,12-21T14:29Z,01-03T12:06Z,07-05T03:00Z
2030,03-20T14:06Z,06-21T07:48Z,09-22T23:37Z,12-21T20:18Z,01-03T18:20Z,07-05T09:14Z
2031,03-20T19:55Z,06-21T13:36Z,09-23T05:26Z,12-22T02:08Z,01-04T00:34Z,07-05T15:28Z
2032,03-20T01:44Z,06-20T19:24Z,09-22T11:14Z,12-21T07:58Z,01-04T06:48Z,07-04T21:42Z
2033,03-20T07:34Z,06-21T01:12Z,09-22T17:03Z,12-21T13:48Z,01-03T13:02Z,07-05T03:56Z
2034,03-20T13:23Z,06-21T07:00Z,09-22T22:52Z,12-21T19:37Z,01-03T19:16Z,07-05T10:10Z
@isaacs
isaacs / y.log
Created October 16, 2024 19:48
file:///Users/isaacs/Developer/vltpkg/vltpkg/src/graph/dist/esm/reify/build.js:17
await graphRun({
^
Error: failed graph traversal
at async build (file:///Users/isaacs/Developer/vltpkg/vltpkg/src/graph/dist/esm/reify/build.js:17:5)
at async reify_ (file:///Users/isaacs/Developer/vltpkg/vltpkg/src/graph/dist/esm/reify/index.js:64:5)
at async reify (file:///Users/isaacs/Developer/vltpkg/vltpkg/src/graph/dist/esm/reify/index.js:30:9)
at async command (file:///Users/isaacs/Developer/vltpkg/vltpkg/src/vlt/dist/esm/commands/install.js:24:5)
at async Module.run (file:///Users/isaacs/Developer/vltpkg/vltpkg/src/vlt/dist/esm/index.js:36:9) {
file:///Users/isaacs/Developer/vltpkg/vltpkg/src/graph/dist/esm/reify/build.js:17
await graphRun({
^
Error: failed graph traversal
at async build (file:///Users/isaacs/Developer/vltpkg/vltpkg/src/graph/dist/esm/reify/build.js:17:5)
at async reify_ (file:///Users/isaacs/Developer/vltpkg/vltpkg/src/graph/dist/esm/reify/index.js:64:5)
at async reify (file:///Users/isaacs/Developer/vltpkg/vltpkg/src/graph/dist/esm/reify/index.js:30:9)
at async command (file:///Users/isaacs/Developer/vltpkg/vltpkg/src/vlt/dist/esm/commands/install.js:24:5)
at async Module.run (file:///Users/isaacs/Developer/vltpkg/vltpkg/src/vlt/dist/esm/index.js:36:9) {
From 9a03c3e2d958202a0d1b9477a25406b5bd904a30 Mon Sep 17 00:00:00 2001
From: isaacs <[email protected]>
Date: Mon, 8 Jul 2024 10:44:26 -0700
Subject: [PATCH] Add note about using EOL release versions
As much as we can recommend against this, people are still going to do it
sometimes. We may as well help users reduce the risk and also give package
authors something to point to when the predictable breakage occurs.
---
apps/site/pages/en/about/previous-releases.mdx | 9 +++++++++
let g:coc_global_extensions = ['coc-tsserver', 'coc-json']
" Add CoC Prettier if prettier is installed
" if isdirectory('./node_modules') && isdirectory('./node_modules/prettier')
" let g:coc_global_extensions += ['coc-prettier']
" endif
nmap <leader>gn <Plug>(coc-diagnostic-prev)
nmap <leader>gm <Plug>(coc-diagnostic-next)
nmap <leader>gd <Plug>(coc-definition)
nmap <leader>gy <Plug>(coc-type-definition)
nmap <leader>gi <Plug>(coc-implementation)
console.error('register extension', process.version)
const { writeFileSync, readFileSync } = require('fs')
const transpile = exports.transpile = file => {
const src = readFileSync(file, 'utf8')
const tx = `console.log(${JSON.stringify(src)})`
writeFileSync(file + '.cjs', tx)
}
require.extensions['.foo'] = (module, file) => {
transpile(file)
module.filename = file + '.cjs'
import { Test } from '@tapjs/test'
import assert from 'node:assert'
const t = new Test({})
t.stream.pipe(process.stdout)
t.before(() => {
assert.equal(t.t, t, 'self ref is equal in before()')
})
// The idea here is that a plugin is a module that exports a function which
// takes a test object as an argument, and returns any kind of object.
// utility types
type SecondParam<
T extends [any] | [any, any],
R extends unknown = unknown
> = T extends [any, any] ? T[1] : R
const copyToString = (v: Function) => ({
> [email protected] start
> NODE_ENV=production node index.js
int: just an integer
failed prototype pollution check
| name | set | get1 | update | get2 | evict | score |
|------------------------------------------------------------------|-------|-------|--------|-------|-------|--------|
| [just an obj](Object.create(null)) | 25000 | 33333 | 25000 | 33333 | 25000 | 466664 |
| [just a {}]({}) | 25000 | 33333 | 25000 | 33333 | 25000 | 466664 |