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

liferay-npm-bundler-plugin-replace-browser-modules

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liferay-npm-bundler-plugin-replace-browser-modules - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

12

lib/index.js

@@ -27,2 +27,6 @@ 'use strict';

var _path = require('path');
var _path2 = _interopRequireDefault(_path);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -41,4 +45,4 @@

var src = pkgDir + '/' + browser;
var dest = pkgDir + '/' + main;
var src = _path2.default.join(pkgDir, browser);
var dest = _path2.default.join(pkgDir, main);

@@ -65,3 +69,3 @@ replaceFile(pkgId, src, browser, dest, main);

var to = browser[from];
var dest = pkgDir + '/' + from;
var dest = _path2.default.join(pkgDir, from);

@@ -71,3 +75,3 @@ if (to == false) {

} else {
var src = pkgDir + '/' + to;
var src = _path2.default.join(pkgDir, to);

@@ -74,0 +78,0 @@ replaceFile(pkgId, src, to, dest, from);

{
"name": "liferay-npm-bundler-plugin-replace-browser-modules",
"version": "1.2.0",
"version": "1.2.1",
"description": "A liferay-npm-bundler plugin to replace files listed under the browser/module entry of package.json files.",

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

import fs from 'fs';
import path from 'path';

@@ -29,4 +30,4 @@ /**

const src = pkgDir + '/' + browser;
const dest = pkgDir + '/' + main;
const src = path.join(pkgDir, browser);
const dest = path.join(pkgDir, main);

@@ -48,3 +49,3 @@ replaceFile(pkgId, src, browser, dest, main);

const to = browser[from];
const dest = pkgDir + '/' + from;
const dest = path.join(pkgDir, from);

@@ -54,3 +55,3 @@ if (to == false) {

} else {
const src = pkgDir + '/' + to;
const src = path.join(pkgDir, to);

@@ -57,0 +58,0 @@ replaceFile(pkgId, src, to, dest, from);

Sorry, the diff of this file is not supported yet

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