combinedtranslate
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -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": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15
0
38796
820
6