Skip to content

Commit

Permalink
Merge pull request #1443 from o1-labs/export-improvements
Browse files Browse the repository at this point in the history
Export improvements.
  • Loading branch information
shimkiv authored Feb 19, 2024
2 parents 8475a5a + 857946d commit f045991
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "o1js",
"description": "TypeScript framework for zk-SNARKs and zkApps",
"version": "0.16.1",
"version": "0.16.2",
"license": "Apache-2.0",
"homepage": "https://github.com/o1-labs/o1js/",
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ export { ZkProgram };

export { Crypto } from './lib/crypto.js';

export type { NetworkId } from './mina-signer/mina-signer.js';

// experimental APIs
import { memoizeWitness } from './lib/provable.js';
export { Experimental };
Expand Down
3 changes: 2 additions & 1 deletion src/mina-signer/index.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// this file is a wrapper for supporting commonjs imports

let Client = require('./mina-signer.js');
const Client = require('./mina-signer.js');

module.exports = Client.default;
module.exports.Client = Client.default;
5 changes: 2 additions & 3 deletions src/mina-signer/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// this file is a wrapper for supporting types in both commonjs and esm projects

import Client from './mina-signer.ts';
import { NetworkId } from './src/types.ts';
import Client, { type NetworkId } from './mina-signer.ts';

export default Client;
export { Client, NetworkId };
export { Client, type NetworkId };
2 changes: 1 addition & 1 deletion src/mina-signer/mina-signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
import { sign, Signature, verify } from './src/signature.js';
import { createNullifier } from './src/nullifier.js';

export { Client as default };
export { Client, Client as default, type NetworkId };

const defaultValidUntil = '4294967295';

Expand Down
4 changes: 2 additions & 2 deletions src/mina-signer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/mina-signer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mina-signer",
"description": "Node API for signing transactions on various networks for Mina Protocol",
"version": "3.0.2",
"version": "3.0.3",
"type": "module",
"scripts": {
"build": "tsc -p ../../tsconfig.mina-signer.json",
Expand Down

0 comments on commit f045991

Please sign in to comment.