beanbagdb 0.0.5 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +9 -6
- package/dist/beanbagdb.cjs.js +153242 -0
- package/dist/beanbagdb.cjs.js.map +1 -0
- package/dist/beanbagdb.esm.js +153237 -0
- package/dist/beanbagdb.esm.js.map +1 -0
- package/package.json +14 -4
- package/rollup.config.js +47 -0
- package/src/beanbagdb.js +580 -0
- package/src/couchdb.js +11 -10
- package/src/index.js +4 -577
- package/src/pouchdb.js +13 -11
- package/src/system_schema.js +4 -8
- package/src/utils.js +40 -0
- package/test/init.test.js +19 -19
- package/test/test1.js +26 -9
- package/test/helper.js +0 -12
|
@@ -9,18 +9,21 @@ on:
|
|
|
9
9
|
jobs:
|
|
10
10
|
build:
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
|
-
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
id-token: write
|
|
13
15
|
steps:
|
|
14
16
|
# Step 1: Check out the code from the repository
|
|
15
17
|
- name: Checkout code
|
|
16
|
-
uses: actions/checkout@
|
|
18
|
+
uses: actions/checkout@v4
|
|
17
19
|
|
|
18
20
|
# Step 2: Set up Node.js environment
|
|
19
21
|
- name: Setup Node.js
|
|
20
|
-
uses: actions/setup-node@
|
|
22
|
+
uses: actions/setup-node@v4
|
|
21
23
|
with:
|
|
22
|
-
node-version: '20.17.0'
|
|
23
|
-
cache: 'npm'
|
|
24
|
+
node-version: '20.17.0'
|
|
25
|
+
cache: 'npm'
|
|
26
|
+
registry-url: 'https://registry.npmjs.org'
|
|
24
27
|
|
|
25
28
|
# Step 3: Install dependencies
|
|
26
29
|
- name: Install dependencies
|
|
@@ -32,7 +35,7 @@ jobs:
|
|
|
32
35
|
|
|
33
36
|
# Step 5: Publish to npm if tests pass
|
|
34
37
|
- name: Publish to npm
|
|
35
|
-
run: npm publish
|
|
38
|
+
run: npm publish --access public
|
|
36
39
|
env:
|
|
37
40
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
38
41
|
|