🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@agoric/access-token

Package Overview
Dependencies
Maintainers
10
Versions
2835
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/access-token - npm Package Compare versions

Comparing version

to
0.4.22-dev-2fa8100.0

9

package.json
{
"name": "@agoric/access-token",
"version": "0.4.22-dev-2f3ca19.0+2f3ca19",
"version": "0.4.22-dev-2fa8100.0+2fa8100",
"description": "Persistent credentials for Agoric users, backed by a simple JSON file",

@@ -21,2 +21,3 @@ "type": "module",

"dependencies": {
"@agoric/internal": "0.3.3-dev-2fa8100.0+2fa8100",
"n-readlines": "^1.0.0",

@@ -30,3 +31,3 @@ "proper-lockfile": "^4.1.2",

"ava": "^5.3.0",
"c8": "^10.1.2"
"c8": "^10.1.3"
},

@@ -46,5 +47,5 @@ "publishConfig": {

"typeCoverage": {
"atLeast": 83.97
"atLeast": 83.57
},
"gitHead": "2f3ca19719d5380ee5ec9a8d41dfd2292e579c64"
"gitHead": "2fa8100b71ce02fe19dbf5b77436d843fb929b71"
}
import test from 'ava';
import { tmpDir } from './tmp.js';
import tmp from 'tmp';
import { makeTempDirFactory } from '@agoric/internal/src/tmpDir.js';
import {

@@ -10,2 +11,4 @@ initJSONStore,

const tmpDir = makeTempDirFactory(tmp);
function testStorage(t, storage) {

@@ -43,3 +46,3 @@ t.falsy(storage.has('missing'));

test('storageInFile', async t => {
const [dbDir, cleanup] = await tmpDir('testdb');
const [dbDir, cleanup] = tmpDir('testdb');
t.teardown(cleanup);

@@ -46,0 +49,0 @@ t.is(isJSONStore(dbDir), false);

import test from 'ava';
import { tmpDir } from './tmp.js';
import tmp from 'tmp';
import { makeTempDirFactory } from '@agoric/internal/src/tmpDir.js';
import { getAccessToken } from '../src/access-token.js';
const tmpDir = makeTempDirFactory(tmp);
test('access tokens', async t => {
const [sharedStateDir, removeCallback] = await tmpDir('access-token-test');
const [sharedStateDir, removeCallback] = tmpDir('access-token-test');
const [a, b, c] = await Promise.all([

@@ -9,0 +11,0 @@ getAccessToken(1234, sharedStateDir),