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

mobx-rest

Package Overview
Dependencies
Maintainers
3
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-rest - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

5

CHANGELOG.md
# Changelog
## `4.0.1`
- Allow a default primary key if model didn't return a class
## `4.0.0`

@@ -7,3 +11,2 @@

## `3.0.5`

@@ -10,0 +13,0 @@

2

lib/Collection.d.ts

@@ -56,3 +56,3 @@ import Base from './Base';

[key: string]: any;
}) => T;
}) => T | null;
/**

@@ -59,0 +59,0 @@ * Returns a JSON representation

@@ -569,2 +569,4 @@ 'use strict';

var ModelClass = this.model();
if (!ModelClass)
return DEFAULT_PRIMARY;
return (new ModelClass()).primaryKey;

@@ -571,0 +573,0 @@ },

{
"name": "mobx-rest",
"version": "4.0.0",
"version": "4.0.1",
"description": "REST conventions for mobx.",

@@ -5,0 +5,0 @@ "jest": {

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