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

cycle-stamplay

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cycle-stamplay - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "cycle-stamplay",
"version": "0.0.1",
"version": "0.0.2",
"description": "Cycle driver for stamplay",

@@ -5,0 +5,0 @@ "main": "lib/bundle.js",

@@ -1,1 +0,65 @@

"# cycle-stamplay"
# CycleJs-stamplay
- [CycleJs](http://cycle.js.org/)
- [Stamplay](https://stamplay.com/)
- [RxJs](https://github.com/Reactive-Extensions/RxJS)
### Test needed
If you are interested, just make a PR or an issue if you find a bug or think about some improvements :-)
## Install:
[npm package](https://www.npmjs.com/package/cycle-stamplay)
``` npm install --save cycle-stamplay ```
### Exemple:
```javascript
import {Observable} from 'rx'
import {run} from '@cycle/core'
import {makeDOMDriver, h} from '@cycle/dom'
import path from 'path'
import {makeStamplayDriver} from '../lib/'
function main({DOM, Stamplay}) {
const getuser$ = Observable.just({
type: 'Object',
object: 'costs',
fn: 'get',
data: null,
})
const vtree$ = Stamplay
.mergeAll()
.flatMap(x => Observable.of(JSON.parse(x)))
.startWith(null)
.map(x => {
console.log(x)
return h('div', 'Loading...')
})
const sinks = {
DOM: vtree$,
Stamplay: getuser$
};
return sinks;
}
const root = document.createElement('div')
root.id = 'app'
document.body.appendChild(root)
const drivers = {
DOM: makeDOMDriver('#app'),
Stamplay: makeStamplayDriver('costs', 'd9970d823326250e6597f6715bb3d09d280bd9b009e16730c033beb9928c12bb')
};
run(main, drivers);
```

@@ -6,3 +6,3 @@ import {Observable} from 'rx'

import {makeStamplayDriver, GET, UPDATE, CREATE, DELETE} from '../lib/'
import {makeStamplayDriver} from '../lib/'

@@ -9,0 +9,0 @@ function main({DOM, Stamplay}) {

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