Socket
Socket
Sign inDemoInstall

mobx-wrap-request

Package Overview
Dependencies
2
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

30

index.js

@@ -1,19 +0,17 @@

import { computed, makeObservable, observable } from "mobx";
import { WrapRequest } from "wrap-request";
import { action, makeAutoObservable } from "mobx";
import { wrapRequest } from "wrap-request";
export * from "wrap-request";
makeObservable(WrapRequest, {
_$: observable,
$: computed,
_metadata: observable,
requestParams: observable,
metadata: computed,
error: observable,
transform: observable,
state: observable,
source: computed,
loading: computed,
fetched: computed,
empty: computed
});
const originalWrapRequest = wrapRequest;
wrapRequest = function (...args) {
const res = originalWrapRequest(...args);
makeAutoObservable(res, {
reset: action,
request: action
});
return res;
};
{
"name": "mobx-wrap-request",
"version": "2.0.0",
"version": "2.0.1",
"description": "a request-wrapper for async operations powered by mobx",

@@ -27,4 +27,5 @@ "main": "index.js",

"devDependencies": {
"mobx": "^6.0.3"
"mobx": "^6.0.3",
"wrap-request": "^4.0.0"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc