@bearer/functions
Bearer Functions
Last updated 20 days ago by numidiasoft .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bearer/functions 
SYNC missed versions from official npm registry.

@bearer/functions

Version npm bundle size (scoped) Downloads/week License

Usage

Creating a FetchData function

import { FetchData, TOAUTH2AuthContext } from '@bearer/functions'
import Client from './client'

export default class FunctionName extends FetchData implements FetchData<ReturnedData, any, TOAUTH2AuthContext> {
  // Uncomment the line above if you don't want your function to be called from the frontend
  // static serverSideRestricted = true

  async action(event: TFetchActionEvent<Params, TOAUTH2AuthContext>): TFetchPromise<ReturnedData> {
    // const token = event.context.auth.accessToken
    // Put your logic here
    return { data: [] }
  }
}

export type Params = {
  // name: string
}

export type ReturnedData = {
  // foo: string[]
}

Current Tags

  • 0.105.0                                ...           beta6 (5 months ago)
  • 0.113.0                                ...           buid (4 months ago)
  • 1.8.1-canary.5                                ...           canary (a month ago)
  • 1.8.3                                ...           latest (20 days ago)
  • 1.8.1                                ...           next (a month ago)
  • 0.115.1                                ...           rc (4 months ago)

141 Versions

  • 1.8.3                                ...           20 days ago
  • 1.8.2                                ...           22 days ago
  • 1.8.1                                ...           a month ago
  • 1.8.1-canary.5                                ...           a month ago
  • 1.8.1-canary.0                                ...           a month ago
  • 1.7.1-canary.4                                ...           a month ago
  • 1.7.1-canary.2                                ...           a month ago
  • 1.7.1-canary.3                                ...           a month ago
  • 1.8.0-canary.2                                ...           a month ago
  • 1.7.0                                ...           a month ago
  • 1.6.8                                ...           a month ago
  • 1.6.2                                ...           a month ago
  • 1.6.2-canary-4.1                                ...           a month ago
  • 1.6.2-canary-3.1                                ...           a month ago
  • 1.6.2-canary-2.1                                ...           a month ago
  • 1.6.2-canary-1.0                                ...           a month ago
  • 1.6.2-canary.0                                ...           a month ago
  • 1.4.2-canary.28 [deprecated]           ...           2 months ago
  • 1.4.2-canary.27 [deprecated]           ...           2 months ago
  • 1.4.2-canary.26 [deprecated]           ...           2 months ago
  • 1.4.2-canary.25 [deprecated]           ...           2 months ago
  • 1.6.1                                ...           2 months ago
  • 1.6.0                                ...           2 months ago
  • 1.4.2-canary.24 [deprecated]           ...           2 months ago
  • 1.5.0                                ...           2 months ago
  • 1.4.2-canary.18 [deprecated]           ...           2 months ago
  • 1.4.2-canary.17 [deprecated]           ...           2 months ago
  • 1.4.2-canary.16 [deprecated]           ...           2 months ago
  • 1.4.2-canary.1 [deprecated]           ...           2 months ago
  • 1.5.0-canary.2 [deprecated]           ...           2 months ago
  • 1.4.0                                ...           2 months ago
  • 1.4.0-canary.3 [deprecated]           ...           2 months ago
  • 1.3.1                                ...           3 months ago
  • 1.3.0                                ...           3 months ago
  • 1.3.0-pre.0 [deprecated]           ...           3 months ago
  • 1.3.0-style.5 [deprecated]           ...           3 months ago
  • 1.3.0-style.4 [deprecated]           ...           3 months ago
  • 1.3.0-style.3 [deprecated]           ...           3 months ago
  • 1.3.0-style.2 [deprecated]           ...           3 months ago
  • 1.3.0-patch.2                                ...           3 months ago
  • 1.3.0-patch.1                                ...           3 months ago
  • 1.3.0-alpha.1 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.40 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.39 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.38 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.37 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.36 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.35 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.34 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.33 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.32 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.31 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.30 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.29 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.28 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.27 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.26 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.25 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.24 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.23 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.22 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.20 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.19 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.18 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.17 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.16 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.15 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.14 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.13 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.12 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.11 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.10 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.9 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.8 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.7 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.6 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.5 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.4 [deprecated]           ...           3 months ago
  • 1.3.0-alpha.3 [deprecated]           ...           3 months ago
  • 1.2.1                                ...           3 months ago
  • 1.0.3                                ...           4 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
  • 0.115.1 [deprecated]           ...           4 months ago
  • 0.115.0 [deprecated]           ...           4 months ago
  • 0.114.1 [deprecated]           ...           4 months ago
  • 0.113.0 [deprecated]           ...           4 months ago
  • 0.112.0 [deprecated]           ...           4 months ago
  • 0.111.0-canary2.13 [deprecated]           ...           4 months ago
  • 0.111.0-canary.13 [deprecated]           ...           4 months ago
  • 0.111.0-canary.9 [deprecated]           ...           4 months ago
  • 0.111.0 [deprecated]           ...           4 months ago
  • 0.111.0-canary.2 [deprecated]           ...           4 months ago
  • 0.110.0 [deprecated]           ...           4 months ago
  • 0.109.0 [deprecated]           ...           5 months ago
  • 0.108.0 [deprecated]           ...           5 months ago
  • 0.107.2 [deprecated]           ...           5 months ago
  • 0.108.0-canary-x-ray.10 [deprecated]           ...           5 months ago
  • 0.107.1 [deprecated]           ...           5 months ago
  • 0.108.0-canary-xray.16 [deprecated]           ...           5 months ago
  • 0.107.0-canary-xray.8 [deprecated]           ...           5 months ago
  • 0.107.0-canary-tarik.8 [deprecated]           ...           5 months ago
  • 0.107.0-canary-tarik.7 [deprecated]           ...           5 months ago
  • 0.107.0 [deprecated]           ...           5 months ago
  • 0.106.2 [deprecated]           ...           5 months ago
  • 0.107.0-canary-tarik.6 [deprecated]           ...           5 months ago
  • 0.107.0-canary-tarik.5 [deprecated]           ...           5 months ago
  • 0.107.0-canary-tarik.3 [deprecated]           ...           5 months ago
  • 0.107.0-canary-tarik.2 [deprecated]           ...           5 months ago
  • 0.107.0-canary-tarik.1 [deprecated]           ...           5 months ago
  • 0.107.0-canary.1 [deprecated]           ...           5 months ago
  • 0.107.0-canary.0 [deprecated]           ...           5 months ago
  • 0.100.1-canary.102 [deprecated]           ...           5 months ago
  • 0.107.0-canary.6 [deprecated]           ...           5 months ago
  • 0.106.1 [deprecated]           ...           5 months ago
  • 0.106.0 [deprecated]           ...           5 months ago
  • 0.106.0-canary.15 [deprecated]           ...           5 months ago
  • 0.106.0-canary.14 [deprecated]           ...           5 months ago
  • 0.106.0-canary.13 [deprecated]           ...           5 months ago
  • 0.106.0-canary.9 [deprecated]           ...           5 months ago
  • 0.106.0-canary.5 [deprecated]           ...           5 months ago
  • 0.106.0-canary.1 [deprecated]           ...           5 months ago
  • 0.105.0 [deprecated]           ...           5 months ago
  • 0.104.0 [deprecated]           ...           5 months ago
  • 0.103.0 [deprecated]           ...           5 months ago
  • 0.102.0 [deprecated]           ...           5 months ago
  • 0.100.1-canary.53 [deprecated]           ...           5 months ago
  • 0.100.1-canary.51 [deprecated]           ...           5 months ago
  • 0.101.0 [deprecated]           ...           5 months ago
  • 0.101.0-canary.43 [deprecated]           ...           5 months ago
  • 0.100.1-canary.40 [deprecated]           ...           5 months ago
  • 0.100.1-canary.39 [deprecated]           ...           5 months ago
  • 0.100.1-canary.34 [deprecated]           ...           5 months ago
  • 0.100.1-next.40 [deprecated]           ...           5 months ago
  • 0.100.1-canary.36 [deprecated]           ...           5 months ago
  • 0.100.1-next.35 [deprecated]           ...           5 months ago
  • 0.100.1-canary.31 [deprecated]           ...           5 months ago
  • 0.100.1-next.48 [deprecated]           ...           5 months ago
  • 0.100.1-next.47 [deprecated]           ...           5 months ago
  • 0.100.0 [deprecated]           ...           5 months ago
Downloads
Today 0
This Week 0
This Month 142
Last Day 0
Last Week 0
Last Month 752
Dependencies (2)
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |