Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@erickmerchant/framework

Package Overview
Dependencies
Maintainers
1
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@erickmerchant/framework - npm Package Compare versions

Comparing version 43.7.0 to 43.8.0

35

create-app.js
export const createApp = (state) => {
let callingView = false
let willCallView = false

@@ -14,8 +13,4 @@ let view

if (!callingView && view) {
callingView = true
view(get())
callingView = false
if (view) {
view(state)
}

@@ -25,22 +20,2 @@ })

const proxy = new Proxy(
{},
{
set(_, key, val) {
if (callingView) return false
state[key] = val
callView()
return true
},
get(_, key) {
return state[key]
}
}
)
const get = () => (typeof state === 'object' ? proxy : state)
return {

@@ -53,5 +28,3 @@ render(v) {

set state(val) {
if (val !== proxy) {
state = val
}
state = val

@@ -61,5 +34,5 @@ callView()

get state() {
return get()
return state
}
}
}

2

package.json
{
"name": "@erickmerchant/framework",
"version": "43.7.0",
"version": "43.8.0",
"description": "A front-end framework.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/erickmerchant/framework#readme",

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