Skip to content

Commit

Permalink
Align nodejs exports with web exports
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenbf committed Aug 18, 2023
1 parent d86be88 commit 5c563b7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/nodejs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export * from './pub/schema';
export * from './pub/wasm';
export * from './pub/id';
export * from './pub/client';
export * from './pub/clientV2';
export * from './pub/grpc';
export * from './pub/cis0';
export * from './pub/cis2';
export * from './pub/cis4';
File renamed without changes.
1 change: 1 addition & 0 deletions packages/nodejs/src/pub/json-rpc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@concordium/common-sdk/json-rpc';
8 changes: 7 additions & 1 deletion packages/nodejs/src/pub/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { Buffer } from 'buffer/';

export { decryptMobileWalletExport, EncryptedData } from '../wallet/crypto';
export { MobileWalletExport } from '../wallet/types';
export { getModuleBuffer } from '../util';
export { Buffer } from 'buffer/';
export { Buffer };

export * from '@concordium/common-sdk/types';

export function toBuffer(s: string, encoding?: string): Buffer {
return Buffer.from(s, encoding);
}
8 changes: 2 additions & 6 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "6.0.0",
"license": "Apache-2.0",
"sideEffects": false,
"browser": "./lib/esm/index.js",
"browser": "./lib/umd/concordium.min.js",
"cdn": "./lib/umd/concordium.min.js",
"module": "./lib/esm/index.js",
"types": "./lib/esm/index.d.ts",
"exports": {
Expand All @@ -16,11 +17,6 @@
"types": "./lib/esm/pub/*.d.ts",
"import": "./lib/esm/pub/*.js",
"browser": "./lib/esm/pub/*.js"
},
"./umd": {
"types": "./lib/esm/index.d.ts",
"import": "./lib/umd/concordium.min.js",
"browser": "./lib/umd/concordium.min.js"
}
},
"files": [
Expand Down
1 change: 0 additions & 1 deletion packages/web/src/pub/grpc.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from '@concordium/common-sdk/grpc';
export * from '../client';

0 comments on commit 5c563b7

Please sign in to comment.