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

oc-external-dependencies-handler

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oc-external-dependencies-handler - npm Package Compare versions

Comparing version 1.0.10 to 1.1.0

4

index.d.ts
import type { Configuration } from 'webpack';
declare const externalDependenciesHandler: (dependencies: Record<string, string>) => Configuration['externals'];
declare const externalDependenciesHandler: (
dependencies: Record<string, string>
) => Configuration['externals'];
export = externalDependenciesHandler;

@@ -24,5 +24,5 @@ 'use strict';

return [
(context, req, callback) => {
if (matcher.test(req)) {
let dependencyName = req;
({ request }, callback) => {
if (matcher.test(request)) {
let dependencyName = request;
if (/^(?!@).*\//g.test(dependencyName)) {

@@ -29,0 +29,0 @@ dependencyName = dependencyName.substring(

{
"name": "oc-external-dependencies-handler",
"version": "1.0.10",
"version": "1.1.0",
"description": "External dependencies handler for webpack",

@@ -38,3 +38,3 @@ "main": "index.js",

},
"gitHead": "24ad81a2692832b389c36503d31e9016d4e17417"
"gitHead": "a28de7210094eb958ad17e06fd6c964f53c6d45a"
}
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