Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefED committed Sep 2, 2022
1 parent 10e7e9f commit 17ae5a5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
6 changes: 4 additions & 2 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion packages/matrix-crdt/package.json
Expand Up @@ -12,7 +12,8 @@
"dependencies": {
"lodash": "^4.17.21",
"simple-peer": "^9.11.0",
"vscode-lib": "^0.1.0"
"vscode-lib": "^0.1.0",
"another-json": "^0.2.0"
},
"devDependencies": {
"@matrix-org/olm": "^3.2.12",
Expand Down
3 changes: 3 additions & 0 deletions packages/matrix-crdt/src/@types/another-json.d.ts
@@ -0,0 +1,3 @@
declare module "another-json" {
export function stringify(obj: any): string;
}
4 changes: 2 additions & 2 deletions packages/matrix-crdt/src/util/olmlib.ts
Expand Up @@ -24,8 +24,8 @@ limitations under the License.

// import {logger} from '../logger';
// import * as utils from "../utils";
// import anotherjson from "another-json";
const anotherjson = require("another-json");
import anotherjson from "another-json";
// const anotherjson = require("another-json");
// /**
// * matrix algorithm tag for olm
// */
Expand Down
1 change: 1 addition & 0 deletions packages/matrix-crdt/vite.config.js
Expand Up @@ -18,6 +18,7 @@ export default defineConfig({
"y-protocols",
"lodash",
"simple-peer",
"another-json",
],
},
},
Expand Down

0 comments on commit 17ae5a5

Please sign in to comment.