Socket
Socket
Sign inDemoInstall

ts-named

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-named - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

5

dist/index.es.js

@@ -8,3 +8,6 @@ import * as ts from 'typescript';

if (node.expression.getText() === 'named') {
if (ts.isVariableDeclaration(node.parent) || ts.isPropertyDeclaration(node.parent)) {
if (ts.isVariableDeclaration(node.parent) || // const v = named(id => ...)
ts.isPropertyDeclaration(node.parent) || // class C { v = named(id => ...) }
ts.isPropertyAssignment(node.parent) // const c = { p: named(id => ...) }
) {
if (ts.isArrowFunction(node.arguments[0])) {

@@ -11,0 +14,0 @@ var expression = node.arguments[0];

@@ -10,3 +10,6 @@ 'use strict';

if (node.expression.getText() === 'named') {
if (ts.isVariableDeclaration(node.parent) || ts.isPropertyDeclaration(node.parent)) {
if (ts.isVariableDeclaration(node.parent) || // const v = named(id => ...)
ts.isPropertyDeclaration(node.parent) || // class C { v = named(id => ...) }
ts.isPropertyAssignment(node.parent) // const c = { p: named(id => ...) }
) {
if (ts.isArrowFunction(node.arguments[0])) {

@@ -13,0 +16,0 @@ var expression = node.arguments[0];

2

package.json
{
"name": "ts-named",
"version": "1.0.3",
"version": "1.0.4",
"description": "Ts-Named : TypeScript Transformer for extracting variable name",

@@ -5,0 +5,0 @@ "author": "Ozan Gunalp <ozangunalp@gmail.com>",

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