@modern-js-reduck/plugin-devtools
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
4960
32