Comparing version 3.0.33 to 3.0.34-next-20250209-185f
@@ -50,3 +50,3 @@ 'use strict'; | ||
const parentContext = ctx.use(); | ||
const out = vestUtils.assign({}, parentContext ? parentContext : {}, (_a = vestUtils.optionalFunctionValue(init, value, parentContext)) !== null && _a !== void 0 ? _a : value); | ||
const out = vestUtils.assign({}, parentContext ? parentContext : {}, (_a = vestUtils.dynamicValue(init, value, parentContext)) !== null && _a !== void 0 ? _a : value); | ||
return ctx.run(Object.freeze(out), fn); | ||
@@ -53,0 +53,0 @@ } |
@@ -1,2 +0,2 @@ | ||
"use strict";var n=require("vest-utils");const t="Not inside of a running context.",e=Symbol();function u(u){let r=e;return{run:function(n,t){const u=i()?o():e;r=n;const c=t();return r=u,c},use:o,useX:function(e){return n.invariant(i(),n.defaultTo(e,t)),r}};function o(){return i()?r:u}function i(){return r!==e}}exports.createCascade=function(t){const e=u();return{bind:function(n,t){return function(...e){return r(n,(function(){return t(...e)}))}},run:r,use:e.use,useX:e.useX};function r(u,r){var o;const i=e.use(),c=n.assign({},i||{},null!==(o=n.optionalFunctionValue(t,u,i))&&void 0!==o?o:u);return e.run(Object.freeze(c),r)}},exports.createContext=u; | ||
"use strict";var n=require("vest-utils");const t="Not inside of a running context.",e=Symbol();function u(u){let r=e;return{run:function(n,t){const u=c()?o():e;r=n;const i=t();return r=u,i},use:o,useX:function(e){return n.invariant(c(),n.defaultTo(e,t)),r}};function o(){return c()?r:u}function c(){return r!==e}}exports.createCascade=function(t){const e=u();return{bind:function(n,t){return function(...e){return r(n,(function(){return t(...e)}))}},run:r,use:e.use,useX:e.useX};function r(u,r){var o;const c=e.use(),i=n.assign({},c||{},null!==(o=n.dynamicValue(t,u,c))&&void 0!==o?o:u);return e.run(Object.freeze(i),r)}},exports.createContext=u; | ||
//# sourceMappingURL=context.production.js.map |
@@ -1,2 +0,2 @@ | ||
import { invariant, defaultTo, assign, optionalFunctionValue } from 'vest-utils'; | ||
import { invariant, defaultTo, assign, dynamicValue } from 'vest-utils'; | ||
@@ -48,3 +48,3 @@ const USEX_DEFAULT_ERROR_MESSAGE = 'Not inside of a running context.'; | ||
const parentContext = ctx.use(); | ||
const out = assign({}, parentContext ? parentContext : {}, (_a = optionalFunctionValue(init, value, parentContext)) !== null && _a !== void 0 ? _a : value); | ||
const out = assign({}, parentContext ? parentContext : {}, (_a = dynamicValue(init, value, parentContext)) !== null && _a !== void 0 ? _a : value); | ||
return ctx.run(Object.freeze(out), fn); | ||
@@ -51,0 +51,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import{invariant as n,defaultTo as t,assign as u,optionalFunctionValue as r}from"vest-utils";const e="Not inside of a running context.",o=Symbol();function c(u){let r=o;return{run:function(n,t){const u=i()?c():o;r=n;const e=t();return r=u,e},use:c,useX:function(u){return n(i(),t(u,e)),r}};function c(){return i()?r:u}function i(){return r!==o}}function i(n){const t=c();return{bind:function(n,t){return function(...u){return e(n,(function(){return t(...u)}))}},run:e,use:t.use,useX:t.useX};function e(e,o){var c;const i=t.use(),s=u({},i||{},null!==(c=r(n,e,i))&&void 0!==c?c:e);return t.run(Object.freeze(s),o)}}export{i as createCascade,c as createContext}; | ||
import{invariant as n,defaultTo as t,assign as u,dynamicValue as r}from"vest-utils";const e="Not inside of a running context.",o=Symbol();function c(u){let r=o;return{run:function(n,t){const u=i()?c():o;r=n;const e=t();return r=u,e},use:c,useX:function(u){return n(i(),t(u,e)),r}};function c(){return i()?r:u}function i(){return r!==o}}function i(n){const t=c();return{bind:function(n,t){return function(...u){return e(n,(function(){return t(...u)}))}},run:e,use:t.use,useX:t.useX};function e(e,o){var c;const i=t.use(),s=u({},i||{},null!==(c=r(n,e,i))&&void 0!==c?c:e);return t.run(Object.freeze(s),o)}}export{i as createCascade,c as createContext}; | ||
//# sourceMappingURL=context.production.js.map |
@@ -52,3 +52,3 @@ (function (global, factory) { | ||
const parentContext = ctx.use(); | ||
const out = vestUtils.assign({}, parentContext ? parentContext : {}, (_a = vestUtils.optionalFunctionValue(init, value, parentContext)) !== null && _a !== void 0 ? _a : value); | ||
const out = vestUtils.assign({}, parentContext ? parentContext : {}, (_a = vestUtils.dynamicValue(init, value, parentContext)) !== null && _a !== void 0 ? _a : value); | ||
return ctx.run(Object.freeze(out), fn); | ||
@@ -55,0 +55,0 @@ } |
@@ -1,2 +0,2 @@ | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vest-utils")):"function"==typeof define&&define.amd?define(["exports","vest-utils"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).context={},n["vest-utils"])}(this,(function(n,t){"use strict";const e="Not inside of a running context.",u=Symbol();function o(n){let o=u;return{run:function(n,t){const e=r()?i():u;o=n;const s=t();return o=e,s},use:i,useX:function(n){return t.invariant(r(),t.defaultTo(n,e)),o}};function i(){return r()?o:n}function r(){return o!==u}}n.createCascade=function(n){const e=o();return{bind:function(n,t){return function(...e){return u(n,(function(){return t(...e)}))}},run:u,use:e.use,useX:e.useX};function u(u,o){var i;const r=e.use(),s=t.assign({},r||{},null!==(i=t.optionalFunctionValue(n,u,r))&&void 0!==i?i:u);return e.run(Object.freeze(s),o)}},n.createContext=o})); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vest-utils")):"function"==typeof define&&define.amd?define(["exports","vest-utils"],e):e((n="undefined"!=typeof globalThis?globalThis:n||self).context={},n["vest-utils"])}(this,(function(n,e){"use strict";const t="Not inside of a running context.",u=Symbol();function o(n){let o=u;return{run:function(n,e){const t=r()?i():u;o=n;const s=e();return o=t,s},use:i,useX:function(n){return e.invariant(r(),e.defaultTo(n,t)),o}};function i(){return r()?o:n}function r(){return o!==u}}n.createCascade=function(n){const t=o();return{bind:function(n,e){return function(...t){return u(n,(function(){return e(...t)}))}},run:u,use:t.use,useX:t.useX};function u(u,o){var i;const r=t.use(),s=e.assign({},r||{},null!==(i=e.dynamicValue(n,u,r))&&void 0!==i?i:u);return t.run(Object.freeze(s),o)}},n.createContext=o})); | ||
//# sourceMappingURL=context.production.js.map |
{ | ||
"version": "3.0.33", | ||
"version": "3.0.34-next-20250209-185f", | ||
"license": "MIT", | ||
@@ -14,3 +14,3 @@ "main": "./dist/cjs/context.js", | ||
"dependencies": { | ||
"vest-utils": "^1.3.3" | ||
"vest-utils": "1.4.0-next-20250209-185f" | ||
}, | ||
@@ -17,0 +17,0 @@ "module": "./dist/es/context.production.js", |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
48830
4
+ Addedvest-utils@1.4.0-next-20250209-185f(transitive)
- Removedvest-utils@1.3.3(transitive)