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

linkmore-intl-generator

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkmore-intl-generator - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

14

dist/index.js

@@ -256,2 +256,16 @@ "use strict";

/**
* 处理三元表达式
*/
file
.getDescendantsOfKind(ts_morph_1.SyntaxKind.ConditionalExpression)
.forEach((Variable) => {
Variable.getDescendantsOfKind(ts_morph_1.SyntaxKind.StringLiteral).forEach((literal) => {
const text = this.stripQuotation(literal.getText(false).trim());
if (this.haveChineseReg.test(text)) {
const targetText = replacer(text);
literal.replaceWithText(`${targetText}/* ts-morph: ${text} */`);
}
});
});
/**
* 其他的统一处理

@@ -258,0 +272,0 @@ */

2

package.json
{
"name": "linkmore-intl-generator",
"version": "0.0.10",
"version": "0.0.11",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -301,2 +301,19 @@ import fs from 'fs';

/**
* 处理三元表达式
*/
file
.getDescendantsOfKind(SyntaxKind.ConditionalExpression)
.forEach((Variable) => {
Variable.getDescendantsOfKind(SyntaxKind.StringLiteral).forEach(
(literal) => {
const text = this.stripQuotation(literal.getText(false).trim());
if (this.haveChineseReg.test(text)) {
const targetText = replacer(text);
literal.replaceWithText(`${targetText}/* ts-morph: ${text} */`);
}
}
);
});
/**
* 其他的统一处理

@@ -303,0 +320,0 @@ */

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