Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
types: ['opened', 'synchronize']
branches: [main]
branches: [master, main]

jobs:
automated-test:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
- name: check types
run: pnpm typecheck

# - name: lint
# run: pnpm lint
- name: lint
run: pnpm lint

- name: test
run: pnpm test
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

echo "🔍 Running pre-commit checks..."

# Get list of staged files
Expand Down
2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export { davRequest, propfind, createObject, updateObject, deleteObject } from '
export { collectionQuery, supportedReportSet, isCollectionDirty, syncCollection, smartCollectionSync, } from './collection';
export { calendarQuery, calendarMultiGet, makeCalendar, fetchCalendars, fetchCalendarUserAddresses, fetchCalendarObjects, createCalendarObject, updateCalendarObject, deleteCalendarObject, syncCalendars, freeBusyQuery, } from './calendar';
export { addressBookQuery, addressBookMultiGet, fetchAddressBooks, fetchVCards, createVCard, updateVCard, deleteVCard, makeAddressBook, } from './addressBook';
export { todoQuery, todoMultiGet, fetchTodos, createTodo, updateTodo, deleteTodo, } from './todo';
export { todoQuery, todoMultiGet, fetchTodos, createTodo, updateTodo, deleteTodo } from './todo';
export { getBasicAuthHeaders, getBearerAuthHeaders, getOauthHeaders, fetchOauthTokens, refreshAccessToken, } from './util/authHelpers';
export { urlContains, urlEquals, getDAVAttribute, cleanupFalsy } from './util/requestHelpers';
export { DAVNamespace, DAVAttributeMap, DAVNamespaceShort } from './consts';
Expand Down
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsdav",
"version": "2.3.3",
"version": "2.3.4",
"description": "WebDAV, CALDAV, and CARDDAV client for Nodejs and the Browser",
"keywords": [
"dav",
Expand Down
5 changes: 1 addition & 4 deletions dist/tsdav.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -823,10 +823,7 @@ const makeAddressBook = async (params) => {
body: props
? {
mkcol: {
_attributes: getDAVAttribute([
exports.DAVNamespace.DAV,
exports.DAVNamespace.CARDDAV,
]),
_attributes: getDAVAttribute([exports.DAVNamespace.DAV, exports.DAVNamespace.CARDDAV]),
set: {
prop: props,
},
Expand Down
5 changes: 1 addition & 4 deletions dist/tsdav.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -823,10 +823,7 @@ const makeAddressBook = async (params) => {
body: props
? {
mkcol: {
_attributes: getDAVAttribute([
exports.DAVNamespace.DAV,
exports.DAVNamespace.CARDDAV,
]),
_attributes: getDAVAttribute([exports.DAVNamespace.DAV, exports.DAVNamespace.CARDDAV]),
set: {
prop: props,
},
Expand Down
5 changes: 1 addition & 4 deletions dist/tsdav.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -819,10 +819,7 @@ const makeAddressBook = async (params) => {
body: props
? {
mkcol: {
_attributes: getDAVAttribute([
DAVNamespace.DAV,
DAVNamespace.CARDDAV,
]),
_attributes: getDAVAttribute([DAVNamespace.DAV, DAVNamespace.CARDDAV]),
set: {
prop: props,
},
Expand Down
5 changes: 1 addition & 4 deletions dist/tsdav.js
Original file line number Diff line number Diff line change
Expand Up @@ -10013,10 +10013,7 @@ const makeAddressBook = async (params) => {
body: props
? {
mkcol: {
_attributes: getDAVAttribute([
DAVNamespace.DAV,
DAVNamespace.CARDDAV,
]),
_attributes: getDAVAttribute([DAVNamespace.DAV, DAVNamespace.CARDDAV]),
set: {
prop: props,
},
Expand Down
5 changes: 1 addition & 4 deletions dist/tsdav.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -819,10 +819,7 @@ const makeAddressBook = async (params) => {
body: props
? {
mkcol: {
_attributes: getDAVAttribute([
DAVNamespace.DAV,
DAVNamespace.CARDDAV,
]),
_attributes: getDAVAttribute([DAVNamespace.DAV, DAVNamespace.CARDDAV]),
set: {
prop: props,
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsdav",
"version": "2.3.3",
"version": "2.3.4",
"description": "WebDAV, CALDAV, and CARDDAV client for Nodejs and the Browser",
"keywords": [
"dav",
Expand Down
5 changes: 1 addition & 4 deletions src/addressBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,7 @@ export const makeAddressBook = async (params: {
body: props
? {
mkcol: {
_attributes: getDAVAttribute([
DAVNamespace.DAV,
DAVNamespace.CARDDAV,
]),
_attributes: getDAVAttribute([DAVNamespace.DAV, DAVNamespace.CARDDAV]),
set: {
prop: props,
},
Expand Down
4 changes: 1 addition & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,7 @@ export class DAVClient {
})(params[0]);
}

async makeAddressBook(
...params: Parameters<typeof rawMakeAddressBook>
): Promise<DAVResponse[]> {
async makeAddressBook(...params: Parameters<typeof rawMakeAddressBook>): Promise<DAVResponse[]> {
return defaultParam(rawMakeAddressBook, {
headers: this.authHeaders,
fetchOptions: this.fetchOptions,
Expand Down
9 changes: 1 addition & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,7 @@ export {
makeAddressBook,
} from './addressBook';

export {
todoQuery,
todoMultiGet,
fetchTodos,
createTodo,
updateTodo,
deleteTodo,
} from './todo';
export { todoQuery, todoMultiGet, fetchTodos, createTodo, updateTodo, deleteTodo } from './todo';

export {
getBasicAuthHeaders,
Expand Down
5 changes: 1 addition & 4 deletions src/todo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,7 @@ export const fetchTodos = async (params: {
throw new Error('cannot fetchTodos for undefined calendar');
}
throw new Error(
`calendar must have ${findMissingFieldNames(
calendar,
requiredFields,
)} before fetchTodos`,
`calendar must have ${findMissingFieldNames(calendar, requiredFields)} before fetchTodos`,
);
}

Expand Down
Loading