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

rollup-plugin-local-resolve

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-local-resolve - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

6

dist/rollup-plugin-local-resolve.es2015.js

@@ -7,6 +7,2 @@ import { statSync } from 'fs';

resolveId: function (importee, importer) {
console.log(importee);
console.log(importer);
console.log(importee.indexOf('./'));
if (importee.indexOf('./') === -1) {

@@ -16,3 +12,3 @@ return null;

if (importee && importer && importee.indexOf('./') === 0) {
if (importee && importer) {
var basename = path.basename(importer);

@@ -19,0 +15,0 @@ var directory = importer.split(basename)[0];

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

resolveId: function (importee, importer) {
console.log(importee);
console.log(importer);
console.log(importee.indexOf('./'));
if (importee.indexOf('./') === -1) {

@@ -20,3 +16,3 @@ return null;

if (importee && importer && importee.indexOf('./') === 0) {
if (importee && importer) {
var basename = path.basename(importer);

@@ -23,0 +19,0 @@ var directory = importer.split(basename)[0];

4

package.json
{
"name": "rollup-plugin-local-resolve",
"version": "1.0.3",
"version": "1.0.4",
"description": "Resolves index.js files with Rollup",

@@ -8,3 +8,5 @@ "main": "dist/rollup-plugin-local-resolve.js",

"scripts": {
"prebuild": "rimraf dist",
"build": "rollup-babel-lib-bundler -f cjs,es6 src/index.js",
"prepublish": "npm run build",
"lint": "eslint .",

@@ -11,0 +13,0 @@ "pretest": "npm-run-all -p build lint",

@@ -16,3 +16,3 @@ # rollup-plugin-local-resolve

import { rollup } from 'rollup';
import localResolve from 'rollup-plugin-local-resolve.js';
import localResolve from 'rollup-plugin-local-resolve';

@@ -19,0 +19,0 @@ // This will resolve `./files` to `./files/index.js` if the file exists

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