@modern-js-reduck/plugin-devtools
Advanced tools
Comparing version 1.0.4 to 1.0.6
@@ -1,4 +0,13 @@ | ||
import { createPlugin } from '@modern-js-reduck/store'; | ||
import { devToolsEnhancer } from '@redux-devtools/extension'; | ||
export default (config => createPlugin(() => ({ | ||
"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)(() => ({ | ||
config: storeConfig => { | ||
@@ -8,5 +17,7 @@ const { | ||
} = storeConfig; | ||
storeConfig.enhancers = [devToolsEnhancer(config), ...enhancers]; | ||
storeConfig.enhancers = [(0, _extension.devToolsEnhancer)(config), ...enhancers]; | ||
return storeConfig; | ||
} | ||
}))); | ||
})); | ||
exports.default = _default; |
import { EnhancerOptions } from '@redux-devtools/extension'; | ||
export declare type DevToolsOptions = EnhancerOptions; | ||
declare const _default: (config: EnhancerOptions) => (context: import("@modern-js-reduck/store/dist/types/types/plugin").PluginContext) => import("@modern-js-reduck/store/dist/types/types/plugin").PluginLifeCycle; | ||
declare const _default: (config?: EnhancerOptions) => (context: import("@modern-js-reduck/store/dist/types/types/plugin").PluginContext) => import("@modern-js-reduck/store/dist/types/types/plugin").PluginLifeCycle; | ||
export default _default; |
{ | ||
"name": "@modern-js-reduck/plugin-devtools", | ||
"version": "1.0.4", | ||
"version": "1.0.6", | ||
"files": [ | ||
@@ -39,3 +39,3 @@ "dist" | ||
"devDependencies": { | ||
"@modern-js-reduck/store": "^1.0.5", | ||
"@modern-js-reduck/store": "1.0.6", | ||
"@modern-js/module-tools": "^1.7.1", | ||
@@ -45,5 +45,4 @@ "@modern-js/plugin-testing": "^1.6.0", | ||
"@types/node": "^14", | ||
"@types/react": "^17", | ||
"@types/react-dom": "^17", | ||
"typescript": "^4" | ||
"typescript": "^4", | ||
"@modern-js-reduck/scripts": "0.0.0" | ||
}, | ||
@@ -53,3 +52,3 @@ "modernSettings": {}, | ||
"peerDependencies": { | ||
"@modern-js-reduck/store": "^1.0.5" | ||
"@modern-js-reduck/store": "1.0.6" | ||
}, | ||
@@ -65,3 +64,4 @@ "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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6130
7
39