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

component-kit-builder

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-kit-builder - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

12

index.js

@@ -15,5 +15,11 @@ 'use strict';

}, {});
const moduleMap = values(uniquePaths).reduce((obj, key) => Object.assign({}, obj, {
[path.relative('.', key)]: context(key)
}), {});
const moduleMap = values(uniquePaths).reduce((obj, key) => {
let contextForKey = context(key);
if (contextForKey.default) {
contextForKey = contextForKey.default;
}
return Object.assign({}, obj, {
[path.relative('.', key)]: contextForKey
})
}, {});
let wrappersList = ['redux', 'relay'];

@@ -20,0 +26,0 @@ if (moduleMap.index && moduleMap.index.wrappers) {

{
"name": "component-kit-builder",
"version": "1.0.9",
"version": "1.0.10",
"description": "builds component kits using webpack require.context",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -78,2 +78,7 @@ const assert = require('assert');

});
it('should work with es6-style default exports', function () {
fs.writeFileSync(path.join(myComponentDir, 'redux.js'), `module.exports = {default: x => y => y(\`redux \${x}\`)};`);
buildBundle();
require(bundlePath);
});
});
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