From 97e18b51816451315cfb293fd241de3818f54ed7 Mon Sep 17 00:00:00 2001 From: Felicio Mununga Date: Tue, 24 May 2022 12:42:05 +0200 Subject: [PATCH] Fix status-js `name` (#268) --- packages/status-js/package.json | 2 +- packages/status-react/package.json | 2 +- packages/status-react/src/protocol/provider.tsx | 4 ++-- packages/status-react/src/utils/identityStorage.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/status-js/package.json b/packages/status-js/package.json index d772a2b..5ed2883 100644 --- a/packages/status-js/package.json +++ b/packages/status-js/package.json @@ -1,5 +1,5 @@ { - "name": "@status-im/core", + "name": "@status-im/js", "version": "0.0.0", "license": "MIT OR Apache-2.0", "repository": { diff --git a/packages/status-react/package.json b/packages/status-react/package.json index 23bde34..82d767d 100644 --- a/packages/status-react/package.json +++ b/packages/status-react/package.json @@ -40,7 +40,7 @@ "@radix-ui/react-toggle-group": "^0.1.5", "@radix-ui/react-tooltip": "^0.1.7", "@radix-ui/react-visually-hidden": "^0.1.4", - "@status-im/core": "^0.0.0", + "@status-im/js": "^0.0.0", "@stitches/react": "^1.2.7", "emoji-mart": "^3.0.1", "html-entities": "^2.3.2", diff --git a/packages/status-react/src/protocol/provider.tsx b/packages/status-react/src/protocol/provider.tsx index d10206f..634f5e1 100644 --- a/packages/status-react/src/protocol/provider.tsx +++ b/packages/status-react/src/protocol/provider.tsx @@ -1,8 +1,8 @@ import React, { createContext, useContext, useMemo } from 'react' import type { Config } from '~/src/types/config' -// import { createClient } from '@status-im/core' -// import type { Client } from '@status-im/core' +// import { createClient } from '@status-im/js' +// import type { Client } from '@status-im/js' interface ClientContext { client: Config diff --git a/packages/status-react/src/utils/identityStorage.ts b/packages/status-react/src/utils/identityStorage.ts index ae10469..8d61d45 100644 --- a/packages/status-react/src/utils/identityStorage.ts +++ b/packages/status-react/src/utils/identityStorage.ts @@ -1,4 +1,4 @@ -import { bufToHex, hexToBuf, Identity } from '@status-im/core' +import { bufToHex, hexToBuf, Identity } from '@status-im/js' export async function saveIdentity(identity: Identity, password: string) { const salt = window.crypto.getRandomValues(new Uint8Array(16))