New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ogre-tools/injectable-extension-for-mobx

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ogre-tools/injectable-extension-for-mobx - npm Package Compare versions

Comparing version 17.2.0 to 17.3.0

2

build/index.js

@@ -1,1 +0,1 @@

(()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{computedInjectManyInjectable:()=>s,computedInjectManyWithMetaInjectable:()=>d,registerMobX:()=>j});const n=require("@ogre-tools/injectable"),i=require("mobx"),a=Symbol("isInternalOfComputedInjectMany"),c=(0,n.getInjectable)({id:"invalidability-for-reactive-instances",instantiate:(e,t)=>(0,i.createAtom)(`reactivity-for-${t.id}`),lifecycle:n.lifecycleEnum.keyedSingleton({getInstanceKey:(e,t)=>t}),[a]:!0,decorable:!1}),o=e=>t=>n=>{const{inBatch:a}=(0,i._getGlobalState)();if(0===a&&n.injectionToken)throw new Error(`Tried to ${e} injectable "${n.id}" having an injection token outside of MobX-transaction. Transaction is required, as otherwise usages of computedInjectMany could observe untimely invalidations.`);n.injectionToken&&t.inject(c,n.injectionToken).reportChanged()},r=(0,n.getInjectable)({id:"invalidate-reactive-instances-on-register",instantiate:o("register"),injectionToken:n.registrationCallbackToken,[a]:!0,decorable:!1}),l=(0,n.getInjectable)({id:"invalidate-reactive-instances-on-deregister",instantiate:o("deregister"),injectionToken:n.deregistrationCallbackToken,[a]:!0,decorable:!1}),s=(0,n.getInjectable)({id:"computed-inject-many",instantiate:e=>t=>e.inject(y,t),lifecycle:n.lifecycleEnum.transient,cannotCauseCycles:!0}),d=(0,n.getInjectable)({id:"computed-inject-many-with-meta",instantiate:e=>t=>e.inject(u,t),lifecycle:n.lifecycleEnum.transient,cannotCauseCycles:!0}),y=(0,n.getInjectable)({id:"reactive-instances",instantiate:(e,t)=>{const n=e.inject(c,t);return(0,i.computed)((()=>(n.reportObserved(),e.injectMany(t))))},lifecycle:n.lifecycleEnum.keyedSingleton({getInstanceKey:(e,t)=>t}),cannotCauseCycles:!0}),u=(0,n.getInjectable)({id:"reactive-instances-with-meta",instantiate:(e,t)=>{const n=e.inject(c,t);return(0,i.computed)((()=>(n.reportObserved(),e.injectManyWithMeta(t))))},lifecycle:n.lifecycleEnum.keyedSingleton({getInstanceKey:(e,t)=>t}),cannotCauseCycles:!0}),j=e=>{(0,i.runInAction)((()=>{e.register(c,y,u,s,d,r,l)}))};module.exports=t})();
(()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{computedInjectManyInjectable:()=>s,computedInjectManyWithMetaInjectable:()=>d,registerMobX:()=>b});const n=require("@ogre-tools/injectable"),i=require("mobx"),c=Symbol("isInternalOfComputedInjectMany"),a=(0,n.getInjectable)({id:"invalidability-for-reactive-instances",instantiate:(e,t)=>(0,i.createAtom)(`reactivity-for-${t.id}`),lifecycle:n.lifecycleEnum.keyedSingleton({getInstanceKey:(e,t)=>t}),[c]:!0,decorable:!1}),o=e=>e=>t=>{t.injectionToken&&e.inject(a,t.injectionToken).reportChanged()},r=(0,n.getInjectable)({id:"invalidate-reactive-instances-on-register",instantiate:o(),injectionToken:n.registrationCallbackToken,[c]:!0,decorable:!1}),l=(0,n.getInjectable)({id:"invalidate-reactive-instances-on-deregister",instantiate:o(),injectionToken:n.deregistrationCallbackToken,[c]:!0,decorable:!1}),s=(0,n.getInjectable)({id:"computed-inject-many",instantiate:e=>t=>e.inject(y,t),lifecycle:n.lifecycleEnum.transient,cannotCauseCycles:!0}),d=(0,n.getInjectable)({id:"computed-inject-many-with-meta",instantiate:e=>t=>e.inject(j,t),lifecycle:n.lifecycleEnum.transient,cannotCauseCycles:!0}),y=(0,n.getInjectable)({id:"reactive-instances",instantiate:(e,t)=>{const n=e.inject(a,t);return(0,i.computed)((()=>(n.reportObserved(),e.injectMany(t))))},lifecycle:n.lifecycleEnum.keyedSingleton({getInstanceKey:(e,t)=>t}),cannotCauseCycles:!0}),j=(0,n.getInjectable)({id:"reactive-instances-with-meta",instantiate:(e,t)=>{const n=e.inject(a,t);return(0,i.computed)((()=>(n.reportObserved(),e.injectManyWithMeta(t))))},lifecycle:n.lifecycleEnum.keyedSingleton({getInstanceKey:(e,t)=>t}),cannotCauseCycles:!0}),b=e=>{(0,i.runInAction)((()=>{e.register(a,y,j,s,d,r,l)}))};module.exports=t})();
{
"name": "@ogre-tools/injectable-extension-for-mobx",
"private": false,
"version": "17.2.0",
"version": "17.3.0",
"description": "MobX support for Injectable in Ogre Tools",

@@ -43,9 +43,9 @@ "files": [

"devDependencies": {
"@ogre-tools/infrastructure-babel-for-js": "^17.2.0",
"@ogre-tools/infrastructure-jest": "^17.2.0",
"@ogre-tools/infrastructure-prettier": "^17.2.0",
"@ogre-tools/infrastructure-webpack-for-js": "^17.2.0",
"@ogre-tools/infrastructure-babel-for-js": "^17.3.0",
"@ogre-tools/infrastructure-jest": "^17.3.0",
"@ogre-tools/infrastructure-prettier": "^17.3.0",
"@ogre-tools/infrastructure-webpack-for-js": "^17.3.0",
"tsd": "^0.28.1"
},
"gitHead": "f1c7b8fc6f4507ccc53d3378e29ff0afb1d7375b"
"gitHead": "db3cb377dac63b8782be3b9a66c19a6c359072f3"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc