@kubun/plugin-connector 0.11.0 → 0.12.0

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.
Files changed (2) hide show
  1. package/lib/write-grants.js +2 -1
  2. package/package.json +28 -28
@@ -116,7 +116,8 @@ async function revokeCapsSubsetOf(delegationStore, grantor, audience, allowed) {
116
116
  try {
117
117
  const verified = await verifyToken(token);
118
118
  payload = verified.payload;
119
- } catch (_error) {
119
+ } catch {
120
+ // biome-ignore lint/style/useErrorCause: GraphQLError
120
121
  throw new GraphQLError('write-capability grant failed signature verification', {
121
122
  extensions: {
122
123
  code: 'CONNECTOR_WRITE_GRANT_INVALID'
package/package.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
2
  "name": "@kubun/plugin-connector",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "license": "see LICENSE.md",
5
+ "sideEffects": false,
5
6
  "type": "module",
6
- "main": "lib/index.js",
7
- "types": "lib/index.d.ts",
8
7
  "exports": {
9
8
  ".": "./lib/index.js"
10
9
  },
10
+ "main": "lib/index.js",
11
+ "types": "lib/index.d.ts",
11
12
  "files": [
12
13
  "lib/*",
13
14
  "LICENSE.md"
14
15
  ],
15
- "sideEffects": false,
16
16
  "dependencies": {
17
- "@kokuin/capability": "^0.1.0",
18
- "@kokuin/token": "^0.1.1",
17
+ "@kokuin/capability": "^0.2.1",
18
+ "@kokuin/token": "^0.3.0",
19
19
  "@noble/hashes": "^2.2.0",
20
- "@sozai/async": "^0.1.0",
21
- "@sozai/codec": "^0.1.0",
22
- "@sozai/event": "^0.1.0",
23
- "@sozai/generator": "^0.1.0",
20
+ "@sozai/async": "^0.2.1",
21
+ "@sozai/codec": "^0.4.0",
22
+ "@sozai/event": "^0.1.3",
23
+ "@sozai/generator": "^0.2.0",
24
24
  "@sozai/runtime": "^0.1.0",
25
25
  "graphql": "^16.14.2",
26
26
  "graphql-scalars": "^1.25.0",
27
- "kysely": "^0.29.2",
28
- "@kubun/db": "^0.11.0",
29
- "@kubun/engine": "^0.11.0",
30
- "@kubun/hlc": "^0.11.0",
31
- "@kubun/connector": "^0.11.0",
32
- "@kubun/store-connector": "^0.11.0",
33
- "@kubun/store-graph": "^0.11.0",
34
- "@kubun/graphql": "^0.11.0",
35
- "@kubun/store-delegation": "^0.11.0",
36
- "@kubun/id": "^0.11.0",
37
- "@kubun/protocol": "^0.11.0",
38
- "@kubun/logger": "^0.11.0"
27
+ "kysely": "^0.29.4",
28
+ "@kubun/engine": "^0.12.0",
29
+ "@kubun/db": "^0.12.0",
30
+ "@kubun/graphql": "^0.12.0",
31
+ "@kubun/id": "^0.12.0",
32
+ "@kubun/protocol": "^0.12.0",
33
+ "@kubun/store-graph": "^0.12.0",
34
+ "@kubun/logger": "^0.12.0",
35
+ "@kubun/hlc": "^0.12.0",
36
+ "@kubun/store-delegation": "^0.12.0",
37
+ "@kubun/connector": "^0.12.0",
38
+ "@kubun/store-connector": "^0.12.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@testcontainers/postgresql": "^12.0.4",
41
+ "@testcontainers/postgresql": "^12.1.0",
42
42
  "get-port": "^7.2.0",
43
- "@kubun/db-postgres": "^0.11.0",
44
- "@kubun/test-utils": "^0.11.0"
43
+ "@kubun/db-postgres": "^0.12.0",
44
+ "@kubun/test-utils": "^0.12.0"
45
45
  },
46
46
  "scripts": {
47
+ "build": "pnpm run build:clean && pnpm run build:js && pnpm run build:types",
47
48
  "build:clean": "del lib",
48
49
  "build:js": "swc src -d ./lib --config-file ../../node_modules/@kigu/dev/swc.json --strip-leading-paths",
49
50
  "build:types": "tsc --emitDeclarationOnly --skipLibCheck",
50
- "build": "pnpm run build:clean && pnpm run build:js && pnpm run build:types",
51
+ "test": "pnpm run test:types && pnpm run test:unit",
51
52
  "test:types": "tsc --noEmit -p tsconfig.test.json",
52
- "test:unit": "vitest run",
53
- "test": "pnpm run test:types && pnpm run test:unit"
53
+ "test:unit": "vitest run"
54
54
  }
55
55
  }