chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:34:48 +08:00
commit 77bb5bf71f
3762 changed files with 353249 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { Client, errorFrom } from '../src'
const main = async () => {
const client = new Client()
await client
.getAccount({})
.then(() => {
throw new Error('Expected to reject')
})
.catch((err) => {
if (errorFrom(err).type !== 'Unauthorized') {
throw Error()
}
})
}
void main()
.then(() => {
console.error('Node Done')
process.exit(0)
})
.catch((err) => {
console.error(err)
process.exit(1)
})