babel-plugin-client-only-require
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -29,4 +29,2 @@ 'use strict'; | ||
require('asset-require-hook')(currentConfig); | ||
var _path$node = path.node, | ||
@@ -33,0 +31,0 @@ calleeName = _path$node.callee.name, |
{ | ||
"name": "babel-plugin-client-only-require", | ||
"version": "1.0.0", | ||
"description": "Babel plugin to transpile require of certant extensions into client only conditionial require", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"build": "babel src --out-dir lib", | ||
"test": "mocha --compilers js:babel-core/register 'test/**/*.spec.js'" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ValeryG/babel-plugin-client-only-require.git" | ||
}, | ||
"author": "Val Gorodnichev", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"asset-require-hook": "^1.0.2", | ||
"babel-cli": "^6.22.2", | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-preset-stage-0": "^6.22.0", | ||
"chai": "^3.5.0", | ||
"mocha": "^3.2.0", | ||
"mock-fs": "^4.0.0" | ||
}, | ||
"keywords": [ | ||
"babel-plugin", | ||
"require", | ||
"instrumentation", | ||
"isomorphic", | ||
"styles", | ||
"client-only" | ||
] | ||
"name": "babel-plugin-client-only-require", | ||
"version": "1.0.1", | ||
"description": "Babel plugin to transpile require of certant extensions into client only conditionial require", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"build": "babel src --out-dir lib", | ||
"test": "mocha --compilers js:babel-core/register 'test/**/*.spec.js'" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ValeryG/babel-plugin-client-only-require.git" | ||
}, | ||
"author": "Val Gorodnichev", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"babel-cli": "^6.22.2", | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-preset-stage-0": "^6.22.0", | ||
"chai": "^3.5.0", | ||
"mocha": "^3.2.0", | ||
"mock-fs": "^4.0.0" | ||
}, | ||
"keywords": [ | ||
"babel-plugin", | ||
"require", | ||
"instrumentation", | ||
"isomorphic", | ||
"styles", | ||
"client-only" | ||
] | ||
} |
@@ -53,2 +53,6 @@ # babel-plugin-client-only-require | ||
## How to configure | ||
Install as dev dependency: | ||
``` | ||
npm install --save-dev babel-plugin-client-only-require | ||
``` | ||
@@ -61,3 +65,3 @@ To configure add plugin to .babelrc plugins section: | ||
.... | ||
["@concur/babel-plugin-client-only-require", { | ||
["client-only-require", { | ||
"extensions": ["less", "scss", "css"] | ||
@@ -64,0 +68,0 @@ }] |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
19053
6
8
328
70
11