summaryrefslogtreecommitdiffstats
path: root/src/services
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2021-08-14 01:01:52 +0000
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-08-18 14:03:45 +0200
commite939943bcd14411ce486339e9d61a6c0fffb3e71 (patch)
tree75c9fa2e687cb2883b453f619a0748e9049a516b /src/services
parentce45a8cf86a5c3aaf52734fa1a3e0eb9e84aafdf (diff)
Bump @nextcloud/eslint-config from 6.0.0 to 6.1.0
Bumps [@nextcloud/eslint-config](https://github.com/nextcloud/eslint-config) from 6.0.0 to 6.1.0. - [Release notes](https://github.com/nextcloud/eslint-config/releases) - [Changelog](https://github.com/nextcloud/eslint-config/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/eslint-config/compare/v6.0.0...v6.1.0) --- updated-dependencies: - dependency-name: "@nextcloud/eslint-config" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src/services')
-rw-r--r--src/services/appendContactToGroup.js1
-rw-r--r--src/services/cdav.js3
-rw-r--r--src/services/parseVcf.js4
-rw-r--r--src/services/updateDesignSet.js15
-rw-r--r--src/services/validate.js3
5 files changed, 16 insertions, 10 deletions
diff --git a/src/services/appendContactToGroup.js b/src/services/appendContactToGroup.js
index b00cecc5..6e520426 100644
--- a/src/services/appendContactToGroup.js
+++ b/src/services/appendContactToGroup.js
@@ -23,6 +23,7 @@ import axios from '@nextcloud/axios'
/**
* Append a group to a contact
+ *
* @param {Contact} contact the contact model
* @param {string} groupName the group name
*/
diff --git a/src/services/cdav.js b/src/services/cdav.js
index 7e0fae6c..8450736f 100644
--- a/src/services/cdav.js
+++ b/src/services/cdav.js
@@ -24,6 +24,9 @@ import DavClient from 'cdav-library'
import { generateRemoteUrl } from '@nextcloud/router'
import { getRequestToken } from '@nextcloud/auth'
+/**
+ *
+ */
function xhrProvider() {
const headers = {
'X-Requested-With': 'XMLHttpRequest',
diff --git a/src/services/parseVcf.js b/src/services/parseVcf.js
index 9d2701bb..2ab0d045 100644
--- a/src/services/parseVcf.js
+++ b/src/services/parseVcf.js
@@ -28,8 +28,8 @@ import Store from '../store/index'
* and return a list of contacts
*
* @param {string} data The vcf data
- * @param {Object} addressbook the addressbook to add to
- * @returns {Contact[]}
+ * @param {object} addressbook the addressbook to add to
+ * @return {Contact[]}
*/
export default function parseVcf(data, addressbook) {
const regexp = /BEGIN:VCARD[\s\S]*?END:VCARD/mgi
diff --git a/src/services/updateDesignSet.js b/src/services/updateDesignSet.js
index 33093f8f..ee62e91b 100644
--- a/src/services/updateDesignSet.js
+++ b/src/services/updateDesignSet.js
@@ -2,6 +2,7 @@
* @copyright Copyright (c) 2020 Christian Kraus <hanzi@hanzi.cc>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
+ *
* @author Christian Kraus <hanzi@hanzi.cc>
*
* @license GNU AGPL version 3 or any later version
@@ -28,8 +29,7 @@ import ICAL from 'ical.js'
* by Nextcloud Server) that prevents saving vCards with this parameters.
*
* @link https://github.com/nextcloud/contacts/pull/1393#issuecomment-570945735
- *
- * @returns {Boolean} Whether or not the design set has been altered.
+ * @return {boolean} Whether or not the design set has been altered.
*/
const removePhoneNumberValueType = () => {
if (ICAL.design.vcard3.property.tel) {
@@ -47,9 +47,8 @@ const removePhoneNumberValueType = () => {
* add them to the ical.js design set.
*
* @link https://github.com/nextcloud/contacts/issues/42
- *
* @param {Array} vCard The ical.js vCard
- * @returns {Boolean} Whether or not the design set has been altered.
+ * @return {boolean} Whether or not the design set has been altered.
*/
const addGroupedProperties = vCard => {
let madeChanges = false
@@ -68,7 +67,7 @@ const addGroupedProperties = vCard => {
* Check whether the ical.js design sets need updating (and if so, do it)
*
* @param {Array} vCard The ical.js vCard
- * @returns {boolean} Whether or not the design set has been altered.
+ * @return {boolean} Whether or not the design set has been altered.
*/
export default function(vCard) {
let madeChanges = false
@@ -80,9 +79,9 @@ export default function(vCard) {
}
/**
- * @param {String} original Name of the property whose settings should be copied
- * @param {String} alias Name of the new property
- * @returns {boolean} Whether or not the design set has been altered.
+ * @param {string} original Name of the property whose settings should be copied
+ * @param {string} alias Name of the new property
+ * @return {boolean} Whether or not the design set has been altered.
*/
export function setPropertyAlias(original, alias) {
let madeChanges = false
diff --git a/src/services/validate.js b/src/services/validate.js
index 2b554a3d..1bac5613 100644
--- a/src/services/validate.js
+++ b/src/services/validate.js
@@ -23,6 +23,9 @@
import Contact from '../models/contact'
import checks from './checks/'
+/**
+ * @param contact
+ */
export default function(contact) {
let result = false
if (contact instanceof Contact) {