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

import-glob

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

import-glob - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

3

index.js
var glob = require("glob");
var path = require("path");
var merge = require('deepmerge')

@@ -21,3 +22,3 @@ module.exports = function(source) {

if (result) {
result += '\nlet ' + obj + ' = Object.assign(' + modules.join(', ') + ')';
result += '\nlet ' + obj + ' = [' + modules.join(', ') + ']';
}

@@ -24,0 +25,0 @@ return result;

{
"name": "import-glob",
"version": "1.1.0",
"version": "1.2.0",
"description": "ES6 import with glob patterns (preloader for Webpack)",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -14,3 +14,3 @@ # import-glob

modules = Object.assign(module0, module1, module2)
modules = [module0, module1, module2]
```

@@ -24,3 +24,3 @@

## Usage
You can use it one of two ways, the recommended way is to use it as a preloader for files you know has import statements.
You can use it one of two ways, the recommended way is to use it as a preloader

@@ -27,0 +27,0 @@ ```js

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