Skip to content

Commit

Permalink
Newer required Node.js because of GitHub actions
Browse files Browse the repository at this point in the history
Specifically, 22.14 or higher is now required since the experimental
import assertions feature was dropped for import attributes
  • Loading branch information
dwaite committed Feb 13, 2025
1 parent 262ee4b commit 8335cc6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 20 deletions.
6 changes: 3 additions & 3 deletions fixtures/bbs-fixtures.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { base64url } from 'jose';
import { keyRead } from './bbs-keyread.mjs';
import { lineWrap, compactPayloadEncode, jsonPayloadEncode } from './utils.mjs';

import protectedHeaderJSON from "./template/jpt-issuer-protected-header.json" assert {type: "json"};
import presentationHeaderJSON from "./template/bbs-holder-presentation-header.json" assert {type: "json"};
import payloadsJSON from "./template/jpt-issuer-payloads.json" assert {type: "json"};
import protectedHeaderJSON from "./template/jpt-issuer-protected-header.json" with {type: "json"};
import presentationHeaderJSON from "./template/bbs-holder-presentation-header.json" with {type: "json"};
import payloadsJSON from "./template/jpt-issuer-payloads.json" with {type: "json"};

const encode = base64url.encode;

Expand Down
18 changes: 9 additions & 9 deletions fixtures/mac-h256-fixtures.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import { lineWrap, compactPayloadEncode, jsonPayloadEncode, signPayloadSHA256 }
import * as fs from "fs/promises";
import * as crypto from "crypto";

import payloadsJSON from "./template/jpt-issuer-payloads.json" assert {type: "json"};
import issuerPrivateKeyJSON from "./build/issuer-private-key-es256.jwk.json" assert {type: "json"};
import holderPrivateKeyJSON from "./build/holder-private-key-es256.jwk.json" assert {type: "json"};
import holderPublicKeyJSON from "./build/holder-public-key-es256.jwk.json" assert {type: "json"};
import issuerNonceStr from "./build/issuer-nonce.json" assert {type: "json"};
import presentationNonceStr from "./build/presentation-nonce.json" assert {type: "json"};
import issuerProtectedHeaderJSON from "./template/mac-h256-issuer-protected-header.json" assert {type: "json"};
import holderProtectedHeaderJSON from "./template/mac-h256-holder-protected-header.json" assert {type: "json"};
import holderSharedSecretStr from "./build/mac-h256-holder-shared-secret.json" assert {type: "json"};
import payloadsJSON from "./template/jpt-issuer-payloads.json" with {type: "json"};
import issuerPrivateKeyJSON from "./build/issuer-private-key-es256.jwk.json" with {type: "json"};
import holderPrivateKeyJSON from "./build/holder-private-key-es256.jwk.json" with {type: "json"};
import holderPublicKeyJSON from "./build/holder-public-key-es256.jwk.json" with {type: "json"};
import issuerNonceStr from "./build/issuer-nonce.json" with {type: "json"};
import presentationNonceStr from "./build/presentation-nonce.json" with {type: "json"};
import issuerProtectedHeaderJSON from "./template/mac-h256-issuer-protected-header.json" with {type: "json"};
import holderProtectedHeaderJSON from "./template/mac-h256-holder-protected-header.json" with {type: "json"};
import holderSharedSecretStr from "./build/mac-h256-holder-shared-secret.json" with {type: "json"};

const { encode, decode } = base64url;

Expand Down
16 changes: 8 additions & 8 deletions fixtures/su-es256-fixtures.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { lineWrap, compactPayloadEncode, jsonPayloadEncode, signPayloadSHA256 }
import * as fs from "fs/promises";
import * as crypto from "crypto";

import payloadsJSON from "./template/jpt-issuer-payloads.json" assert {type: "json"};
import issuerPrivateKeyJSON from "./build/issuer-private-key-es256.jwk.json" assert {type: "json"};
import holderPrivateKeyJSON from "./build/holder-private-key-es256.jwk.json" assert {type: "json"};
import ephemeralPrivateKeyJSON from "./build/ephemeral-private-key-es256.jwk.json" assert {type: "json"};
import issuerNonceStr from "./build/issuer-nonce.json" assert {type: "json"};
import presentationNonceStr from "./build/presentation-nonce.json" assert {type: "json"};
import issuerProtectedHeaderJSON from "./template/su-es256-issuer-protected-header.json" assert {type: "json"};
import holderProtectedHeaderJSON from "./template/su-es256-holder-protected-header.json" assert {type: "json"};
import payloadsJSON from "./template/jpt-issuer-payloads.json" with {type: "json"};
import issuerPrivateKeyJSON from "./build/issuer-private-key-es256.jwk.json" with {type: "json"};
import holderPrivateKeyJSON from "./build/holder-private-key-es256.jwk.json" with {type: "json"};
import ephemeralPrivateKeyJSON from "./build/ephemeral-private-key-es256.jwk.json" with {type: "json"};
import issuerNonceStr from "./build/issuer-nonce.json" with {type: "json"};
import presentationNonceStr from "./build/presentation-nonce.json" with {type: "json"};
import issuerProtectedHeaderJSON from "./template/su-es256-issuer-protected-header.json" with {type: "json"};
import holderProtectedHeaderJSON from "./template/su-es256-holder-protected-header.json" with {type: "json"};

const { encode, decode } = base64url;

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "0.0.1",
"description": "",
"main": "fixtureize.js",
"engines": {
"node": ">=22.14.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down

0 comments on commit 8335cc6

Please sign in to comment.