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

@erickmerchant/context-store

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@erickmerchant/context-store - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "@erickmerchant/context-store",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/main.js",

@@ -5,0 +5,0 @@ "scripts": {

# @erickmerchant/context-store
Creates a store to be used with [combine-stores](https://www.npmjs.com/package/@erickmerchant/combine-stores).
``` javascript
const framework = require('@erickmerchant/framework')
const combineStores = require('@erickmerchant/combine-stores')
const contextStore = require('@erickmerchant/context-store')
const store = combineStores(function (store) {
store('context', contextStore(['', 'create', 'edit/:id']))
})
const component = require('./components/index')
const target = document.querySelector('main')
const diff = require('yo-yo').update
framework({target, store, component, diff})(init)
function init ({dispatch}) {
const history = require('./history')
history.listen(function (location) {
dispatch('context', location.pathname)
})
dispatch('context', history.location.pathname)
}
```
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