Compare commits

..

No commits in common. "main" and "v0.0.1" have entirely different histories.
main ... v0.0.1

3 changed files with 2 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "agrarmonitorlib",
"version": "1.0.2",
"version": "1.0.0",
"description": "Node.js library for Agrarmonitor",
"main": "src/index.js",
"scripts": {

View File

@ -27,7 +27,6 @@ class Config {
return CookieJar.fromJSON(data);
}
} catch (e) {
console.log("fehler beim laden der cookies:", e)
// Fehler beim Laden, leere Jar zurückgeben
}
return new CookieJar();

View File

@ -13,9 +13,6 @@ const { JSDOM } = require('jsdom');
async function registrieren(config, agrarmonitorId, pcName) {
const cookieJar = config.cookieJar;
// Cookie-Jar Inhalt loggen
console.log('🍪 CookieJar Inhalt:', JSON.stringify(cookieJar.toJSON(), null, 2));
try {
if (!agrarmonitorId || !pcName) {
console.error('❌ AgrarmonitorID oder PC-Name fehlt');
@ -53,7 +50,7 @@ async function registrieren(config, agrarmonitorId, pcName) {
name: pcName,
nonce: nonce
};
console.log(`📦 Registrierungsdaten: ${JSON.stringify(postRegister)}`);
const payload = JSON.stringify(postRegister);
const registerResponse = await axios.post(