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

babel-plugin-lazy-require

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-lazy-require - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

CHANGELOG.md

3

index.js

@@ -120,3 +120,4 @@ 'use strict';

) || (
(t.isObjectProperty(path.parent)) && path.parent.key === path.node
(t.isObjectProperty(path.parent) || t.isObjectMethod(path.parent)) &&
path.parent.key === path.node
)

@@ -123,0 +124,0 @@ ) {

{
"name": "babel-plugin-lazy-require",
"version": "1.0.1",
"version": "1.0.2",
"description": "Transform CommonJS require statements into lazily evaluated imports",
"main": "index.js",
"scripts": {
"test": "babel test --plugins ../index.js --out-dir test-dist"
"test": "nyc babel test --plugins ../index.js --out-dir test-dist",
"coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"release": "standard-version"
},

@@ -26,4 +28,21 @@ "repository": {

"devDependencies": {
"babel-cli": "^6.26.0"
"babel-cli": "^6.26.0",
"codecov": "^3.0.0",
"nyc": "^11.3.0",
"standard-version": "^4.2.0"
},
"nyc": {
"exclude": [
"test",
"test-dist",
"coverage"
],
"cache": false,
"all": true,
"reporter": [
"text",
"html",
"json"
]
}
}

@@ -0,1 +1,5 @@

[![Build Status](https://travis-ci.org/princjef/babel-plugin-lazy-require.svg?branch=master)](https://travis-ci.org/princjef/babel-plugin-lazy-require)
[![NPM version](https://img.shields.io/npm/v/babel-plugin-lazy-require.svg)](https://www.npmjs.com/package/babel-plugin-lazy-require)
[![Coverage Status](https://img.shields.io/codecov/c/github/princjef/babel-plugin-lazy-require/master.svg)](https://codecov.io/gh/princjef/babel-plugin-lazy-require)
# babel-plugin-lazy-require

@@ -2,0 +6,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