coffeeinabit 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/linkedin_automation.js +5 -22
- package/package.json +1 -1
- package/reference.html +7394 -0
- package/tools/get_profile.js +6 -8
package/linkedin_automation.js
CHANGED
|
@@ -565,26 +565,9 @@ export class LinkedInAutomation {
|
|
|
565
565
|
const actions = responseData.actions || [];
|
|
566
566
|
console.log('[LinkedInAutomation] Received actions from backend:', actions.length, 'actions');
|
|
567
567
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
const
|
|
571
|
-
if (!executionTime) {
|
|
572
|
-
return true;
|
|
573
|
-
}
|
|
574
|
-
const parsedExecution = new Date(executionTime);
|
|
575
|
-
if (Number.isNaN(parsedExecution.getTime())) {
|
|
576
|
-
return true;
|
|
577
|
-
}
|
|
578
|
-
if (parsedExecution.getTime() > now) {
|
|
579
|
-
console.log(`[LinkedInAutomation] Action ${action.action_id} scheduled for future at ${executionTime}, skipping for now`);
|
|
580
|
-
return false;
|
|
581
|
-
}
|
|
582
|
-
return true;
|
|
583
|
-
});
|
|
584
|
-
|
|
585
|
-
if (readyActions.length > 0) {
|
|
586
|
-
console.log('[LinkedInAutomation] Processing actions:', readyActions.map(a => `${a.action} (${a.action_id})`).join(', '));
|
|
587
|
-
for (const action of readyActions) {
|
|
568
|
+
if (actions.length > 0) {
|
|
569
|
+
console.log('[LinkedInAutomation] Processing actions:', actions.map(a => `${a.action} (${a.action_id})`).join(', '));
|
|
570
|
+
for (const action of actions) {
|
|
588
571
|
await this.executeAction(action);
|
|
589
572
|
}
|
|
590
573
|
} else if (actions.length > 0) {
|
|
@@ -865,7 +848,7 @@ export class LinkedInAutomation {
|
|
|
865
848
|
await this.enablePerformanceMode();
|
|
866
849
|
this.page = await this.context.newPage();
|
|
867
850
|
resetHumanMouseState();
|
|
868
|
-
await this.installCursorHighlight();
|
|
851
|
+
// await this.installCursorHighlight();
|
|
869
852
|
|
|
870
853
|
console.log('[LinkedInAutomation] Checking if user is already authenticated...');
|
|
871
854
|
|
|
@@ -913,7 +896,7 @@ export class LinkedInAutomation {
|
|
|
913
896
|
await this.enablePerformanceMode();
|
|
914
897
|
this.page = await this.context.newPage();
|
|
915
898
|
resetHumanMouseState();
|
|
916
|
-
await this.installCursorHighlight();
|
|
899
|
+
// await this.installCursorHighlight();
|
|
917
900
|
|
|
918
901
|
await safeGoto(this.page, currentUrl, {
|
|
919
902
|
waitUntil: 'domcontentloaded',
|