@agoric/access-token 0.4.22-other-dev-fbe72e7.0.fbe72e7 → 0.4.22-other-dev-d15096d.0.d15096d
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 +3 -3
- package/src/json-store.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/access-token",
|
|
3
|
-
"version": "0.4.22-other-dev-
|
|
3
|
+
"version": "0.4.22-other-dev-d15096d.0.d15096d",
|
|
4
4
|
"description": "Persistent credentials for Agoric users, backed by a simple JSON file",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/access-token.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"lint:types": "yarn run -T tsc"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@agoric/internal": "0.3.3-other-dev-
|
|
21
|
+
"@agoric/internal": "0.3.3-other-dev-d15096d.0.d15096d",
|
|
22
22
|
"n-readlines": "^1.0.0",
|
|
23
23
|
"proper-lockfile": "^4.1.2",
|
|
24
24
|
"tmp": "^0.2.1"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": "^20.9 || ^22.11"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "d15096dc4ff8b96e9b6cd11954c20d3a9efbb393"
|
|
51
51
|
}
|
package/src/json-store.js
CHANGED
|
@@ -5,6 +5,10 @@ import process from 'process';
|
|
|
5
5
|
import lockfile from 'proper-lockfile';
|
|
6
6
|
import Readlines from 'n-readlines';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* @import {LockOptions} from 'proper-lockfile';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
// TODO: Update this when we make a breaking change.
|
|
9
13
|
// const DATA_FILE = 'data.jsonlines';
|
|
10
14
|
//
|
|
@@ -159,7 +163,7 @@ function makeStorageInMemory() {
|
|
|
159
163
|
* @param {string} [dirPath] Path to a directory in which database files may be kept, or
|
|
160
164
|
* null.
|
|
161
165
|
* @param {boolean} [forceReset] If true, initialize the database to an empty state
|
|
162
|
-
* @param {null |
|
|
166
|
+
* @param {null | LockOptions['retries']} [lockRetries] If null, do not lock the database.
|
|
163
167
|
*
|
|
164
168
|
* @returns {Promise<{
|
|
165
169
|
* storage: JSONStore, // a storage API object to load and store data
|