@ayanworks/credo-polygon-w3c-module 0.0.2-alpha.7 → 0.0.2-alpha.9

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.
@@ -1,10 +1,9 @@
1
- import type { DidResolutionOptions, AgentContext, DidResolutionResult, DidResolver } from '@credo-ts/core';
2
- import type { ParsedDID } from 'did-resolver';
1
+ import { type AgentContext, type DidResolutionResult, type DidResolver } from '@credo-ts/core';
3
2
  import { Resolver } from 'did-resolver';
4
3
  export declare class PolygonDidResolver implements DidResolver {
5
4
  readonly allowsCaching = true;
6
5
  readonly supportedMethods: string[];
7
6
  resolver: Resolver;
8
7
  constructor();
9
- resolve(agentContext: AgentContext, did: string, parsed: ParsedDID, didResolutionOptions: DidResolutionOptions): Promise<DidResolutionResult>;
8
+ resolve(agentContext: AgentContext, did: string): Promise<DidResolutionResult>;
10
9
  }
@@ -11,11 +11,7 @@ class PolygonDidResolver {
11
11
  this.supportedMethods = ['polygon'];
12
12
  this.resolver = new did_resolver_1.Resolver((0, polygon_did_resolver_1.getResolver)());
13
13
  }
14
- async resolve(agentContext, did,
15
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
16
- parsed,
17
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
18
- didResolutionOptions) {
14
+ async resolve(agentContext, did) {
19
15
  const didDocumentMetadata = {};
20
16
  if (!(0, didPolygonUtil_1.isValidPolygonDid)(did)) {
21
17
  throw new Error('Invalid DID');
@@ -1 +1 @@
1
- {"version":3,"file":"PolygonDidResolver.js","sourceRoot":"","sources":["../../src/dids/PolygonDidResolver.ts"],"names":[],"mappings":";;;AAGA,0EAA6D;AAC7D,yCAA6D;AAC7D,+CAAuC;AAEvC,qDAAoD;AAEpD,MAAa,kBAAkB;IAO7B;QANgB,kBAAa,GAAG,IAAI,CAAA;QAEpB,qBAAgB,GAAG,CAAC,SAAS,CAAC,CAAA;QAK5C,IAAI,CAAC,QAAQ,GAAG,IAAI,uBAA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mB,GAAG,EAAE,CAAA;QAE9B,IAAI,CAAC,IAAA,kCAAiB,EAAC,GAAG,CAAC,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAA;SAC/B;QACD,IAAI;YACF,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;YAEpG,OAAO;gBACL,WAAW,EAAE,sBAAe,CAAC,QAAQ,CAAC,WAAW,EAAE,kBAAW,CAAC;gBAC/D,mBAAmB;gBACnB,qBAAqB;aACtB,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,OAAO;gBACL,WAAW,EAAE,IAAI;gBACjB,mBAAmB;gBACnB,qBAAqB,EAAE;oBACrB,KAAK,EAAE,UAAU;oBACjB,OAAO,EAAE,0CAA0C,GAAG,MAAM,KAAK,EAAE;iBACpE;aACF,CAAA;SACF;IACH,CAAC;CACF;AApCD,gDAoCC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ayanworks/credo-polygon-w3c-module",
3
3
  "main": "build/index",
4
4
  "types": "build/index",
5
- "version": "0.0.2-alpha.7",
5
+ "version": "0.0.2-alpha.9",
6
6
  "files": [
7
7
  "build"
8
8
  ],
@@ -27,18 +27,18 @@
27
27
  "lint": "eslint --ignore-path .gitignore ."
28
28
  },
29
29
  "dependencies": {
30
- "@credo-ts/askar": "0.5.1",
31
- "@credo-ts/core": "0.5.1",
32
- "@ayanworks/polygon-did-registrar": "0.0.16-alpha.16",
33
- "@ayanworks/polygon-did-resolver": "0.0.16-alpha.11",
34
- "@ayanworks/polygon-schema-manager": "0.0.2-alpha.6",
30
+ "@credo-ts/askar": "0.5.3",
31
+ "@credo-ts/core": "0.5.3",
32
+ "@ayanworks/polygon-did-registrar": "0.0.16-alpha.19",
33
+ "@ayanworks/polygon-did-resolver": "0.0.16-alpha.14",
34
+ "@ayanworks/polygon-schema-manager": "0.0.2-alpha.8",
35
35
  "did-resolver": "^4.1.0",
36
36
  "ethers": "^6.9.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@credo-ts/node": "^0.5.0",
40
- "@hyperledger/aries-askar-nodejs": "^0.2.0",
41
- "@hyperledger/aries-askar-shared": "^0.2.0",
39
+ "@credo-ts/node": "0.5.3",
40
+ "@hyperledger/aries-askar-nodejs": "0.2.1",
41
+ "@hyperledger/aries-askar-shared": "0.2.1",
42
42
  "@types/jest": "^26.0.23",
43
43
  "@types/node": "^18.18.8",
44
44
  "@types/uuid": "^9.0.0",
@@ -59,8 +59,5 @@
59
59
  "ts-node": "^10.8.1",
60
60
  "tsconfig-paths": "^4.1.2",
61
61
  "typescript": "~4.9.5"
62
- },
63
- "engines": {
64
- "node": "18.19.0"
65
62
  }
66
63
  }