@politie/sherlock-proxy
Advanced tools
Comparing version 2.0.0-alpha.0 to 2.0.0-beta.0
{ | ||
"name": "@politie/sherlock-proxy", | ||
"version": "2.0.0-alpha.0", | ||
"version": "2.0.0-beta.0", | ||
"description": "A proxy extension to Sherlock.", | ||
@@ -41,4 +41,4 @@ "main": "sherlock-proxy.cjs.js", | ||
"peerDependencies": { | ||
"@politie/sherlock": "2.0.0-alpha.0" | ||
"@politie/sherlock": "2.0.0-beta.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Derivable, ReactorOptions, TargetedLensDescriptor } from '@politie/sherlock'; | ||
import { Derivable, ReactorOptions } from '@politie/sherlock'; | ||
/** | ||
@@ -124,4 +124,4 @@ * The base interface for DerivableProxies. Defines only the $-properties and $-methods. Any property accessed with a number or | ||
export interface DerivableProxyLens<T, V> { | ||
get: TargetedLensDescriptor<T, V, never>['get']; | ||
set?: TargetedLensDescriptor<T, V, never>['set']; | ||
get: (targetValue: T) => V; | ||
set?: (newValue: V, targetValue: T | undefined) => T; | ||
} | ||
@@ -128,0 +128,0 @@ export declare type MaybePacked<T> = T | Derivable<T> | DerivableProxy<T>; |
@@ -230,3 +230,3 @@ 'use strict'; | ||
} | ||
return target.lens(lens).autoCache(); | ||
return target.map(lens.get, lens.set).autoCache(); | ||
} | ||
@@ -233,0 +233,0 @@ function unwrapProxy(obj) { |
@@ -226,3 +226,3 @@ import { __generator } from 'tslib'; | ||
} | ||
return target.lens(lens).autoCache(); | ||
return target.map(lens.get, lens.set).autoCache(); | ||
} | ||
@@ -229,0 +229,0 @@ function unwrapProxy(obj) { |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@politie/sherlock')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@politie/sherlock'], factory) : | ||
(factory((global['sherlock-proxy'] = {}),global.sherlock)); | ||
(factory((global.SherlockProxy = {}),global.Sherlock)); | ||
}(this, (function (exports,sherlock) { 'use strict'; | ||
@@ -272,3 +272,3 @@ | ||
} | ||
return target.lens(lens).autoCache(); | ||
return target.map(lens.get, lens.set).autoCache(); | ||
} | ||
@@ -275,0 +275,0 @@ function unwrapProxy(obj) { |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
216398
17
1181
3