@hyperledger/anoncreds-shared 0.1.0 → 0.2.0-dev.10

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 (48) hide show
  1. package/README.md +1 -1
  2. package/build/Anoncreds.d.ts +76 -16
  3. package/build/ObjectHandle.d.ts +1 -1
  4. package/build/api/Credential.d.ts +14 -4
  5. package/build/api/Credential.js +33 -12
  6. package/build/api/Credential.js.map +1 -1
  7. package/build/api/CredentialDefinition.d.ts +1 -1
  8. package/build/api/CredentialDefinition.js +5 -3
  9. package/build/api/CredentialDefinition.js.map +1 -1
  10. package/build/api/CredentialOffer.d.ts +1 -1
  11. package/build/api/CredentialOffer.js +4 -2
  12. package/build/api/CredentialOffer.js.map +1 -1
  13. package/build/api/CredentialRequest.d.ts +1 -1
  14. package/build/api/CredentialRequest.js +5 -3
  15. package/build/api/CredentialRequest.js.map +1 -1
  16. package/build/api/CredentialRevocationConfig.d.ts +8 -7
  17. package/build/api/CredentialRevocationConfig.js +3 -3
  18. package/build/api/CredentialRevocationConfig.js.map +1 -1
  19. package/build/api/CredentialRevocationState.d.ts +2 -2
  20. package/build/api/CredentialRevocationState.js +5 -3
  21. package/build/api/CredentialRevocationState.js.map +1 -1
  22. package/build/api/Presentation.d.ts +8 -8
  23. package/build/api/Presentation.js +9 -5
  24. package/build/api/Presentation.js.map +1 -1
  25. package/build/api/RevocationRegistry.d.ts +2 -7
  26. package/build/api/RevocationRegistry.js.map +1 -1
  27. package/build/api/RevocationRegistryDefinition.d.ts +1 -1
  28. package/build/api/RevocationRegistryDefinition.js +4 -2
  29. package/build/api/RevocationRegistryDefinition.js.map +1 -1
  30. package/build/api/RevocationStatusList.d.ts +12 -6
  31. package/build/api/RevocationStatusList.js +27 -5
  32. package/build/api/RevocationStatusList.js.map +1 -1
  33. package/build/api/Schema.d.ts +1 -1
  34. package/build/api/W3cCredential.d.ts +47 -0
  35. package/build/api/W3cCredential.js +143 -0
  36. package/build/api/W3cCredential.js.map +1 -0
  37. package/build/api/W3cPresentation.d.ts +36 -0
  38. package/build/api/W3cPresentation.js +108 -0
  39. package/build/api/W3cPresentation.js.map +1 -0
  40. package/build/api/index.d.ts +2 -0
  41. package/build/api/index.js +7 -1
  42. package/build/api/index.js.map +1 -1
  43. package/build/error.d.ts +2 -2
  44. package/build/error.js.map +1 -1
  45. package/build/index.js +5 -1
  46. package/build/index.js.map +1 -1
  47. package/build/types.d.ts +3 -3
  48. package/package.json +6 -9
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -27,4 +31,6 @@ __exportStar(require("./RevocationRegistry"), exports);
27
31
  __exportStar(require("./RevocationRegistryDefinition"), exports);
28
32
  __exportStar(require("./RevocationRegistryDefinitionPrivate"), exports);
29
33
  __exportStar(require("./RevocationStatusList"), exports);
34
+ __exportStar(require("./W3cCredential"), exports);
35
+ __exportStar(require("./W3cPresentation"), exports);
30
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA4B;AAC5B,yDAAsC;AACtC,gEAA6C;AAC7C,+DAA4C;AAC5C,8DAA2C;AAC3C,wDAAqC;AACrC,oDAAiC;AACjC,sDAAmC;AACnC,8DAA2C;AAC3C,+CAA4B;AAC5B,wDAAqC;AACrC,iDAA8B;AAC9B,2CAAwB;AACxB,uDAAoC;AACpC,iEAA8C;AAC9C,wEAAqD;AACrD,yDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,yDAAsC;AACtC,gEAA6C;AAC7C,+DAA4C;AAC5C,8DAA2C;AAC3C,wDAAqC;AACrC,oDAAiC;AACjC,sDAAmC;AACnC,8DAA2C;AAC3C,+CAA4B;AAC5B,wDAAqC;AACrC,iDAA8B;AAC9B,2CAAwB;AACxB,uDAAoC;AACpC,iEAA8C;AAC9C,wEAAqD;AACrD,yDAAsC;AACtC,kDAA+B;AAC/B,oDAAiC"}
package/build/error.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type AnoncredsErrorObject = {
1
+ export type AnoncredsErrorObject = {
2
2
  code: number;
3
3
  extra?: string;
4
4
  message: string;
@@ -11,4 +11,4 @@ export declare class AnoncredsError extends Error {
11
11
  message: string;
12
12
  }): AnoncredsError;
13
13
  }
