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

ts-transformer-classname

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-transformer-classname - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

29

build/cjs/lib/classNameTransformer.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -32,14 +36,15 @@ if (k2 === undefined) k2 = k;

const visitor = (node) => {
var _a;
if (ts.isClassLike(node)) {
const updatedClassMembers = [
...(node.members),
context.factory.createGetAccessorDeclaration(undefined, [
context.factory.createModifier(ts.SyntaxKind.PublicKeyword),
context.factory.createModifier(ts.SyntaxKind.StaticKeyword),
], context.factory.createComputedPropertyName(context.factory.createIdentifier(`Symbol.for("${plume_ts_di_1.Injector.CONSTRUCTOR_NAME_SYMBOL_IDENTIFIER}")`)), [], undefined, context.factory.createBlock([
context.factory.createReturnStatement(context.factory.createStringLiteral(node.name ? node.name.getFullText().trim() : 'undefined')),
])),
];
if (ts.isClassDeclaration(node)) {
return context.factory.updateClassDeclaration(node, node.decorators, node.modifiers, node.name, node.typeParameters, node.heritageClauses, updatedClassMembers);
const updatedClassMembers = [
...(node.members),
context.factory.createGetAccessorDeclaration(undefined, [
context.factory.createModifier(ts.SyntaxKind.PublicKeyword),
context.factory.createModifier(ts.SyntaxKind.StaticKeyword),
], context.factory.createComputedPropertyName(context.factory.createIdentifier(`Symbol.for("${plume_ts_di_1.Injector.CONSTRUCTOR_NAME_SYMBOL_IDENTIFIER}")`)), [], undefined, context.factory.createBlock([
context.factory.createReturnStatement(context.factory.createStringLiteral(node.name ? node.name.getFullText().trim() : 'undefined')),
])),
];
return context.factory.updateClassDeclaration(node, node.decorators, (_a = node.modifiers) === null || _a === void 0 ? void 0 : _a.filter(ts.isModifier), node.name, node.typeParameters, node.heritageClauses, updatedClassMembers);
}

@@ -55,2 +60,2 @@ }

exports.classNameTransformer = classNameTransformer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xhc3NOYW1lVHJhbnNmb3JtZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2NsYXNzTmFtZVRyYW5zZm9ybWVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwrQ0FBZ0M7QUFDaEMsNkNBQXVDO0FBRXZDOztHQUVHO0FBQ0gsU0FBZ0Isb0JBQW9CO0lBQ2hDLFNBQVMsV0FBVyxDQUFDLE9BQWlDO1FBQ2xELE9BQU8sQ0FBQyxVQUF5QixFQUFpQixFQUFFO1lBQ2hELE1BQU0sT0FBTyxHQUFHLENBQUMsSUFBYSxFQUF1QixFQUFFO2dCQUNuRCxJQUFJLEVBQUUsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLEVBQUU7b0JBQ3RCLE1BQU0sbUJBQW1CLEdBQStCO3dCQUNwRCxHQUFHLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQzt3QkFDakIsT0FBTyxDQUFDLE9BQU8sQ0FBQyw0QkFBNEIsQ0FDeEMsU0FBUyxFQUNUOzRCQUNJLE9BQU8sQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsYUFBYSxDQUFDOzRCQUMzRCxPQUFPLENBQUMsT0FBTyxDQUFDLGNBQWMsQ0FBQyxFQUFFLENBQUMsVUFBV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ts from 'typescript';

const visitor = (node) => {
var _a;
if (ts.isClassLike(node)) {
const updatedClassMembers = [
...(node.members),
context.factory.createGetAccessorDeclaration(undefined, [
context.factory.createModifier(ts.SyntaxKind.PublicKeyword),
context.factory.createModifier(ts.SyntaxKind.StaticKeyword),
], context.factory.createComputedPropertyName(context.factory.createIdentifier(`Symbol.for("${Injector.CONSTRUCTOR_NAME_SYMBOL_IDENTIFIER}")`)), [], undefined, context.factory.createBlock([
context.factory.createReturnStatement(context.factory.createStringLiteral(node.name ? node.name.getFullText().trim() : 'undefined')),
])),
];
if (ts.isClassDeclaration(node)) {
return context.factory.updateClassDeclaration(node, node.decorators, node.modifiers, node.name, node.typeParameters, node.heritageClauses, updatedClassMembers);
const updatedClassMembers = [
...(node.members),
context.factory.createGetAccessorDeclaration(undefined, [
context.factory.createModifier(ts.SyntaxKind.PublicKeyword),
context.factory.createModifier(ts.SyntaxKind.StaticKeyword),
], context.factory.createComputedPropertyName(context.factory.createIdentifier(`Symbol.for("${Injector.CONSTRUCTOR_NAME_SYMBOL_IDENTIFIER}")`)), [], undefined, context.factory.createBlock([
context.factory.createReturnStatement(context.factory.createStringLiteral(node.name ? node.name.getFullText().trim() : 'undefined')),
])),
];
return context.factory.updateClassDeclaration(node, node.decorators, (_a = node.modifiers) === null || _a === void 0 ? void 0 : _a.filter(ts.isModifier), node.name, node.typeParameters, node.heritageClauses, updatedClassMembers);
}

@@ -32,2 +33,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xhc3NOYW1lVHJhbnNmb3JtZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2NsYXNzTmFtZVRyYW5zZm9ybWVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxFQUFFLE1BQU0sWUFBWSxDQUFBO0FBQ2hDLE9BQU8sRUFBRSxRQUFRLE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w7eUJBQ0osQ0FBQzt3QkFFRixPQUFPLE9BQU8sQ0FBQyxPQUFPLENBQUMsc0JBQXNCLENBQ3pDLElBQUksRUFDSixJQUFJLENBQUMsVUFBVSxFQUNmLE1BQUEsSUFBSSxDQUFDLFNBQVMsMENBQUUsTUFBTSxDQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsRUFDckMsSUFBSSxDQUFDLElBQUksRUFDVCxJQUFJLENBQUMsY0FBYyxFQUNuQixJQUFJLENBQUMsZUFBZSxFQUNwQixtQkFBbUIsQ0FDdEIsQ0FBQztxQkFDTDtpQkFFSjtnQkFDRCxPQUFPLEVBQUUsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLE9BQU8sRUFBRSxPQUFPLENBQUMsQ0FBQztZQUNyRCxDQUFDLENBQUM7WUFFRixPQUFPLEVBQUUsQ0FBQyxTQUFTLENBQUMsVUFBVSxFQUFFLE9BQU8sQ0FBQyxDQUFDO1FBQzdDLENBQUMsQ0FBQztJQUNOLENBQUM7SUFFRCxPQUFPLFdBQVcsQ0FBQztBQUN2QixDQUFDIn0=
{
"name": "ts-transformer-classname",
"description": "A TypeScript transformer for use with ttypescript that will give you a symbol that returns the name of the class.",
"version": "1.0.3",
"version": "1.0.4",
"author": "Benjamin Chardin <bchardin@coreoz.com> (https://coreoz.com)",

@@ -17,10 +17,10 @@ "repository": "https://github.com/Coreoz/ts-transformer-classname",

"module": "build/esm/index.js",
"dependencies": {
"plume-ts-di": "^1.0.2"
"peerDependencies": {
"plume-ts-di": "^1.0.2",
"typescript": "^4.1.3"
},
"devDependencies": {
"ts-node": "^9.0.0",
"ttypescript": "^1.5.12",
"typescript": "^4.1.3",
"release-it": "^14.2.2"
"plume-ts-di": "^1.0.2",
"release-it": "^14.2.2",
"typescript": "^4.1.3"
},

@@ -31,7 +31,7 @@ "files": [

"scripts": {
"build": "npm run tsc:cjs && npm run tsc:esm",
"build": "yarn tsc:cjs && yarn tsc:esm",
"tsc:cjs": "tsc --module commonjs --outDir build/cjs -p tsconfig.json",
"tsc:esm": "tsc --module esnext --outDir build/esm -p tsconfig.json",
"clean": "rm -rf build",
"prepare-release": "npm run clean && npm run build",
"prepare-release": "yarn clean && yarn build",
"release": "release-it"

@@ -42,6 +42,7 @@ },

"before:init": [
"npm run prepare-release"
"yarn prepare-release"
]
}
}
},
"packageManager": "yarn@3.3.1"
}

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