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

@fimbul/mimir

Package Overview
Dependencies
Maintainers
2
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fimbul/mimir - npm Package Compare versions

Comparing version 0.17.0-dev.20181201 to 0.17.0-dev.20181205

6

package.json
{
"name": "@fimbul/mimir",
"version": "0.17.0-dev.20181201",
"version": "0.17.0-dev.20181205",
"description": "Core rules of the Fimbullinter project",

@@ -11,3 +11,3 @@ "main": "recommended.yaml",

"type": "git",
"url": "git+https://github.com/fimbullinter/wotan.git"
"url": "https://github.com/fimbullinter/wotan/tree/master/packages/mimir"
},

@@ -29,3 +29,3 @@ "keywords": [

"dependencies": {
"@fimbul/ymir": "0.16.0",
"@fimbul/ymir": "0.17.0-dev.20181205",
"chalk": "^2.3.2",

@@ -32,0 +32,0 @@ "debug": "^4.0.0",

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

const text = node.text;
if (isWhitelisted(text) || (tsutils_1.getUsageDomain(node) & 4) === 0)
if (isWhitelisted(text) || (tsutils_1.getUsageDomain(node) & tsutils_1.UsageDomain.Value) === 0)
continue;

@@ -21,0 +21,0 @@ const symbol = this.checker.getSymbolAtLocation(node);

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

if (!tsutils_1.isVariableStatement(node) ||
tsutils_1.getVariableDeclarationKind(node.declarationList) === 2 ||
tsutils_1.getVariableDeclarationKind(node.declarationList) === tsutils_1.VariableDeclarationKind.Const ||
tsutils_1.hasModifier(node.modifiers, ts.SyntaxKind.ExportKeyword, ts.SyntaxKind.DeclareKeyword) ||

@@ -19,0 +19,0 @@ tsutils_1.isAmbientModuleBlock(node.parent))

@@ -33,7 +33,7 @@ "use strict";

const kind = tsutils_1.getVariableDeclarationKind(parent);
if (kind === 2)
if (kind === tsutils_1.VariableDeclarationKind.Const)
continue;
const canBeConst = (declaration.initializer !== undefined || tsutils_1.isForInOrOfStatement(parent.parent)) &&
!variableInfo.uses.some(utils_1.isVariableReassignment) &&
(kind === 1 ||
(kind === tsutils_1.VariableDeclarationKind.Let ||
variableInfo.declarations.length === 1 && !usedInOuterScopeOrTdz(name, variableInfo.uses));

@@ -123,3 +123,3 @@ let list = listInfo.get(parent);

return true;
if ((use.domain & (4 | 8)) === 4) {
if ((use.domain & (tsutils_1.UsageDomain.Value | tsutils_1.UsageDomain.TypeQuery)) === tsutils_1.UsageDomain.Value) {
if (getFunctionScopeBoundary(useScope) !== functionScope)

@@ -126,0 +126,0 @@ return true;

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

function isVariableReassignment(use) {
return (use.domain & (4 | 8)) === 4 && tsutils_1.isReassignmentTarget(use.location);
return (use.domain & (tsutils_1.UsageDomain.Value | tsutils_1.UsageDomain.TypeQuery)) === tsutils_1.UsageDomain.Value && tsutils_1.isReassignmentTarget(use.location);
}

@@ -37,0 +37,0 @@ exports.isVariableReassignment = isVariableReassignment;

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