Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,28 @@ jobs:
working-directory: javascript
run: node test.js

- name: Verify installable packages
run: |
mkdir -p "$RUNNER_TEMP/root-pack" "$RUNNER_TEMP/javascript-pack"
mkdir -p "$RUNNER_TEMP/root-install" "$RUNNER_TEMP/javascript-install"

npm pack --pack-destination "$RUNNER_TEMP/root-pack"
(cd javascript && npm pack --pack-destination "$RUNNER_TEMP/javascript-pack")

(
cd "$RUNNER_TEMP/root-install"
npm init -y
npm install "$RUNNER_TEMP/root-pack/"*.tgz --ignore-scripts --no-audit --no-fund
node --input-type=module -e 'import("@htmltrust/canonicalization").then(({ normalizeText }) => { if (normalizeText("A—B") !== "A-B") process.exit(1); })'
)

(
cd "$RUNNER_TEMP/javascript-install"
npm init -y
npm install "$RUNNER_TEMP/javascript-pack/"*.tgz --ignore-scripts --no-audit --no-fund
node --input-type=module -e 'import("@htmltrust/canonicalization").then(({ normalizeText }) => { if (normalizeText("A—B") !== "A-B") process.exit(1); })'
)

- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: javascript-package
Expand Down
7 changes: 4 additions & 3 deletions javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "@htmltrust/canonicalization",
"version": "0.2.1",
"description": "HTMLTrust canonical text normalization, signature verification, and keyid resolution \u2014 zero dependencies, browser + Node.js",
"version": "0.2.2",
"description": "HTMLTrust canonical text normalization, signature verification, and key resolution for browsers and Node.js",
"type": "module",
"main": "index.js",
"exports": {
".": "./index.js"
},
"files": [
"index.js",
"index.d.ts"
"index.d.ts",
"entities.js"
],
"keywords": [
"htmltrust",
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@htmltrust/canonicalization",
"version": "0.2.1",
"version": "0.2.2",
"description": "HTMLTrust canonical text normalization, signature verification, and key resolution for browsers and Node.js",
"type": "module",
"main": "javascript/index.js",
Expand All @@ -10,7 +10,8 @@
"types": "javascript/index.d.ts",
"files": [
"javascript/index.js",
"javascript/index.d.ts"
"javascript/index.d.ts",
"javascript/entities.js"
],
"keywords": [
"htmltrust",
Expand Down
Loading