New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/transformer

Package Overview
Dependencies
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/transformer - npm Package Compare versions

Comparing version 3.4.2 to 4.0.0-rc.0

4

package.json
{
"name": "@travetto/transformer",
"version": "3.4.2",
"version": "4.0.0-rc.0",
"description": "Functionality for AST transformations, with transformer registration, and general utils",

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

"dependencies": {
"@travetto/manifest": "^3.4.0",
"@travetto/manifest": "^4.0.0-rc.0",
"tslib": "^2.6.2",

@@ -30,0 +30,0 @@ "typescript": "^5.3.2"

@@ -107,7 +107,7 @@ <!-- This file was generated by @travetto/doc and should not be modified directly -->

const tslib_1 = require("tslib");
const Ⲑ_root_index_1 = tslib_1.__importStar(require("@travetto/manifest/src/root-index.js"));
const Ⲑ_runtime_1 = tslib_1.__importStar(require("@travetto/manifest/src/runtime.js"));
const Ⲑ_decorator_1 = tslib_1.__importStar(require("@travetto/registry/src/decorator.js"));
var ᚕf = "@travetto/transformer/doc/upper.js";
let TEST = class TEST {
static Ⲑinit = Ⲑ_root_index_1.RootIndex.registerFunction(TEST, ᚕf, 649563175, { COMPUTEAGE: { hash: 1286718349 } }, false, false);
static Ⲑinit = Ⲑ_runtime_1.RuntimeIndex.registerFunction(TEST, ᚕf, 649563175, { COMPUTEAGE: { hash: 1286718349 } }, false, false);
NAME;

@@ -114,0 +114,0 @@ AGE;

import ts from 'typescript';
import { ManifestIndex, RootIndex } from '@travetto/manifest';
import { ManifestIndex, RuntimeIndex } from '@travetto/manifest';

@@ -22,3 +22,3 @@ import { NodeTransformer } from './types/visitor';

static async create(manifestIndex: ManifestIndex): Promise<TransformerManager> {
const transformerFiles = RootIndex.find({ folder: f => f === '$transformer' }).map(f => f.sourceFile);
const transformerFiles = RuntimeIndex.find({ folder: f => f === '$transformer' }).map(f => f.sourceFile);

@@ -28,3 +28,3 @@ const transformers: NodeTransformer<TransformerState>[] = [];

for (const file of transformerFiles) { // Exclude based on blacklist
const entry = RootIndex.getEntry(file)!;
const entry = RuntimeIndex.getEntry(file)!;
transformers.push(...getAllTransformers(await import(entry.import), entry.module));

@@ -31,0 +31,0 @@ }

@@ -269,10 +269,6 @@ /* eslint-disable no-bitwise */

// eslint-disable-next-line prefer-const
let [importName, name] = tag.split(':');
if (!name) {
name = importName;
importName = '.';
}
let [importName, name] = tag.split('#');
// Resolving relative to source file
if (importName.startsWith('.')) {
if (!importName || importName.startsWith('.')) {
const rawSourceFile: string = DeclarationUtil.getDeclarations(type)

@@ -282,3 +278,3 @@ ?.find(x => ts.getAllJSDocTags(x, (t): t is ts.JSDocTag => t.tagName.getText() === 'concrete').length)

if (importName === '.') {
if (!importName || importName === '.') {
importName = resolver.getFileImportName(rawSourceFile);

@@ -285,0 +281,0 @@ } else {

@@ -1,2 +0,2 @@

import crypto from 'crypto';
import crypto from 'node:crypto';

@@ -3,0 +3,0 @@ export class SystemUtil {

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