pocketbase-taro
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

pocketbase-taro

PocketBase JavaScript SDK for Taro

Installation

# npm
npm install pocketbase-taro
# yarn
yarn add pocketbase-taro
# pnpm
pnpm add pocketbase-taro

Due to the utilization of ES6 syntax in the PocketBase SDK, the following options need to be added:

# project.config.json

{
  "setting": {
+    "es6": true,
+    "enhance": true,
  },
}

For projects that use the @tarojs/plugin-http plugin, you'll need to add the following options:

# config/index.ts

plugins: [
  ['@tarojs/plugin-http', {
+    disabledFormData: false,
+    disabledBlob: false,
     // other options...
  }],
]

Usage

- import PocketBase from 'pocketbase'
+ import PocketBase from 'pocketbase-taro'

const pb = new PocketBase('http://127.0.0.1:8090')

Readme

Keywords

Package Sidebar

Install

npm i pocketbase-taro

Weekly Downloads

9

Version

0.1.4

License

MIT

Unpacked Size

11.5 kB

Total Files

6

Last publish

Collaborators

  • kong-dev