@duckduckgo/autoconsent 10.9.0 → 10.11.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ # v10.11.0 (Mon Jul 01 2024)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Add zentralruf-de [#461](https://github.com/duckduckgo/autoconsent/pull/461) ([@seia-soto](https://github.com/seia-soto))
6
+
7
+ #### 🐛 Bug Fix
8
+
9
+ - Monthly Coverage data update [#454](https://github.com/duckduckgo/autoconsent/pull/454) (dax@duckduckgo.com [@sammacbeth](https://github.com/sammacbeth))
10
+
11
+ #### Authors: 3
12
+
13
+ - Dax the Deployer (dax@duckduckgo.com)
14
+ - HoJeong Go ([@seia-soto](https://github.com/seia-soto))
15
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
16
+
17
+ ---
18
+
19
+ # v10.10.0 (Mon Jun 03 2024)
20
+
21
+ #### 🚀 Enhancement
22
+
23
+ - Fix some reload loops on www.fidelity.co.uk and other Ensighten sites [#452](https://github.com/duckduckgo/autoconsent/pull/452) ([@muodov](https://github.com/muodov))
24
+ - Add a rule for ebay [#449](https://github.com/duckduckgo/autoconsent/pull/449) ([@muodov](https://github.com/muodov))
25
+
26
+ #### Authors: 1
27
+
28
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
29
+
30
+ ---
31
+
1
32
  # v10.9.0 (Tue May 28 2024)
2
33
 
3
34
  #### 🚀 Enhancement
@@ -107,17 +107,21 @@ const asanaCreateTasks = async () => {
107
107
  .replace(/<(h3|h4)>/ig, '<h2>').replace(/<\/(h3|h4)>/ig, '</h2>')
108
108
 
109
109
  // Updating task and moving to Release section...
110
- console.error(JSON.stringify(updatedNotes))
111
- await asana.tasks.updateTask(new_task.gid, {html_notes: updatedNotes})
110
+ console.error('Updated notes:', JSON.stringify(updatedNotes))
111
+ let updateTaskResult = await asana.tasks.updateTask(new_task.gid, {html_notes: updatedNotes})
112
+ console.error('updateTaskResult:', updateTaskResult)
112
113
 
113
- await asana.tasks.addProjectForTask(new_task.gid, { project: autoconsentProjectGid, section: releaseSectionGid })
114
+ const addProjectResult = await asana.tasks.addProjectForTask(new_task.gid, { project: autoconsentProjectGid, section: releaseSectionGid })
115
+ console.error('addProjectResult:', addProjectResult)
114
116
 
115
117
  // The duplicateTask job returns when the task itself has been duplicated, ignoring the subtasks.
116
118
  // We want to wait that the job completes so that we can fetch all the subtasks correctly.
117
- await waitForJobSuccess(duplicateTaskJobGid)
119
+ const duplicateTaskResult = await waitForJobSuccess(duplicateTaskJobGid)
120
+ console.error('duplicateTaskResult:', duplicateTaskResult)
118
121
 
119
122
  // Getting subtasks...
120
123
  const { data: subtasks } = await asana.tasks.getSubtasksForTask(new_task.gid, {opt_fields: 'name,html_notes,permalink_url'})
124
+ console.error('subtasks:', subtasks)
121
125
 
122
126
  // Updating subtasks and moving to appropriate projects...
123
127
  for (const subtask of subtasks) {
@@ -138,9 +142,11 @@ const asanaCreateTasks = async () => {
138
142
  html_notes.replace(projectExtractorRegex, '')
139
143
  .replace('[[notes]]', updatedNotes)
140
144
 
145
+ console.error(`updating task ${gid} with name ${newName} and notes ${subtaskNotes}`)
141
146
  await asana.tasks.updateTask(gid, { name: newName, html_notes: subtaskNotes })
142
147
 
143
148
  if (extractedProjects) {
149
+ console.error(`adding projects ${extractedProjects} to task ${gid}`)
144
150
  for (const projectGidAndSection of extractedProjects.split(',')) {
145
151
  const [projectGid, sectionGid] = projectGidAndSection.split(':')
146
152
  await asana.tasks.addProjectForTask(gid, { project: projectGid, section: sectionGid })
@@ -153,7 +159,9 @@ const asanaCreateTasks = async () => {
153
159
  .replace('<li>[[pr_url]]</li>', version)
154
160
  .replace('<li>[[extra_content]]</li>', version)
155
161
 
156
- await asana.tasks.updateTask(new_task.gid, {html_notes: finalNotes})
162
+ console.error('finalNotes:', finalNotes)
163
+ updateTaskResult = await asana.tasks.updateTask(new_task.gid, {html_notes: finalNotes})
164
+ console.error('updateTaskResult:', updateTaskResult)
157
165
 
158
166
  const jsonString = JSON.stringify(platforms)
159
167
  return {stdout: jsonString}
@@ -161,6 +169,8 @@ const asanaCreateTasks = async () => {
161
169
 
162
170
  asanaCreateTasks()
163
171
  .then((result) => {
172
+ // this log is for visibility in Github web interface
173
+ console.error('stage result:', result.stdout)
164
174
  // The log is needed to read the value from the bash context
165
175
  console.log(result.stdout)
166
176
  })