@learncard/openid4vc-plugin 0.1.0 → 0.1.2

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.
@@ -27264,7 +27264,7 @@ var isHttpsUrl2 = /* @__PURE__ */ __name((value) => {
27264
27264
  var describe3 = /* @__PURE__ */ __name((e) => e instanceof Error ? e.message : String(e), "describe");
27265
27265
 
27266
27266
  // src/vp/pex.ts
27267
- var import_safe_regex = __toESM(require_safe_regex());
27267
+ var import_safe_regex = __toESM(require_safe_regex(), 1);
27268
27268
  var MAX_PEX_PATTERN_LENGTH = 512;
27269
27269
  var evaluateField = /* @__PURE__ */ __name((candidate, field) => {
27270
27270
  if (!Array.isArray(field.path) || field.path.length === 0) {
package/package.json CHANGED
@@ -1,9 +1,22 @@
1
1
  {
2
2
  "name": "@learncard/openid4vc-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "OpenID for Verifiable Credentials (OID4VCI + OID4VP + SIOPv2) holder support for LearnCard",
5
- "main": "./dist/index.js",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
6
7
  "module": "./dist/openid4vc-plugin.esm.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/openid4vc-plugin.esm.js"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.cts",
16
+ "default": "./dist/index.cjs"
17
+ }
18
+ }
19
+ },
7
20
  "files": [
8
21
  "dist"
9
22
  ],
@@ -28,7 +41,7 @@
28
41
  "shx": "^0.3.4",
29
42
  "ts-jest": "^29.0.3",
30
43
  "tsx": "^4.20.6",
31
- "@learncard/types": "5.16.0"
44
+ "@learncard/types": "5.17.1"
32
45
  },
33
46
  "types": "./dist/index.d.ts",
34
47
  "dependencies": {
@@ -36,13 +49,13 @@
36
49
  "dcql": "^3.0.0",
37
50
  "jose": "^5.9.6",
38
51
  "safe-regex": "^2.1.1",
39
- "@learncard/core": "9.4.19",
40
- "@learncard/didkit-plugin": "^1.8.10",
41
- "@learncard/vc-plugin": "^1.4.15"
52
+ "@learncard/didkit-plugin": "^1.9.1",
53
+ "@learncard/vc-plugin": "^1.5.1",
54
+ "@learncard/core": "9.4.21"
42
55
  },
43
56
  "sideEffects": false,
44
57
  "scripts": {
45
- "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json",
58
+ "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.cjs && tsc --p tsconfig.json && shx cp ./dist/index.d.ts ./dist/index.d.cts",
46
59
  "test": "jest --passWithNoTests",
47
60
  "test:watch": "jest --watch",
48
61
  "test:coverage": "jest --silent --ci --coverage --coverageReporters=\"text\" --coverageReporters=\"text-summary\"",