New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

define-commonjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

define-commonjs - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

pack/index.js

@@ -38,3 +38,3 @@ const fs = require('fs');

if (res.isFile()) return file;
if (res.isDirectory() && options.tryDir) return resolveFile(`${file}/index`, {tryDir: false});
if (res.isDirectory() && options.tryDir) return resolveFile(path.join(file, 'index'), {tryDir: false});
return Promise.reject();

@@ -41,0 +41,0 @@ }, err => options.ext.reduce((res, ext) => res.catch(() => {

{
"name": "define-commonjs",
"version": "1.0.0",
"version": "1.0.1",
"description": "Yet another CommonJS implementation",

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

@@ -55,3 +55,3 @@ define-commonjs

``` js
const pack = require('define/pack/gulp');
const pack = require('define-commonjs/pack/gulp');
const concat = require('gulp-concat');

@@ -58,0 +58,0 @@

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