capacitor-media-metadata
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"api": { | ||
"name": "MediaMetadataPlugin", | ||
"slug": "mediametadataplugin", | ||
"name": "CapacitorMediaMetadataPlugin", | ||
"slug": "capacitormediametadataplugin", | ||
"docs": "", | ||
@@ -6,0 +6,0 @@ "tags": [], |
@@ -1,2 +0,2 @@ | ||
export interface MediaMetadataPlugin { | ||
export interface CapacitorMediaMetadataPlugin { | ||
/** | ||
@@ -3,0 +3,0 @@ * get metadata for audio files |
@@ -1,4 +0,4 @@ | ||
import type { MediaMetadataPlugin } from './definitions'; | ||
declare const mediaMetadata: MediaMetadataPlugin; | ||
import type { CapacitorMediaMetadataPlugin } from './definitions'; | ||
declare const CapacitorMediaMetadata: CapacitorMediaMetadataPlugin; | ||
export * from './definitions'; | ||
export { mediaMetadata }; | ||
export { CapacitorMediaMetadata }; |
import { registerPlugin } from '@capacitor/core'; | ||
const mediaMetadata = registerPlugin('capacitorMediaMetadata', { | ||
web: () => import('./web').then(m => new m.MediaMetadataWeb()), | ||
const CapacitorMediaMetadata = registerPlugin('CapacitorMediaMetadata', { | ||
web: () => import('./web').then(m => new m.CapacitorMediaMetadataWeb()), | ||
}); | ||
export * from './definitions'; | ||
export { mediaMetadata }; | ||
export { CapacitorMediaMetadata }; | ||
//# sourceMappingURL=index.js.map |
import { WebPlugin } from '@capacitor/core'; | ||
import type { MediaMetadataPlugin, Metadata, MetadataOptions } from './definitions'; | ||
export declare class MediaMetadataWeb extends WebPlugin implements MediaMetadataPlugin { | ||
import type { CapacitorMediaMetadataPlugin, Metadata, MetadataOptions } from './definitions'; | ||
export declare class CapacitorMediaMetadataWeb extends WebPlugin implements CapacitorMediaMetadataPlugin { | ||
metadata(options: MetadataOptions): Promise<Metadata>; | ||
} |
import { WebPlugin } from '@capacitor/core'; | ||
export class MediaMetadataWeb extends WebPlugin { | ||
export class CapacitorMediaMetadataWeb extends WebPlugin { | ||
async metadata(options) { | ||
@@ -4,0 +4,0 @@ console.log('ECHO', options); |
@@ -7,7 +7,7 @@ 'use strict'; | ||
const mediaMetadata = core.registerPlugin('capacitorMediaMetadata', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.MediaMetadataWeb()), | ||
const CapacitorMediaMetadata = core.registerPlugin('CapacitorMediaMetadata', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.CapacitorMediaMetadataWeb()), | ||
}); | ||
class MediaMetadataWeb extends core.WebPlugin { | ||
class CapacitorMediaMetadataWeb extends core.WebPlugin { | ||
async metadata(options) { | ||
@@ -21,6 +21,6 @@ console.log('ECHO', options); | ||
__proto__: null, | ||
MediaMetadataWeb: MediaMetadataWeb | ||
CapacitorMediaMetadataWeb: CapacitorMediaMetadataWeb | ||
}); | ||
exports.mediaMetadata = mediaMetadata; | ||
exports.CapacitorMediaMetadata = CapacitorMediaMetadata; | ||
//# sourceMappingURL=plugin.cjs.js.map |
@@ -1,9 +0,9 @@ | ||
var capacitorMediaMetadata = (function (exports, core) { | ||
var capacitorCapacitorMediaMetadata = (function (exports, core) { | ||
'use strict'; | ||
const mediaMetadata = core.registerPlugin('capacitorMediaMetadata', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.MediaMetadataWeb()), | ||
const CapacitorMediaMetadata = core.registerPlugin('CapacitorMediaMetadata', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.CapacitorMediaMetadataWeb()), | ||
}); | ||
class MediaMetadataWeb extends core.WebPlugin { | ||
class CapacitorMediaMetadataWeb extends core.WebPlugin { | ||
async metadata(options) { | ||
@@ -17,6 +17,6 @@ console.log('ECHO', options); | ||
__proto__: null, | ||
MediaMetadataWeb: MediaMetadataWeb | ||
CapacitorMediaMetadataWeb: CapacitorMediaMetadataWeb | ||
}); | ||
exports.mediaMetadata = mediaMetadata; | ||
exports.CapacitorMediaMetadata = CapacitorMediaMetadata; | ||
@@ -23,0 +23,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
{ | ||
"name": "capacitor-media-metadata", | ||
"version": "0.0.1", | ||
"description": "Media metadata reader", | ||
"keywords": [ | ||
"android", | ||
"metadata", | ||
"capacitor", | ||
"plugin", | ||
"native" | ||
], | ||
"version": "0.0.2", | ||
"description": "Media metadata reader for Android", | ||
"main": "dist/plugin.cjs.js", | ||
@@ -21,3 +14,3 @@ "module": "dist/esm/index.js", | ||
"ios/Plugin/", | ||
"MediaMetadata.podspec" | ||
"CapacitorMediaMetadata.podspec" | ||
], | ||
@@ -28,7 +21,14 @@ "author": "Zéfling", | ||
"type": "git", | ||
"url": "http://git.ikilote.net/zaide/capacitor-mediatags.git" | ||
"url": "git+https://git.ikilote.net/zaide/capacitor-media-metadata.git" | ||
}, | ||
"bugs": { | ||
"url": "https://git.ikilote.net/zaide/capacitor-mediatags/-/issues" | ||
"url": "https://git.ikilote.net/zaide/capacitor-media-metadata/-/issues" | ||
}, | ||
"keywords": [ | ||
"android", | ||
"metadata", | ||
"capacitor", | ||
"plugin", | ||
"native" | ||
], | ||
"scripts": { | ||
@@ -44,3 +44,3 @@ "verify": "npm run verify:ios && npm run verify:android && npm run verify:web", | ||
"swiftlint": "node-swiftlint", | ||
"docgen": "docgen --api MediaMetadataPlugin --output-readme README.md --output-json dist/docs.json", | ||
"docgen": "docgen --api CapacitorMediaMetadataPlugin --output-readme README.md --output-json dist/docs.json", | ||
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js", | ||
@@ -47,0 +47,0 @@ "clean": "rimraf ./dist", |
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
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
32857
32