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

ts-transformer-keys

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-transformer-keys - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

6

package.json
{
"name": "ts-transformer-keys",
"version": "0.2.1",
"version": "0.3.0",
"description": "Check equality of objects based on their contextual type in TypeScript",

@@ -32,7 +32,7 @@ "main": "index.js",

"mocha": "^3.2.0",
"typescript": "^2.4.0-dev.20170428"
"typescript": "^2.4.1"
},
"peerDependencies": {
"typescript": "^2.4.0-dev"
"typescript": "^2.4.1"
}
}

@@ -9,3 +9,3 @@ # ts-transformer-keys

# Requirement
TypeScript >= 2.4.0-dev
TypeScript >= 2.4.1

@@ -12,0 +12,0 @@ # How to use this package

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

}
var declaration = typeChecker.getResolvedSignature(node).declaration;
var signature = typeChecker.getResolvedSignature(node);
if (typeof signature === 'undefined') {
return false;
}
var declaration = signature.declaration;
return !!declaration

@@ -32,0 +36,0 @@ && (declaration.getSourceFile().fileName === indexTs)

@@ -32,3 +32,7 @@ import * as ts from 'typescript';

}
const { declaration } = typeChecker.getResolvedSignature(node as ts.CallExpression);
const signature = typeChecker.getResolvedSignature(node as ts.CallExpression);
if (typeof signature === 'undefined') {
return false;
}
const { declaration } = signature;
return !!declaration

@@ -35,0 +39,0 @@ && (declaration.getSourceFile().fileName === indexTs)

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