FAQ
Login
GNU social JPは日本のGNU socialサーバーです。
Usage
/
ToS
/
admin
/
test
/
Pleroma FE
Public
Public
Network
Groups
Featured
Popular
People
Embed Notice
HTML Code
<blockquote style="position: relative; padding-left: 55px;"><section><a href="https://mastodon.social/users/whitequark/statuses/113806996851933773">✧✦✶✷Catherine✷✶✦✧ (whitequark@mastodon.social)'s status on Saturday, 11-Jan-2025 09:59:50 JST</a><a href="https://mastodon.social/@whitequark" title="whitequark@mastodon.social"><img src="https://gnusocial.jp/avatar/105710-48-20230309163231.webp" width="48" height="48" alt="✧✦✶✷Catherine✷✶✦✧" style="position: absolute; left: 0; top: 0;">✧✦✶✷Catherine✷✶✦✧</a></section><article><p>environmental storytelling</p></article><footer><a rel="bookmark" href="https://gnusocial.jp/conversation/4352040#notice-8510500">In conversation</a><time datetime="2025-01-11T09:59:50+09:00" title="Saturday, 11-Jan-2025 09:59:50 JST">about 7 days ago</time> <span>from <span><a href="https://mastodon.social/@whitequark/113806996851933773" rel="external" title="Sent from mastodon.social via ActivityPub">mastodon.social</a></span></span><a href="https://mastodon.social/@whitequark/113806996851933773">permalink</a><h4>Attachments</h4><ol><li><label><a rel="external" href="https://gnusocial.jp/attachment/3887817">// At the moment of writing, VS Code ships Node v18.15.0. This version: // - cannot dynamically import from https:// URLs; // - does not provide module.register() hook to extend the loader; // - does not provide vm.Module (without a flag) to load ES modules manually. // Thus, crimes. // // Almost all of this can be deleted when VS Code ships Node v18.19.0 or later. // // Update (2025-01-11): VS Code ships Node v20.18.0 and this code still cannot // be removed because `importModuleDynamically` is feature-gated behind a flag // (`--experimental-vm-modules`) that VS Code doesn't pass. async function importModuleCriminally(url: URL | string): Promise<any> { let code = await fetch(url).then((resp) => resp.text()); code = code.replace(/\bimport\.meta\.url\b/g, JSON.stringify(url)); code = code.replace(/\bawait import\b/g, 'await _import'); code = code.replace(/\(\) => import/g, '() => _import'); code = code.replace(/\bexport const\b/g, 'exports.'); code = code.replace(/\bexport\s*{([^}]+)}\s*;/g, (_match, args) => `exports={${args.replace(/(\w+)\s+as\s+(\w+)/g, '$2:$1')}};`); const script = new vm.Script(code, { filename: url.toString() });</a></label><br><a href="https://files.mastodon.social/media_attachments/files/113/806/994/476/922/428/original/eebedfbe4351ae29.png" rel="external">https://files.mastodon.social/media_attachments/files/113/806/994/476/922/428/original/eebedfbe4351ae29.png</a></li></ol></footer></blockquote>
Corresponding Notice
Embed this notice
✧✦✶✷Catherine✷✶✦✧ (whitequark@mastodon.social)'s status on Saturday, 11-Jan-2025 09:59:50 JST
✧✦✶✷Catherine✷✶✦✧
environmental storytelling