garlandtools-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -52,6 +52,9 @@ "use strict"; | ||
var lang = "en"; | ||
/** | ||
* Set the language used by the library. | ||
* @param {"en" | "de" | "fr" | "ja"} newLang | ||
*/ | ||
function setLang(newLang) { | ||
lang = newLang; | ||
console.log(achievementURL()); | ||
} | ||
@@ -58,0 +61,0 @@ |
{ | ||
"name": "garlandtools-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An unofficial Node wrapper for the Garland Tools API.", | ||
"main": "build/garlandtools-api.js", | ||
"files": [ | ||
"build/**/*" | ||
], | ||
"scripts": { | ||
@@ -25,14 +22,14 @@ "babel": "babel", | ||
"dependencies": { | ||
"bent": "^7.3.7", | ||
"cron": "^1.7.1", | ||
"regenerator-runtime": "^0.13.5" | ||
"bent": "^7.3.12", | ||
"cron": "^1.8.2", | ||
"regenerator-runtime": "^0.13.7" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.10.5", | ||
"@babel/core": "^7.10.5", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/register": "^7.10.5", | ||
"mocha": "^8.0.1", | ||
"@babel/cli": "^7.13.10", | ||
"@babel/core": "^7.13.10", | ||
"@babel/preset-env": "^7.13.10", | ||
"@babel/register": "^7.13.8", | ||
"mocha": "^8.3.1", | ||
"should": "^13.2.3" | ||
} | ||
} |
@@ -38,6 +38,5 @@ # garlandtools-api | ||
// Wrapper properties | ||
lang; // The lanugage. By default, this is "en". | ||
clearCache(); // Clears the wrapper's cache manually. | ||
setCacheTime(time); // Set the time to store data in milliseconds. By default, this is 1 hour. | ||
setLang(lang); // Set the lanugage. By default, this is "en". | ||
// API accessors | ||
@@ -44,0 +43,0 @@ achievement(id); // An achievement's JSON listing. |
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
68624
8
1851
0
71
Updatedbent@^7.3.12
Updatedcron@^1.8.2
Updatedregenerator-runtime@^0.13.7