Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Updated outdated packages. Changed package.json version #115

Merged
merged 1 commit into from
Oct 18, 2023
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "make-magic",
"version": "4.4.1",
"version": "4.4.2",
"description": "A tool for quickly scaffolding an app with Magic authentication baked-in!",
"repository": "magiclabs/create-magic-app",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions scaffolds/nextjs-dedicated-wallet/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"lint": "next lint --fix"
},
"dependencies": {
"@magic-ext/auth": "^1.4.1",
"@magic-ext/oauth": "^12.4.1",
"@magic-ext/auth": "^4.0.0",
"@magic-ext/oauth": "^15.0.0",
"@types/node": "20.3.3",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"autoprefixer": "10.4.14",
"classnames": "^2.3.2",
"magic-sdk": "^18.2.1",
"magic-sdk": "^21.0.0",
"next": "13.4.7",
"postcss": "8.4.24",
"react": "18.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { OAuthExtension } from '@magic-ext/oauth';
import { AuthExtension } from '@magic-ext/auth';
import { Magic as MagicBase } from 'magic-sdk';
import { ReactNode, createContext, useContext, useEffect, useMemo, useState } from 'react';
import Web3 from 'web3';
const { Web3 } = require('web3');

export type Magic = MagicBase<AuthExtension & OAuthExtension[]>;

type MagicContextType = {
magic: Magic | null;
web3: Web3 | null;
web3: typeof Web3 | null;
};

const MagicContext = createContext<MagicContextType>({
Expand All @@ -21,7 +21,7 @@ export const useMagic = () => useContext(MagicContext);

const MagicProvider = ({ children }: { children: ReactNode }) => {
const [magic, setMagic] = useState<Magic | null>(null);
const [web3, setWeb3] = useState<Web3 | null>(null);
const [web3, setWeb3] = useState<typeof Web3 | null>(null);

useEffect(() => {
if (process.env.NEXT_PUBLIC_MAGIC_API_KEY) {
Expand Down
8 changes: 4 additions & 4 deletions scaffolds/nextjs-flow-dedicated-wallet/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"lint": "next lint --fix"
},
"dependencies": {
"@magic-ext/auth": "^1.4.1",
"@magic-ext/flow": "^14.3.1",
"@magic-ext/oauth": "^12.4.1",
"@magic-ext/auth": "^4.0.0",
"@magic-ext/flow": "^16.0.0",
"@magic-ext/oauth": "^15.0.0",
"@onflow/fcl": "^1.6.0",
"@types/node": "20.3.3",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"autoprefixer": "10.4.14",
"classnames": "^2.3.2",
"magic-sdk": "^18.2.1",
"magic-sdk": "^21.0.0",
"next": "13.4.7",
"postcss": "8.4.24",
"react": "18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions scaffolds/nextjs-flow-universal-wallet/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"lint": "next lint --fix"
},
"dependencies": {
"@magic-ext/flow": "^14.3.1",
"@magic-ext/flow": "^16.0.0",
"@onflow/fcl": "^1.6.0",
"@onflow/types": "^1.1.0",
"@types/node": "18.15.11",
"@types/react": "18.0.35",
"@types/react-dom": "18.0.11",
"eslint-config-next": "13.3.0",
"magic-sdk": "^16.2.0",
"magic-sdk": "^21.0.0",
"next": "13.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
10 changes: 5 additions & 5 deletions scaffolds/nextjs-solana-dedicated-wallet/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"lint": "next lint --fix"
},
"dependencies": {
"@magic-ext/auth": "^1.4.1",
"@magic-ext/oauth": "^12.4.1",
"@magic-ext/solana": "^15.3.1",
"@solana/web3.js": "^1.78.4",
"@magic-ext/auth": "^4.0.0",
"@magic-ext/oauth": "^15.0.0",
"@magic-ext/solana": "^17.0.0",
"@solana/web3.js": "^1.87.1",
"@types/node": "20.3.3",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"autoprefixer": "10.4.14",
"classnames": "^2.3.2",
"magic-sdk": "^18.2.1",
"magic-sdk": "^21.0.0",
"next": "13.4.7",
"postcss": "8.4.24",
"react": "18.2.0",
Expand Down