Skip to content

Commit

Permalink
Merge pull request #10 from pubpub/tfk/bundle-crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah authored Dec 12, 2023
2 parents d08e13d + 7fb0997 commit 456da9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pubpub/sdk",
"version": "1.0.0",
"version": "1.0.1",
"description": "Unofficial PubPub API client for Node.js and the browser.",
"type": "module",
"main": "dist/index.cjs",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import SHA3 from 'crypto-js/sha3'
import encHex from 'crypto-js/enc-hex'
import SHA3 from 'crypto-js/sha3.js'
import encHex from 'crypto-js/enc-hex.js'
import { createClient } from 'utils/api/client.js'

import type { ExportFormats, WorkerTaskExportOutput } from './types.js'
Expand Down
1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const config = defineConfig({
entry: ['src'],
minify: false,
sourcemap: true,
noExternal: ['crypto-js'],
treeshake: {
preset: 'smallest',
},
Expand Down

0 comments on commit 456da9d

Please sign in to comment.