From 989daf04d18812ad069bfaf4eed9eaf160b807dd Mon Sep 17 00:00:00 2001 From: Arie Trouw Date: Tue, 17 Oct 2023 14:09:53 -0700 Subject: [PATCH] rolling up @bitauth/libauth to prevent map warnings --- .../src/Witness/spec/Witness.https.spec.ts | 10 ++++++++++ packages/protocol/packages/account/package.json | 2 +- packages/protocol/packages/account/xy.config.ts | 16 ++++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 packages/protocol/packages/account/xy.config.ts diff --git a/packages/plugins/packages/payloadset/packages/image-thumbnail/src/Witness/spec/Witness.https.spec.ts b/packages/plugins/packages/payloadset/packages/image-thumbnail/src/Witness/spec/Witness.https.spec.ts index 3d8e14ee0be..e2a891d45c3 100644 --- a/packages/plugins/packages/payloadset/packages/image-thumbnail/src/Witness/spec/Witness.https.spec.ts +++ b/packages/plugins/packages/payloadset/packages/image-thumbnail/src/Witness/spec/Witness.https.spec.ts @@ -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, diff --git a/packages/protocol/packages/account/package.json b/packages/protocol/packages/account/package.json index 138b539137a..4d3a75c72b1 100644 --- a/packages/protocol/packages/account/package.json +++ b/packages/protocol/packages/account/package.json @@ -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", @@ -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", diff --git a/packages/protocol/packages/account/xy.config.ts b/packages/protocol/packages/account/xy.config.ts new file mode 100644 index 00000000000..43096ac026d --- /dev/null +++ b/packages/protocol/packages/account/xy.config.ts @@ -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