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

@modern-js-reduck/plugin-devtools

Package Overview
Dependencies
Maintainers
6
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modern-js-reduck/plugin-devtools - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

21

dist/js/node/index.js

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

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _store = require("@modern-js-reduck/store");
var _extension = require("@redux-devtools/extension");
var _default = config => (0, _store.createPlugin)(() => ({
import { createPlugin } from '@modern-js-reduck/store';
import { devToolsEnhancer } from '@redux-devtools/extension';
export default (config => createPlugin(() => ({
config: storeConfig => {

@@ -17,7 +8,5 @@ const {

} = storeConfig;
storeConfig.enhancers = [(0, _extension.devToolsEnhancer)(config), ...enhancers];
storeConfig.enhancers = [devToolsEnhancer(config), ...enhancers];
return storeConfig;
}
}));
exports.default = _default;
})));

@@ -1,15 +0,11 @@

import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
import { createPlugin } from '@modern-js-reduck/store';
import { devToolsEnhancer } from '@redux-devtools/extension';
export default (function (_config) {
return createPlugin(function () {
return {
config: function config(storeConfig) {
var _storeConfig$enhancer = storeConfig.enhancers,
enhancers = _storeConfig$enhancer === void 0 ? [] : _storeConfig$enhancer;
storeConfig.enhancers = [devToolsEnhancer(_config)].concat(_toConsumableArray(enhancers));
return storeConfig;
}
};
});
});
export default (config => createPlugin(() => ({
config: storeConfig => {
const {
enhancers = []
} = storeConfig;
storeConfig.enhancers = [devToolsEnhancer(config), ...enhancers];
return storeConfig;
}
})));
{
"name": "@modern-js-reduck/plugin-devtools",
"version": "1.0.3",
"version": "1.0.4",
"files": [

@@ -39,6 +39,6 @@ "dist"

"devDependencies": {
"@modern-js/module-tools": "latest",
"@modern-js/plugin-testing": "latest",
"@modern-js-reduck/store": "^1.0.4",
"@types/jest": "^26",
"@modern-js-reduck/store": "^1.0.5",
"@modern-js/module-tools": "^1.7.1",
"@modern-js/plugin-testing": "^1.6.0",
"@types/jest": "^27.5.1",
"@types/node": "^14",

@@ -52,3 +52,3 @@ "@types/react": "^17",

"peerDependencies": {
"@modern-js-reduck/store": "^1.0.4"
"@modern-js-reduck/store": "^1.0.5"
},

@@ -64,4 +64,3 @@ "publishConfig": {

"test": "modern test --passWithNoTests"
},
"readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/api)\n\n## Contributing\n\n- [Contributing Guide](/CONTRIBUTING.md)\n"
}
}
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