Skip to content

Commit

Permalink
rolling up @bitauth/libauth to prevent map warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Oct 17, 2023
1 parent 55deee4 commit 989daf0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ describeIfHasBin('magick')('ImageThumbnailWitness', () => {
expect(result.length).toBe(1)
expect(result[0]?.http?.dnsError).toBe('ENOTFOUND')
})
it('HTTPS [other/error]', async () => {
const httpsPayload: UrlPayload = {
schema: UrlSchema,
url: 'https://profilesetting.in/mier/logo.gif',
}
const result = (await witness.observe([httpsPayload])) as ImageThumbnail[]
expect(result.length).toBe(1)
console.log(`HTTPS [other/error]: ${JSON.stringify(result)}`)
expect(result[0]?.http?.dnsError).toBe('ENOTFOUND')
})
it.skip('HTTPS [medium/png]', async () => {
const httpsPayload: UrlPayload = {
schema: UrlSchema,
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/packages/account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
},
"dependencies": {
"@bitauth/libauth": "^1.19.1",
"@ethersproject/hdnode": "^5.7.0",
"@xylabs/array": "^2.12.30",
"@xylabs/assert": "^2.12.30",
Expand All @@ -27,6 +26,7 @@
},
"description": "Primary SDK for using XYO Protocol 2.0",
"devDependencies": {
"@bitauth/libauth": "^1.19.1",
"@types/elliptic": "^6.4.15",
"@types/sha.js": "^2.4.2",
"@xylabs/ts-scripts-yarn3": "^3.1.12",
Expand Down
16 changes: 16 additions & 0 deletions packages/protocol/packages/account/xy.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
const config: XyTsupConfig = {
compile: {
browser: {
src: {
noExternal: ['@bitauth/libauth'],
},
},
node: {
src: true,
},
},
}

// eslint-disable-next-line import/no-default-export
export default config

0 comments on commit 989daf0

Please sign in to comment.