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

intelli-espower-loader

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intelli-espower-loader - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

lib/normalize-dir.js

17

intelli-espower-loader.js
"use strict";
var fs = require("fs");
var assert = require("assert");
var fs = require("fs");
var pather = require("path");
var normalizeDir = require("./lib/normalize-dir");
var packageName = require("./package.json").name;

@@ -24,9 +25,13 @@

}
var directories = getPackageJSON().directories;
assert.equal(typeof directories, "object", 'You should setting `directories : { test : "test/" }`');
assert.equal(typeof directories.test, "string", 'You should setting `directories : { test : "test/" }`');
var testDirectory = directories.test;
function getTestDirFromPkg(pkg) {
var directories = pkg.directories;
assert.equal(typeof directories, "object", 'You should setting `directories : { test : "test/" }`');
assert.equal(typeof directories.test, "string", 'You should setting `directories : { test : "test/" }`');
return directories.test;
}
var pkg = getPackageJSON();
var testDirectory = getTestDirFromPkg(pkg);
require('espower-loader')({
cwd: process.cwd(),
pattern: testDirectory + "**" + pather.sep + "*.js"
pattern: normalizeDir(testDirectory) + "**" + pather.sep + "*.js"
});
{
"name": "intelli-espower-loader",
"description": "Make espower-lodaer config file unnecessary.",
"version": "0.1.0",
"version": "0.2.0",
"repository": {

@@ -22,3 +22,6 @@ "url": "git://github.com/azu/intelli-espower-loader.git"

"espower-loader": "~0.7.0"
},
"devDependencies": {
"mocha": "^1.20.1"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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