Skip to content

Commit

Permalink
exclude comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
felicio committed Feb 21, 2023
1 parent 2bccc38 commit d0a6eeb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/status-js/src/utils/encode-url-data.compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// todo?: use .fromBinary(bytes, { readUnknownFields: false })

import { base58, base64, base64url, utf8 } from '@scure/base'
// note: ensure next.js reads package.json#browser too
import brotli from 'brotli'
// import { utf8ToBytes as toBytes } from 'ethereum-cryptography/utils'
import lz from 'lz-string'
Expand Down Expand Up @@ -73,6 +74,7 @@ export function encodeUrlData(
break

case 'browser:brotli':
// note: outdated types
compressed = brotli.compress(serialized)

break
Expand Down
3 changes: 2 additions & 1 deletion packages/status-js/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"compilerOptions": {
"outDir": "./dist",
"declarationDir": "./dist/types"
}
},
"exclude": ["src/utils/encode-url-data.compare.*"]
}
2 changes: 2 additions & 0 deletions packages/status-js/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// <reference types="vitest" />

import { defineConfig } from 'vite'
import { configDefaults } from 'vitest/config'

import { dependencies } from './package.json'

Expand Down Expand Up @@ -43,6 +44,7 @@ export default defineConfig(({ mode }) => {
},
test: {
environment: 'happy-dom',
exclude: [...configDefaults.exclude, '**/encode-url-data.compare.*'],
},
}
})

0 comments on commit d0a6eeb

Please sign in to comment.