1.0.3 • Published 2 years ago

@shadom/portal-plugin-http v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Portal plugin jsonp

A portal makes Ajax requests

Installation

npm install @shadom/portal-plugin-http

Usage

import { HttpPortal } from '@shadom/portal-plugin-http';
import { define, use, transmit } from '@shadom/portal';

define({
    name: 'myPortal',
    type: 'HttpPortal',
    // A portal config
});

transmit('myPortal', {
    // payloads
}).then((res) => {
    // do sth.
});

See Portal defination for detail about defining a portal instance

1.0.2-1

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago