mirror of
https://github.com/aleksejs1/obsidian-contact-sync-plugin.git
synced 2026-07-22 05:48:16 +00:00
update version & libs
This commit is contained in:
parent
ab76b6bc96
commit
1883761078
7 changed files with 338 additions and 368 deletions
|
|
@ -70,53 +70,22 @@ export default tseslint.config(
|
|||
},
|
||||
},
|
||||
rules: {
|
||||
'boundaries/entry-point': [
|
||||
'error',
|
||||
{
|
||||
default: 'allow',
|
||||
},
|
||||
],
|
||||
'boundaries/no-private': 'error',
|
||||
'boundaries/element-types': [
|
||||
'boundaries/dependencies': [
|
||||
'error',
|
||||
{
|
||||
default: 'disallow',
|
||||
rules: [
|
||||
{
|
||||
from: 'entry',
|
||||
allow: [
|
||||
'core',
|
||||
'plugin',
|
||||
'services',
|
||||
'auth',
|
||||
'types',
|
||||
'utils',
|
||||
'i18n',
|
||||
'config',
|
||||
],
|
||||
allow: ['core', 'plugin', 'services', 'auth', 'types', 'utils', 'i18n', 'config'],
|
||||
},
|
||||
{
|
||||
from: 'core',
|
||||
allow: [
|
||||
'types',
|
||||
'utils',
|
||||
'config',
|
||||
'i18n',
|
||||
'core',
|
||||
],
|
||||
allow: ['types', 'utils', 'config', 'i18n', 'core'],
|
||||
},
|
||||
{
|
||||
from: 'plugin',
|
||||
allow: [
|
||||
'core',
|
||||
'services',
|
||||
'auth',
|
||||
'types',
|
||||
'utils',
|
||||
'i18n',
|
||||
'config',
|
||||
'plugin',
|
||||
],
|
||||
allow: ['core', 'services', 'auth', 'types', 'utils', 'i18n', 'config', 'plugin'],
|
||||
},
|
||||
{
|
||||
from: 'services',
|
||||
|
|
@ -126,36 +95,13 @@ export default tseslint.config(
|
|||
from: 'auth',
|
||||
allow: ['types', 'utils', 'config', 'auth'],
|
||||
},
|
||||
{
|
||||
from: 'types',
|
||||
allow: ['types'],
|
||||
},
|
||||
{
|
||||
from: 'utils',
|
||||
allow: ['utils'],
|
||||
},
|
||||
{
|
||||
from: 'i18n',
|
||||
allow: ['i18n', 'types'],
|
||||
},
|
||||
{
|
||||
from: 'config',
|
||||
allow: ['config'],
|
||||
},
|
||||
{ from: 'types', allow: ['types'] },
|
||||
{ from: 'utils', allow: ['utils'] },
|
||||
{ from: 'i18n', allow: ['i18n', 'types'] },
|
||||
{ from: 'config', allow: ['config'] },
|
||||
{
|
||||
from: 'tests',
|
||||
allow: [
|
||||
'core',
|
||||
'plugin',
|
||||
'services',
|
||||
'auth',
|
||||
'types',
|
||||
'utils',
|
||||
'i18n',
|
||||
'config',
|
||||
'mocks',
|
||||
'tests',
|
||||
],
|
||||
allow: ['core', 'plugin', 'services', 'auth', 'types', 'utils', 'i18n', 'config', 'mocks', 'tests'],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "google-contacts",
|
||||
"name": "Google Contacts",
|
||||
"version": "1.1.11",
|
||||
"version": "1.1.12",
|
||||
"minAppVersion": "1.8.0",
|
||||
"description": "Synchronize your Google contacts with separate contact-notes",
|
||||
"author": "aleksejs1",
|
||||
|
|
|
|||
616
package-lock.json
generated
616
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "google-contacts",
|
||||
"version": "1.1.11",
|
||||
"version": "1.1.12",
|
||||
"description": "",
|
||||
"main": "rollup.config.js",
|
||||
"type": "module",
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
"dependency-cruiser": "^17.3.4",
|
||||
"eslint": "^9.25.1",
|
||||
"eslint-config-prettier": "^10.1.2",
|
||||
"eslint-plugin-boundaries": "^5.3.1",
|
||||
"eslint-plugin-boundaries": "^6.0.2",
|
||||
"husky": "^9.1.7",
|
||||
"jest": "^29.7.0",
|
||||
"lint-staged": "^15.5.1",
|
||||
|
|
@ -53,4 +53,4 @@
|
|||
"prettier --write"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ describe('ContactNoteWriter', () => {
|
|||
let fileManager: FileManager;
|
||||
|
||||
beforeEach(() => {
|
||||
vault = new Vault() as unknown as Vault;
|
||||
vault = new Vault();
|
||||
metadataCache = new MockMetadataCache() as unknown as MetadataCache;
|
||||
metadataCache.getFileCache = jest.fn();
|
||||
fileManager = {
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ describe('ContactNoteWriterUpdate', () => {
|
|||
let fileManager: FileManager;
|
||||
|
||||
beforeEach(() => {
|
||||
vault = new Vault() as unknown as Vault;
|
||||
vault = new Vault();
|
||||
// metadataCache = new MetadataCache();
|
||||
metadataCache = new MockMetadataCache() as unknown as MetadataCache;
|
||||
fileManager = {
|
||||
|
|
@ -88,7 +88,7 @@ describe('ContactNoteWriterUpdate', () => {
|
|||
resourceName: 'people/123',
|
||||
names: [{ displayName: 'Alice Smith' }],
|
||||
emailAddresses: [{ value: 'alice@example.com' }],
|
||||
} as GoogleContact,
|
||||
},
|
||||
];
|
||||
const mockLabelMap = { family: 'group1' };
|
||||
const mockNoteBody = 'This is a note body';
|
||||
|
|
@ -126,7 +126,7 @@ describe('ContactNoteWriterUpdate', () => {
|
|||
resourceName: 'people/123',
|
||||
names: [{ displayName: 'Alice Smith' }],
|
||||
emailAddresses: [{ value: 'alice@example.com' }],
|
||||
} as GoogleContact,
|
||||
},
|
||||
];
|
||||
const mockLabelMap = { family: 'group1' };
|
||||
const mockNoteBody = 'This is a note body';
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ export class ContactNoteWriter {
|
|||
): Record<string, string> {
|
||||
return Object.fromEntries(
|
||||
Object.entries(labelMap).map(([key, value]) => [value, key])
|
||||
) as Record<string, string>;
|
||||
);
|
||||
}
|
||||
|
||||
private async processContact(
|
||||
|
|
|
|||
Loading…
Reference in a new issue