@capacitor-community/contacts
Advanced tools
Comparing version 1.1.1 to 1.1.3
import { WebPlugin } from '@capacitor/core'; | ||
export class ContactsPluginWeb extends WebPlugin { | ||
constructor() { | ||
super({ | ||
name: 'CapContacts', | ||
platforms: ['web'], | ||
}); | ||
super(); | ||
} | ||
async getPermissions() { | ||
throw new Error('getPermission not available'); | ||
throw this.unimplemented('getPermissions - Not implemented on web.'); | ||
} | ||
async getContacts() { | ||
throw new Error('getContacts not available'); | ||
throw this.unimplemented('getContacts - Not implemented on web.'); | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
async saveContact(_) { | ||
throw new Error('getContacts not available'); | ||
throw this.unimplemented('saveContact - Not implemented on web.'); | ||
} | ||
@@ -19,0 +16,0 @@ } |
@@ -24,16 +24,13 @@ 'use strict'; | ||
constructor() { | ||
super({ | ||
name: 'CapContacts', | ||
platforms: ['web'], | ||
}); | ||
super(); | ||
} | ||
async getPermissions() { | ||
throw new Error('getPermission not available'); | ||
throw this.unimplemented('getPermissions - Not implemented on web.'); | ||
} | ||
async getContacts() { | ||
throw new Error('getContacts not available'); | ||
throw this.unimplemented('getContacts - Not implemented on web.'); | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
async saveContact(_) { | ||
throw new Error('getContacts not available'); | ||
throw this.unimplemented('saveContact - Not implemented on web.'); | ||
} | ||
@@ -40,0 +37,0 @@ } |
@@ -21,16 +21,13 @@ var capacitorContacts = (function (exports, core) { | ||
constructor() { | ||
super({ | ||
name: 'CapContacts', | ||
platforms: ['web'], | ||
}); | ||
super(); | ||
} | ||
async getPermissions() { | ||
throw new Error('getPermission not available'); | ||
throw this.unimplemented('getPermissions - Not implemented on web.'); | ||
} | ||
async getContacts() { | ||
throw new Error('getContacts not available'); | ||
throw this.unimplemented('getContacts - Not implemented on web.'); | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
async saveContact(_) { | ||
throw new Error('getContacts not available'); | ||
throw this.unimplemented('saveContact - Not implemented on web.'); | ||
} | ||
@@ -37,0 +34,0 @@ } |
{ | ||
"name": "@capacitor-community/contacts", | ||
"version": "1.1.1", | ||
"version": "1.1.3", | ||
"description": "Contacts Plugin for Capacitor", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74487
640