You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: address security vulnerabilities and upgrade Nuxt to v3.17.2 (#49)
- Upgrade Nuxt from older version to ^3.17.2 to address security alerts
- Update all dependencies to latest versions for security patches
- Add ESLint and Prettier configuration for code quality
- Refactor module to use ES modules syntax
- Update Node.js and Yarn versions in .tool-versions
- Add unit tests for getGCLID function
- Update CI workflow with new Playwright and Node versions
- Improve code formatting and consistency across all files
- Update documentation (CODE_OF_CONDUCT.md, CONTRIBUTING.md)
Addresses Dependabot security alerts by upgrading vulnerable dependencies
Co-authored-by: Sadjow Leão <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+29-30Lines changed: 29 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,8 +45,8 @@ npm install --save-dev nuxt-utm
45
45
46
46
```js
47
47
exportdefaultdefineNuxtConfig({
48
-
modules: ["nuxt-utm"],
49
-
});
48
+
modules: ['nuxt-utm'],
49
+
})
50
50
```
51
51
52
52
That's it! You can now use Nuxt UTM in your Nuxt app ✨
@@ -57,7 +57,7 @@ You can use `useNuxtUTM` composable to access the UTM object:
57
57
58
58
```vue
59
59
<script setup>
60
-
const utm = useNuxtUTM();
60
+
const utm = useNuxtUTM()
61
61
</script>
62
62
```
63
63
@@ -67,42 +67,41 @@ Alternatively, you can get the UTM information through the Nuxt App with the fol
67
67
68
68
```vue
69
69
<script setup>
70
-
import { useNuxtApp } from "nuxt/app";
71
-
const { $utm } = useNuxtApp();
70
+
import { useNuxtApp } from 'nuxt/app'
71
+
const { $utm } = useNuxtApp()
72
72
</script>
73
73
```
74
74
75
75
Regardless of the option you choose to use the module, the `utm' object will contain an array of UTM parameters collected for use. Each element in the array represents a set of UTM parameters collected from a URL visit, and is structured as follows
76
76
77
-
```js
77
+
```json
78
78
[
79
79
{
80
-
timestamp:"2023-11-02T10:11:17.219Z", // Timestamp of the URL visit
81
-
utmParams: {
82
-
utm_source:"test_source",
83
-
utm_medium:"test_medium",
84
-
utm_campaign:"test_campaign",
85
-
utm_term:"test_term",
86
-
utm_content:"test_content",
87
-
},
88
-
additionalInfo: {
89
-
referrer:"http://referrer.url", // Referrer URL
90
-
userAgent:"User-Agent String", // User-Agent string of the browser
91
-
language:"en-GB", // Language setting of the browser
92
-
landingPageUrl:"http://landingpage.url", // The URL of the page the user landed on
93
-
screen: {
94
-
width:1728,
95
-
height:1117,
96
-
},
80
+
"timestamp": "2023-11-02T10:11:17.219Z",
81
+
"utmParams": {
82
+
"utm_source": "test_source",
83
+
"utm_medium": "test_medium",
84
+
"utm_campaign": "test_campaign",
85
+
"utm_term": "test_term",
86
+
"utm_content": "test_content"
97
87
},
98
-
sessionId:"beai1gx7dg",
99
-
gclidParams: {
100
-
gclid:"CjklsefawEFRfeafads",
101
-
gad_source:"1",
88
+
"additionalInfo": {
89
+
"referrer": "http://referrer.url",
90
+
"userAgent": "User-Agent String",
91
+
"language": "en-GB",
92
+
"landingPageUrl": "http://landingpage.url",
93
+
"screen": {
94
+
"width": 1728,
95
+
"height": 1117
96
+
}
102
97
},
103
-
}, // the first item in this array is the most recent
104
-
// ... old items
105
-
];
98
+
"sessionId": "beai1gx7dg",
99
+
"gclidParams": {
100
+
"gclid": "CjklsefawEFRfeafads",
101
+
"gad_source": "1"
102
+
}
103
+
}
104
+
]
106
105
```
107
106
108
107
In the `$utm` array, each entry provides a `timestamp` indicating when the UTM parameters were collected, the `utmParams` object containing the UTM parameters, `additionalInfo` object with more context about the visit, and a `sessionId` to differentiate visits in different sessions.
Copy file name to clipboardExpand all lines: docs/CODE_OF_CONDUCT.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,12 @@
1
1
# Code of conduct
2
2
3
3
## Purpose
4
+
4
5
The primary goal of this Code of Conduct is to enable an open and welcoming environment. We pledge to making participation in our project a harassment-free experience for everyone, regardless of gender, sexual
5
6
orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof).
6
7
7
8
## General recommendations
9
+
8
10
Examples of behavior that contributes to creating a positive environment include:
9
11
10
12
- Using welcoming and inclusive language
@@ -22,14 +24,17 @@ Examples of unacceptable behavior by participants include:
22
24
- Other conduct which could reasonably be considered inappropriate in a professional setting
23
25
24
26
## Maintainer responsibilities
27
+
25
28
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
26
29
27
30
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
28
31
29
32
## Scope
33
+
30
34
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
31
35
32
36
## Enforcement
37
+
33
38
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [[email protected]](mailto:[email protected]). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
34
39
35
40
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
2
1
Thank you for your interest in contributing to this Stack Builders' library. To contribute, please take our [Code of Conduct](CODE_OF_CONDUCT.md) into account, along with the following recommendations:
3
2
4
3
- When submitting contributions to this repository, please make sure to discuss with the maintainer(s) the change you want to make. You can do this through an issue, or by sending an email to [[email protected]](mailto:[email protected])
@@ -10,4 +9,5 @@ Thank you for your interest in contributing to this Stack Builders' library. To
10
9
- Once you get an approval from any of the maintainers, please merge your Pull Request. Keep in mind that some of our Stack Builders repositories use CI/CD pipelines, so you will need to pass all of the required checks before merging.
11
10
12
11
## Getting help
12
+
13
13
Contact any of our current maintainers, or send us an email at [[email protected]](mailto:[email protected]) for more information. Thank you for contributing!
0 commit comments