Socket
Socket
Sign inDemoInstall

combinedtranslate

Package Overview
Dependencies
162
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

3

dist/functions/getLanguageByCode.js

@@ -8,4 +8,3 @@ import languages from "../tools/languages.js";

export default function getLanguageByCode(code) {
if (typeof code !== "string")
throw new Error("Can't find language by non-string values.");
if (typeof code !== "string") return null;
return (

@@ -12,0 +11,0 @@ languages.find(

@@ -8,4 +8,3 @@ import languages from "../tools/languages.js";

export default function getLanguageByCode(language) {
if (typeof language !== "string")
throw new Error("Can't find language by non-string values.");
if (typeof language !== "string") return null;
return (

@@ -12,0 +11,0 @@ languages.find(

{
"name": "combinedtranslate",
"version": "0.1.0",
"version": "0.1.1",
"description": "A translate package that combines multiple API's and packages.",
"main": "dist/main.js",
"scripts": {
"build": "tsc && npx prettier --write ."
"build": "tsc && npx prettier --write .",
"dev": "nodemon test/main.js"
},

@@ -9,0 +10,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc