cycle-gear
Advanced tools
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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68842
730
4
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedglobalthis@1.0.4(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedsymbol-observable@2.0.3(transitive)
+ Addedxstream@11.14.0(transitive)
- Removedsymbol-observable@1.2.0(transitive)
- Removedxstream@10.9.0(transitive)
Updatedxstream@^11.0.0