Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ESM compat #76

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/rpc/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* eslint-disable import/extensions */
export * from './src/chainStorageWatcher';
export * from './src/types';
export * from './src/chainStorageWatcher.js';
export * from './src/types.js';
8 changes: 4 additions & 4 deletions packages/rpc/src/chainStorageWatcher.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-disable no-use-before-define */
/* eslint-disable import/extensions */
import { makeClientMarshaller } from './marshal';
import { AgoricChainStoragePathKind } from './types';
import { vstorageQuery, keyToPath, pathToKey } from './vstorageQuery';
import type { UpdateHandler } from './types';
import { makeClientMarshaller } from './marshal.js';
import { AgoricChainStoragePathKind } from './types.js';
import { vstorageQuery, pathToKey } from './vstorageQuery.js';
import type { UpdateHandler } from './types.js';

type Subscriber<T> = {
onUpdate: UpdateHandler<T>;
Expand Down
2 changes: 1 addition & 1 deletion packages/rpc/src/vstorageQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios from 'axios';
// eslint-disable-next-line import/no-extraneous-dependencies
import axiosRetry from 'axios-retry';
import type { FromCapData } from '@endo/marshal';
import { AgoricChainStoragePathKind } from './types';
import { AgoricChainStoragePathKind } from './types.js';

export const pathToKey = (path: [AgoricChainStoragePathKind, string]) =>
path.join('.');
Expand Down
6 changes: 3 additions & 3 deletions packages/rpc/test/chainStorageWatcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* eslint-disable import/extensions */
import { expect, it, describe, beforeEach, vi, afterEach } from 'vitest';
import MockAdapter from 'axios-mock-adapter';
import { makeAgoricChainStorageWatcher } from '../src/chainStorageWatcher';
import { axiosClient } from '../src/vstorageQuery';
import { AgoricChainStoragePathKind } from '../src/types';
import { makeAgoricChainStorageWatcher } from '../src/chainStorageWatcher.js';
import { axiosClient } from '../src/vstorageQuery.js';
import { AgoricChainStoragePathKind } from '../src/types.js';

global.harden = val => val;

Expand Down
2 changes: 1 addition & 1 deletion packages/rpc/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable import/extensions */
import { mergeConfig } from 'vite';
import { defineConfig } from 'vitest/config';
import viteConfig from './vite.config';
import viteConfig from './vite.config.js';

export default mergeConfig(
viteConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { html, LitElement } from 'lit';
import { assert, details as X } from '@agoric/assert';

// Ambient types. https://github.com/Agoric/agoric-sdk/issues/6512
import '@agoric/zoe/src/zoeService/types';
import '@agoric/zoe/src/zoeService/types.js';

// This site tells the component the URL to load the wallet bridge from. For
// development, the form on this site can be changed to point the dapp to a
Expand Down
Loading