New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@capacitor/share

Package Overview
Dependencies
Maintainers
7
Versions
709
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor/share - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.1.1](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/share@0.1.0...@capacitor/share@0.1.1) (2020-10-30)
**Note:** Version bump only for package @capacitor/share
# 0.1.0 (2020-10-12)

@@ -8,0 +16,0 @@

1

dist/esm/definitions.js

@@ -0,1 +1,2 @@

export {};
//# sourceMappingURL=definitions.js.map

4

dist/esm/web.js

@@ -1,2 +0,2 @@

import { UnsupportedBrowserException, WebPlugin } from '@capacitor/core';
import { WebPlugin } from '@capacitor/core';
export class ShareWeb extends WebPlugin {

@@ -8,3 +8,3 @@ constructor() {

if (typeof navigator === 'undefined' || !navigator.share) {
throw new UnsupportedBrowserException('Share API not available in this browser');
throw this.unavailable('Share API not available in this browser');
}

@@ -11,0 +11,0 @@ await navigator.share({

@@ -10,3 +10,3 @@ var capacitorShare = (function (exports, core) {

if (typeof navigator === 'undefined' || !navigator.share) {
throw new core.UnsupportedBrowserException('Share API not available in this browser');
throw this.unavailable('Share API not available in this browser');
}

@@ -31,2 +31,4 @@ await navigator.share({

Object.defineProperty(exports, '__esModule', { value: true });
return exports;

@@ -33,0 +35,0 @@

{
"name": "@capacitor/share",
"version": "0.1.0",
"version": "0.1.1",
"description": "The Share API provides methods for sharing content in any sharing-enabled apps the user may have installed.",

@@ -39,10 +39,10 @@ "main": "dist/plugin.js",

"devDependencies": {
"@capacitor/android": "^3.0.0-alpha.5",
"@capacitor/core": "^3.0.0-alpha.5",
"@capacitor/docgen": "^0.0.6",
"@capacitor/ios": "^3.0.0-alpha.5",
"@capacitor/android": "^3.0.0-alpha.6",
"@capacitor/core": "^3.0.0-alpha.6",
"@capacitor/docgen": "^0.0.10",
"@capacitor/ios": "^3.0.0-alpha.6",
"@ionic/eslint-config": "^0.3.0",
"@ionic/prettier-config": "^1.0.0",
"@ionic/prettier-config": "^1.0.1",
"@ionic/swiftlint-config": "^1.1.2",
"@rollup/plugin-node-resolve": "^8.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"eslint": "^7.11.0",

@@ -54,6 +54,6 @@ "prettier": "^2.0.5",

"swiftlint": "^1.0.1",
"typescript": "~3.9.7"
"typescript": "~4.0.3"
},
"peerDependencies": {
"@capacitor/core": "^3.0.0-alpha.5"
"@capacitor/core": "^3.0.0-alpha.6"
},

@@ -76,3 +76,3 @@ "prettier": "@ionic/prettier-config",

},
"gitHead": "e2856f5d9d77b26a16ebe2a5e5708832a7ff063b"
"gitHead": "3ab6d510236e3f595945c7de16ca731323cc295b"
}

@@ -5,10 +5,20 @@ # @capacitor/share

<!--DOCGEN_INDEX_START-->
## Install
```bash
npm install @capacitor/share
npx cap sync
```
## API
<docgen-index>
* [`share(...)`](#share)
* [Interfaces](#interfaces)
<!--DOCGEN_INDEX_END-->
<!--DOCGEN_API_START-->
</docgen-index>
<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
## API

@@ -23,5 +33,5 @@ ### share(...)

| Param | Type |
| ----------- | ----------------------------------------------------- |
| **options** | <code><a href="#shareoptions">ShareOptions</a></code> |
| Param | Type |
| ------------- | ----------------------------------------------------- |
| **`options`** | <code><a href="#shareoptions">ShareOptions</a></code> |

@@ -54,3 +64,2 @@ **Returns:** <code>Promise&lt;<a href="#shareresult">ShareResult</a>&gt;</code>

<!--DOCGEN_API_END-->
</docgen-api>

@@ -1,2 +0,2 @@

import { UnsupportedBrowserException, WebPlugin } from '@capacitor/core';
import { WebPlugin } from '@capacitor/core';

@@ -12,5 +12,3 @@ import type { ShareOptions, SharePlugin, ShareResult } from './definitions';

if (typeof navigator === 'undefined' || !navigator.share) {
throw new UnsupportedBrowserException(
'Share API not available in this browser',
);
throw this.unavailable('Share API not available in this browser');
}

@@ -17,0 +15,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc