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

jpex

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jpex - npm Package Compare versions

Comparing version 3.2.2 to 3.2.3

3

CHANGELOG.md
Change Log
==========
### 3.2.3
- publicPath should be operate on relative `.` imports
### 3.2.2

@@ -4,0 +7,0 @@ - publicPath option was not working correctly for complex relative imports

2

package.json
{
"name": "jpex",
"version": "3.2.2",
"version": "3.2.3",
"description": "Javascript Prototype Extension",

@@ -5,0 +5,0 @@ "main": "dist/cjs/jpex.js",

@@ -14,3 +14,4 @@ const { types: t } = require('@babel/core');

if (!cache[key]) {
const value = `${state.publicPath || state.filename}/${state.typeName}`;
const usePublicPath = state.publicPath && state.filename[0] === '.';
const value = `${usePublicPath ? state.publicPath : state.filename}/${state.typeName}`;
cache[key] = value;

@@ -27,3 +28,4 @@ }

if (!cache[key]) {
const value = `${state.publicPath || state.filename}/${state.typeName}`;
const usePublicPath = state.publicPath && state.filename[0] === '.';
const value = `${usePublicPath ? state.publicPath : state.filename}/${state.typeName}`;
cache[key] = value;

@@ -44,3 +46,4 @@ }

if (!cache[key]) {
const value = state.publicPath ? `${state.publicPath}/${path.node.imported.name}` : key;
const usePublicPath = state.publicPath && state.filename[0] === '.';
const value = usePublicPath ? `${state.publicPath}/${path.node.imported.name}` : key;
cache[key] = value;

@@ -47,0 +50,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