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

@fimbul/wotan

Package Overview
Dependencies
Maintainers
2
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fimbul/wotan - npm Package Compare versions

Comparing version 0.24.0-dev.20210131 to 0.24.0-dev.20210208

2

package.json
{
"name": "@fimbul/wotan",
"version": "0.24.0-dev.20210131",
"version": "0.24.0-dev.20210208",
"description": "Pluggable TypeScript and JavaScript linter",

@@ -5,0 +5,0 @@ "bin": "bin/main.js",

@@ -7,2 +7,3 @@ "use strict";

const optparse_1 = require("./optparse");
const utils_1 = require("./utils");
const log = debug('wotan:argparse');

@@ -45,7 +46,7 @@ // @internal

exports.GLOBAL_OPTIONS_SPEC = {
modules: optparse_1.OptionParser.Transform.withDefault(optparse_1.OptionParser.Factory.parsePrimitiveOrArray('string'), []),
modules: optparse_1.OptionParser.Transform.withDefault(optparse_1.OptionParser.Factory.parsePrimitiveOrArray('string'), utils_1.emptyArray),
config: optparse_1.OptionParser.Factory.parsePrimitive('string'),
files: optparse_1.OptionParser.Transform.withDefault(optparse_1.OptionParser.Factory.parsePrimitiveOrArray('string'), []),
exclude: optparse_1.OptionParser.Transform.withDefault(optparse_1.OptionParser.Factory.parsePrimitiveOrArray('string'), []),
project: optparse_1.OptionParser.Transform.withDefault(optparse_1.OptionParser.Factory.parsePrimitiveOrArray('string'), []),
files: optparse_1.OptionParser.Transform.withDefault(optparse_1.OptionParser.Factory.parsePrimitiveOrArray('string'), utils_1.emptyArray),
exclude: optparse_1.OptionParser.Transform.withDefault(optparse_1.OptionParser.Factory.parsePrimitiveOrArray('string'), utils_1.emptyArray),
project: optparse_1.OptionParser.Transform.withDefault(optparse_1.OptionParser.Factory.parsePrimitiveOrArray('string'), utils_1.emptyArray),
references: optparse_1.OptionParser.Transform.withDefault(optparse_1.OptionParser.Factory.parsePrimitive('boolean'), false),

@@ -221,5 +222,3 @@ formatter: optparse_1.OptionParser.Factory.parsePrimitive('string'),

case '--module':
if (modules === undefined)
modules = [];
modules.push(...expectStringArgument(args, ++i, arg).split(/,/g).filter(isTruthy));
(modules !== null && modules !== void 0 ? modules : (modules = [])).push(...expectStringArgument(args, ++i, arg).split(/,/g).filter(isTruthy));
break;

@@ -226,0 +225,0 @@ case '--':

@@ -119,3 +119,3 @@ "use strict";

findings = this.filterFactory
.create({ sourceFile, getWrappedAst() { return tsutils_1.convertAst(sourceFile).wrapped; }, ruleNames: [] })
.create({ sourceFile, getWrappedAst() { return tsutils_1.convertAst(sourceFile).wrapped; }, ruleNames: utils_1.emptyArray })
.reportUseless(options.reportUselessDirectives);

@@ -125,6 +125,8 @@ log('Found %d useless directives', findings.length);

else {
findings = [];
findings = utils_1.emptyArray;
}
}
findings = this.applyRules(sourceFile, programFactory, rules, config.settings, options);
else {
findings = this.applyRules(sourceFile, programFactory, rules, config.settings, options);
}
return processor === undefined ? findings : processor.postprocess(findings);

@@ -131,0 +133,0 @@ }

@@ -8,2 +8,3 @@ "use strict";

const path = require("path");
const utils_1 = require("../../utils");
let DefaultBuiltinResolver = class DefaultBuiltinResolver {

@@ -14,3 +15,3 @@ constructor(resolver) {

get builtinPackagePath() {
const resolved = path.dirname(this.resolver.resolve('@fimbul/mimir', path.join(__dirname, '../'.repeat(/*offset to package root*/ 3)), []));
const resolved = path.dirname(this.resolver.resolve('@fimbul/mimir', path.join(__dirname, '../'.repeat(/*offset to package root*/ 3)), utils_1.emptyArray));
Object.defineProperty(this, 'builtinPackagePath', { value: resolved });

@@ -17,0 +18,0 @@ return resolved;

@@ -51,3 +51,3 @@ "use strict";

getCurrentDirectory: () => this.program.getCurrentDirectory(),
}) || [];
}) || utils_1.emptyArray;
return !this.typeRoots.every((typeRoot) => path.relative(typeRoot, fileName).startsWith('..' + path.sep));

@@ -54,0 +54,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOutputFileNamesOfProjectReference = exports.iterateProjectReferences = exports.invertChangeRange = exports.hasParseErrors = exports.addUnique = exports.flatMap = exports.mapDefined = exports.hasSupportedExtension = exports.calculateChangeRange = exports.assertNever = exports.format = exports.unixifyPath = exports.resolveCachedResult = exports.arrayify = exports.OFFSET_TO_NODE_MODULES = void 0;
exports.getOutputFileNamesOfProjectReference = exports.iterateProjectReferences = exports.invertChangeRange = exports.hasParseErrors = exports.addUnique = exports.flatMap = exports.mapDefined = exports.hasSupportedExtension = exports.calculateChangeRange = exports.assertNever = exports.format = exports.unixifyPath = exports.resolveCachedResult = exports.arrayify = exports.emptyArray = exports.OFFSET_TO_NODE_MODULES = void 0;
const json5 = require("json5");

@@ -15,2 +15,3 @@ const yaml = require("js-yaml");

exports.OFFSET_TO_NODE_MODULES = 3;
exports.emptyArray = [];
function arrayify(maybeArr) {

@@ -20,3 +21,3 @@ return Array.isArray(maybeArr)

: maybeArr === undefined
? []
? exports.emptyArray
: [maybeArr];

@@ -23,0 +24,0 @@ }

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

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