@capacitor/browser
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [0.2.0](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/browser@0.1.0...@capacitor/browser@0.2.0) (2020-12-02) | ||
**Note:** Version bump only for package @capacitor/browser | ||
# 0.1.0 (2020-10-30) | ||
@@ -8,0 +16,0 @@ |
import type { PluginListenerHandle } from '@capacitor/core'; | ||
declare module '@capacitor/core' { | ||
interface PluginRegistry { | ||
Browser: BrowserPlugin; | ||
} | ||
} | ||
export interface BrowserPlugin { | ||
@@ -8,0 +3,0 @@ /** |
@@ -1,10 +0,6 @@ | ||
import { Plugins, registerPlugin } from '@capacitor/core'; | ||
import { BrowserWeb } from './web'; | ||
const implementations = { | ||
android: Plugins.Browser, | ||
ios: Plugins.Browser, | ||
web: new BrowserWeb(), | ||
}; | ||
const Browser = registerPlugin('Browser', implementations).getImplementation(); | ||
import { registerPlugin } from '@capacitor/core'; | ||
const Browser = registerPlugin('Browser', { | ||
web: () => import('./web').then(m => new m.BrowserWeb()), | ||
}); | ||
export { Browser }; | ||
//# sourceMappingURL=index.js.map |
import { WebPlugin } from '@capacitor/core'; | ||
export class BrowserWeb extends WebPlugin { | ||
constructor() { | ||
super({ name: 'Browser' }); | ||
super(); | ||
this._lastWindow = null; | ||
@@ -6,0 +6,0 @@ } |
var capacitorBrowser = (function (exports, core) { | ||
'use strict'; | ||
const Browser = core.registerPlugin('Browser', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.BrowserWeb()), | ||
}); | ||
class BrowserWeb extends core.WebPlugin { | ||
constructor() { | ||
super({ name: 'Browser' }); | ||
super(); | ||
this._lastWindow = null; | ||
@@ -25,12 +29,11 @@ } | ||
} | ||
const Browser = new BrowserWeb(); | ||
const Browser$1 = new BrowserWeb(); | ||
const implementations = { | ||
android: core.Plugins.Browser, | ||
ios: core.Plugins.Browser, | ||
web: new BrowserWeb(), | ||
}; | ||
const Browser$1 = core.registerPlugin('Browser', implementations).getImplementation(); | ||
var web = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
BrowserWeb: BrowserWeb, | ||
Browser: Browser$1 | ||
}); | ||
exports.Browser = Browser$1; | ||
exports.Browser = Browser; | ||
@@ -37,0 +40,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
{ | ||
"name": "@capacitor/browser", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "The Browser API provides the ability to open an in-app browser and subscribe to browser events.", | ||
"main": "dist/plugin.js", | ||
"module": "dist/esm/index.js", | ||
"main": "dist/esm/index.js", | ||
"types": "dist/esm/index.d.ts", | ||
"unpkg": "dist/plugin.js", | ||
"files": [ | ||
"android/src/main/", | ||
"android/build.gradle", | ||
"dist/", | ||
"ios/Plugin/", | ||
"CapacitorBrowser.podspec" | ||
], | ||
"author": "Ionic <hi@ionicframework.com>", | ||
@@ -39,13 +46,12 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@capacitor/android": "^3.0.0-alpha.6", | ||
"@capacitor/core": "^3.0.0-alpha.6", | ||
"@capacitor/android": "^3.0.0-alpha.7", | ||
"@capacitor/core": "^3.0.0-alpha.7", | ||
"@capacitor/docgen": "^0.0.10", | ||
"@capacitor/ios": "^3.0.0-alpha.6", | ||
"@capacitor/ios": "^3.0.0-alpha.7", | ||
"@ionic/eslint-config": "^0.3.0", | ||
"@ionic/prettier-config": "^1.0.1", | ||
"@ionic/prettier-config": "~1.0.1", | ||
"@ionic/swiftlint-config": "^1.1.2", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"eslint": "^7.11.0", | ||
"prettier": "^2.0.5", | ||
"prettier-plugin-java": "^0.8.3", | ||
"prettier": "~2.2.0", | ||
"prettier-plugin-java": "~1.0.0", | ||
"rimraf": "^3.0.0", | ||
@@ -75,3 +81,3 @@ "rollup": "^2.29.0", | ||
}, | ||
"gitHead": "3ab6d510236e3f595945c7de16ca731323cc295b" | ||
"gitHead": "78c1981920988ec84c17bbc61b1da1df9743571c" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
14
0
0
38067
27
619