@heimdallr-sdk/history
TypeScript icon, indicating that this package has built-in type declarations

0.0.19 • Public • Published

@heimdallr-sdk/history

Capture route changes, record from and to and report

Usage

cdn

<script src="[history-dist]/history.iife.js"></script>
<script>
    window.__HEIMDALLR_OPTIONS__ = {
        dsn: {
            host: 'localhost:8888',
            init: '/project/init',
            upload: '/log/upload'
        },
        app: {
            name: 'playgroundAPP',
            leader: 'test',
            desc: 'test proj'
        },
        plugins: [
            HEIMDALLR_HISTORY(),
        ]
    };
</script>
<script async src="/browser-dist/browser.iife.js"></script>

npm

import heimdallr from "@heimdallr-sdk/browser";
import historyPlugin from "@heimdallr-sdk/history";
heimdallr({
    dsn: {
        host: 'localhost:8888',
        init: '/project/init',
        upload: '/log/upload'
    },
    app: {
        name: 'playgroundAPP',
        leader: 'test',
        desc: 'test proj'
    },
    plugins: [
        historyPlugin(),
    ]
});

上报数据

日志上报

字段名称 描述
from 跳转前地址
to 目标地址

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.191latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.191
0.0.180
0.0.171
0.0.160
0.0.150
0.0.140
0.0.130
0.0.121
0.0.110
0.0.100
0.0.91
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20

Package Sidebar

Install

npm i @heimdallr-sdk/history

Weekly Downloads

4

Version

0.0.19

License

MIT

Unpacked Size

11.5 kB

Total Files

7

Last publish

Collaborators

  • h_lianfa