Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

underarm

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

underarm - npm Package Compare versions

Comparing version
0.6.1
to
0.7.0
+1
-1
bower.json
{
"name": "underarm",
"main": "build/underarm.min.js",
"version": "0.6.1",
"version": "0.7.0",
"homepage": "https://github.com/kevinbeaty/underarm",

@@ -6,0 +6,0 @@ "authors": [

@@ -39,3 +39,3 @@ 'use strict'

_r.VERSION = '0.6.1'
_r.VERSION = '0.7.0'

@@ -42,0 +42,0 @@ // Export for browser or Common-JS

'use strict'
var transducer = require('transduce/core/transducer')
module.exports = function(_r){

@@ -25,20 +26,10 @@ var _ = _r._

function sample(sampler){
return function(xf){
return new Sample(sampler, xf)
}
return transducer(function(step, value, input){
if(this._sample === void 0){
this._sample = sampler(this.step)
}
var res = this._sample(value, input)
return res !== void 0 ? res : value
})
}
function Sample(sampler, xf){
this.xf = xf
this._sample = sampler(xf.step.bind(xf))
}
Sample.prototype.init = function(){
return this.xf.init()
}
Sample.prototype.result = function(result){
return this.xf.result(result)
}
Sample.prototype.step = function(result, input) {
var res = this._sample(result, input)
return res !== void 0 ? res : result
}
}
{
"name": "underarm",
"version": "0.6.1",
"version": "0.7.0",
"description": "Transducers for JavaScript with Underscore API and Async extensions",

@@ -27,21 +27,20 @@ "main": "underarm.js",

"dependencies": {
"transduce": "~0.7.0",
"any-promise": "^0.1.0",
"lodash-node": "^3.6.0",
"redispatch": "0.0.2",
"any-promise": "~0.1.0",
"lodash-node": "~3.3.0"
"transduce": "^0.8.0"
},
"devDependencies": {
"tape": "~3.5.0",
"uglify-js": "~2.4.16",
"bluebird": "^2.9.24",
"browserify": "^9.0.7",
"bundle-collapser": "^1.1.4",
"promise": "^6.1.0",
"q": "^1.2.0",
"rsvp": "^3.0.18",
"tap": "^0.7.1",
"tap-bail": "0.0.0",
"lodash-node": "~3.3.0",
"bundle-collapser": "~1.1.4",
"tap": "~0.6.0",
"browserify": "~9.0.3",
"promise": "~6.1.0",
"rsvp": "~3.0.17",
"bluebird": "~2.9.12",
"when": "~3.7.2",
"q": "~1.2.0"
"tape": "^4.0.0",
"uglify-js": "^2.4.19",
"when": "^3.7.2"
}
}