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

cycle-gear

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cycle-gear - npm Package Compare versions

Comparing version 5.1.0 to 5.2.0

18

index.ts

@@ -64,4 +64,3 @@ import { adapt } from '@cycle/run/lib/adapt'

toothDefaults[tooth] = { filter: defaultFilter, view: defGearTooth }
}
else {
} else {
toothDefaults[tooth] = { filter: defGearTooth.filter || defaultFilter, view: defGearTooth.view }

@@ -76,4 +75,3 @@ }

return toothDefaults[name].filter || defaultFilter
}
else {
} else {
return tooth.filter || toothDefaults[name].filter || defaultFilter

@@ -87,7 +85,5 @@ }

return toothDefaults[name].view
}
else if (tooth instanceof Function) {
} else if (tooth instanceof Function) {
return tooth
}
else {
} else {
return tooth.view

@@ -119,3 +115,4 @@ }

[tooth]: state!.filter(toothFilter(tooth, (gear.teeth || {})[tooth])).map(toothView(tooth, (gear.teeth || {})[tooth]))
}), {})
}),
{})
return views

@@ -174,3 +171,4 @@ }

return gears => {
const views = teeth.reduce((acc, cur) => ({...acc, [cur]: [] }), {} as {[tooth: string]: Array<Observable<any>>})
const views = teeth.reduce((acc, cur) => ({...acc, [cur]: [] as Array<Observable<any>> }),
{} as {[tooth: string]: Array<Observable<any>>})
for (let gear of gears) {

@@ -177,0 +175,0 @@ let state = modelCache.get(gear)

{
"name": "cycle-gear",
"version": "5.1.0",
"version": "5.2.0",
"description": "Main function factory for CycleJS",

@@ -36,10 +36,11 @@ "main": "dist/index.js",

"devDependencies": {
"tslint-config-standard": "^3.0.0",
"tslint": "^5.8.0",
"tslint-config-standard": "^7.0.0",
"tslint-language-service": "^0.9.6",
"typescript": "^2.1.5"
"typescript": "^2.6.1"
},
"dependencies": {
"@cycle/run": "^3.1.0",
"xstream": "^10.6.0"
"xstream": "^11.0.0"
}
}

@@ -6,2 +6,3 @@ {

"strict": true,
"strictFunctionTypes": false,
"noUnusedLocals": true,

@@ -11,3 +12,6 @@ "noUnusedParameters": true,

"declaration": true,
"outDir": "./dist-es2015/"
"outDir": "./dist-es2015/",
"plugins": [
{ "name": "tslint-language-service"}
]
},

@@ -14,0 +18,0 @@ "files": [

@@ -8,2 +8,3 @@ {

"strict": true,
"strictFunctionTypes": false,
"noUnusedLocals": true,

@@ -10,0 +11,0 @@ "noUnusedParameters": true,

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