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

@ddict/translate

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ddict/translate - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

package.json
{
"name": "@ddict/translate",
"version": "0.0.8",
"version": "0.0.9",
"description": "",

@@ -5,0 +5,0 @@ "main": "src",

@@ -104,3 +104,3 @@ export default {

function reviseTranslation(googleData, target, text) {
if (!target || typeof target !== 'string' || target.length !== 2) {
if (!target || typeof target !== 'string' || target.length < 2) {
throw new Error('Invalid input format: target code language')

@@ -107,0 +107,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