Skip to content

Commit

Permalink
fix express dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed Apr 6, 2023
1 parent 053ec22 commit 92b57ae
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 6 deletions.
2 changes: 1 addition & 1 deletion NSLVWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const src = props.src;
State.init({
code: null,
ready: false,
props: props.props,
props: props.srcProps || {},
});

if (!src) {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ const profileImage = `${IPFS_NEAR_SOCIAL_THUMBNAIL_URL}${profile.image.ipfs_cid}
return (
<div>
<img src={profileImage} alt="profile avatar" />
{/* Use another local or remote widget */}
{/* Using another local or remote widget */}
<Widget
src={"wendersonpires.near/widget/NSLVWidget"}
props={{
src: "wendersonpires.near/widget/UserNameAccountView",
props: { name: "Wendz", accountId },
srcProps: { name: "Wendz", accountId },
}}
/>
</div>
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "near-social-local-viewer",
"version": "2.0.0-rc",
"version": "2.0.0-rc2",
"description": "A CLI tool that allows you to run and test your Near Social Widgets locally using just your preferred code editor and your default browser.",
"keywords": [
"near",
Expand Down Expand Up @@ -34,18 +34,19 @@
"concurrently": "^8.0.1",
"cors": "^2.8.5",
"error-polyfill": "^0.1.2",
"express": "^4.18.2",
"local-storage": "^2.0.0",
"near-api-js": "^0.45.1",
"near-social-vm": "git+https://github.com/NearSocial/VM.git#1.1.0",
"nodemon": "^2.0.22",
"prettier": "^2.7.1",
"react": "^18.2.0",
"react-bootstrap": "^2.5.0",
"react-dom": "^18.2.0",
"react-router-dom": "^5.2.0",
"serve": "^14.2.0",
"shelljs": "^0.8.5",
"styled-components": "^5.3.6",
"nodemon": "^2.0.22"
"styled-components": "^5.3.6"
},
"scripts": {
"serve": "webpack serve",
Expand Down
37 changes: 37 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4580,6 +4580,43 @@ express@^4.17.3:
utils-merge "1.0.1"
vary "~1.1.2"

express@^4.18.2:
version "4.18.2"
resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59"
integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==
dependencies:
accepts "~1.3.8"
array-flatten "1.1.1"
body-parser "1.20.1"
content-disposition "0.5.4"
content-type "~1.0.4"
cookie "0.5.0"
cookie-signature "1.0.6"
debug "2.6.9"
depd "2.0.0"
encodeurl "~1.0.2"
escape-html "~1.0.3"
etag "~1.8.1"
finalhandler "1.2.0"
fresh "0.5.2"
http-errors "2.0.0"
merge-descriptors "1.0.1"
methods "~1.1.2"
on-finished "2.4.1"
parseurl "~1.3.3"
path-to-regexp "0.1.7"
proxy-addr "~2.0.7"
qs "6.11.0"
range-parser "~1.2.1"
safe-buffer "5.2.1"
send "0.18.0"
serve-static "1.15.0"
setprototypeof "1.2.0"
statuses "2.0.1"
type-is "~1.6.18"
utils-merge "1.0.1"
vary "~1.1.2"

extend@^3.0.0, extend@~3.0.2:
version "3.0.2"
resolved "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz"
Expand Down

0 comments on commit 92b57ae

Please sign in to comment.