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

@liquid-state/docviewer

Package Overview
Dependencies
Maintainers
5
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liquid-state/docviewer - npm Package Compare versions

Comparing version 0.0.7 to 0.1.0

android/src/main/java/com/liquidstate/capacitor/plugins/docviewer/DocviewerPlugin.kt

5

dist/esm/definitions.d.ts

@@ -1,6 +0,1 @@

declare module '@capacitor/core' {
interface PluginRegistry {
Docviewer: DocviewerPlugin;
}
}
export interface DocviewerPlugin {

@@ -7,0 +2,0 @@ echo(options: {

1

dist/esm/definitions.js

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

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

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

import type { DocviewerPlugin } from './definitions';
declare const Docviewer: DocviewerPlugin;
export * from './definitions';
export * from './web';
export { Docviewer };

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

export * from './web';
import { registerPlugin } from '@capacitor/core';
const Docviewer = registerPlugin('Docviewer', {
web: () => import('./web').then(m => new m.DocviewerWeb()),
});
export * from './definitions';
export { Docviewer };
//# sourceMappingURL=index.js.map
import { WebPlugin } from '@capacitor/core';
import { DocviewerPlugin } from './definitions';
import type { DocviewerPlugin } from './definitions';
export declare class DocviewerWeb extends WebPlugin implements DocviewerPlugin {
constructor();
echo(options: {

@@ -25,3 +24,1 @@ value: string;

}
declare const Docviewer: DocviewerWeb;
export { Docviewer };

@@ -1,41 +0,16 @@

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
import { WebPlugin } from '@capacitor/core';
export class DocviewerWeb extends WebPlugin {
constructor() {
super({
name: 'Docviewer',
platforms: ['web'],
});
async echo(options) {
console.log('ECHO', options);
return options;
}
echo(options) {
return __awaiter(this, void 0, void 0, function* () {
console.log('ECHO', options);
return options;
});
async launchNamedDocument(options) {
console.log('launchDocument', options);
return { viewer_id: "-1" };
}
launchNamedDocument(options) {
return __awaiter(this, void 0, void 0, function* () {
console.log('launchDocument', options);
return { viewer_id: "-1" };
});
async launchDocument(options) {
console.log('launchDocument', options);
return { viewer_id: "-1" };
}
launchDocument(options) {
return __awaiter(this, void 0, void 0, function* () {
console.log('launchDocument', options);
return { viewer_id: "-1" };
});
}
}
const Docviewer = new DocviewerWeb();
export { Docviewer };
import { registerWebPlugin } from '@capacitor/core';
registerWebPlugin(Docviewer);
//# sourceMappingURL=web.js.map

@@ -1,44 +0,29 @@

var capacitorPlugin = (function (exports, core) {
var capacitorDocviewer = (function (exports, core) {
'use strict';
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
const Docviewer = core.registerPlugin('Docviewer', {
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.DocviewerWeb()),
});
class DocviewerWeb extends core.WebPlugin {
constructor() {
super({
name: 'Docviewer',
platforms: ['web'],
});
async echo(options) {
console.log('ECHO', options);
return options;
}
echo(options) {
return __awaiter(this, void 0, void 0, function* () {
console.log('ECHO', options);
return options;
});
async launchNamedDocument(options) {
console.log('launchDocument', options);
return { viewer_id: "-1" };
}
launchNamedDocument(options) {
return __awaiter(this, void 0, void 0, function* () {
console.log('launchDocument', options);
return { viewer_id: "-1" };
});
async launchDocument(options) {
console.log('launchDocument', options);
return { viewer_id: "-1" };
}
launchDocument(options) {
return __awaiter(this, void 0, void 0, function* () {
console.log('launchDocument', options);
return { viewer_id: "-1" };
});
}
}
const Docviewer = new DocviewerWeb();
core.registerWebPlugin(Docviewer);
var web = /*#__PURE__*/Object.freeze({
__proto__: null,
DocviewerWeb: DocviewerWeb
});
exports.Docviewer = Docviewer;
exports.DocviewerWeb = DocviewerWeb;

@@ -45,0 +30,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

{
"name": "@liquid-state/docviewer",
"version": "0.0.7",
"version": "0.1.0",
"description": "Plugin to launch and run the Liquid State Document Viewer",

@@ -8,7 +8,15 @@ "main": "dist/plugin.js",

"types": "dist/esm/index.d.ts",
"unpkg": "dist/plugin.js",
"scripts": {
"lint": "npm run prettier -- --check && npm run swiftlint -- lint",
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..",
"verify:android": "cd android && ./gradlew clean build test && cd ..",
"verify:web": "npm run build",
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- autocorrect --format",
"eslint": "eslint . --ext ts",
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
"swiftlint": "node-swiftlint",
"build": "npm run clean && tsc && rollup -c rollup.config.js",
"docgen": "docgen --api DocviewerPlugin --output-readme README.md --output-json dist/docs.json",
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
"clean": "rimraf ./dist",

@@ -21,22 +29,25 @@ "watch": "tsc --watch",

"devDependencies": {
"@capacitor/android": "^2.4.6",
"@capacitor/core": "^2.4.6",
"@capacitor/ios": "^2.4.6",
"@ionic/prettier-config": "^1.0.0",
"@ionic/swiftlint-config": "^1.0.0",
"@rollup/plugin-node-resolve": "^8.1.0",
"prettier": "^2.0.5",
"prettier-plugin-java": "^0.8.0",
"rimraf": "^3.0.0",
"rollup": "^2.21.0",
"@capacitor/android": "^3.0.0",
"@capacitor/core": "^3.0.0",
"@capacitor/docgen": "^0.0.10",
"@capacitor/ios": "^3.0.0",
"@ionic/eslint-config": "^0.3.0",
"@ionic/prettier-config": "^1.0.1",
"@ionic/swiftlint-config": "^1.1.2",
"eslint": "^7.11.0",
"prettier": "~2.2.0",
"prettier-plugin-java": "~1.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.32.0",
"swiftlint": "^1.0.1",
"typescript": "~3.8.3"
"typescript": "~4.0.3"
},
"peerDependencies": {
"@capacitor/core": "^2.4.6"
"@capacitor/core": "^3.0.0"
},
"files": [
"dist/",
"ios/",
"android/",
"ios/Plugin/",
"android/src/main/",
"android/build.gradle",
"LiquidStateDocviewer.podspec"

@@ -61,3 +72,8 @@ ],

"bugs": {},
"dependencies": {}
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"dependencies": {
"@capacitor/cli": "^3.0.0"
}
}

@@ -1,3 +0,69 @@

**How to use this plugin**
# @liquid-state/docviewer
See repo
Liquid State Docviewer Plugin
## Install
```bash
npm install @liquid-state/docviewer
npx cap sync
```
## API
<docgen-index>
* [`echo(...)`](#echo)
* [`launchNamedDocument(...)`](#launchnameddocument)
* [`launchDocument(...)`](#launchdocument)
</docgen-index>
<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
### echo(...)
```typescript
echo(options: { value: string; }) => any
```
| Param | Type |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: string; }</code> |
**Returns:** <code>any</code>
--------------------
### launchNamedDocument(...)
```typescript
launchNamedDocument(options: { name: string; page_slug?: string; config?: {}; }) => any
```
| Param | Type |
| ------------- | --------------------------------------------------------------- |
| **`options`** | <code>{ name: string; page_slug?: string; config?: {}; }</code> |
**Returns:** <code>any</code>
--------------------
### launchDocument(...)
```typescript
launchDocument(options: { url: string; page_slug?: string; config?: {}; }) => any
```
| Param | Type |
| ------------- | -------------------------------------------------------------- |
| **`options`** | <code>{ url: string; page_slug?: string; config?: {}; }</code> |
**Returns:** <code>any</code>
--------------------
</docgen-api>

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

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