@effection/subscription
Advanced tools
Comparing version 0.7.1-b1952e1 to 0.7.1-db11b3f
@@ -83,3 +83,5 @@ 'use strict'; | ||
if (typeof value === 'object' && typeof reference === 'object') { | ||
var castedValue = value; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
var castedValue = value; // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
var castedReference = reference; | ||
@@ -197,4 +199,5 @@ return Object.entries(castedReference).every(function (_ref) { | ||
return !!getSubscriber(value); | ||
} | ||
} // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
function getSubscriber(source) { | ||
@@ -201,0 +204,0 @@ return source[SymbolSubscribable]; |
@@ -81,3 +81,5 @@ import { resource } from 'effection'; | ||
if (typeof value === 'object' && typeof reference === 'object') { | ||
var castedValue = value; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
var castedValue = value; // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
var castedReference = reference; | ||
@@ -195,4 +197,5 @@ return Object.entries(castedReference).every(function (_ref) { | ||
return !!getSubscriber(value); | ||
} | ||
} // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
function getSubscriber(source) { | ||
@@ -199,0 +202,0 @@ return source[SymbolSubscribable]; |
{ | ||
"name": "@effection/subscription", | ||
"version": "0.7.1-b1952e1", | ||
"version": "0.7.1-db11b3f", | ||
"description": "Effection Subscriptions", | ||
@@ -16,3 +16,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"lint": "echo 'skip'", | ||
"lint": "eslint '{src,tests}/**/*.ts'", | ||
"test": "mocha -r ts-node/register --timeout 5000 test/**/*.test.ts", | ||
@@ -22,2 +22,5 @@ "prepack": "tsdx build --tsconfig tsconfig.dist.json", | ||
}, | ||
"dependencies": { | ||
"effection": "^0.6.4" | ||
}, | ||
"devDependencies": { | ||
@@ -31,5 +34,2 @@ "@frontside/tsconfig": "0.0.1", | ||
}, | ||
"peerDependencies": { | ||
"effection": "^0.6.4" | ||
}, | ||
"volta": { | ||
@@ -36,0 +36,0 @@ "node": "12.16.0", |
@@ -8,3 +8,5 @@ export type DeepPartial<T> = { | ||
if(typeof(value) === 'object' && typeof(reference) === 'object') { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
let castedValue = value as Record<string, any>; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
let castedReference = reference as Record<string, any>; | ||
@@ -11,0 +13,0 @@ return Object.entries(castedReference).every(([key, ref]) => matcher(ref)(castedValue[key])); |
@@ -92,4 +92,5 @@ import { Operation } from 'effection'; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
function getSubscriber<T,TReturn>(source: any): undefined | (() => Operation<Subscription<T,TReturn>>) { | ||
return source[SymbolSubscribable] as () => Operation<Subscription<T,TReturn>>; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
52956
540
+ Addedeffection@^0.6.4