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

import-fresh

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

import-fresh - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

4

index.js
'use strict';
const path = require('path');
const resolveFrom = require('resolve-from');
const callerPath = require('caller-path');
const parentModule = require('parent-module');

@@ -11,3 +11,3 @@ module.exports = moduleId => {

const filePath = resolveFrom(path.dirname(callerPath()), moduleId);
const filePath = resolveFrom(path.dirname(parentModule(__filename)), moduleId);

@@ -14,0 +14,0 @@ // Delete itself from module parent

{
"name": "import-fresh",
"version": "2.0.0",
"description": "Import a module while bypassing the cache",
"license": "MIT",
"repository": "sindresorhus/import-fresh",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava",
"heapdump": "optional-dev-dependency && node heapdump.js"
},
"files": [
"index.js"
],
"keywords": [
"require",
"cache",
"uncache",
"uncached",
"module",
"fresh",
"bypass"
],
"dependencies": {
"caller-path": "^2.0.0",
"resolve-from": "^3.0.0"
},
"devDependencies": {
"ava": "*",
"optional-dev-dependency": "^2.0.1",
"xo": "^0.18.2"
},
"optionalDevDependencies": {
"heapdump": "^0.3.7"
},
"xo": {
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
"name": "import-fresh",
"version": "3.0.0",
"description": "Import a module while bypassing the cache",
"license": "MIT",
"repository": "sindresorhus/import-fresh",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=6"
},
"scripts": {
"test": "xo && ava",
"heapdump": "node heapdump.js"
},
"files": [
"index.js"
],
"keywords": [
"require",
"cache",
"uncache",
"uncached",
"module",
"fresh",
"bypass"
],
"dependencies": {
"parent-module": "^1.0.0",
"resolve-from": "^4.0.0"
},
"devDependencies": {
"ava": "^1.0.1",
"heapdump": "^0.3.12",
"xo": "^0.23.0"
}
}

@@ -11,3 +11,3 @@ # import-fresh [![Build Status](https://travis-ci.org/sindresorhus/import-fresh.svg?branch=master)](https://travis-ci.org/sindresorhus/import-fresh)

```
$ npm install --save import-fresh
$ npm install import-fresh
```

@@ -14,0 +14,0 @@

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