New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-dao

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-dao - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

template/package.json

11

create-app.js

@@ -89,2 +89,6 @@ const path = require('path');

'next',
'@chakra-ui/react',
'@emotion/react@^11',
'@emotion/styled@^11',
'framer-motion@^4',
];

@@ -136,2 +140,9 @@ /**

cwd: path.join(__dirname, 'template'), //for single template
filter: (name) => {
// console.log('file name : ', name);
if (name.relativePath === 'package.json') {
return false;
}
return true;
},
rename: (name) => {

@@ -138,0 +149,0 @@ switch (name) {

16

package.json
{
"name": "create-dao",
"version": "1.3.0",
"version": "1.3.1",
"description": "",
"private": false,
"scripts": {
"start": "node ./index.js"
"dev": "yarn workspace @create-dao/next-app dev",
"build": "yarn workspace @create-dao/next-app build",
"start": "yarn workspace @create-dao/next-app start",
"lint": "yarn workspace @create-dao/next-app lint",
"chain": "yarn workspace @create-dao/next-app chain",
"compile": "yarn workspace @create-dao/next-app compile",
"deploy": "yarn workspace @create-dao/next-app deploy"
},

@@ -25,3 +32,6 @@ "keywords": [],

"node": ">=14"
}
},
"workspaces": [
"template"
]
}
# create-dao
## For development
1. Run `yarn`
2. In one terminal
3. Run `yarn chain`
4. In another terminal
5. Run `yarn deploy`
6. Run `yarn dev`
## What this is supposed to be

@@ -4,0 +13,0 @@

import '../styles/globals.css';
import { ChakraProvider } from '@chakra-ui/react';
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />;
return (
<ChakraProvider>
<Component {...pageProps} />
</ChakraProvider>
);
}
export default MyApp;

29

template/pages/index.js

@@ -1,7 +0,5 @@

import Head from 'next/head';
import Image from 'next/image';
import styles from '../styles/Home.module.css';
import { useState } from 'react';
import { useEffect, useState } from 'react';
import { ethers } from 'ethers';
import Greeter from '../src/artifacts/contracts/Greeter.sol/Greeter.json';
import { Button, Input, Container, VStack, HStack, Heading } from '@chakra-ui/react';

@@ -52,14 +50,21 @@ // Update with the contract address logged out to the CLI when it was deployed

useEffect(() => {
setGreeting();
}, []);
return (
<div className='App'>
<header className='App-header'>
<button onClick={fetchGreeting}>Fetch Greeting</button>
<button onClick={setGreeting}>Set Greeting</button>
<input
<Container>
<VStack mt="50">
<Heading>{greeting}</Heading>
<Input
onChange={(e) => setGreetingValue(e.target.value)}
placeholder='Set greeting'
placeholder="Set greeting"
/>
</header>
</div>
<HStack>
<Button onClick={fetchGreeting}>Fetch Greeting</Button>
<Button onClick={setGreeting}>Set Greeting</Button>
</HStack>
</VStack>
</Container>
);
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc