You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

babel-plugin-transform-leancloud-require

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-leancloud-require - npm Package Compare versions

Comparing version

to
0.3.0

5

index.js

@@ -18,3 +18,6 @@ const path = require('path');

var relativePath = path.posix.relative(path.dirname(fromPath), targetPath);
console.log({fromPath, targetPath, relativePath});
if (relativePath.indexOf('.') !== 0) {
relativePath = './' + relativePath;
}
console.log(JSON.stringify({fromPath, targetPath, relativePath}));
modulePath.value = relativePath;

@@ -21,0 +24,0 @@ }

2

package.json
{
"name": "babel-plugin-transform-leancloud-require",
"version": "0.2.0",
"version": "0.3.0",
"description": "Transform LeanCloud's require('cloud/') to Node.js's require('./')",

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