0.1.4 • Published 1 year ago

pocketbase-taro v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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')
0.1.2

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago