@atproto/identity 0.5.0-next.0 → 0.5.1
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/CHANGELOG.md +17 -9
- package/dist/did/atproto-data.d.ts.map +1 -1
- package/dist/did/base-resolver.d.ts.map +1 -1
- package/dist/did/base-resolver.js.map +1 -1
- package/dist/did/did-resolver.d.ts.map +1 -1
- package/dist/did/memory-cache.d.ts.map +1 -1
- package/dist/did/plc-resolver.d.ts.map +1 -1
- package/dist/did/plc-resolver.js.map +1 -1
- package/dist/did/web-resolver.d.ts.map +1 -1
- package/dist/did/web-resolver.js.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/handle/index.d.ts.map +1 -1
- package/dist/handle/index.js.map +1 -1
- package/dist/id-resolver.d.ts.map +1 -1
- package/dist/id-resolver.js.map +1 -1
- package/jest.config.cjs +9 -2
- package/package.json +5 -6
- package/tsconfig.build.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.json +2 -2
- package/tsconfig.tests.json +2 -2
- package/test.log +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
# @atproto/identity
|
|
2
2
|
|
|
3
|
-
## 0.5.
|
|
3
|
+
## 0.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4967](https://github.com/bluesky-social/atproto/pull/4967) [`9fc720c`](https://github.com/bluesky-social/atproto/commit/9fc720ce75f3ee88a5e48a9be919b07c7647f6f5) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Use TypeScript 7 to build package
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`9fc720c`](https://github.com/bluesky-social/atproto/commit/9fc720ce75f3ee88a5e48a9be919b07c7647f6f5)]:
|
|
10
|
+
- @atproto/common-web@0.5.1
|
|
11
|
+
- @atproto/crypto@0.5.1
|
|
12
|
+
|
|
13
|
+
## 0.5.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
6
16
|
|
|
7
|
-
- [#4929](https://github.com/bluesky-social/atproto/pull/4929) [`
|
|
17
|
+
- [#4929](https://github.com/bluesky-social/atproto/pull/4929) [`f01c59f`](https://github.com/bluesky-social/atproto/commit/f01c59f5bd3f75fb8b47a9eecd4858b84033fb7c) Thanks [@devinivy](https://github.com/devinivy)! - **BREAKING:** Drop support for Node.js 18 and 20. Node.js 22 is now the minimum supported version. Docker images now use Node.js 24.
|
|
8
18
|
|
|
9
|
-
- [#4943](https://github.com/bluesky-social/atproto/pull/4943) [`
|
|
19
|
+
- [#4943](https://github.com/bluesky-social/atproto/pull/4943) [`c459153`](https://github.com/bluesky-social/atproto/commit/c459153395a30ce89e050892c8fab7dc98e019b9) Thanks [@devinivy](https://github.com/devinivy)! - **BREAKING:** Convert to pure ESM. All packages now ship `"type": "module"` with ES module output and Node16 module resolution.
|
|
10
20
|
|
|
11
21
|
Node.js 22's `require()` compatibility layer can still load these packages in CommonJS code.
|
|
12
22
|
|
|
13
|
-
- [#4930](https://github.com/bluesky-social/atproto/pull/4930) [`
|
|
14
|
-
|
|
15
|
-
Internal: tsconfig `moduleResolution: "node"` is silenced via `ignoreDeprecations: "6.0"` for now; the proper migration to `node16`/`bundler` resolution is deferred.
|
|
23
|
+
- [#4930](https://github.com/bluesky-social/atproto/pull/4930) [`908bece`](https://github.com/bluesky-social/atproto/commit/908bece169258bff5ad121e5eec157d6ded6f705) Thanks [@devinivy](https://github.com/devinivy)! - Build with TypeScript 6.0.
|
|
16
24
|
|
|
17
25
|
### Patch Changes
|
|
18
26
|
|
|
19
|
-
- Updated dependencies [[`
|
|
20
|
-
- @atproto/common-web@0.5.0
|
|
21
|
-
- @atproto/crypto@0.5.0
|
|
27
|
+
- Updated dependencies [[`f01c59f`](https://github.com/bluesky-social/atproto/commit/f01c59f5bd3f75fb8b47a9eecd4858b84033fb7c), [`c459153`](https://github.com/bluesky-social/atproto/commit/c459153395a30ce89e050892c8fab7dc98e019b9), [`908bece`](https://github.com/bluesky-social/atproto/commit/908bece169258bff5ad121e5eec157d6ded6f705)]:
|
|
28
|
+
- @atproto/common-web@0.5.0
|
|
29
|
+
- @atproto/crypto@0.5.0
|
|
22
30
|
|
|
23
31
|
## 0.4.12
|
|
24
32
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atproto-data.d.ts","sourceRoot":"","sources":["../../src/did/atproto-data.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,cAAc,EAEf,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEtD,OAAO,EACL,MAAM,EACN,kBAAkB,IAAI,UAAU,EAChC,SAAS,EACT,gBAAgB,IAAI,QAAQ,EAC5B,cAAc,IAAI,MAAM,GACzB,CAAA;AAED,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"atproto-data.d.ts","sourceRoot":"","sources":["../../src/did/atproto-data.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,cAAc,EAEf,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEtD,OAAO,EACL,MAAM,EACN,kBAAkB,IAAI,UAAU,EAChC,SAAS,EACT,gBAAgB,IAAI,QAAQ,EAC5B,cAAc,IAAI,MAAM,GACzB,CAAA;AAED,eAAO,MAAM,MAAM,QAAS,WAAW,KAAG,MAAM,GAAG,SAIlD,CAAA;AAED,eAAO,MAAM,sBAAsB,QAAS;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,EAAE,MAAM,CAAA;CAC3B,KAAG,MAAM,GAAG,SAYZ,CAAA;AAED,eAAO,MAAM,sBAAsB,QAC5B,WAAW,KACf,OAAO,CAAC,WAAW,CAQrB,CAAA;AAED,eAAO,MAAM,iBAAiB,QAAS,WAAW,KAAG,WAepD,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAS,WAAW,KAAG,MAMnD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-resolver.d.ts","sourceRoot":"","sources":["../../src/did/base-resolver.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EACX,WAAW,EACX,QAAQ,EACR,WAAW,EAEZ,MAAM,aAAa,CAAA;AAGpB,8BAAsB,YAAY;IACb,KAAK,CAAC,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"base-resolver.d.ts","sourceRoot":"","sources":["../../src/did/base-resolver.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EACX,WAAW,EACX,QAAQ,EACR,WAAW,EAEZ,MAAM,aAAa,CAAA;AAGpB,8BAAsB,YAAY;IACb,KAAK,CAAC,EAAE,QAAQ;IAAnC,YAAmB,KAAK,CAAC,EAAE,QAAQ,YAAA,EAAI;IAEvC,QAAQ,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAA;IAE7D,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,WAAW,CAQrD;IAEK,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAI7D;IAEK,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAMvE;IAEK,OAAO,CACX,GAAG,EAAE,MAAM,EACX,YAAY,UAAQ,GACnB,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAmB7B;IAEK,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,UAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,CAM3E;IAEK,kBAAkB,CACtB,GAAG,EAAE,MAAM,EACX,YAAY,UAAQ,GACnB,OAAO,CAAC,WAAW,CAAC,CAGtB;IAEK,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,UAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAO1E;IAEK,eAAe,CACnB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,UAAU,EACf,YAAY,UAAQ,GACnB,OAAO,CAAC,OAAO,CAAC,CAGlB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-resolver.js","sourceRoot":"","sources":["../../src/did/base-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAA;AAChF,OAAO,EAKL,WAAW,GACZ,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAEhD,MAAM,OAAgB,YAAY;IAChC,YAAmB,KAAgB;
|
|
1
|
+
{"version":3,"file":"base-resolver.js","sourceRoot":"","sources":["../../src/did/base-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAA;AAChF,OAAO,EAKL,WAAW,GACZ,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAEhD,MAAM,OAAgB,YAAY;IAChC,YAAmB,KAAgB;qBAAhB,KAAK;IAAc,CAAC;IAIvC,cAAc,CAAC,GAAW,EAAE,GAAY;QACtC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,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M,UAAU,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,YAAY,CAAC,CAAA;QAClE,OAAO,MAAM,CAAC,eAAe,CAAC,UAAU,EAAE,IAAI,EAAE,GAAG,CAAC,CAAA;IACtD,CAAC;CACF","sourcesContent":["import { check } from '@atproto/common-web'\nimport * as crypto from '@atproto/crypto'\nimport { DidNotFoundError, PoorlyFormattedDidDocumentError } from '../errors.js'\nimport {\n AtprotoData,\n CacheResult,\n DidCache,\n DidDocument,\n didDocument,\n} from '../types.js'\nimport * as atprotoData from './atproto-data.js'\n\nexport abstract class BaseResolver {\n constructor(public cache?: DidCache) {}\n\n abstract resolveNoCheck(did: string): Promise<unknown | null>\n\n validateDidDoc(did: string, val: unknown): DidDocument {\n if (!check.is(val, didDocument)) {\n throw new PoorlyFormattedDidDocumentError(did, val)\n }\n if (val.id !== did) {\n throw new PoorlyFormattedDidDocumentError(did, val)\n }\n return val\n }\n\n async resolveNoCache(did: string): Promise<DidDocument | null> {\n const got = await this.resolveNoCheck(did)\n if (got === null) return null\n return this.validateDidDoc(did, got)\n }\n\n async refreshCache(did: string, prevResult?: CacheResult): Promise<void> {\n await this.cache?.refreshCache(\n did,\n () => this.resolveNoCache(did),\n prevResult,\n )\n }\n\n async resolve(\n did: string,\n forceRefresh = false,\n ): Promise<DidDocument | null> {\n let fromCache: CacheResult | null = null\n if (this.cache && !forceRefresh) {\n fromCache = await this.cache.checkCache(did)\n if (fromCache && !fromCache.expired) {\n if (fromCache?.stale) {\n await this.refreshCache(did, fromCache)\n }\n return fromCache.doc\n }\n }\n\n const got = await this.resolveNoCache(did)\n if (got === null) {\n await this.cache?.clearEntry(did)\n return null\n }\n await this.cache?.cacheDid(did, got, fromCache ?? undefined)\n return got\n }\n\n async ensureResolve(did: string, forceRefresh = false): Promise<DidDocument> {\n const result = await this.resolve(did, forceRefresh)\n if (result === null) {\n throw new DidNotFoundError(did)\n }\n return result\n }\n\n async resolveAtprotoData(\n did: string,\n forceRefresh = false,\n ): Promise<AtprotoData> {\n const didDocument = await this.ensureResolve(did, forceRefresh)\n return atprotoData.ensureAtpDocument(didDocument)\n }\n\n async resolveAtprotoKey(did: string, forceRefresh = false): Promise<string> {\n if (did.startsWith('did:key:')) {\n return did\n } else {\n const didDocument = await this.ensureResolve(did, forceRefresh)\n return atprotoData.ensureAtprotoKey(didDocument)\n }\n }\n\n async verifySignature(\n did: string,\n data: Uint8Array,\n sig: Uint8Array,\n forceRefresh = false,\n ): Promise<boolean> {\n const signingKey = await this.resolveAtprotoKey(did, forceRefresh)\n return crypto.verifySignature(signingKey, data, sig)\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"did-resolver.d.ts","sourceRoot":"","sources":["../../src/did/did-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAIjD,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"did-resolver.d.ts","sourceRoot":"","sources":["../../src/did/did-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAIjD,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IAElC,YAAY,IAAI,EAAE,eAAe,EAQhC;IAEK,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAclD;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-cache.d.ts","sourceRoot":"","sources":["../../src/did/memory-cache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,Q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"","sources":["../../src/did/plc-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGjD,qBAAa,cAAe,SAAQ,YAAY;IAErC,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,MAAM;IACf,KAAK,CAAC,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"plc-resolver.d.ts","sourceRoot":"","sources":["../../src/did/plc-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGjD,qBAAa,cAAe,SAAQ,YAAY;IAErC,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,MAAM;IACf,KAAK,CAAC,EAAE,QAAQ;IAHzB,YACS,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,QAAQ,YAAA,EAGxB;IAEK,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAkBlD;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plc-resolver.js","sourceRoot":"","sources":["../../src/did/plc-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAEjC,MAAM,OAAO,cAAe,SAAQ,YAAY;IAC9C,YACS,MAAc,EACd,OAAe,EACf,KAAgB;QAEvB,KAAK,CAAC,KAAK,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"plc-resolver.js","sourceRoot":"","sources":["../../src/did/plc-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAEjC,MAAM,OAAO,cAAe,SAAQ,YAAY;IAC9C,YACS,MAAc,EACd,OAAe,EACf,KAAgB;QAEvB,KAAK,CAAC,KAAK,CAAC,CAAA;sBAJL,MAAM;uBACN,OAAO;qBACP,KAAK;IAGd,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,GAAW;QAC9B,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YAC1C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,kBAAkB,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;YAC/D,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;gBAC3B,QAAQ,EAAE,OAAO;gBACjB,OAAO,EAAE,EAAE,MAAM,EAAE,0CAA0C,EAAE;gBAC/D,MAAM;aACP,CAAC,CAAA;YAEF,yDAAyD;YACzD,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG;gBAAE,OAAO,IAAI,CAAA;YAEnC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;gBACZ,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAA;YACxE,CAAC;YAED,OAAO,GAAG,CAAC,IAAI,EAAE,CAAA;QACnB,CAAC,CAAC,CAAA;IACJ,CAAC;CACF","sourcesContent":["import { DidCache } from '../types.js'\nimport { BaseResolver } from './base-resolver.js'\nimport { timed } from './util.js'\n\nexport class DidPlcResolver extends BaseResolver {\n constructor(\n public plcUrl: string,\n public timeout: number,\n public cache?: DidCache,\n ) {\n super(cache)\n }\n\n async resolveNoCheck(did: string): Promise<unknown> {\n return timed(this.timeout, async (signal) => {\n const url = new URL(`/${encodeURIComponent(did)}`, this.plcUrl)\n const res = await fetch(url, {\n redirect: 'error',\n headers: { accept: 'application/did+ld+json,application/json' },\n signal,\n })\n\n // Positively not found, versus due to e.g. network error\n if (res.status === 404) return null\n\n if (!res.ok) {\n throw Object.assign(new Error(res.statusText), { status: res.status })\n }\n\n return res.json()\n })\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-resolver.d.ts","sourceRoot":"","sources":["../../src/did/web-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGjD,eAAO,MAAM,QAAQ,0BAA0B,CAAA;AAE/C,qBAAa,cAAe,SAAQ,YAAY;IAErC,OAAO,EAAE,MAAM;IACf,KAAK,CAAC,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"web-resolver.d.ts","sourceRoot":"","sources":["../../src/did/web-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGjD,eAAO,MAAM,QAAQ,0BAA0B,CAAA;AAE/C,qBAAa,cAAe,SAAQ,YAAY;IAErC,OAAO,EAAE,MAAM;IACf,KAAK,CAAC,EAAE,QAAQ;IAFzB,YACS,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,QAAQ,YAAA,EAGxB;IAEK,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CA+BlD;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-resolver.js","sourceRoot":"","sources":["../../src/did/web-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAEjC,MAAM,C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AM,GAAG,GAAG,IAAI,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC,CAAA;QACtC,IAAI,GAAG,CAAC,QAAQ,KAAK,WAAW,EAAE,CAAC;YACjC,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAA;QACvB,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YAC1C,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;gBAC3B,MAAM;gBACN,QAAQ,EAAE,OAAO;gBACjB,OAAO,EAAE,EAAE,MAAM,EAAE,0CAA0C,EAAE;aAChE,CAAC,CAAA;YAEF,yDAAyD;YACzD,IAAI,CAAC,GAAG,CAAC,EAAE;gBAAE,OAAO,IAAI,CAAA;YAExB,OAAO,GAAG,CAAC,IAAI,EAAE,CAAA;QACnB,CAAC,CAAC,CAAA;IACJ,CAAC;CACF","sourcesContent":["import {\n PoorlyFormattedDidError,\n UnsupportedDidWebPathError,\n} from '../errors.js'\nimport { DidCache } from '../types.js'\nimport { BaseResolver } from './base-resolver.js'\nimport { timed } from './util.js'\n\nexport const DOC_PATH = '/.well-known/did.json'\n\nexport class DidWebResolver extends BaseResolver {\n constructor(\n public timeout: number,\n public cache?: DidCache,\n ) {\n super(cache)\n }\n\n async resolveNoCheck(did: string): Promise<unknown> {\n const parsedId = did.split(':').slice(2).join(':')\n const parts = parsedId.split(':').map(decodeURIComponent)\n let path: string\n if (parts.length < 1) {\n throw new PoorlyFormattedDidError(did)\n } else if (parts.length === 1) {\n path = parts[0] + DOC_PATH\n } else {\n // how we *would* resolve a did:web with path, if atproto supported it\n //path = parts.join('/') + '/did.json'\n throw new UnsupportedDidWebPathError(did)\n }\n\n const url = new URL(`https://${path}`)\n if (url.hostname === 'localhost') {\n url.protocol = 'http'\n }\n\n return timed(this.timeout, async (signal) => {\n const res = await fetch(url, {\n signal,\n redirect: 'error',\n headers: { accept: 'application/did+ld+json,application/json' },\n })\n\n // Positively not found, versus due to e.g. network error\n if (!res.ok) return null\n\n return res.json()\n })\n }\n}\n"]}
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,gBAAiB,SAAQ,KAAK;IACtB,GAAG,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,gBAAiB,SAAQ,KAAK;IACtB,GAAG,EAAE,MAAM;IAA9B,YAAmB,GAAG,EAAE,MAAM,EAE7B;CACF;AAED,qBAAa,uBAAwB,SAAQ,KAAK;IAC7B,GAAG,EAAE,MAAM;IAA9B,YAAmB,GAAG,EAAE,MAAM,EAE7B;CACF;AAED,qBAAa,yBAA0B,SAAQ,KAAK;IAC/B,GAAG,EAAE,MAAM;IAA9B,YAAmB,GAAG,EAAE,MAAM,EAE7B;CACF;AAED,qBAAa,+BAAgC,SAAQ,KAAK;IAE/C,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,OAAO;IAFrB,YACS,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,OAAO,EAGpB;CACF;AAED,qBAAa,0BAA2B,SAAQ,KAAK;IAChC,GAAG,EAAE,MAAM;IAA9B,YAAmB,GAAG,EAAE,MAAM,EAE7B;CACF"}
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,YAAmB,GAAW;QAC5B,KAAK,CAAC,0BAA0B,GAAG,EAAE,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,YAAmB,GAAW;QAC5B,KAAK,CAAC,0BAA0B,GAAG,EAAE,CAAC,CAAA;mBADrB,GAAG;IAEtB,CAAC;CACF;AAED,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAChD,YAAmB,GAAW;QAC5B,KAAK,CAAC,yBAAyB,GAAG,EAAE,CAAC,CAAA;mBADpB,GAAG;IAEtB,CAAC;CACF;AAED,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAClD,YAAmB,GAAW;QAC5B,KAAK,CAAC,2BAA2B,GAAG,EAAE,CAAC,CAAA;mBADtB,GAAG;IAEtB,CAAC;CACF;AAED,MAAM,OAAO,+BAAgC,SAAQ,KAAK;IACxD,YACS,GAAW,EACX,GAAY;QAEnB,KAAK,CAAC,kCAAkC,GAAG,EAAE,CAAC,CAAA;mBAHvC,GAAG;mBACH,GAAG;IAGZ,CAAC;CACF;AAED,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IACnD,YAAmB,GAAW;QAC5B,KAAK,CAAC,8BAA8B,GAAG,EAAE,CAAC,CAAA;mBADzB,GAAG;IAEtB,CAAC;CACF","sourcesContent":["export class DidNotFoundError extends Error {\n constructor(public did: string) {\n super(`Could not resolve DID: ${did}`)\n }\n}\n\nexport class PoorlyFormattedDidError extends Error {\n constructor(public did: string) {\n super(`Poorly formatted DID: ${did}`)\n }\n}\n\nexport class UnsupportedDidMethodError extends Error {\n constructor(public did: string) {\n super(`Unsupported DID method: ${did}`)\n }\n}\n\nexport class PoorlyFormattedDidDocumentError extends Error {\n constructor(\n public did: string,\n public doc: unknown,\n ) {\n super(`Poorly formatted DID Document: ${doc}`)\n }\n}\n\nexport class UnsupportedDidWebPathError extends Error {\n constructor(public did: string) {\n super(`Unsupported did:web paths: ${did}`)\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handle/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAKhD,qBAAa,cAAc;IAClB,OAAO,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,mBAAmB,CAAsB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handle/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAKhD,qBAAa,cAAc;IAClB,OAAO,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,mBAAmB,CAAsB;IAEjD,YAAY,IAAI,GAAE,kBAAuB,EAGxC;IAEK,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAiBzD;IAEK,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAQ5D;IAEK,WAAW,CACf,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAY7B;IAEK,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAYlE;IAED,cAAc,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,GAAG,SAAS,CAO7D;YAEa,sBAAsB;CAgBrC"}
|
package/dist/handle/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/handle/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAA;AAGxC,MAAM,SAAS,GAAG,UAAU,CAAA;AAC5B,MAAM,MAAM,GAAG,MAAM,CAAA;AAErB,MAAM,OAAO,cAAc;IAKzB,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/handle/index.ts"],"names":[],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OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAA;QAC/D,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAA;QACzD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvB,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACtC,CAAC;IAEO,KAAK,CAAC,sBAAsB;QAClC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC5B,OAAO,SAAS,CAAA;QAClB,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACrC,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,UAAU,CACxC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CACjD,CAAA;YACD,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;gBAC5B,IAAI,GAAG,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;oBAC/B,IAAI,CAAC,mBAAmB,KAAK,EAAE,CAAA;oBAC/B,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;gBAClD,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC,mBAAmB,CAAA;IACjC,CAAC;CACF","sourcesContent":["import * as dns from 'node:dns/promises'\nimport { HandleResolverOpts } from '../types.js'\n\nconst SUBDOMAIN = '_atproto'\nconst PREFIX = 'did='\n\nexport class HandleResolver {\n public timeout: number\n private backupNameservers: string[] | undefined\n private backupNameserverIps: string[] | undefined\n\n constructor(opts: HandleResolverOpts = {}) {\n this.timeout = opts.timeout ?? 3000\n this.backupNameservers = opts.backupNameservers\n }\n\n async resolve(handle: string): Promise<string | undefined> {\n const dnsPromise = this.resolveDns(handle)\n const httpAbort = new AbortController()\n const httpPromise = this.resolveHttp(handle, httpAbort.signal).catch(\n () => undefined,\n )\n\n const dnsRes = await dnsPromise\n if (dnsRes) {\n httpAbort.abort()\n return dnsRes\n }\n const res = await httpPromise\n if (res) {\n return res\n }\n return this.resolveDnsBackup(handle)\n }\n\n async resolveDns(handle: string): Promise<string | undefined> {\n let chunkedResults: string[][]\n try {\n chunkedResults = await dns.resolveTxt(`${SUBDOMAIN}.${handle}`)\n } catch (err) {\n return undefined\n }\n return this.parseDnsResult(chunkedResults)\n }\n\n async resolveHttp(\n handle: string,\n signal?: AbortSignal,\n ): Promise<string | undefined> {\n const url = new URL('/.well-known/atproto-did', `https://${handle}`)\n try {\n const res = await fetch(url, { signal })\n const did = (await res.text()).split('\\n')[0].trim()\n if (typeof did === 'string' && did.startsWith('did:')) {\n return did\n }\n return undefined\n } catch (err) {\n return undefined\n }\n }\n\n async resolveDnsBackup(handle: string): Promise<string | undefined> {\n let chunkedResults: string[][]\n try {\n const backupIps = await this.getBackupNameserverIps()\n if (!backupIps || backupIps.length < 1) return undefined\n const resolver = new dns.Resolver()\n resolver.setServers(backupIps)\n chunkedResults = await resolver.resolveTxt(`${SUBDOMAIN}.${handle}`)\n } catch (err) {\n return undefined\n }\n return this.parseDnsResult(chunkedResults)\n }\n\n parseDnsResult(chunkedResults: string[][]): string | undefined {\n const results = chunkedResults.map((chunks) => chunks.join(''))\n const found = results.filter((i) => i.startsWith(PREFIX))\n if (found.length !== 1) {\n return undefined\n }\n return found[0].slice(PREFIX.length)\n }\n\n private async getBackupNameserverIps(): Promise<string[] | undefined> {\n if (!this.backupNameservers) {\n return undefined\n } else if (!this.backupNameserverIps) {\n const responses = await Promise.allSettled(\n this.backupNameservers.map((h) => dns.lookup(h)),\n )\n for (const res of responses) {\n if (res.status === 'fulfilled') {\n this.backupNameserverIps ??= []\n this.backupNameserverIps.push(res.value.address)\n }\n }\n }\n return this.backupNameserverIps\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id-resolver.d.ts","sourceRoot":"","sources":["../src/id-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,qBAAa,UAAU;IACd,MAAM,EAAE,cAAc,CAAA;IACtB,GAAG,EAAE,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"id-resolver.d.ts","sourceRoot":"","sources":["../src/id-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,qBAAa,UAAU;IACd,MAAM,EAAE,cAAc,CAAA;IACtB,GAAG,EAAE,WAAW,CAAA;IAEvB,YAAY,IAAI,GAAE,oBAAyB,EAO1C;CACF"}
|
package/dist/id-resolver.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id-resolver.js","sourceRoot":"","sources":["../src/id-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAGlD,MAAM,OAAO,UAAU;IAIrB,YAAY,
|
|
1
|
+
{"version":3,"file":"id-resolver.js","sourceRoot":"","sources":["../src/id-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAGlD,MAAM,OAAO,UAAU;IAIrB,YAAY,IAAI,GAAyB,EAAE;QACzC,MAAM,EAAE,OAAO,GAAG,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;QACjD,IAAI,CAAC,MAAM,GAAG,IAAI,cAAc,CAAC;YAC/B,OAAO;YACP,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SAC1C,CAAC,CAAA;QACF,IAAI,CAAC,GAAG,GAAG,IAAI,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAA;IAC3D,CAAC;CACF","sourcesContent":["import { DidResolver } from './did/did-resolver.js'\nimport { HandleResolver } from './handle/index.js'\nimport { IdentityResolverOpts } from './types.js'\n\nexport class IdResolver {\n public handle: HandleResolver\n public did: DidResolver\n\n constructor(opts: IdentityResolverOpts = {}) {\n const { timeout = 3000, plcUrl, didCache } = opts\n this.handle = new HandleResolver({\n timeout,\n backupNameservers: opts.backupNameservers,\n })\n this.did = new DidResolver({ timeout, plcUrl, didCache })\n }\n}\n"]}
|
package/jest.config.cjs
CHANGED
|
@@ -4,11 +4,18 @@ module.exports = {
|
|
|
4
4
|
transform: {
|
|
5
5
|
'^.+\\.(t|j)s$': [
|
|
6
6
|
'@swc/jest',
|
|
7
|
-
{
|
|
7
|
+
{
|
|
8
|
+
jsc: {
|
|
9
|
+
parser: { syntax: 'typescript', importAttributes: true },
|
|
10
|
+
experimental: { keepImportAttributes: true },
|
|
11
|
+
transform: {},
|
|
12
|
+
},
|
|
13
|
+
module: { type: 'es6' },
|
|
14
|
+
},
|
|
8
15
|
],
|
|
9
16
|
},
|
|
10
17
|
extensionsToTreatAsEsm: ['.ts'],
|
|
11
18
|
transformIgnorePatterns: [],
|
|
12
|
-
setupFiles: ['<rootDir>/../../
|
|
19
|
+
setupFiles: ['<rootDir>/../../test.setup.ts'],
|
|
13
20
|
moduleNameMapper: { '^(\\.\\.?\\/.+)\\.js$': ['$1.ts', '$1.js'] },
|
|
14
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/identity",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Library for decentralized identities in atproto using DIDs and handles",
|
|
6
6
|
"keywords": [
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"node": ">=22"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@atproto/common-web": "^0.5.
|
|
22
|
-
"@atproto/crypto": "^0.5.
|
|
21
|
+
"@atproto/common-web": "^0.5.1",
|
|
22
|
+
"@atproto/crypto": "^0.5.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@did-plc/lib": "^0.0.1",
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
"cors": "^2.8.5",
|
|
29
29
|
"express": "^4.18.2",
|
|
30
30
|
"get-port": "^6.1.2",
|
|
31
|
-
"jest": "^30.0.0"
|
|
32
|
-
"typescript": "^6.0.3"
|
|
31
|
+
"jest": "^30.0.0"
|
|
33
32
|
},
|
|
34
33
|
"type": "module",
|
|
35
34
|
"exports": {
|
|
@@ -41,6 +40,6 @@
|
|
|
41
40
|
"scripts": {
|
|
42
41
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
43
42
|
"test:log": "cat test.log | pino-pretty",
|
|
44
|
-
"build": "
|
|
43
|
+
"build": "tsgo --build tsconfig.build.json"
|
|
45
44
|
}
|
|
46
45
|
}
|
package/tsconfig.build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/errors.ts","./src/id-resolver.ts","./src/index.ts","./src/types.ts","./src/did/atproto-data.ts","./src/did/base-resolver.ts","./src/did/did-resolver.ts","./src/did/index.ts","./src/did/memory-cache.ts","./src/did/plc-resolver.ts","./src/did/util.ts","./src/did/web-resolver.ts","./src/handle/index.ts"]
|
|
1
|
+
{"version":"7.0.0-dev.20260614.1","root":["./src/errors.ts","./src/id-resolver.ts","./src/index.ts","./src/types.ts","./src/did/atproto-data.ts","./src/did/base-resolver.ts","./src/did/did-resolver.ts","./src/did/index.ts","./src/did/memory-cache.ts","./src/did/plc-resolver.ts","./src/did/util.ts","./src/did/web-resolver.ts","./src/handle/index.ts"]}
|
package/tsconfig.json
CHANGED
package/tsconfig.tests.json
CHANGED
package/test.log
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
{"level":30,"time":1689275840930,"pid":71480,"hostname":"dicorcia.local","req":{"id":1,"method":"POST","url":"/did%3Aplc%3Awal42s6ti6sjc6frkwilq5hv","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","content-type":"application/json","user-agent":"axios/1.3.4","content-length":"433","accept-encoding":"gzip, compress, deflate, br","host":"localhost:59978","connection":"close"},"remoteAddress":"::1","remotePort":59979},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"text/plain; charset=utf-8","content-length":"2","etag":"W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""}},"responseTime":26,"msg":"request completed"}
|
|
2
|
-
{"level":30,"time":1689275840954,"pid":71480,"hostname":"dicorcia.local","req":{"id":2,"method":"GET","url":"/did%3Aplc%3Awal42s6ti6sjc6frkwilq5hv","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59978","connection":"close"},"remoteAddress":"::1","remotePort":59980},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-RJkkO5YJwpIfpAOUfQbM1GWVX6I\""}},"responseTime":4,"msg":"request completed"}
|
|
3
|
-
{"level":30,"time":1689275840963,"pid":71480,"hostname":"dicorcia.local","req":{"id":3,"method":"GET","url":"/did%3Aplc%3Awal42s6ti6sjc6frkwilq5hv","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59978","connection":"close"},"remoteAddress":"::1","remotePort":59981},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-RJkkO5YJwpIfpAOUfQbM1GWVX6I\""}},"responseTime":4,"msg":"request completed"}
|
|
4
|
-
{"level":30,"time":1689275840967,"pid":71480,"hostname":"dicorcia.local","req":{"id":4,"method":"GET","url":"/did%3Aplc%3Awal42s6ti6sjc6frkwilq5hv","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59978","connection":"close"},"remoteAddress":"::1","remotePort":59982},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-RJkkO5YJwpIfpAOUfQbM1GWVX6I\""}},"responseTime":3,"msg":"request completed"}
|
|
5
|
-
{"level":30,"time":1689275840978,"pid":71480,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3Awal42s6ti6sjc6frkwilq5hv","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59978","connection":"close"},"remoteAddress":"::1","remotePort":59983},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-RJkkO5YJwpIfpAOUfQbM1GWVX6I\""}},"responseTime":3,"msg":"request completed"}
|
|
6
|
-
{"level":30,"time":1689275840983,"pid":71480,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc%3Awal42s6ti6sjc6frkwilq5hv","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59978","connection":"close"},"remoteAddress":"::1","remotePort":59984},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-RJkkO5YJwpIfpAOUfQbM1GWVX6I\""}},"responseTime":3,"msg":"request completed"}
|
|
7
|
-
{"level":30,"time":1689275840994,"pid":71480,"hostname":"dicorcia.local","req":{"id":7,"method":"GET","url":"/did%3Aplc%3Awal42s6ti6sjc6frkwilq5hv","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59978","connection":"close"},"remoteAddress":"::1","remotePort":59985},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-RJkkO5YJwpIfpAOUfQbM1GWVX6I\""}},"responseTime":4,"msg":"request completed"}
|
|
8
|
-
{"level":30,"time":1689275841162,"pid":71479,"hostname":"dicorcia.local","req":{"id":1,"method":"POST","url":"/did%3Aplc%3A32jih6tnrtjjx36i4c4oybll","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","content-type":"application/json","user-agent":"axios/1.3.4","content-length":"434","accept-encoding":"gzip, compress, deflate, br","host":"localhost:59987","connection":"close"},"remoteAddress":"::1","remotePort":59988},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"text/plain; charset=utf-8","content-length":"2","etag":"W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""}},"responseTime":26,"msg":"request completed"}
|
|
9
|
-
{"level":30,"time":1689275841170,"pid":71479,"hostname":"dicorcia.local","req":{"id":2,"method":"GET","url":"/did%3Aplc%3A32jih6tnrtjjx36i4c4oybll","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/1.3.4","accept-encoding":"gzip, compress, deflate, br","host":"localhost:59987","connection":"close"},"remoteAddress":"::1","remotePort":59989},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-LdbiZSnfZPKdYJIe++nRQRpnIho\""}},"responseTime":4,"msg":"request completed"}
|
|
10
|
-
{"level":30,"time":1689275841225,"pid":71479,"hostname":"dicorcia.local","req":{"id":3,"method":"GET","url":"/did%3Aplc%3A32jih6tnrtjjx36i4c4oybll","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59987","connection":"close"},"remoteAddress":"::1","remotePort":59992},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-LdbiZSnfZPKdYJIe++nRQRpnIho\""}},"responseTime":3,"msg":"request completed"}
|
|
11
|
-
{"level":30,"time":1689275841230,"pid":71479,"hostname":"dicorcia.local","req":{"id":4,"method":"GET","url":"/did%3Aplc%3A32jih6tnrtjjx36i4c4oybll","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59987","connection":"close"},"remoteAddress":"::1","remotePort":59993},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-LdbiZSnfZPKdYJIe++nRQRpnIho\""}},"responseTime":3,"msg":"request completed"}
|
|
12
|
-
{"level":30,"time":1689275841233,"pid":71479,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3Aasdf","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59987","connection":"close"},"remoteAddress":"::1","remotePort":59994},"err":{"type":"ServerError","message":"DID not registered: did:plc:asdf","stack":"Error: DID not registered: did:plc:asdf\n at /Users/devinivy/Documents/bluesky/atproto/node_modules/@did-plc/server/dist/index.js:78306:13\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","status":404},"msg":"handled server error"}
|
|
13
|
-
{"level":30,"time":1689275841591,"pid":71479,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3Aasdf","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59987","connection":"close"},"remoteAddress":"::1","remotePort":59994},"res":{"statusCode":404,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/json; charset=utf-8","content-length":"46","etag":"W/\"2e-ouyx9dlGpAF6gs2puC1AAUwbx84\""}},"responseTime":358,"msg":"request completed"}
|
|
14
|
-
{"level":30,"time":1689275841592,"pid":71479,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59987","connection":"close"},"remoteAddress":"::1","remotePort":59995},"err":{"type":"ServerError","message":"DID not registered: did:plc","stack":"Error: DID not registered: did:plc\n at /Users/devinivy/Documents/bluesky/atproto/node_modules/@did-plc/server/dist/index.js:78306:13\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","status":404},"msg":"handled server error"}
|
|
15
|
-
{"level":30,"time":1689275841593,"pid":71479,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:59987","connection":"close"},"remoteAddress":"::1","remotePort":59995},"res":{"statusCode":404,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/json; charset=utf-8","content-length":"41","etag":"W/\"29-pS6VolLLFKlzTQkRVMexS+2oUm8\""}},"responseTime":1,"msg":"request completed"}
|
|
16
|
-
{"level":30,"time":1689278983516,"pid":75490,"hostname":"dicorcia.local","req":{"id":1,"method":"POST","url":"/did%3Aplc%3A6rzcre3todeexytbodbzsa6p","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","content-type":"application/json","user-agent":"axios/1.3.4","content-length":"433","accept-encoding":"gzip, compress, deflate, br","host":"localhost:60292","connection":"close"},"remoteAddress":"::1","remotePort":60293},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"text/plain; charset=utf-8","content-length":"2","etag":"W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""}},"responseTime":28,"msg":"request completed"}
|
|
17
|
-
{"level":30,"time":1689278983531,"pid":75490,"hostname":"dicorcia.local","req":{"id":2,"method":"GET","url":"/did%3Aplc%3A6rzcre3todeexytbodbzsa6p","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60292","connection":"close"},"remoteAddress":"::1","remotePort":60294},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-h6DF5AIlxTEEJBAcBzUIuDrzi+U\""}},"responseTime":5,"msg":"request completed"}
|
|
18
|
-
{"level":30,"time":1689278983539,"pid":75490,"hostname":"dicorcia.local","req":{"id":3,"method":"GET","url":"/did%3Aplc%3A6rzcre3todeexytbodbzsa6p","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60292","connection":"close"},"remoteAddress":"::1","remotePort":60295},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-h6DF5AIlxTEEJBAcBzUIuDrzi+U\""}},"responseTime":3,"msg":"request completed"}
|
|
19
|
-
{"level":30,"time":1689278983545,"pid":75490,"hostname":"dicorcia.local","req":{"id":4,"method":"GET","url":"/did%3Aplc%3A6rzcre3todeexytbodbzsa6p","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60292","connection":"close"},"remoteAddress":"::1","remotePort":60296},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-h6DF5AIlxTEEJBAcBzUIuDrzi+U\""}},"responseTime":4,"msg":"request completed"}
|
|
20
|
-
{"level":30,"time":1689278983555,"pid":75490,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3A6rzcre3todeexytbodbzsa6p","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60292","connection":"close"},"remoteAddress":"::1","remotePort":60298},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-h6DF5AIlxTEEJBAcBzUIuDrzi+U\""}},"responseTime":3,"msg":"request completed"}
|
|
21
|
-
{"level":30,"time":1689278983559,"pid":75490,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc%3A6rzcre3todeexytbodbzsa6p","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60292","connection":"close"},"remoteAddress":"::1","remotePort":60300},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-h6DF5AIlxTEEJBAcBzUIuDrzi+U\""}},"responseTime":2,"msg":"request completed"}
|
|
22
|
-
{"level":30,"time":1689278983570,"pid":75490,"hostname":"dicorcia.local","req":{"id":7,"method":"GET","url":"/did%3Aplc%3A6rzcre3todeexytbodbzsa6p","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60292","connection":"close"},"remoteAddress":"::1","remotePort":60301},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-h6DF5AIlxTEEJBAcBzUIuDrzi+U\""}},"responseTime":3,"msg":"request completed"}
|
|
23
|
-
{"level":30,"time":1689278983622,"pid":75489,"hostname":"dicorcia.local","req":{"id":1,"method":"POST","url":"/did%3Aplc%3Avmeendn3be7mv7gew3pxmjsk","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","content-type":"application/json","user-agent":"axios/1.3.4","content-length":"434","accept-encoding":"gzip, compress, deflate, br","host":"localhost:60299","connection":"close"},"remoteAddress":"::1","remotePort":60302},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"text/plain; charset=utf-8","content-length":"2","etag":"W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""}},"responseTime":26,"msg":"request completed"}
|
|
24
|
-
{"level":30,"time":1689278983631,"pid":75489,"hostname":"dicorcia.local","req":{"id":2,"method":"GET","url":"/did%3Aplc%3Avmeendn3be7mv7gew3pxmjsk","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/1.3.4","accept-encoding":"gzip, compress, deflate, br","host":"localhost:60299","connection":"close"},"remoteAddress":"::1","remotePort":60303},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-CpesPuFJ48PxQH7Pq+pCxCxM4PE\""}},"responseTime":4,"msg":"request completed"}
|
|
25
|
-
{"level":30,"time":1689278983680,"pid":75489,"hostname":"dicorcia.local","req":{"id":3,"method":"GET","url":"/did%3Aplc%3Avmeendn3be7mv7gew3pxmjsk","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60299","connection":"close"},"remoteAddress":"::1","remotePort":60306},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-CpesPuFJ48PxQH7Pq+pCxCxM4PE\""}},"responseTime":4,"msg":"request completed"}
|
|
26
|
-
{"level":30,"time":1689278983685,"pid":75489,"hostname":"dicorcia.local","req":{"id":4,"method":"GET","url":"/did%3Aplc%3Avmeendn3be7mv7gew3pxmjsk","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60299","connection":"close"},"remoteAddress":"::1","remotePort":60307},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-CpesPuFJ48PxQH7Pq+pCxCxM4PE\""}},"responseTime":3,"msg":"request completed"}
|
|
27
|
-
{"level":30,"time":1689278983687,"pid":75489,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3Aasdf","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60299","connection":"close"},"remoteAddress":"::1","remotePort":60308},"err":{"type":"ServerError","message":"DID not registered: did:plc:asdf","stack":"Error: DID not registered: did:plc:asdf\n at /Users/devinivy/Documents/bluesky/atproto/node_modules/@did-plc/server/dist/index.js:78306:13\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","status":404},"msg":"handled server error"}
|
|
28
|
-
{"level":30,"time":1689278984045,"pid":75489,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3Aasdf","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60299","connection":"close"},"remoteAddress":"::1","remotePort":60308},"res":{"statusCode":404,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/json; charset=utf-8","content-length":"46","etag":"W/\"2e-ouyx9dlGpAF6gs2puC1AAUwbx84\""}},"responseTime":358,"msg":"request completed"}
|
|
29
|
-
{"level":30,"time":1689278984047,"pid":75489,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60299","connection":"close"},"remoteAddress":"::1","remotePort":60309},"err":{"type":"ServerError","message":"DID not registered: did:plc","stack":"Error: DID not registered: did:plc\n at /Users/devinivy/Documents/bluesky/atproto/node_modules/@did-plc/server/dist/index.js:78306:13\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","status":404},"msg":"handled server error"}
|
|
30
|
-
{"level":30,"time":1689278984048,"pid":75489,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60299","connection":"close"},"remoteAddress":"::1","remotePort":60309},"res":{"statusCode":404,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/json; charset=utf-8","content-length":"41","etag":"W/\"29-pS6VolLLFKlzTQkRVMexS+2oUm8\""}},"responseTime":1,"msg":"request completed"}
|
|
31
|
-
{"level":30,"time":1689279026156,"pid":75628,"hostname":"dicorcia.local","req":{"id":1,"method":"POST","url":"/did%3Aplc%3Aykqfxtz3ac47rdtvoijy7uyp","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","content-type":"application/json","user-agent":"axios/1.3.4","content-length":"433","accept-encoding":"gzip, compress, deflate, br","host":"localhost:60317","connection":"close"},"remoteAddress":"::1","remotePort":60318},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"text/plain; charset=utf-8","content-length":"2","etag":"W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""}},"responseTime":27,"msg":"request completed"}
|
|
32
|
-
{"level":30,"time":1689279026170,"pid":75628,"hostname":"dicorcia.local","req":{"id":2,"method":"GET","url":"/did%3Aplc%3Aykqfxtz3ac47rdtvoijy7uyp","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60317","connection":"close"},"remoteAddress":"::1","remotePort":60321},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-EMSn9/hKLGml1ERLLqPdSo2Qd6M\""}},"responseTime":5,"msg":"request completed"}
|
|
33
|
-
{"level":30,"time":1689279026179,"pid":75628,"hostname":"dicorcia.local","req":{"id":3,"method":"GET","url":"/did%3Aplc%3Aykqfxtz3ac47rdtvoijy7uyp","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60317","connection":"close"},"remoteAddress":"::1","remotePort":60322},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-EMSn9/hKLGml1ERLLqPdSo2Qd6M\""}},"responseTime":3,"msg":"request completed"}
|
|
34
|
-
{"level":30,"time":1689279026184,"pid":75628,"hostname":"dicorcia.local","req":{"id":4,"method":"GET","url":"/did%3Aplc%3Aykqfxtz3ac47rdtvoijy7uyp","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60317","connection":"close"},"remoteAddress":"::1","remotePort":60323},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-EMSn9/hKLGml1ERLLqPdSo2Qd6M\""}},"responseTime":3,"msg":"request completed"}
|
|
35
|
-
{"level":30,"time":1689279026193,"pid":75628,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3Aykqfxtz3ac47rdtvoijy7uyp","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60317","connection":"close"},"remoteAddress":"::1","remotePort":60325},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-EMSn9/hKLGml1ERLLqPdSo2Qd6M\""}},"responseTime":3,"msg":"request completed"}
|
|
36
|
-
{"level":30,"time":1689279026198,"pid":75628,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc%3Aykqfxtz3ac47rdtvoijy7uyp","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60317","connection":"close"},"remoteAddress":"::1","remotePort":60326},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-EMSn9/hKLGml1ERLLqPdSo2Qd6M\""}},"responseTime":3,"msg":"request completed"}
|
|
37
|
-
{"level":30,"time":1689279026208,"pid":75628,"hostname":"dicorcia.local","req":{"id":7,"method":"GET","url":"/did%3Aplc%3Aykqfxtz3ac47rdtvoijy7uyp","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60317","connection":"close"},"remoteAddress":"::1","remotePort":60327},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-EMSn9/hKLGml1ERLLqPdSo2Qd6M\""}},"responseTime":2,"msg":"request completed"}
|
|
38
|
-
{"level":30,"time":1689279026211,"pid":75627,"hostname":"dicorcia.local","req":{"id":1,"method":"POST","url":"/did%3Aplc%3Amgtoznwm7fd7ilrh36tr462f","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","content-type":"application/json","user-agent":"axios/1.3.4","content-length":"434","accept-encoding":"gzip, compress, deflate, br","host":"localhost:60320","connection":"close"},"remoteAddress":"::1","remotePort":60324},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"text/plain; charset=utf-8","content-length":"2","etag":"W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""}},"responseTime":26,"msg":"request completed"}
|
|
39
|
-
{"level":30,"time":1689279026220,"pid":75627,"hostname":"dicorcia.local","req":{"id":2,"method":"GET","url":"/did%3Aplc%3Amgtoznwm7fd7ilrh36tr462f","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/1.3.4","accept-encoding":"gzip, compress, deflate, br","host":"localhost:60320","connection":"close"},"remoteAddress":"::1","remotePort":60328},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-+m13Z3hRO2ZPxgN+apn35LpI39k\""}},"responseTime":5,"msg":"request completed"}
|
|
40
|
-
{"level":30,"time":1689279026267,"pid":75627,"hostname":"dicorcia.local","req":{"id":3,"method":"GET","url":"/did%3Aplc%3Amgtoznwm7fd7ilrh36tr462f","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60320","connection":"close"},"remoteAddress":"::1","remotePort":60331},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-+m13Z3hRO2ZPxgN+apn35LpI39k\""}},"responseTime":4,"msg":"request completed"}
|
|
41
|
-
{"level":30,"time":1689279026271,"pid":75627,"hostname":"dicorcia.local","req":{"id":4,"method":"GET","url":"/did%3Aplc%3Amgtoznwm7fd7ilrh36tr462f","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60320","connection":"close"},"remoteAddress":"::1","remotePort":60332},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-+m13Z3hRO2ZPxgN+apn35LpI39k\""}},"responseTime":3,"msg":"request completed"}
|
|
42
|
-
{"level":30,"time":1689279026273,"pid":75627,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3Aasdf","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60320","connection":"close"},"remoteAddress":"::1","remotePort":60333},"err":{"type":"ServerError","message":"DID not registered: did:plc:asdf","stack":"Error: DID not registered: did:plc:asdf\n at /Users/devinivy/Documents/bluesky/atproto/node_modules/@did-plc/server/dist/index.js:78306:13\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","status":404},"msg":"handled server error"}
|
|
43
|
-
{"level":30,"time":1689279026623,"pid":75627,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3Aasdf","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60320","connection":"close"},"remoteAddress":"::1","remotePort":60333},"res":{"statusCode":404,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/json; charset=utf-8","content-length":"46","etag":"W/\"2e-ouyx9dlGpAF6gs2puC1AAUwbx84\""}},"responseTime":350,"msg":"request completed"}
|
|
44
|
-
{"level":30,"time":1689279026625,"pid":75627,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60320","connection":"close"},"remoteAddress":"::1","remotePort":60334},"err":{"type":"ServerError","message":"DID not registered: did:plc","stack":"Error: DID not registered: did:plc\n at /Users/devinivy/Documents/bluesky/atproto/node_modules/@did-plc/server/dist/index.js:78306:13\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","status":404},"msg":"handled server error"}
|
|
45
|
-
{"level":30,"time":1689279026626,"pid":75627,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60320","connection":"close"},"remoteAddress":"::1","remotePort":60334},"res":{"statusCode":404,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/json; charset=utf-8","content-length":"41","etag":"W/\"29-pS6VolLLFKlzTQkRVMexS+2oUm8\""}},"responseTime":1,"msg":"request completed"}
|
|
46
|
-
{"level":30,"time":1689279097637,"pid":75799,"hostname":"dicorcia.local","req":{"id":1,"method":"POST","url":"/did%3Aplc%3Aahrhjewkjjmbmsbru6kloszb","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","content-type":"application/json","user-agent":"axios/1.3.4","content-length":"433","accept-encoding":"gzip, compress, deflate, br","host":"localhost:60344","connection":"close"},"remoteAddress":"::1","remotePort":60345},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"text/plain; charset=utf-8","content-length":"2","etag":"W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""}},"responseTime":26,"msg":"request completed"}
|
|
47
|
-
{"level":30,"time":1689279097650,"pid":75799,"hostname":"dicorcia.local","req":{"id":2,"method":"GET","url":"/did%3Aplc%3Aahrhjewkjjmbmsbru6kloszb","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60344","connection":"close"},"remoteAddress":"::1","remotePort":60348},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-vl6/JGFwlRkbuXAmqQC22NecDyE\""}},"responseTime":5,"msg":"request completed"}
|
|
48
|
-
{"level":30,"time":1689279097658,"pid":75799,"hostname":"dicorcia.local","req":{"id":3,"method":"GET","url":"/did%3Aplc%3Aahrhjewkjjmbmsbru6kloszb","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60344","connection":"close"},"remoteAddress":"::1","remotePort":60349},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-vl6/JGFwlRkbuXAmqQC22NecDyE\""}},"responseTime":3,"msg":"request completed"}
|
|
49
|
-
{"level":30,"time":1689279097663,"pid":75799,"hostname":"dicorcia.local","req":{"id":4,"method":"GET","url":"/did%3Aplc%3Aahrhjewkjjmbmsbru6kloszb","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60344","connection":"close"},"remoteAddress":"::1","remotePort":60350},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-vl6/JGFwlRkbuXAmqQC22NecDyE\""}},"responseTime":3,"msg":"request completed"}
|
|
50
|
-
{"level":30,"time":1689279097674,"pid":75799,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3Aahrhjewkjjmbmsbru6kloszb","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60344","connection":"close"},"remoteAddress":"::1","remotePort":60351},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-vl6/JGFwlRkbuXAmqQC22NecDyE\""}},"responseTime":3,"msg":"request completed"}
|
|
51
|
-
{"level":30,"time":1689279097679,"pid":75799,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc%3Aahrhjewkjjmbmsbru6kloszb","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60344","connection":"close"},"remoteAddress":"::1","remotePort":60353},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-vl6/JGFwlRkbuXAmqQC22NecDyE\""}},"responseTime":3,"msg":"request completed"}
|
|
52
|
-
{"level":30,"time":1689279097689,"pid":75799,"hostname":"dicorcia.local","req":{"id":7,"method":"GET","url":"/did%3Aplc%3Aahrhjewkjjmbmsbru6kloszb","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60344","connection":"close"},"remoteAddress":"::1","remotePort":60354},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"526","etag":"W/\"20e-vl6/JGFwlRkbuXAmqQC22NecDyE\""}},"responseTime":3,"msg":"request completed"}
|
|
53
|
-
{"level":30,"time":1689279097706,"pid":75798,"hostname":"dicorcia.local","req":{"id":1,"method":"POST","url":"/did%3Aplc%3Aysbphh7uga6uydsoxgbqmxla","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","content-type":"application/json","user-agent":"axios/1.3.4","content-length":"434","accept-encoding":"gzip, compress, deflate, br","host":"localhost:60347","connection":"close"},"remoteAddress":"::1","remotePort":60352},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"text/plain; charset=utf-8","content-length":"2","etag":"W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""}},"responseTime":27,"msg":"request completed"}
|
|
54
|
-
{"level":30,"time":1689279097719,"pid":75798,"hostname":"dicorcia.local","req":{"id":2,"method":"GET","url":"/did%3Aplc%3Aysbphh7uga6uydsoxgbqmxla","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/1.3.4","accept-encoding":"gzip, compress, deflate, br","host":"localhost:60347","connection":"close"},"remoteAddress":"::1","remotePort":60355},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-glwwWunaLV47EyhcSr+de00CK80\""}},"responseTime":5,"msg":"request completed"}
|
|
55
|
-
{"level":30,"time":1689279097770,"pid":75798,"hostname":"dicorcia.local","req":{"id":3,"method":"GET","url":"/did%3Aplc%3Aysbphh7uga6uydsoxgbqmxla","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60347","connection":"close"},"remoteAddress":"::1","remotePort":60358},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-glwwWunaLV47EyhcSr+de00CK80\""}},"responseTime":4,"msg":"request completed"}
|
|
56
|
-
{"level":30,"time":1689279097775,"pid":75798,"hostname":"dicorcia.local","req":{"id":4,"method":"GET","url":"/did%3Aplc%3Aysbphh7uga6uydsoxgbqmxla","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60347","connection":"close"},"remoteAddress":"::1","remotePort":60359},"res":{"statusCode":200,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/did+ld+json; charset=utf-8","content-length":"527","etag":"W/\"20f-glwwWunaLV47EyhcSr+de00CK80\""}},"responseTime":3,"msg":"request completed"}
|
|
57
|
-
{"level":30,"time":1689279097778,"pid":75798,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3Aasdf","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60347","connection":"close"},"remoteAddress":"::1","remotePort":60360},"err":{"type":"ServerError","message":"DID not registered: did:plc:asdf","stack":"Error: DID not registered: did:plc:asdf\n at /Users/devinivy/Documents/bluesky/atproto/node_modules/@did-plc/server/dist/index.js:78306:13\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","status":404},"msg":"handled server error"}
|
|
58
|
-
{"level":30,"time":1689279098126,"pid":75798,"hostname":"dicorcia.local","req":{"id":5,"method":"GET","url":"/did%3Aplc%3Aasdf","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60347","connection":"close"},"remoteAddress":"::1","remotePort":60360},"res":{"statusCode":404,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/json; charset=utf-8","content-length":"46","etag":"W/\"2e-ouyx9dlGpAF6gs2puC1AAUwbx84\""}},"responseTime":348,"msg":"request completed"}
|
|
59
|
-
{"level":30,"time":1689279098128,"pid":75798,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60347","connection":"close"},"remoteAddress":"::1","remotePort":60362},"err":{"type":"ServerError","message":"DID not registered: did:plc","stack":"Error: DID not registered: did:plc\n at /Users/devinivy/Documents/bluesky/atproto/node_modules/@did-plc/server/dist/index.js:78306:13\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","status":404},"msg":"handled server error"}
|
|
60
|
-
{"level":30,"time":1689279098128,"pid":75798,"hostname":"dicorcia.local","req":{"id":6,"method":"GET","url":"/did%3Aplc","query":{},"params":{},"headers":{"accept":"application/json, text/plain, */*","user-agent":"axios/0.27.2","host":"localhost:60347","connection":"close"},"remoteAddress":"::1","remotePort":60362},"res":{"statusCode":404,"headers":{"x-powered-by":"Express","access-control-allow-origin":"*","content-type":"application/json; charset=utf-8","content-length":"41","etag":"W/\"29-pS6VolLLFKlzTQkRVMexS+2oUm8\""}},"responseTime":0,"msg":"request completed"}
|