Skip to content

Commit

Permalink
Clean up exports (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Sep 3, 2024
2 parents 5efda67 + 66adc5e commit b23b4b3
Show file tree
Hide file tree
Showing 11 changed files with 9,393 additions and 12,324 deletions.
1 change: 1 addition & 0 deletions examples/taco/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dependencies": {
"@nucypher/shared": "workspace:*",
"@nucypher/taco": "workspace:*",
"@nucypher/taco-auth": "workspace:*",
"@types/node": "20.11.30",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18",
Expand Down
6 changes: 4 additions & 2 deletions examples/taco/nextjs/src/hooks/useTaco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import {
conditions,
decrypt,
Domain,
EIP4361AuthProvider,
encrypt,
initialize,
ThresholdMessageKit,
USER_ADDRESS_PARAM_DEFAULT,
} from '@nucypher/taco';
import {
EIP4361AuthProvider,
USER_ADDRESS_PARAM_DEFAULT,
} from '@nucypher/taco-auth';
import { ethers } from 'ethers';
import { useCallback, useEffect, useState } from 'react';

Expand Down
1 change: 1 addition & 0 deletions examples/taco/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"dependencies": {
"@nucypher/taco": "workspace:*",
"@nucypher/taco-auth": "workspace:*",
"dotenv": "^16.3.1",
"ethers": "^5.7.2"
}
Expand Down
6 changes: 4 additions & 2 deletions examples/taco/nodejs/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { format } from 'node:util';

import {
EIP4361AuthProvider,
ThresholdMessageKit,
USER_ADDRESS_PARAM_DEFAULT,
conditions,
decrypt,
domains,
Expand All @@ -13,6 +11,10 @@ import {
toBytes,
toHexString,
} from '@nucypher/taco';
import {
EIP4361AuthProvider,
USER_ADDRESS_PARAM_DEFAULT,
} from '@nucypher/taco-auth';
import * as dotenv from 'dotenv';
import { ethers } from 'ethers';

Expand Down
1 change: 1 addition & 0 deletions examples/taco/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"dependencies": {
"@nucypher/shared": "workspace:*",
"@nucypher/taco": "workspace:*",
"@nucypher/taco-auth": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
6 changes: 4 additions & 2 deletions examples/taco/react/src/hooks/useTaco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import {
conditions,
decrypt,
Domain,
EIP4361AuthProvider,
encrypt,
initialize,
ThresholdMessageKit,
USER_ADDRESS_PARAM_DEFAULT,
} from '@nucypher/taco';
import {
EIP4361AuthProvider,
USER_ADDRESS_PARAM_DEFAULT,
} from '@nucypher/taco-auth';
import { ethers } from 'ethers';
import { useCallback, useEffect, useState } from 'react';

Expand Down
3 changes: 2 additions & 1 deletion examples/taco/webpack-5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"type-check": "tsc"
},
"dependencies": {
"@nucypher/taco": "workspace:*"
"@nucypher/taco": "workspace:*",
"@nucypher/taco-auth": "workspace:*"
},
"devDependencies": {
"copy-webpack-plugin": "^12.0.2",
Expand Down
6 changes: 4 additions & 2 deletions examples/taco/webpack-5/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import {
conditions,
decrypt,
domains,
EIP4361AuthProvider,
encrypt,
fromBytes,
initialize,
toBytes,
USER_ADDRESS_PARAM_DEFAULT,
} from '@nucypher/taco';
import {
EIP4361AuthProvider,
USER_ADDRESS_PARAM_DEFAULT,
} from '@nucypher/taco-auth';
import { ethers } from 'ethers';
import { hexlify } from 'ethers/lib/utils';

Expand Down
6 changes: 4 additions & 2 deletions packages/taco/examples/encrypt-decrypt.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { ChainId } from '@nucypher/shared';
import {
EIP4361AuthProvider,
USER_ADDRESS_PARAM_DEFAULT,
} from '@nucypher/taco-auth';
import { ethers } from 'ethers';

import {
conditions,
decrypt,
domains,
EIP4361AuthProvider,
encrypt,
initialize,
ThresholdMessageKit,
toBytes,
USER_ADDRESS_PARAM_DEFAULT,
} from '../src';

const ritualId = 1;
Expand Down
8 changes: 0 additions & 8 deletions packages/taco/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,3 @@ export {
export * as conditions from './conditions';

export { decrypt, encrypt, encryptWithPublicKey } from './taco';

// TODO: Remove this re-export once `@nucypher/taco-auth` is mature and published
export {
EIP4361AuthProvider,
SingleSignOnEIP4361AuthProvider,
USER_ADDRESS_PARAM_DEFAULT,
USER_ADDRESS_PARAM_EXTERNAL_EIP4361,
} from '@nucypher/taco-auth';
Loading

0 comments on commit b23b4b3

Please sign in to comment.