@effection/subscription
Advanced tools
Comparing version 0.7.0 to 0.7.1-86f6496
# @effection/subscription | ||
## 0.7.1 | ||
### Patch Changes | ||
- 68c4dab: include typescript sources with package in order for sourcemaps to work. | ||
- Updated dependencies [68c4dab] | ||
- effection@0.6.4 | ||
## 0.7.0 | ||
@@ -4,0 +12,0 @@ |
@@ -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.0", | ||
"version": "0.7.1-86f6496", | ||
"description": "Effection Subscriptions", | ||
@@ -11,8 +11,8 @@ "main": "dist/index.js", | ||
"files": [ | ||
"dist/*", | ||
"README.md", | ||
"src" | ||
"dist/**/*", | ||
"src/**/*" | ||
], | ||
"scripts": { | ||
"lint": "echo 'skip'", | ||
"lint": "eslint '{src,tests}/**/*.ts'", | ||
"test": "mocha -r ts-node/register --timeout 5000 test/**/*.test.ts", | ||
@@ -31,3 +31,3 @@ "prepack": "tsdx build --tsconfig tsconfig.dist.json", | ||
"peerDependencies": { | ||
"effection": "^0.6.3" | ||
"effection": "^0.6.4" | ||
}, | ||
@@ -34,0 +34,0 @@ "volta": { |
@@ -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
52960
540