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

i18next-scanner-typescript

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-scanner-typescript - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

dist-node/index.js

@@ -13,3 +13,3 @@ 'use strict';

if (!options.extensions) {
options.extensions = ["tsx"];
options.extensions = [".tsx"];
}

@@ -24,4 +24,8 @@

content = typescript.transpileModule(content, {
compilerOptions: {
target: 'es2018'
},
fileName: path.basename(file.path)
}).outputText;
parser.parseTransFromString(content);
parser.parseFuncFromString(content);

@@ -28,0 +32,0 @@ }

@@ -11,3 +11,3 @@ var fs = require("fs");

if (!options.extensions) {
options.extensions = ["tsx"];
options.extensions = [".tsx"];
}

@@ -22,4 +22,8 @@

content = typescript.transpileModule(content, {
compilerOptions: {
target: 'es2018'
},
fileName: path.basename(file.path)
}).outputText;
parser.parseTransFromString(content);
parser.parseFuncFromString(content);

@@ -26,0 +30,0 @@ }

2

package.json
{
"name": "i18next-scanner-typescript",
"description": "i18next-scanner Typescript transform",
"version": "1.0.1",
"version": "1.0.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "esnext": "dist-src/index.js",

@@ -5,2 +5,10 @@ ## i18next-scanner-typescript

## Install
```
yarn add -D i18next-scanner-typescript
```
## Usage

@@ -12,7 +20,10 @@

module.exports = {
trans: {
component: "Trans"
},
// your i18next-scanner config
// ...
transform: typescriptTransform({ extensions: ["tsx"] })
transform: typescriptTransform({ extensions: [".tsx"] })
};
```
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