14
- export declare function handleInvalidNullResponse<T extends null | unknown>(response: T): Exclude<T, null>;
14
+ export declare function handleInvalidNullResponse<T>(response: T): Exclude<T, null>;
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";;;AAMA,MAAa,cAAe,SAAQ,KAAK;IAIvC,YAAmB,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAwB;QAC/D,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IACM,MAAM,CAAC,WAAW,CAAC,EAAE,OAAO,EAAuB;QACxD,OAAO,IAAI,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAA;IACnD,CAAC;CACF;AAZD,wCAYC;AAED,SAAgB,yBAAyB,CAA2B,QAAW;IAC7E,IAAI,QAAQ,KAAK,IAAI,EAAE;QACrB,MAAM,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,4DAA4D,EAAE,CAAC,CAAA;KAC5G;IAED,OAAO,QAA4B,CAAA;AACrC,CAAC;AAND,8DAMC"}
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";;;AAMA,MAAa,cAAe,SAAQ,KAAK;IAIvC,YAAmB,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAwB;QAC/D,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAEM,MAAM,CAAC,WAAW,CAAC,EAAE,OAAO,EAAuB;QACxD,OAAO,IAAI,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAA;IACnD,CAAC;CACF;AAbD,wCAaC;AAED,SAAgB,yBAAyB,CAAI,QAAW;IACtD,IAAI,QAAQ,KAAK,IAAI,EAAE;QACrB,MAAM,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,4DAA4D,EAAE,CAAC,CAAA;KAC5G;IAED,OAAO,QAA4B,CAAA;AACrC,CAAC;AAND,8DAMC"}
package/build/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAqB;AACrB,6CAA0B;AAC1B,8CAA2B;AAC3B,0CAAuB;AACvB,oDAAiC;AACjC,iDAA8B;AAC9B,0CAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,6CAA0B;AAC1B,8CAA2B;AAC3B,0CAAuB;AACvB,oDAAiC;AACjC,iDAA8B;AAC9B,0CAAuB"}
package/build/types.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- declare type ByteBufferOptions = {
1
+ interface ByteBufferOptions {
2
2
  len: number;
3
3
  data: Uint8Array;
4
- };
4
+ }
5
5
  export declare class ByteBuffer {
6
6
  len: number;
7
7
  data: Uint8Array;
8
8
  constructor({ data, len }: ByteBufferOptions);
9
9
  static fromUint8Array(data: Uint8Array): ByteBuffer;
10
10
  }
11
- export declare type JsonObject = Record<string, unknown>;
11
+ export type JsonObject = Record<string, unknown>;
12
12
  export {};
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@hyperledger/anoncreds-shared",
3
- "version": "0.1.0",
3
+ "version": "0.2.0-dev.10",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Anoncreds wrapper library with NodeJS and React Native",
6
6
  "main": "build/index",
7
7
  "source": "src/index",
8
- "types": "build/index",
9
8
  "homepage": "https://github.com/hyperledger/anoncreds-rs/tree/main/wrappers/javascript/anoncreds-shared",
10
9
  "repository": {
11
10
  "url": "https://github.com/hyperledger/anoncreds-rs",
@@ -19,16 +18,14 @@
19
18
  "build"
20
19
  ],
21
20
  "scripts": {
22
- "build": "yarn run clean && yarn run compile",
21
+ "check-types": "pnpm compile --noEmit",
22
+ "build": "pnpm clean && pnpm compile",
23
23
  "clean": "rimraf -rf ./build",
24
- "compile": "tsc -p tsconfig.build.json"
24
+ "compile": "tsc -p ./tsconfig.build.json"
25
25
  },
26
26
  "devDependencies": {
27
- "@babel/core": "7.17.9",
28
- "@babel/runtime": "7.17.9",
29
- "prettier": "2.6.2",
30
27
  "rimraf": "3.0.2",
31
- "typescript": "4.5.5"
28
+ "typescript": "~5.2.2"
32
29
  },
33
- "gitHead": "9c915bb77bc4e033cc6d28d45e330ee5bda26211"
30
+ "gitHead": "3c027a97cf6b2b4e00ed5f739373bb961255246a"
34
31
  }