@fireproof/core 0.3.16 → 0.3.18

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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@fireproof/core",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "Realtime database for IPFS",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "dist/src/index.mjs",
7
7
  "typings": "dist/src/index.d.ts",
8
- "types": "dist/src/index.d.ts",
8
+ "types": "dist/src/index.d.ts",
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "keygen": "node scripts/keygen.js",
@@ -20,7 +20,6 @@
20
20
  "lint:fix": "standard --fix",
21
21
  "tbuild": "tsc --build",
22
22
  "build": "rollup -c"
23
-
24
23
  },
25
24
  "keywords": [
26
25
  "database",
@@ -50,9 +49,12 @@
50
49
  "multiformats": "^11.0.1",
51
50
  "node-polyfill-webpack-plugin": "^2.0.1",
52
51
  "prolly-trees": "1.0.4",
52
+ "randombytes": "^2.1.0",
53
+ "rollup-plugin-commonjs": "^10.1.0",
53
54
  "sade": "^1.8.1"
54
55
  },
55
56
  "devDependencies": {
57
+ "@rollup/plugin-node-resolve": "^15.0.2",
56
58
  "c8": "^7.12.0",
57
59
  "esbuild": "^0.17.16",
58
60
  "fake-indexeddb": "^4.0.1",
@@ -60,8 +62,11 @@
60
62
  "mocha": "^10.2.0",
61
63
  "nanoid": "^4.0.0",
62
64
  "rollup": "^3.20.2",
65
+ "rollup-plugin-auto-external": "^2.0.0",
63
66
  "rollup-plugin-dts": "^5.3.0",
64
67
  "rollup-plugin-esbuild": "^5.0.0",
68
+ "rollup-plugin-node-builtins": "^2.1.2",
69
+ "rollup-plugin-polyfill-node": "^0.12.0",
65
70
  "standard": "^17.0.0",
66
71
  "typescript": "^5.0.2",
67
72
  "webpack": "^5.78.0",
@@ -76,7 +81,8 @@
76
81
  "ignore": [
77
82
  "examples/**/*.tsx",
78
83
  "examples/**/dist",
79
- "out/**"
84
+ "out/**",
85
+ "rollup.config.js"
80
86
  ]
81
87
  },
82
88
  "repository": {
@@ -103,7 +109,7 @@
103
109
  },
104
110
  "files": [
105
111
  "src",
106
- "dist",
112
+ "dist",
107
113
  "hooks",
108
114
  "README.md"
109
115
  ],
package/src/fireproof.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import { randomBytes } from 'crypto'
2
+ import randomBytes from 'randombytes'
3
3
  import { visMerkleClock, visMerkleTree, vis, put, get, getAll, eventsSince } from './prolly.js'
4
4
  import { TransactionBlockstore, doTransaction } from './blockstore.js'
5
5
  import charwise from 'charwise'