Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

modeled-mobx

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modeled-mobx - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2-0

2

dist/types.d.ts
export interface JSON {
readonly [text: string]: JSON | JSON[] | string | number;
readonly [text: string]: JSON | JSON[] | string | number | boolean;
}

@@ -4,0 +4,0 @@ export declare type PropertyTypes = 'field' | 'model';

{
"name": "modeled-mobx",
"version": "0.0.1",
"description": "Mobx powered classes with type-coercion and serialization/hdration",
"version": "0.0.2-0",
"description": "MobX powered classes with type-coercion and serialization/hydration",
"author": "nathanstitt",
"license": "MIT",
"repository": "nathanstitt/modeled-mobx",
"exports": {
"import": "./dist/modeled-mobx.modern.js",
"require": "./dist/modeled-mobx.js"
},
"typings": "dist/index.d.ts",
"main": "dist/modeled-mobx.js",
"module": "dist/modeled-mobx.module.js",
"exports": "./dist/modeled-mobx.modern.js",
"unpkg": "dist/modeled-mobx.umd.js",

@@ -12,0 +16,0 @@ "source": "src/index.ts",

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

# Decorators for creating model relationships with mobx
# Create model relationships with mobx
modeled-mobx is a lightweight layer on top of mobx 6 to easily serialize and hydrate javascript classes from JSON
modeled-mobx is a lightweight layer on top of MobX 6 to easily serialize and hydrate javascript classes to/from JSON

@@ -8,4 +8,4 @@

modeled-mobx replaces mobx's `makeObservable` with a `modelize` function. `modelize` adds a "field" and "model" property to
configure the model's properties as observables that get and set their values when `serialize` and `hydrate` respectively are called.
modeled-mobx replaces mobx's `makeObservable` with a `modelize` function. `modelize` adds "field" and "model" properties to
configure the model's fields as observables that get and set their values when `serialize` and `hydrate` respectively are called.

@@ -12,0 +12,0 @@ It also includes a `field` and `model` decorator that can optionally be used instead of specifiying each property on the

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