New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.16.0-dev.20181031 to 0.16.0-dev.20181104

2

package.json
{
"name": "@fimbul/mimir",
"version": "0.16.0-dev.20181031",
"version": "0.16.0-dev.20181104",
"description": "Core rules of the Fimbullinter project",

@@ -5,0 +5,0 @@ "main": "recommended.yaml",

@@ -78,4 +78,3 @@ "use strict";

getPropertyInfoFromSpread(node) {
const type = this.checker.getTypeAtLocation(node);
return tsutils_1.unionTypeParts(type).map(getPropertyInfoFromType).reduce(unionPropertyInfo);
return getPropertyInfoFromType(this.checker.getTypeAtLocation(node));
}

@@ -89,9 +88,16 @@ };

function getPropertyInfoFromType(type) {
if (tsutils_1.isUnionType(type))
return type.types.map(getPropertyInfoFromType).reduce(unionPropertyInfo);
if (tsutils_1.isIntersectionType(type))
return type.types.map(getPropertyInfoFromType).reduce(intersectPropertyInfo);
if (type.flags & ts.TypeFlags.Instantiable) {
const constraint = type.getConstraint();
if (constraint === undefined)
return emptyPropertyInfo;
return Object.assign({}, getPropertyInfoFromType(constraint), { known: false });
}
if (!tsutils_1.isObjectType(type))
return emptyPropertyInfo;
const result = {
known: (type.flags & (ts.TypeFlags.Any | ts.TypeFlags.Unknown)) !== 0 ||
type.getStringIndexType() === undefined && type.getNumberIndexType() === undefined,
known: type.getStringIndexType() === undefined && type.getNumberIndexType() === undefined,
names: [],

@@ -98,0 +104,0 @@ assignedNames: [],

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